joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004069f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.10040343
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100406e9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10008d27
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10003f07
jmp 0x100406f4
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1000803b
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x100406fa
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.10013b17
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10040737
call fcn.10040343
mov dword [esi + 0xc], 1
jmp 0x1004073c
call fcn.10040343
cmp dword [esi], 0
je 0x10040785
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x1004075d
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10008d27
jmp 0x1004076f
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.10002293
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10003f07
jmp 0x100407a9
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x100407a9
push dword [esi]
push dword [ebp + 8]
call fcn.1000803b
pop esi
pop ebp
ret 0xc

Function at 0x1006fd5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x1006fd74
call fcn.10005658
mov esi, dword [eax + 0xc]
push dword [0x101ee620]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1006fd92
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1006fd8a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x1006fdbf
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x1006fd8c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.1006fc88
mov esi, eax
jmp 0x1006fdb1

Function at 0x100bac5e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100ef27a
call fcn.10005089
cmp dword [eax + 0x14], 0
jne 0x100bac7b
mov ecx, esi
pop esi
jmp fcn.100ba763
pop esi
ret
Function at 0x100bde94
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.1000dedf
call fcn.10005089
cmp dword [eax + 0x14], 0
jne 0x100bdeb1
mov ecx, esi
pop esi
jmp fcn.100bd867
pop esi
ret

Function at 0x100d05fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x100d0612
mov edi, dword [esi + 0xc]
jmp 0x100d0652
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100d062b
call fcn.10006d5d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100d0640
call fcn.10006d5d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100d0652
call fcn.10006d5d
call fcn.10005658
cmp dword [eax + 0x3c], 0
je 0x100d0667
push edi
mov ecx, ebx
call fcn.100cf4b6
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100d0514
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x100d0685
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100d0691
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100f4b5e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101e9670]
jne 0x100f4b68
repz ret
jmp fcn.100fa8a4
Function at 0x1010617a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101e9670]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100fabd8
and dword [ebp - 0x14], 0
cmp dword [0x101f0de8], 0
mov dword [ebp - 0x18], eax
jne 0x1010622d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x101062d5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101417ac
push ebx
call edi
test eax, eax
je 0x101062d5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1014179c
push ebx
mov dword [0x101f0de8], eax
call edi
push eax
call esi
push 0x10141788
push ebx
mov dword [0x101f0dec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x101f0df0], eax
call edi
push eax
call esi
mov dword [0x101f0df8], eax
test eax, eax
je 0x1010622d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x101f0df4], eax
mov eax, dword [0x101f0df4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10106286
cmp dword [0x101f0df8], ecx
je 0x10106286
push eax
call esi
push dword [0x101f0df8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10106286
test ebx, ebx
je 0x10106286
call edi
test eax, eax
je 0x1010627d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1010627d
test byte [ebp - 8], 1
jne 0x10106286
or dword [ebp + 0x10], 0x200000
jmp 0x101062b9
mov eax, dword [0x101f0dec]
cmp eax, dword [ebp - 0x18]
je 0x101062b9
push eax
call esi
test eax, eax
je 0x101062b9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x101062b9
mov eax, dword [0x101f0df0]
cmp eax, dword [ebp - 0x18]
je 0x101062b9
push eax
call esi
test eax, eax
je 0x101062b9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x101f0de8]
call esi
test eax, eax
je 0x101062d5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x101062d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f4b5e
leave
ret
Function at 0x415c8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov edx, dword [ebx]
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]

Function at 0x4171ae
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
je 0x41722b
or byte [ebp + 0x6a0c74f6], al
loopne 0x4171f1
rcr byte [eax - 9], cl
idiv byte [ebx]
inc ebp
or al, 0x72
xor al, 0xf
scasd eax, dword es:[edi]
jne 0x4171be
test esi, esi
jne 0x4171e6
inc esi
jmp 0x4171e6
call fcn.004168b9
test eax, eax
je 0x4171fb
push esi
call 0x141656f
pop ecx
test eax, eax
je 0x4171fb
push esi
push 8
push dword [0x42da80]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test dword [edi], edi
je 0x4171d2
cmp al, 0x20
inc edx
add byte [ebp - 0x14268bc1], al
or eax, 0xff4adee8
inc edi
add byte [eax + eax], cl
add byte [eax], al
jmp 0x417208
call fcn.0040bcde
mov dword [eax], 0xc
xor eax, eax
pop esi
pop ebp
ret
jl 0x417275
inc edx
add byte [eax - 0x7c], ch
dec eax
inc edx
add byte [edx + 0x16], ch
call 0x427206
add esp, 0x10
ret
mov ebx, dword [edi]
lea eax, [ebx*4 + 0x42d618]
mov esi, dword [eax]
mov dword [ebp - 4], eax
nop
test esi, esi
je 0x41726e
add dword [ecx], 0xffffffff
je 0x4172ef
jmp 0x4172eb
mov ebx, dword [ebx*4 + 0x4243a0]
push 0x800
xchg ebp, eax
add byte [ebx - 1], dl
adc eax, sym.imp.KERNEL32.dll_LoadLibraryExW
mov esi, eax
test esi, esi
jne 0x4172d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
add dword [edi], 0x57
jne 0x4172c9
push 7
push str.api_ms_
push ebx
call fcn.00416a78
add esp, 0xc
test eax, eax
mov esp, dword [ecx]
push 7
push str.ext_ms_
push ebx
call fcn.00416a78
add esp, 0xc
test eax, eax
je 0x4172c9
test eax, 0x15ff5356
jo 0x4172e3
inc edx
add byte [ebx + 0x3302ebf0], cl
test byte [ebp - 0x74f58a0a], 0x4d
cld
xor esi, esi
test esi, esi
jne 0x4172d9
mov ecx, dword [ebp - 4]
jl 0x41729c
inc dword [edi - 0x74e914ff]
dec ebp
cld
mov ecx, dword [ebp - 4]
mov eax, esi
xchg dword [ecx], eax
test eax, eax
je 0x4172eb
pop es
push esi
call dword [0x42df50]
test esi, esi
jne 0x417302
add edi, 4
cmp edi, dword [ebp + 0xc]
jne 0x417250
xor eax, eax
pop edi
mov eax, dword [0x8bc3c95b]
invalid
mov eax, esi
jmp 0x4172fd

Function at 0x418efd
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ebp + 0x10]
push dword [eax]
pop ss
adc bh, bh
xor byte [edi], dl
jp 0x418eff
invalid
Function at 0x50adb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x6403db
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.0063109a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x50ae32
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0062d8d4
mov eax, dword [eax]
push 0xe87ee4
push eax
call fcn.005bee24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00631325
test bl, bl
je 0x50ae32
push 0xe87ee4
lea ecx, [esp + 0xc]
call fcn.00631701
push 0xe87ef0
lea ecx, [esp + 0xc]
call fcn.00631701
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 0x50ae6e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00631325
jmp 0x50af39
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 0x50aef2
lea edx, [esp + 0x7c]
push 0xe87eec
push edx
call fcn.005bee24
add esp, 8
test eax, eax
je 0x50aef2
lea eax, [esp + 0x7c]
push 0xe87ee8
push eax
call fcn.005bee24
add esp, 8
test eax, eax
je 0x50aef2
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 0x50ae82
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.00631325
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 0x50c1c0
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 0x50c222
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 0x50c230
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x64053b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xe9ba30]
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 0x50c368
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x50c296
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00631325
xor eax, eax
jmp 0x50c3df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.006314ae
push esi
lea ecx, [esp + 0xc]
call fcn.0063173d
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 0x50c3bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0050c1c0
test eax, eax
jne 0x50c3bd
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.0050c1c0
test eax, eax
jne 0x50c3bd
lea eax, [esp + 0x14]
push 0xe87f10
push eax
call fcn.005c01b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x50c39c
lea ecx, [esp + 0x14]
push 0xe87f0c
push ecx
call fcn.005c0130
mov esi, eax
add esp, 8
test esi, esi
jne 0x50c39c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x50c39f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0063145e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x50c2ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00631325
xor eax, eax
jmp 0x50c3df
mov byte [esi], 0
push 0xe87f08
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.00631325
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 0x51333a
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x640e38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00632a9b
xor ebp, ebp
mov dword [esi], 0xe4c6b0
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
lea edi, [esi + 0x44]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x14], edi
lea ecx, [edi + 0x18]
mov dword [edi], fcn.004ff560
call fcn.00500a10
lea ecx, [edi + 0x30]
mov byte [esp + 0x38], 1
call fcn.00630045
lea ebx, [edi + 0x44]
mov ecx, ebx
call fcn.00500a10
mov dword [ebx], 0xe4c11c
mov dword [edi], 0xe4c5c8
mov dword [esi + 0xa0], ebp
mov dword [esi + 0x9c], 0xe4b888
lea ecx, [esi + 0xb0]
call fcn.00500a10
lea edi, [esi + 0xc8]
mov dword [edi + 4], ebp
mov dword [edi], 0xe4c6a4
mov byte [esp + 0x38], 5
mov dword [esi], 0xe4c5d0
mov dword [esi + 0xac], ebp
call fcn.0063bcca
mov eax, dword [eax + 0xc]
push 0x40e
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call fcn.006383a2
mov ecx, dword [esi + 0xcc]
lea eax, [esp + 0x18]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x1c]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esi + 0xd4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0xd0], edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x5134d0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x640ec5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0xe4c5d0
mov dword [esp + 0x18], 0
lea ecx, [esi + 0xc8]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 4
call fcn.006383f9
lea ecx, [esi + 0xb0]
mov byte [esp + 0x18], 2
mov dword [ecx], 0xe4b6f0
call fcn.00500c10
lea ecx, [esi + 0x9c]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 5
call fcn.006383f9
lea edi, [esi + 0x44]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0xe4b6f0
call fcn.00500c10
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 6
call fcn.00630078
lea ecx, [edi + 0x18]
mov byte [esp + 0x18], 0
mov dword [ecx], 0xe4b6f0
call fcn.00500c10
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00639e48
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x526ea0
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 0x526f0e
cmp si, 0x69
ja 0x526f0e
add esi, 0xffd0
cmp si, 0x11
je 0x526ede
push 0x11
call edi
test ax, ax
jge 0x526ede
or esi, 0x2000
cmp si, 0x10
je 0x526ef3
push 0x10
call edi
test ax, ax
jge 0x526ef3
or esi, 0x4000
cmp si, 0x12
je 0x526f08
push 0x12
call edi
test ax, ax
jge 0x526f08
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x526f1b
mov esi, 0xbd
jmp 0x526ecf
cmp si, 0x6e
jne 0x526f28
mov esi, 0xbe
jmp 0x526ecf
cmp si, 0x6f
jne 0x526ec9
mov esi, 0xbf
jmp 0x526ecf

Function at 0x529310
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xeb40b8]
xor edx, edx
cmp eax, edx
jne 0x529336
xor eax, eax
mov byte [eax + 0xeb3fb8], al
inc eax
cmp eax, 0x100
jl 0x52931e
mov dword [0xeb40b8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xeb3fb8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5293c7
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 0x52939a
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 0x529368
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x529440
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 0x529493
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 0x52947a
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 0x52cd70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6425d8
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.006381ae
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.0052cc40
add esp, 0x14
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.00638220
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x531190
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x531328
cmp ebp, ebx
jle 0x531328
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, reloc.OLEAUT32.dll_VariantInit
mov dword [esp + 0x10], edi
jns 0x5311ee
dec eax
or eax, 0xfffffff8
inc eax
je 0x5311f5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x531204
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x53120b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00631066
add esp, 4
cmp eax, ebx
je 0x53122c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00631066
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x53131e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x531305
mov al, byte [edx]
cmp al, 0xc0
jbe 0x5312f1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x5312e6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x5312f4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x5312f4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x531290
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x531281
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret