joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4319d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x28
mov eax, dword [edx]
push esi
mov esi, ecx
cmp eax, dword [esi + 0xb4]
jne 0x431a02
cmp dword [edx + 8], 0xffffff65
jne 0x431a02
movzx eax, word [edx + 0xc]
sub eax, 0x2d
je 0x431a48
sub eax, 0x14
je 0x431a0b
sub eax, 2
je 0x431a48
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x431a02
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 2
push eax
push 0xffffffffffffffff
push 0x102b
push dword [esi + 0xb4]
mov dword [ebp - 0x1c], 2
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x431a02
mov ecx, esi
call fcn.00430b20
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x433cd0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x795a74]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x799698], 0
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
jne 0x433d50
push esi
push edx
lea eax, [ebp - 0x2c4]
push eax
call fcn.0040c310
push 0x4010
push 0x160
lea ecx, [ebp - 0x164]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 0x80
push ecx
push dword [eax]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x2c4]
mov esi, eax
call fcn.0044a85c
mov ecx, dword [ebp - 0x160]
add esp, 4
mov eax, esi
mov dword [edi], ecx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a619
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x799690]
test eax, eax
je 0x433d77
push 0x4010
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 0x80
push ecx
push edx
call eax
mov ecx, dword [ebp - 0x2b4]
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0044a619
mov esp, ebp
pop ebp
ret 0xc

Function at 0x433d90
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x795a74]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
mov edx, 0x4011
test al, al
mov ecx, 0x4110
lea eax, [ebp - 0x164]
cmovne ecx, edx
push ecx
push 0x160
push eax
push 0x90
push 0x45b6a4
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a619
mov esp, ebp
pop ebp
ret 4
Function at 0x434900
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a495
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x795a74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 8]
cmp edi, dword [ebp + 0xc]
je 0x434ae1
nop dword [eax]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00434820
cmp dword [ebp - 0x1c], 0
jne 0x434ad2
cmp dword [ebx + 8], 0x15555555
je 0x434af5
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
push 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
call fcn.0044a815
mov ecx, dword [edi]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov dword [esi + 8], ecx
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x1c]
inc ecx
mov dword [ebp - 0x14], eax
movss xmm3, dword [ebx]
mov dword [ebp - 4], 1
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x45d470]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x45d470]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
seta al
test al, al
je 0x434a75
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fstp qword [esp]
call fcn.0044ea10
fstp qword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x30]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.0044b080
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jae 0x434a4e
cmp eax, 0x200
jae 0x434a4c
shl eax, 3
cmp eax, ecx
jae 0x434a4e
mov eax, ecx
push eax
mov ecx, ebx
call fcn.0043cab0
push dword [ebp - 0x10]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00434820
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
jmp 0x434a78
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov edi, dword [ebp - 0x28]
mov dword [ebx + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [edx + 4], esi
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x24], 0
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
jne 0x434ab4
mov dword [ecx + eax*8], esi
jmp 0x434ac7
cmp dword [ecx + eax*8], edx
jne 0x434abe
mov dword [ecx + eax*8], esi
jmp 0x434acb
mov edx, dword [ebp - 0x14]
cmp dword [ecx + eax*8 + 4], edx
jne 0x434acb
mov dword [ecx + eax*8 + 4], esi
mov dword [ebp - 4], 0xffffffff
add edi, 4
mov dword [ebp + 8], edi
cmp edi, dword [ebp + 0xc]
jne 0x434940
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.0044b7c9
int3
Function at 0x43cab0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0xc], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x43cc03
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.0043c9b0
mov ecx, dword [ebx + 4]
lea eax, [edi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x43cbd6
movzx eax, byte [ecx + 8]
mov edx, dword [edx]
xor eax, 0x811c9dc5
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp - 4], eax
cmp ebx, esi
jne 0x43cb4e
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x43cbc9
mov eax, dword [eax + 4]
movzx edi, word [ecx + 8]
cmp di, word [eax + 8]
jne 0x43cb8a
mov eax, dword [eax]
mov dword [ebp - 8], eax
cmp eax, ecx
je 0x43cb82
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 8]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ecx
jmp 0x43cbc9
mov edi, eax
cmp ebx, eax
je 0x43cba6
mov eax, dword [eax + 4]
mov edi, eax
movzx esi, word [ecx + 8]
cmp si, word [eax + 8]
mov esi, dword [ebp + 8]
je 0x43cbdf
cmp ebx, eax
jne 0x43cb90
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 8]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], ecx
mov ebx, dword [ebp - 0xc]
mov ecx, edx
cmp edx, esi
jne 0x43cb12
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x43cbc9
push str.invalid_hash_bucket_count
call fcn.0044b7c9
int3
Function at 0x451403
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45f6cc
push 0x45f6c4
push str.FlsAlloc
push 0x1e
call fcn.004512e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x451437
push dword [ebp + 8]
mov ecx, esi
call dword [0x45b308]
call esi
jmp 0x45143d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x451481
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45f6dc
push 0x45f6d4
push str.FlsGetValue
push 0x20
call fcn.004512e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4514b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x45b308]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x452d4b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x452de8
push ebx
push esi
call fcn.00452d14
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004510b4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x452d95
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x452de7
push edi
push eax
call fcn.00450da1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x452db5
call fcn.00450d67
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x452de6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004510b4
add esp, 0x20
test eax, eax
jne 0x452dd4
push edi
call fcn.00450d67
jmp 0x452ddc
push ebx
call fcn.00450d67
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x401000
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 0x4010bd
push 0x401079
push 0
push 0
push 0
push 0
push 0
push 0
push 0x401041
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x40103b
push 0x10
push 0x401059
push 0x401060
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0xc3e1e3
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
je 0x85f578
mov eax, dword [eax + ecx + 0x7c]
push ebx
clc
push edi
mov dword [ebp - 0x10], eax
clc
mov dword [ebp - 8], 0xffffffff
clc
cmp esi, 0xffff
ja 0xccef0d
mov eax, esi
test eax, edx
clc
sub eax, dword [edx + ecx + 0x10]
jmp 0xc8a3d3
jne 0x85f578
mov edx, dword [eax + ecx + 0x78]
test bp, si
stc
mov dword [ebp - 4], edx
test edx, edx
jmp 0x791647
mov eax, dword [ecx + 0x3c]
cmp esp, 0x3a9e0388
cmp ecx, edx
cmp dword [eax + ecx], 0x4550
jmp 0x7c3dab
lea eax, [eax + ecx]
test dh, 0x68
cmc
xor ebx, ebx
jmp 0x85ecef
mov eax, dword [ebp + 8]
btc edx, 0x59
bsr dx, di
mov ecx, dword [ebp - 4]
movsx edx, si
mov edx, dword [ecx + eax + 0x24]
xchg cx, cx
lea ecx, [edx + esi*2]
rcl edx, 0x1a
movzx edx, word [ecx + eax]
cmp si, 0x6184
mov dword [ebp - 8], edx
and cx, 0x734c
mov ecx, eax
or ah, 0x88
xor edx, 0x729441b0
mov edx, dword [ebp - 4]
dec eax
sbb al, 0x37
bswap eax
mov eax, dword [ebp - 8]
test dx, si
cmp eax, dword [edx + ecx + 0x14]
jmp 0xc32e0e
dec edi
jmp 0xbce838
je 0x7cd156
sub eax, eax
pop esi
jmp 0xbf8c68
je 0x84e6df
mov eax, dword [edx + ecx + 0x20]
stc
test bx, 0x78bb
jmp 0x82efa2
jle 0x84e69d
lea ebx, [esi + 1]
btr ecx, 0x7b
mov ecx, dword [ebp + 8]
cmp ebx, edi
jmp 0xc00656
mov dword [ebp - 0xc], eax
js 0x84e6df
jmp 0xc4f4e9
mov esp, ebp
pop ebp
jmp 0xc73813
jle 0xc4f4e6
jmp 0x84e6d7
push edx
mov dx, bp
mov edx, dword [ebp + 0xc]
clc
add eax, ecx
jmp 0xcabfb5
push ebp
mov ebp, esp
xor cx, ax
mov ecx, dword [ebp + 8]
lea esp, [esp - 0x114]
push esi
stc
test ecx, ecx
jmp 0xcb3801
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
lea esi, [edi + ebx]
sar esi, 1
cmp si, si
mov eax, dword [eax + esi*4]
jmp 0xc1b57c
jmp 0x84e6df
ret
mov dword [ebp - 8], eax
jmp 0xc5055b
call fcn.0086b877
add esp, 4
clc
test eax, eax
jmp 0xcdfc06
je 0x85f578
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x85f578
mov eax, 0x5a4d
stc
cmp esi, 0xcad645a
cmp esp, ebp
cmp word [ecx], ax
jmp 0x85f572
mov edi, dword [edx + ecx + 0x18]
test edi, edi
jmp 0x88dba6
jns 0xbb3bd9
lea edi, [esi - 1]
jmp 0xbb3be6
Function at 0x78139847
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x781c19c8]
jne 0x78139851
repz ret
jmp sym.MSVCR80.dll___report_gsfailure

Function at 0x78145050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x7814505f
pop dword [ebp - 0x30]
mov eax, 0x4965fcb
sub eax, 0x8c820f6c
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x439d2
push 0
mov eax, 0xcc7abf40
sub eax, 0x54617e80
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xaebc5aec
sub ecx, 0xaebc0da5
mov esi, eax
mov edi, 0xe4b258c0
add edi, 0x936a5740
add edi, dword [ebp - 0x30]
mov ebx, 0xe18e6755
add dword [ebp - 4], 0xab119b5e
mov edx, dword [edi]
add edx, ebx
xor dword [ebp - 0x18], 0x6d842d60
mov dword [esi], edx
mov dword [ebp - 0x20], 0xdf9a9627
add esi, 0xaed94edc
sub esi, 0xaed94ed8
add edi, 0xff7eadf6
add edi, 0x81520e
loop 0x781450b8
add eax, 0x2f7daaa6
sub eax, 0x2f7c82b7
xor ebx, ebx
add ebx, eax
add eax, 0x34b4ba1c
sub eax, 0x34b4ba17
mov ecx, 0xfd195c1a
add ecx, 0x7af9a3e6
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x7815472c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154759
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll_memmove
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78154735
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154788
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x781547af
test al, 1
je 0x781547af
test byte [esp + 0xc], 2
je 0x781547af
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x7815477f
xor eax, eax
pop esi
ret

Function at 0x78154a51
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154a7e
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll_memmove
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154a9c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78154a79
test byte [esp + 0xc], 0x80
je 0x78154aa8
and eax, 0xfffffffe
jmp 0x78154aab
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78154a8d
xor eax, eax
pop esi
ret
Function at 0x516550
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ac00b
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.005a0688
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x5165d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0059e47c
mov eax, dword [eax]
push 0x9d8d70
push eax
call fcn.0058ccc4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005a0913
test bl, bl
je 0x5165d2
push 0x9d8d70
lea ecx, [esp + 0xc]
call fcn.005a0ca3
push 0x9d8d7c
lea ecx, [esp + 0xc]
call fcn.005a0ca3
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 0x51660e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005a0913
jmp 0x5166d9
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 0x516692
lea edx, [esp + 0x7c]
push 0x9d8d78
push edx
call fcn.0058ccc4
add esp, 8
test eax, eax
je 0x516692
lea eax, [esp + 0x7c]
push 0x9d8d74
push eax
call fcn.0058ccc4
add esp, 8
test eax, eax
je 0x516692
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 0x516622
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.005a0913
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 0x516ed0
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 0x516f32
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 0x516f40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ac08b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x9efa68]
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 0x517078
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x516fa6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005a0913
xor eax, eax
jmp 0x5170ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005a0a50
push esi
lea ecx, [esp + 0xc]
call fcn.005a0cdf
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 0x5170cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00516ed0
test eax, eax
jne 0x5170cd
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.00516ed0
test eax, eax
jne 0x5170cd
lea eax, [esp + 0x14]
push 0x9d8d8c
push eax
call fcn.0058de30
mov esi, eax
add esp, 8
test esi, esi
jne 0x5170ac
lea ecx, [esp + 0x14]
push 0x9d8d88
push ecx
call fcn.0058ddb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x5170ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x5170af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005a0a00
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x516fbe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005a0913
xor eax, eax
jmp 0x5170ef
mov byte [esi], 0
push 0x9d8d84
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.005a0913
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 0x51d396
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x51d3be
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret
Function at 0x526260
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 0x5262ce
cmp si, 0x69
ja 0x5262ce
add esi, 0xffd0
cmp si, 0x11
je 0x52629e
push 0x11
call edi
test ax, ax
jge 0x52629e
or esi, 0x2000
cmp si, 0x10
je 0x5262b3
push 0x10
call edi
test ax, ax
jge 0x5262b3
or esi, 0x4000
cmp si, 0x12
je 0x5262c8
push 0x12
call edi
test ax, ax
jge 0x5262c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x5262db
mov esi, 0xbd
jmp 0x52628f
cmp si, 0x6e
jne 0x5262e8
mov esi, 0xbe
jmp 0x52628f
cmp si, 0x6f
jne 0x526289
mov esi, 0xbf
jmp 0x52628f

Function at 0x527b00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xa007c0]
xor edx, edx
cmp eax, edx
jne 0x527b26
xor eax, eax
mov byte [eax + 0xa006c0], al
inc eax
cmp eax, 0x100
jl 0x527b0e
mov dword [0xa007c0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xa006c0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x527bb7
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 0x527b8a
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 0x527b58
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x527c30
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 0x527c83
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 0x527c6a
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