joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e10
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x47200c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x20], 7
push eax
push 0x80
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
call fcn.00406d50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push ecx
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x80
push eax
push ebx
push edi
push 0
mov dword [ebp - 0x1c], 0x44
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
jne 0x402eec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x402eea
cmp dword [ebp - 0x1c], 0x44
jbe 0x402eb3
xor bl, bl
jmp 0x402eef
mov eax, dword [ebp - 0x18]
cmp eax, 0x80
jbe 0x402ec6
push eax
lea ecx, [ebp - 0x34]
call fcn.004045f0
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
setne bl
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x402f04
inc ecx
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.00407f00
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040de0d
mov esp, ebp
pop ebp
ret

Function at 0x403890
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x47200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push eax
movzx eax, dx
push eax
push 0
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4038e0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040de0d
mov esp, ebp
pop ebp
ret
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403921
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040de0d
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp edi, dword [ebp - 8]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040de0d
mov esp, ebp
pop ebp
ret
Function at 0x403960
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4480e8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x47200c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edx, ecx
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
jne 0x4039bf
xor ecx, ecx
jmp 0x4039d1
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4039c2
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406e40
mov dword [ebp - 4], 0
test esi, esi
je 0x403a49
mov ecx, str.AACJJJJJNPgq__4FHV_bhw_389_KQ_fouxx_
call fcn.0040dbf0
mov edx, eax
cmp word [edx], 0
jne 0x4039fc
xor ecx, ecx
jmp 0x403a10
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403a01
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406f40
cmp word [esi], 0
jne 0x403a24
xor ecx, ecx
jmp 0x403a3f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403a30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406f40
push 0x44
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.004269e0
add esp, 0xc
mov dword [ebp - 0x4c], 1
lea ecx, [ebp - 0x88]
xor eax, eax
cmp dword [ebp - 0x18], 8
xorps xmm0, xmm0
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
movups xmmword [ebp - 0x88], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403aca
push 0xffffffffffffffff
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x84]
call esi
mov esi, 1
jmp 0x403acc
xor esi, esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x403ae1
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.00407f00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040de0d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x403f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403f98
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040de0d
mov esp, ebp
pop ebp
ret
Function at 0x403fb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404023
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403ff0
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040de0d
mov esp, ebp
pop ebp
ret
Function at 0x407a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4484a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x47200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x407bab
cmp byte [ebx + 0x3d], 0
je 0x407bab
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x407a99
xor al, al
jmp 0x407bad
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004072b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x407b03
sub eax, 1
je 0x407b07
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x407b5d
xor bl, bl
jmp 0x407b5f
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x407b3f
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.0042cca1
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x407aff
cmp byte [ebx + 0x3d], 0
je 0x407b5d
test esi, esi
jne 0x407ac4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004075b0
jmp 0x407abe
mov bl, 1
cmp edx, 0x10
jb 0x407ba7
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x407b9e
test byte [ebp - 0x28], 0x1f
je 0x407b7a
call fcn.0042c9d4
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x407b86
call fcn.0042c9d4
sub eax, ecx
cmp eax, 4
jae 0x407b92
call fcn.0042c9d4
cmp eax, 0x23
jbe 0x407b9c
call fcn.0042c9d4
mov eax, ecx
push eax
call fcn.0040e4e8
add esp, 4
mov al, bl
jmp 0x407bad
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040de0d
mov esp, ebp
pop ebp
ret
Function at 0x4086b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447e96
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x47200c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040e24d
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004124b8
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d3f0
Capabilities:
Encode data using xor
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, edx
xor eax, eax
lea edx, [ecx + 0x20]
nop dword [eax]
mov bl, byte [eax + esi]
xor bl, 0x36
mov byte [edx + eax], bl
inc eax
cmp eax, 0x40
jl 0x40d400
add ecx, 0x60
xorps xmm0, xmm0
push 0x40
movups xmmword [ecx + 0x20], xmm0
movups xmmword [ecx + 0x30], xmm0
movups xmmword [ecx + 0x40], xmm0
movups xmmword [ecx + 0x50], xmm0
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x60], 0x6a09e667
mov dword [ecx + 0x64], 0xbb67ae85
mov dword [ecx + 0x68], 0x3c6ef372
mov dword [ecx + 0x6c], 0xa54ff53a
mov dword [ecx + 0x70], 0x510e527f
mov dword [ecx + 0x74], 0x9b05688c
mov dword [ecx + 0x78], 0x1f83d9ab
mov dword [ecx + 0x7c], 0x5be0cd19
movq qword [ecx + 0x80], xmm0
call fcn.0040cde0
add esp, 4
pop esi
pop ebx
ret

Function at 0x40d480
Capabilities:
Encode data using xor
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 4], edi
lea ebx, [edi + 0x60]
mov ecx, ebx
call fcn.0040d2e0
mov ecx, 0x20
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
add esp, 4
mov ecx, 0x40
lea edx, [edi + 0x20]
mov eax, edx
xor byte [eax], 0x6a
lea eax, [eax + 1]
sub ecx, 1
jne 0x40d4b2
xorps xmm0, xmm0
movups xmmword [ebx + 0x20], xmm0
push 0x40
movups xmmword [ebx + 0x30], xmm0
movups xmmword [ebx + 0x40], xmm0
movups xmmword [ebx + 0x50], xmm0
mov dword [ebx + 0x60], ecx
mov ecx, ebx
mov dword [ebx + 0x60], 0x6a09e667
mov dword [ebx + 0x64], 0xbb67ae85
mov dword [ebx + 0x68], 0x3c6ef372
mov dword [ebx + 0x6c], 0xa54ff53a
mov dword [ebx + 0x70], 0x510e527f
mov dword [ebx + 0x74], 0x9b05688c
mov dword [ebx + 0x78], 0x1f83d9ab
mov dword [ebx + 0x7c], 0x5be0cd19
movq qword [ebx + 0x80], xmm0
call fcn.0040cde0
push 0x20
mov edx, edi
mov ecx, ebx
call fcn.0040d2e0
add esp, 8
mov esi, ebx
mov ecx, 0x20
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d680
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov bl, byte [edx]
push esi
mov esi, ecx
push edi
lea edi, [esi + 1]
mov dword [ebp - 4], esi
movzx eax, byte [esi + 0x1d]
lea ecx, [esi + 4]
movzx eax, byte [eax + 0x46c0b0]
xor al, bl
xor byte [esi], al
movzx eax, byte [esi + 0x1e]
movzx eax, byte [eax + 0x46c0b0]
xor byte [edi], al
sub edi, esi
movzx eax, byte [esi + 0x1f]
movzx eax, byte [eax + 0x46c0b0]
xor byte [esi + 2], al
movzx eax, byte [esi + 0x1c]
movzx eax, byte [eax + 0x46c0b0]
xor byte [esi + 3], al
mov al, bl
shr al, 7
add bl, bl
movzx eax, al
imul eax, eax, 0x1b
xor al, bl
lea ebx, [esi + 2]
mov byte [edx], al
sub ebx, esi
mov eax, 0xfffffffc
lea edx, [esi + 3]
sub edx, esi
mov dword [ebp - 8], edx
lea esi, [eax + 7]
movzx eax, byte [eax + ecx]
lea ecx, [ecx + 4]
xor byte [ecx - 4], al
mov eax, 0xfffffffd
movzx eax, byte [eax + ecx - 4]
xor byte [edi + ecx - 4], al
mov eax, 0xfffffffe
movzx eax, byte [eax + ecx - 4]
xor byte [ebx + ecx - 4], al
or eax, 0xffffffff
movzx eax, byte [eax + ecx - 4]
xor byte [edx + ecx - 4], al
mov eax, 0xfffffffc
sub esi, 1
jne 0x40d6f6
mov esi, dword [ebp - 4]
mov edx, 3
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax + 0x46c0b0]
xor byte [esi + 0x10], al
movzx eax, byte [esi + 0xd]
movzx eax, byte [eax + 0x46c0b0]
xor byte [esi + 0x11], al
movzx eax, byte [esi + 0xe]
movzx eax, byte [eax + 0x46c0b0]
xor byte [esi + 0x12], al
movzx eax, byte [esi + 0xf]
movzx eax, byte [eax + 0x46c0b0]
xor byte [esi + 0x13], al
lea eax, [esi + 0x14]
mov esi, dword [ebp - 8]
nop dword [eax + eax]
mov ecx, 0xfffffffc
lea eax, [eax + 4]
movzx ecx, byte [ecx + eax - 4]
xor byte [eax - 4], cl
mov ecx, 0xfffffffd
movzx ecx, byte [ecx + eax - 4]
xor byte [edi + eax - 4], cl
mov ecx, 0xfffffffe
movzx ecx, byte [ecx + eax - 4]
xor byte [ebx + eax - 4], cl
or ecx, 0xffffffff
movzx ecx, byte [ecx + eax - 4]
xor byte [esi + eax - 4], cl
sub edx, 1
jne 0x40d780
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d7d0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea esi, [ecx + 1]
mov dword [ebp - 0x24], edx
mov dword [ebp - 8], esi
lea ebx, [ecx - 4]
sub dword [ebp - 8], ecx
lea esi, [ecx - 2]
sub esi, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], esi
lea eax, [ecx + 3]
lea esi, [ecx + 2]
mov dword [ebp - 0xc], 3
sub esi, ecx
lea edx, [ecx + 0x1c]
push edi
lea edi, [ecx - 3]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
lea esi, [ecx - 1]
sub dword [ebp - 4], ecx
sub esi, ecx
mov edi, dword [ebp - 8]
sub ebx, ecx
sub eax, ecx
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
nop dword [eax]
movzx eax, byte [ebx + edx]
lea edx, [edx - 4]
xor byte [edx + 4], al
movzx eax, byte [esi + edx + 4]
xor byte [edi + edx + 4], al
mov esi, dword [ebp - 0x14]
movzx eax, byte [ecx + edx + 4]
xor byte [esi + edx + 4], al
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
movzx eax, byte [eax + edx + 4]
xor byte [esi + edx + 4], al
sub dword [ebp - 0xc], 1
mov esi, dword [ebp - 4]
jne 0x40d830
mov ecx, dword [ebp - 0x20]
mov bl, 0xc
movzx eax, byte [ecx + 0xc]
movzx eax, byte [eax + 0x46c0b0]
xor byte [ecx + 0x10], al
movzx eax, byte [ecx + 0xd]
movzx eax, byte [eax + 0x46c0b0]
xor byte [ecx + 0x11], al
movzx eax, byte [ecx + 0xe]
movzx eax, byte [eax + 0x46c0b0]
xor byte [ecx + 0x12], al
movzx eax, byte [ecx + 0xf]
movzx eax, byte [eax + 0x46c0b0]
xor byte [ecx + 0x13], al
movzx edx, bl
movzx eax, byte [ecx + edx - 4]
xor byte [edx + ecx], al
movzx eax, byte [ecx + edx - 3]
xor byte [ecx + edx + 1], al
movzx eax, byte [ecx + edx - 2]
xor byte [ecx + edx + 2], al
movzx eax, byte [ecx + edx - 1]
xor byte [ecx + edx + 3], al
add bl, 0xfc
jne 0x40d8a4
mov ebx, dword [ebp - 0x24]
pop edi
pop esi
mov al, byte [ebx]
mov dl, al
and dl, 1
neg dl
sbb dl, dl
shr al, 1
and dl, 0x8d
xor dl, al
movzx eax, byte [ecx + 0x1d]
mov byte [ebx], dl
pop ebx
movzx eax, byte [eax + 0x46c0b0]
xor al, dl
xor byte [ecx], al
movzx eax, byte [ecx + 0x1e]
movzx eax, byte [eax + 0x46c0b0]
xor byte [ecx + 1], al
movzx eax, byte [ecx + 0x1f]
movzx eax, byte [eax + 0x46c0b0]
xor byte [ecx + 2], al
movzx eax, byte [ecx + 0x1c]
movzx eax, byte [eax + 0x46c0b0]
xor byte [ecx + 3], al
mov esp, ebp
pop ebp
ret
Function at 0x40d930
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, edx
mov dword [ebp - 0x1c], ecx
push esi
push edi
lea eax, [ecx + 0x40]
mov dword [ebp - 0xc], ebx
mov edi, eax
lea esi, [ebx + 0x10]
sub eax, ebx
sub edi, ecx
add eax, 0x10
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
mov edi, ecx
mov eax, ecx
sub edi, ebx
sub eax, ebx
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp - 0x10]
add eax, 0x10
mov dl, 0x10
mov dword [ebp - 8], eax
nop dword [eax]
lea esi, [esi - 1]
lea eax, [edi + esi]
mov cl, byte [eax + ebx]
mov byte [eax], cl
xor byte [esi], cl
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov al, byte [eax + esi]
mov byte [ecx + esi], al
add dl, 0xff
jne 0x40d970
mov ebx, dword [ebp - 0xc]
mov dl, 0x10
mov cl, byte [ebx + 1]
lea edi, [ebx + 0x10]
movzx eax, byte [ebx + 0xd]
mov byte [ebx + 1], al
movzx eax, byte [ebx + 9]
mov byte [ebx + 0xd], al
movzx eax, byte [ebx + 5]
mov byte [ebx + 9], al
movzx eax, byte [ebx + 0xa]
mov byte [ebx + 5], cl
mov cl, byte [ebx + 2]
mov byte [ebx + 2], al
movzx eax, byte [ebx + 7]
mov byte [ebx + 0xa], cl
mov cl, byte [ebx + 3]
mov byte [ebx + 3], al
movzx eax, byte [ebx + 0xb]
mov byte [ebx + 7], al
movzx eax, byte [ebx + 0xf]
mov byte [ebx + 0xf], cl
mov cl, byte [ebx + 6]
mov byte [ebx + 0xb], al
movzx eax, byte [ebx + 0xe]
mov byte [ebx + 0xe], cl
mov ecx, edi
mov byte [ebx + 6], al
nop dword [eax + eax]
movzx eax, byte [ecx - 1]
lea ecx, [ecx - 1]
mov al, byte [eax + 0x46c1b0]
mov byte [ecx], al
add dl, 0xff
jne 0x40d9f0
mov esi, dword [ebp - 0x18]
mov al, 0xd
mov byte [ebp - 2], 0x80
mov byte [ebp - 1], al
test al, 1
je 0x40da39
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 2]
call fcn.0040d7d0
mov ebx, dword [ebp - 8]
mov dl, 0x10
mov ecx, edi
mov al, byte [ecx + ebx - 1]
lea ecx, [ecx - 1]
xor byte [ecx], al
add dl, 0xff
jne 0x40da26
mov ebx, dword [ebp - 0xc]
jmp 0x40da4e
mov dl, 0x10
mov eax, edi
nop dword [eax]
mov cl, byte [eax + esi - 1]
lea eax, [eax - 1]
xor byte [eax], cl
add dl, 0xff
jne 0x40da40
mov ecx, ebx
call fcn.0040d540
mov cl, byte [ebx + 1]
mov dl, 0x10
movzx eax, byte [ebx + 0xd]
mov byte [ebx + 1], al
movzx eax, byte [ebx + 9]
mov byte [ebx + 0xd], al
movzx eax, byte [ebx + 5]
mov byte [ebx + 9], al
movzx eax, byte [ebx + 0xa]
mov byte [ebx + 5], cl
mov cl, byte [ebx + 2]
mov byte [ebx + 2], al
movzx eax, byte [ebx + 7]
mov byte [ebx + 0xa], cl
mov cl, byte [ebx + 3]
mov byte [ebx + 3], al
movzx eax, byte [ebx + 0xb]
mov byte [ebx + 7], al
movzx eax, byte [ebx + 0xf]
mov byte [ebx + 0xf], cl
mov cl, byte [ebx + 6]
mov byte [ebx + 0xb], al
movzx eax, byte [ebx + 0xe]
mov byte [ebx + 0xe], cl
mov ecx, edi
mov byte [ebx + 6], al
nop dword [eax]
movzx eax, byte [ecx - 1]
dec ecx
mov al, byte [eax + 0x46c1b0]
mov byte [ecx], al
add dl, 0xff
jne 0x40dab0
mov al, byte [ebp - 1]
add al, 0xff
mov byte [ebp - 1], al
jne 0x40da10
mov cl, 0x10
mov al, byte [esi + edi - 1]
lea edi, [edi - 1]
xor byte [edi], al
add cl, 0xff
jne 0x40dad2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ac3f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043aabe

Function at 0x43c52c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043c1ec
Function at 0x4053e0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x499049
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0xfe8]
mov edi, 0xf
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00404e90
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0xfcc]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xc4], ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00404e90
push 0xffffffffffffffff
push ebx
lea edx, [esi + 0x1004]
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0xc4], 1
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.00404e90
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x1020]
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0xc4], 2
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
call fcn.00404e90
push 0xffffffffffffffff
push ebx
lea ebp, [esi + 0x103c]
push ebp
lea ecx, [esp + 0xa0]
mov byte [esp + 0xc4], 3
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
call fcn.00404e90
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov eax, 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
xor eax, eax
mov ecx, 0x2d
lea edi, [esi + 0xbec]
rep stosd dword es:[edi], eax
mov dword [esp + 0xb8], 4
xor edi, edi
lea esp, [esp]
cmp dword [esp + edi*4 + 0x10], ebx
jne 0x40554b
cmp edi, 4
mov ecx, esi
jne 0x405536
push str.while
push ebp
push edi
jmp 0x405546
mov edx, edi
imul edx, edx, 0x1c
push str.Kan5
lea eax, [esp + edx + 0x28]
push eax
push edi
call fcn.00402bf0
inc edi
cmp edi, 5
jl 0x405520
mov ecx, esi
call fcn.004587f0
mov esi, dword [esi + 0xbb8]
push esi
call fcn.00458da0
mov ecx, eax
call fcn.0045c510
push fcn.004562e0
push 5
push 0x1c
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0xc8], 0xffffffff
call fcn.00476c11
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret