joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4097d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xf4]
mov ecx, 0x3d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x42b074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov ecx, 0x43002c
call fcn.0041bcd0
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x409844
mov esi, esp
push 0x4210c0
push 0x420770
push 0
mov ecx, dword [0x42b010]
add ecx, 5
push ecx
push 0x420ee0
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReportW]
add esp, 0x18
cmp esi, esp
call fcn.0041bc90
cmp eax, 1
jne 0x409844
int3
xor eax, eax
jne 0x409807
cmp dword [ebp + 0x10], 0
jne 0x409882
mov esi, esp
push 0x421110
push 0x420770
push 0
mov eax, dword [0x42b010]
add eax, 6
push eax
push 0x420ee0
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReportW]
add esp, 0x18
cmp esi, esp
call fcn.0041bc90
cmp eax, 1
jne 0x409882
int3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shl ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov esi, esp
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.0041bc90
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4098ca
mov eax, dword [ebp - 0x18]
jmp 0x409930
cmp dword [ebp - 0x24], 1
je 0x4098dd
cmp dword [ebp - 0x24], 2
je 0x4098dd
mov eax, 0xd
jmp 0x409930
cmp dword [ebp + 0xc], 0
je 0x409924
cmp dword [ebp - 0x30], 0
je 0x409913
mov eax, dword [ebp - 0x30]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x40990a
mov eax, dword [ebp - 0x30]
shr eax, 1
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
je 0x409911
mov eax, 0xd
jmp 0x409930
jmp 0x409924
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax + ecx], dx
mov eax, dword [ebp - 0x30]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x409964]
call fcn.0041bc20
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bd10
add esp, 0xf4
cmp ebp, esp
call fcn.0041bc90
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b4d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0xfc]
mov ecx, 0x3f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x430027
call fcn.0041bcd0
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call fcn.0041bc90
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40b51f
xor eax, eax
jmp 0x40b5b1
mov esi, esp
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp esi, esp
call fcn.0041bc90
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b53f
xor eax, eax
jmp 0x40b5b1
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, esp
call fcn.0041bc90
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jbe 0x40b594
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jae 0x40b594
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx*2 + 2]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x38]
sub eax, 1
mov dword [ebp - 0x38], eax
jmp 0x40b56b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x40b5a0
xor eax, eax
jmp 0x40b5b1
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x40b5ae
xor eax, eax
jmp 0x40b5b1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.0041bc90
mov esp, ebp
pop ebp
ret
Function at 0x410710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x138]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], 0
mov esi, esp
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp esi, esp
call fcn.0041bc90
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x410831
mov esi, esp
push 0x10
push 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp esi, esp
call fcn.0041bc90
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x41081e
mov esi, esp
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, esp
call fcn.0041bc90
mov dword [ebp - 0x38], eax
mov esi, esp
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call fcn.0041bc90
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x41081e
mov esi, esp
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp esi, esp
call fcn.0041bc90
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x41080b
mov esi, esp
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
add esp, 4
cmp esi, esp
call fcn.0041bc90
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41080b
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.VCRUNTIME140D.dll_memcpy
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, esp
call fcn.0041bc90
mov esi, esp
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, esp
call fcn.0041bc90
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x14], 0
je 0x410890
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 0x4254c8
mov edx, dword [ebp - 0x14]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41087a
mov ecx, 0xd
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x5c], 1
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ucrtbased.dll_free]
add esp, 4
cmp esi, esp
call fcn.0041bc90
mov eax, dword [ebp - 0x5c]
push edx
mov ecx, ebp
push eax
lea edx, [0x4108bc]
call fcn.0041bc20
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x138
cmp ebp, esp
call fcn.0041bc90
mov esp, ebp
pop ebp
ret 8
Function at 0x410d30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7ec
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x7ec]
mov ecx, 0x1fb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x42b074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
push 0x11c
push 0
lea eax, [ebp - 0x130]
push eax
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
push 0x11c
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0x11c
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp esi, esp
call fcn.0041bc90
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 5
jne 0x410dd5
mov ecx, dword [ebp - 0xc]
call fcn.004112d0
test eax, eax
je 0x410dd5
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
mov eax, 1
jmp 0x410f2d
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00411f40
mov eax, dword [ebp + 8]
imul ecx, dword [eax + 4], 0xa
mov edx, dword [ebp + 8]
add ecx, dword [edx + 8]
mov dword [ebp - 0x13c], ecx
imul eax, dword [ebp - 0x12c], 0xa
add eax, dword [ebp - 0x128]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
cmp eax, dword [ebp - 0x13c]
jle 0x410e3c
push 0x11c
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VCRUNTIME140D.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x13c], eax
push 0x410
push 0
lea eax, [ebp - 0x560]
push eax
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
lea eax, [ebp - 0x560]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00410be0
test eax, eax
jl 0x410f1e
lea eax, [ebp - 0x59c]
push eax
lea ecx, [ebp - 0x560]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00410710
test eax, eax
je 0x410f1e
mov eax, dword [ebp - 0x58c]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
imul edx, ecx, 0xa
mov eax, dword [ebp - 0x58c]
and eax, 0xffff
movzx ecx, ax
add edx, ecx
mov dword [ebp - 0x5a8], edx
mov eax, dword [ebp - 0x13c]
cmp eax, dword [ebp - 0x5a8]
jge 0x410f0d
mov eax, dword [ebp - 0x58c]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x58c]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x588]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 1
jmp 0x410f17
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
mov eax, 1
jmp 0x410f2d
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x410f60]
call fcn.0041bc20
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bd10
add esp, 0x7ec
cmp ebp, esp
call fcn.0041bc90
mov esp, ebp
pop ebp
ret 4
Function at 0x412210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xdc]
mov ecx, 0x37
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x412270
mov esi, esp
push str.m_hKey___0
push 0x421cb4
push 0
mov ecx, dword [0x42b030]
add ecx, 1
push ecx
push 0x421cc0
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReportW]
add esp, 0x18
cmp esi, esp
call fcn.0041bc90
cmp eax, 1
jne 0x412270
int3
xor eax, eax
jne 0x412233
cmp dword [ebp + 0xc], 0
je 0x412286
mov dword [ebp - 0xdc], 1
jmp 0x412290
mov dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4122d3
mov esi, esp
push str.__atl_condVal
push 0x421cb4
push 0
mov eax, dword [0x42b030]
add eax, 2
push eax
push 0x421cc0
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReportW]
add esp, 0x18
cmp esi, esp
call fcn.0041bc90
cmp eax, 1
jne 0x4122d3
int3
cmp dword [ebp - 0x14], 0
jne 0x4122e3
mov eax, 0xd
jmp 0x412365
xor eax, eax
jne 0x412274
cmp dword [ebp + 0x10], 1
je 0x412327
cmp dword [ebp + 0x10], 2
je 0x412327
mov esi, esp
push str._dwType____1______dwType____2___
push 0x421cb4
push 0
mov eax, dword [0x42b030]
add eax, 3
push eax
push 0x421cc0
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReportW]
add esp, 0x18
cmp esi, esp
call fcn.0041bc90
cmp eax, 1
jne 0x412327
int3
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ucrtbased.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041bc90
lea ecx, [eax + eax + 2]
mov esi, esp
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.0041bc90
pop edi
pop esi
pop ebx
add esp, 0xdc
cmp ebp, esp
call fcn.0041bc90
mov esp, ebp
pop ebp
ret 0xc

Function at 0x415b30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xdc]
mov ecx, 0x37
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x415b90
mov esi, esp
push str.m_hKey___0
push 0x421cb4
push 0
mov ecx, dword [0x42b054]
add ecx, 3
push ecx
push 0x421cc0
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReportW]
add esp, 0x18
cmp esi, esp
call fcn.0041bc90
cmp eax, 1
jne 0x415b90
int3
xor eax, eax
jne 0x415b53
cmp dword [ebp + 0x14], 0
jne 0x415ba0
lea eax, [ebp - 0x18]
mov dword [ebp + 0x14], eax
mov esi, esp
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp esi, esp
call fcn.0041bc90
push edx
mov ecx, ebp
push eax
lea edx, [0x415bf4]
call fcn.0041bc20
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xdc
cmp ebp, esp
call fcn.0041bc90
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41a050
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
push edi
lea edi, [ebp - 0xe4]
mov ecx, 0x39
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x42b074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xc
push 0
lea eax, [ebp - 0x14]
push eax
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov esi, esp
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2d1400
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp esi, esp
call fcn.0041bc90
test eax, eax
je 0x41a0d3
mov eax, 1
jmp 0x41a0d5
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x41a104]
call fcn.0041bc20
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bd10
add esp, 0xe4
cmp ebp, esp
call fcn.0041bc90
mov esp, ebp
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x43707070
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2b525cb3
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147f
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x40149a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ee
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ee
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f2
xor eax, eax
jmp 0x401504
cmp dword [ebp - 4], edi
je 0x401501
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402c20
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
inc edx
or edi, 0xbc
neg esi
inc edx
mov edx, 0x54
and edx, 0x74
or eax, 0x2a
not edx
add edx, 0xe2
and esi, 0x45
rcl eax, 8
sub edx, 0x80
rcr eax, 0xac
rcl ebx, 0x34
inc esi
bswap ebx
imul ebx
mov ebx, 0x94
sub esi, 0x7c
and ebx, 0x29
mov eax, 0xfd
sbb edi, 0x37
mov eax, 0xa8
bswap ebx
bswap edx
sub esi, 0x6b
neg esi
and eax, 0x81
inc eax
bswap edi
inc ebx
and esi, 0xa9
imul eax
or ebx, 0x48
inc ebx
rcl edi, 0x69
neg eax
bswap ebx
neg ebx
inc ebx
ror esi, 0xdf
sbb edx, 0x36
inc eax
or edx, 0x72
add edi, 3
mov edi, 0x95
imul edx
rcl esi, 0xfd
inc ebx
sub esi, 0x66
xor ecx, ecx
xor edi, edi
bswap eax
sbb esi, 0x73
rcr eax, 0x31
imul ebx
rcl ebx, 0x2a
imul edx
dec eax
not edx
or ebx, 0x60
rol eax, 0xbe
rcl edi, 0x3c
not edi
ror esi, 0x36
neg ebx
rol eax, 0xcc
ror eax, 0x98
sub eax, 0xe2
sbb edi, 0x11
rcr ebx, 0x40
rol ebx, 0x2f
bswap edx
inc edi
dec edx
inc eax
bswap edx
ror eax, 0xa6
not esi
sbb esi, 0xa
add edi, 0xdf
and edi, 0x9a
rol eax, 0x9d
not eax
dec eax
not edx
neg edi
rcl eax, 0xa1
and edi, 0x22
rcr edx, 0x3e
not eax
or esi, 0x23
mov esi, 0x17
rol ebx, 3
sub edi, 0xaf
bswap esi
ror edx, 0x46
ror edx, 0xe9
neg ebx
sub ebx, 0xfb
and eax, 0xb0
imul edi
mov ecx, dword [ebp + 0xc]
and edi, 0x61
bswap edx
imul ebx
inc eax
add eax, 0x1b
ror edi, 0xe9
dec edx
and eax, 0xa
neg ebx
inc eax
add esi, 0xa8
sub esi, 0x87
not ebx
and edx, 0xaf
not esi
imul ebx
sbb edi, 0x6b
not edi
inc ebx
ror ebx, 0x52
imul eax
sbb ebx, 0x3f
not edi
inc ebx
rcr ebx, 0x8e
inc edi
neg ebx
not edx
sbb edx, 0x32
add ebx, 0x3b
not esi
bswap ebx
rcr esi, 0x26
ror edi, 0
mov edx, 0x93
rcr eax, 0x47
bswap edx
neg esi
sbb edx, 0x28
and edi, 0x64
dec esi
sbb ebx, 0xd7
add eax, 0x77
sub edx, 0x4e
rcl ebx, 0x3d
bswap eax
rcr edx, 0x3b
mov esi, 0x39
inc eax
rcl esi, 0xbc
mov edi, dword [ebp + 8]
mov ebx, eax
mov ebx, esi
xor eax, eax
not byte [edi]
xor eax, esi
mov eax, eax
mov eax, esi
xor ebx, ebx
xor ebx, ebx
mov esi, eax
mov ebx, ebx
mov ebx, esi
xor ebx, ebx
add byte [edi], 0x54
mov ebx, eax
xor eax, eax
mov eax, esi
mov esi, ebx
xor ebx, esi
xor eax, eax
xor ebx, esi
mov ebx, eax
xor esi, eax
sub byte [edi], 0x29
mov ebx, esi
mov esi, eax
xor eax, eax
mov esi, ebx
mov eax, eax
mov eax, eax
xor esi, eax
xor esi, esi
mov ebx, ebx
imul byte [edi]
inc edi
loop 0x402dd9
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40b2ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47ac90]
jne 0x40b2c4
repz ret
jmp fcn.0041284e
Function at 0x4171cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00411156
and dword [ebp - 4], 0
cmp dword [0x47c7d0], 0
mov ebx, eax
jne 0x41727d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41732e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41732e
push eax
call fcn.004110e4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x47c7d0], eax
call esi
push eax
call fcn.004110e4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47c7d4], eax
call esi
push eax
call fcn.004110e4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47c7d8], eax
call esi
push eax
call fcn.004110e4
pop ecx
mov dword [0x47c7e0], eax
test eax, eax
je 0x41727d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004110e4
pop ecx
mov dword [0x47c7dc], eax
mov eax, dword [0x47c7dc]
cmp eax, ebx
je 0x4172d5
cmp dword [0x47c7e0], ebx
je 0x4172d5
push eax
call fcn.0041115f
push dword [0x47c7e0]
mov esi, eax
call fcn.0041115f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4172d5
test edi, edi
je 0x4172d5
call esi
test eax, eax
je 0x4172cc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4172cc
test byte [ebp - 0xc], 1
jne 0x4172d5
or dword [ebp + 0x10], 0x200000
jmp 0x41730e
mov eax, dword [0x47c7d4]
cmp eax, ebx
je 0x41730e
push eax
call fcn.0041115f
pop ecx
test eax, eax
je 0x41730e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41730e
mov eax, dword [0x47c7d8]
cmp eax, ebx
je 0x41730e
push eax
call fcn.0041115f
pop ecx
test eax, eax
je 0x41730e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47c7d0]
call fcn.0041115f
pop ecx
test eax, eax
je 0x41732e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417330
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret