joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc4e5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4bc5fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4bc5fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.005319f2
mov esi, eax
test esi, esi
je 0x4bc5fd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4bc5fd
mov ecx, esi
call fcn.004bc470
cmp edi, eax
jge 0x4bc5fd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4bc583
mov dword [esp + 0x34], 1
jmp 0x4bc5de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4bc5fd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004bad10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4ca890
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
xor esi, esi
push eax
push 0x400
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x420]
lea edi, [esp + 0x18]
push ecx
or ecx, 0xffffffff
xor eax, eax
push 0x5f17dc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x20]
push edx
call fcn.0051d0a6
mov ebp, dword [esp + 0x428]
mov al, byte [esp + 0x1f]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
add esp, 0xc
mov dword [ebp + 4], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 8], esi
mov ebx, ecx
mov dword [ebp + 0xc], esi
cmp ebx, 0xfffffffd
jbe 0x4ca91e
call fcn.0052b891
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x4ca950
mov al, byte [ecx - 1]
test al, al
je 0x4ca950
cmp al, 0xff
je 0x4ca950
cmp ebx, esi
jne 0x4ca981
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.004ca460
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
cmp ebx, esi
jne 0x4ca96c
push 1
mov ecx, ebp
call fcn.004ca460
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x4ca978
cmp eax, ebx
jae 0x4ca989
push 1
mov ecx, ebp
call fcn.004ca460
push ebx
mov ecx, ebp
call fcn.004cb610
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop edi
pop esi
mov byte [eax + ebx], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 0x408
ret 8
Function at 0x4cad50
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x542f78
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor al, al
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0xc]
test cl, cl
je 0x4cae74
mov ecx, dword [esi + 4]
xor ebp, ebp
sub ecx, ebp
je 0x4cae86
dec ecx
je 0x4cadcc
dec ecx
jne 0x4cae74
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x4cae9b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x4cae9b
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4cadc5
mov eax, dword [0x587fd0]
lea ecx, [esi + 0x10]
push eax
push ebp
call fcn.004cb2d0
mov bl, 1
jmp 0x4cae67
mov edx, dword [0x587fd0]
mov cl, byte [esi + 0x10]
push edi
lea edi, [esi + 0x10]
push edx
mov byte [esp + 0x14], cl
push ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004cb0d0
mov eax, dword [esi + 8]
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x4cae55
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x4cae55
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4cae24
mov eax, dword [0x587fd0]
mov ecx, edi
push eax
push ebp
call fcn.004cb2d0
mov eax, dword [esp + 0x14]
mov bl, 1
cmp eax, ebp
jne 0x4cae33
mov eax, 0x587fcc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebp
je 0x4cae63
mov al, byte [ecx - 1]
test al, al
je 0x4cae59
cmp al, 0xff
je 0x4cae59
dec al
mov byte [ecx - 1], al
jmp 0x4cae63
xor bl, bl
jmp 0x4cae3a
dec ecx
push ecx
call fcn.0052fcc8
add esp, 4
test bl, bl
je 0x4cae72
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov al, bl
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi]
cmp eax, ebp
je 0x4cae9b
push eax
call fcn.004cbe50
add esp, 4
mov dword [esi], ebp
mov bl, 1
jmp 0x4cae67
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4cb7a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0x5f17fc
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4cb7ef
call fcn.0053aa16
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x4cb7d4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0x5f17fc
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4cb7ef
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x4cb805
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4cb819
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x4cb832
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.004cbf50
add esp, 0xc
test al, al
jne 0x4cb8d1
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x4cb8d9
mov esi, dword [0x587fd8]
jae 0x4cb861
call fcn.0052babd
mov ecx, edi
call fcn.004cbae0
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x4cb875
mov esi, ecx
test esi, esi
jbe 0x4cb8b3
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.0051b270
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.004cb9c0
test al, al
je 0x4cb8af
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x4cb8bf
mov edi, 0x587fd4
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.004cb8f0
jmp 0x4cb8b3

Function at 0x4d6bc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d6c33
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d6c28
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.0051d84c
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x4e9060
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x543fd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x5ff030]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.00532395
cmp dword [0x62c65c], ebx
je 0x4e90d0
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.0052ff5e
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x5ff030]
push ebp
push edi
mov edi, 1
mov dword [0x62c65c], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x4e90f9
mov dword [esp + 0x20], ebx
jmp 0x4e9100
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.005344f2
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.0053004b
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4e915e
mov dword [esp + 0x14], ebx
jmp 0x4e9165
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x4e917f
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4e9179
cmp eax, 2
jne 0x4e917f
mov dword [esp + 0x18], edi
jmp 0x4e9183
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4e9191
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005319cb
mov edi, eax
cmp edi, ebx
jne 0x4e91a1
xor eax, eax
jmp 0x4e91a4
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4e91cc
mov ecx, esi
call fcn.005344f2
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x4e91e4
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x62c65c], 0
test eax, eax
je 0x4e920d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4e920d
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.0052ff5e
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0052ff5e
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4eb0e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5441c8
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.00536be7
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004eb020
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00536b15
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 0x4eb1a7
cmp dword [esp + 0x40], 1
jne 0x4eb1a5
cmp ecx, eax
jge 0x4eb1a7
mov eax, ecx
cmp eax, 0x12c
jge 0x4eb1b3
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004eb200
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.00536c59
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4ef490
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5446b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x5ff030]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.00532395
mov edx, dword [0x5ff030]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4ef4ea
mov dword [esp + 0x1c], ebx
jmp 0x4ef4f1
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.005344f2
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.0053004b
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x4ef542
mov dword [esp + 0x14], ebx
jmp 0x4ef549
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x4ef564
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4ef55e
cmp eax, 2
jne 0x4ef564
mov dword [esp + 0x18], edi
jmp 0x4ef568
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4ef576
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005319cb
mov edi, eax
cmp edi, ebx
jne 0x4ef586
xor eax, eax
jmp 0x4ef589
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4ef5b1
mov ecx, esi
call fcn.005344f2
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x4ef5cd
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ef5ec
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4ef5ec
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.0052ff5e
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.0052ff5e
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4fa430
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x4fa47c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4fa47c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4fa466
push eax
call ebp
test ax, ax
jl 0x4fa474
inc esi
add edi, 4
cmp esi, 6
jb 0x4fa458
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.004fa130
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4fe190
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4fe1f0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4fe1f0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4fe1f0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4fe1f0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4fe200
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x505210
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x64d0d0]
xor edx, edx
cmp eax, edx
jne 0x505236
xor eax, eax
mov byte [eax + 0x64cfd0], al
inc eax
cmp eax, 0x100
jl 0x50521e
mov dword [0x64d0d0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x64cfd0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5052c7
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 0x50529a
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 0x505268
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5052d0
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 0x505323
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 0x50530a
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

Function at 0x50bcb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5451ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0050c5d0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x58f8dc
call fcn.0052fc9f
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x50bd43
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0052fc9f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x50bd3c
push 0
mov ecx, eax
call fcn.00502e90
mov dword [esi + 0xc], eax
jmp 0x50bd45
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x50bd45
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x51d3a3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x51d3c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0051c42a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x51d3e6
test byte [esp + 8], 2
je 0x51d3e6
call fcn.0051c49d
mov dword [eax], 0xd
call fcn.0051c4a6
mov dword [eax], 5
jmp 0x51d3bf
xor eax, eax
ret

Function at 0x532395
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5323cd
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.005303b9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00530391
jmp 0x5323d9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x533c06
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 0x533c48
call fcn.0053aa16
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x533c48
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x533c3f
xor eax, eax
jmp 0x533c50
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00533c56
pop edi
pop esi
pop ebx
ret 4

Function at 0x53af46
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x53af74
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53af92
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053aeac
jmp 0x53af92
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53af92
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053aeac
test edi, edi
mov eax, edi
jne 0x53af7c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x53d7e8
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x53d810
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x53d821
push 2
call edi
test ax, ax
jge 0x53d821
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005319cb
cmp dword [esi + 0x30], ebx
jne 0x53d8fb
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005319cb
cmp eax, dword [esp + 0x34]
jne 0x53d8fb
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x53d897
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x53d8dc
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x53d8fb
cmp eax, 0x205
je 0x53d8fb
cmp eax, 0x201
je 0x53d8fb
cmp eax, 0x204
je 0x53d8fb
cmp eax, ebx
jne 0x53d8c2
cmp dword [esp + 0x1c], 0x1b
je 0x53d8fb
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x65ebd4]
jbe 0x53d8f1
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x53d854
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4