joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e6700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x531310
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x10], 0
call fcn.004e6290
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x78], 0
call fcn.004e6290
mov ebp, dword [esp + 0x84]
lea ecx, [esp + 0x2c]
push ebp
call fcn.004e62d0
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0xc]
push eax
call fcn.004e62d0
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 3
call fcn.004e6290
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 4
call fcn.004e6290
mov bl, 5
mov byte [esp + 0x74], bl
push 0
lea ecx, [esp + 0x40]
call fcn.004e6290
sub esp, 8
mov byte [esp + 0x7c], 6
mov ecx, esp
mov dword [esp + 0x8c], esp
push eax
call fcn.004e62d0
lea ecx, [esp + 0x14]
call fcn.004e61c0
xor ecx, ecx
mov byte [esp + 0x74], bl
test eax, eax
setne cl
mov esi, ecx
lea ecx, [esp + 0x3c]
call fcn.004e6340
test esi, esi
je 0x4e68d7
lea edx, [esp + 0xc]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.004e65c0
add esp, 0xc
lea ecx, [esp + 0x24]
push eax
call fcn.004e62f0
lea ecx, [esp + 0x44]
call fcn.004e6340
lea edx, [esp + 0xc]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.004e6540
push eax
lea edx, [esp + 0x3c]
lea eax, [esp + 0x5c]
push edx
push eax
mov byte [esp + 0x8c], 7
call fcn.004e64d0
add esp, 0x18
lea ecx, [esp + 0x1c]
push eax
call fcn.004e62f0
lea ecx, [esp + 0x4c]
call fcn.004e6340
lea ecx, [esp + 0x54]
mov byte [esp + 0x74], bl
call fcn.004e6340
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x30]
call fcn.004e62f0
lea edx, [esp + 0x1c]
lea ecx, [esp + 0xc]
push edx
call fcn.004e62f0
lea eax, [esp + 0x34]
lea ecx, [esp + 0x1c]
push eax
call fcn.004e62f0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x68]
push edx
push eax
call fcn.004e6540
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
mov byte [esp + 0x8c], 8
call fcn.004e64d0
add esp, 0x18
lea ecx, [esp + 0x34]
push eax
call fcn.004e62f0
lea ecx, [esp + 0x5c]
call fcn.004e6340
lea ecx, [esp + 0x64]
mov byte [esp + 0x74], bl
call fcn.004e6340
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call fcn.004e62f0
jmp 0x4e6789
push 0
lea ecx, [esp + 0x68]
call fcn.004e6290
sub esp, 8
mov byte [esp + 0x7c], 9
mov ecx, esp
mov dword [esp + 0x8c], esp
push eax
call fcn.004e62d0
lea ecx, [esp + 0x1c]
call fcn.004e61c0
xor ecx, ecx
mov byte [esp + 0x74], bl
test eax, eax
setl cl
mov esi, ecx
lea ecx, [esp + 0x64]
call fcn.004e6340
test esi, esi
je 0x4e6926
push ebp
lea ecx, [esp + 0x18]
call fcn.004e6370
mov esi, dword [esp + 0x7c]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004e62d0
lea ecx, [esp + 0x1c]
call fcn.004e6340
lea ecx, [esp + 0x24]
call fcn.004e6340
lea ecx, [esp + 0xc]
call fcn.004e6340
lea ecx, [esp + 0x2c]
call fcn.004e6340
lea ecx, [esp + 0x14]
call fcn.004e6340
lea ecx, [esp + 0x34]
call fcn.004e6340
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret
Function at 0x4e6980
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x53136f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
mov dword [esp + 0x14], esi
call fcn.004e6290
lea ebp, [esi + 8]
push 0
mov ecx, ebp
mov dword [esp + 0x30], 0
call fcn.004e6290
lea edi, [esi + 0x10]
push 0
mov ecx, edi
mov byte [esp + 0x30], 1
call fcn.004e6290
lea ebx, [esi + 0x18]
push 0
mov ecx, ebx
mov byte [esp + 0x30], 2
call fcn.004e6290
push 0
lea ecx, [esi + 0x20]
mov byte [esp + 0x30], 3
call fcn.004e6290
push 0
lea ecx, [esi + 0x28]
mov byte [esp + 0x30], 4
call fcn.004e6290
mov eax, dword [esp + 0x34]
mov ecx, edi
push eax
mov byte [esp + 0x30], 5
call fcn.004e62f0
push 1
lea ecx, [esp + 0x18]
mov dword [esi + 0x30], 0
call fcn.004e6290
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004e62f0
lea ecx, [esp + 0x14]
call fcn.004e6340
mov edx, dword [esp + 0x34]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.004e62d0
mov ecx, esi
call fcn.004e61c0
test eax, eax
jge 0x4e6a60
push esi
mov ecx, esi
call fcn.004e6370
inc dword [esi + 0x30]
jmp 0x4e6a35
push edi
lea eax, [esp + 0x20]
push esi
push eax
call fcn.004e64d0
push edi
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x44], 6
call fcn.004e6700
add esp, 0x18
mov ecx, ebp
push eax
call fcn.004e62f0
lea ecx, [esp + 0x14]
call fcn.004e6340
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 5
call fcn.004e6340
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.004e6700
push eax
lea eax, [esp + 0x2c]
push esi
push eax
mov byte [esp + 0x44], 7
call fcn.004e64d0
add esp, 0x18
mov ecx, ebx
push eax
call fcn.004e62f0
lea ecx, [esp + 0x1c]
call fcn.004e6340
lea ecx, [esp + 0x14]
call fcn.004e6340
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4

Function at 0x4e6cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5313b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [esp + 0x54]
push esi
xor esi, esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], esi
call fcn.004e6980
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x4c]
push ecx
push edx
push esi
lea ecx, [esp + 0x14]
call fcn.004e6ba0
lea ecx, [esp + 0x30]
call fcn.004e6340
lea ecx, [esp + 0x28]
call fcn.004e6340
lea ecx, [esp + 0x20]
call fcn.004e6340
lea ecx, [esp + 0x18]
call fcn.004e6340
lea ecx, [esp + 0x10]
call fcn.004e6340
lea ecx, [esp + 8]
call fcn.004e6340
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x4e73b0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x5313d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push 0x572c5c
mov dword [esp + 4], 0x572c54
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x572c84]
mov dword [esp + 0xc], 0
test eax, eax
je 0x4e7413
mov eax, dword [0x572c54]
mov ecx, 0x572c54
mov dword [esp + 0xc], 0xffffffff
call dword [eax + 0x14]
mov eax, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push str.zlib.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x572c84], eax
jne 0x4e744e
mov edx, dword [0x572c54]
mov ecx, 0x572c54
mov dword [esp + 0xc], 0xffffffff
call dword [edx + 0x14]
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.deflateInit2_
push eax
call esi
mov dword [0x572c88], eax
mov eax, dword [0x572c84]
push str.inflateInit2_
push eax
call esi
mov ecx, dword [0x572c84]
push str.deflate
push ecx
mov dword [0x572c8c], eax
call esi
mov edx, dword [0x572c84]
push str.deflateEnd
push edx
mov dword [0x572c90], eax
call esi
mov dword [0x572c94], eax
mov eax, dword [0x572c84]
push str.inflate
push eax
call esi
mov ecx, dword [0x572c84]
push str.inflateEnd
push ecx
mov dword [0x572c98], eax
call esi
mov ecx, dword [0x572c88]
mov dword [0x572c9c], eax
test ecx, ecx
pop esi
je 0x4e7520
mov ecx, dword [0x572c8c]
test ecx, ecx
je 0x4e7520
mov ecx, dword [0x572c90]
test ecx, ecx
je 0x4e7520
mov ecx, dword [0x572c94]
test ecx, ecx
je 0x4e7520
mov ecx, dword [0x572c98]
test ecx, ecx
je 0x4e7520
test eax, eax
je 0x4e7520
mov edx, dword [0x572c54]
mov ecx, 0x572c54
mov dword [esp + 0xc], 0xffffffff
call dword [edx + 0x14]
mov eax, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call fcn.004e7550
mov eax, dword [0x572c54]
mov ecx, 0x572c54
mov dword [esp + 0xc], 0xffffffff
call dword [eax + 0x14]
mov ecx, dword [esp + 4]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4e7630
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x68
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x84]
not ecx
dec ecx
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebp, ecx
lea eax, [ebp + 1]
push eax
call fcn.004f56e7
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4e7677
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x68
ret
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4e767d
mov edi, dword [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004e8460
push ebp
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.004e8490
lea edx, [esp + 0x20]
push edx
call fcn.004e8530
push ebx
call fcn.004f2cd7
mov esi, dword [esp + 0x94]
lea eax, [esp + 0x80]
add esp, 0x18
xor ecx, ecx
sub esi, eax
mov dl, byte [esp + ecx + 0x70]
mov bl, byte [esp + ecx + 0x68]
lea eax, [esp + ecx + 0x68]
xor dl, bl
inc ecx
cmp ecx, 8
mov byte [esi + eax], dl
jl 0x4e76ee
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret

Function at 0x4e7710
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x68
lea eax, [esp]
push ebx
push esi
push eax
call fcn.004e8460
mov esi, dword [esp + 0x78]
push 8
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.004e8490
lea edx, [esp + 0x18]
push edx
call fcn.004e8530
lea eax, [esp + 0x74]
add esp, 0x14
xor ecx, ecx
sub esi, eax
mov dl, byte [esp + ecx + 0x68]
mov bl, byte [esp + ecx + 0x60]
lea eax, [esp + ecx + 0x60]
xor dl, bl
inc ecx
cmp ecx, 8
mov byte [esi + eax], dl
jl 0x4e7745
pop esi
pop ebx
add esp, 0x68
ret

Function at 0x4e82d0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
ret

Function at 0x4e8460
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x4e918c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4e91e2
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x537a0c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e91d5
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4e91e4
xor eax, eax
pop esi
leave
ret 4

Function at 0x4feed4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x56dd40
cmp edx, dword [eax]
je 0x4feef6
add eax, 8
inc ecx
cmp eax, 0x56ddd0
jl 0x4feee7
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x56dd40]
jne 0x4ff024
mov eax, dword [0x574e00]
cmp eax, 1
je 0x4feffe
test eax, eax
jne 0x4fef27
cmp dword [0x56b30c], 1
je 0x4feffe
cmp edx, 0xfc
je 0x4ff024
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4fef5e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004fc9a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004f6a60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4fefa1
lea eax, [ebp - 0x1a4]
push eax
call fcn.004f6a60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x53be50
push edi
call fcn.004f5e50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004fc9a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004fc9b0
lea eax, [ebp - 0xa0]
push 0x53be30
push eax
call fcn.004fc9b0
push dword [esi + 0x56dd44]
lea eax, [ebp - 0xa0]
push eax
call fcn.004fc9b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005002c5
add esp, 0x2c
pop edi
jmp 0x4ff024
lea eax, [ebp + 8]
lea esi, [esi + 0x56dd44]
push 0
push eax
push dword [esi]
call fcn.004f6a60
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 0x504370
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004f33a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x50443b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x50443b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x5043ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x5043f9
or bh, 8
and edi, 0x8000000
je 0x504414
mov eax, dword [0x5765bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x50443b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x504810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x50483b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x50485f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x50487a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x5084fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00515239
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x50852d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00508540
pop edi
pop esi
pop ebx
ret 8
Function at 0x509b56
Capabilities:
Get graphical window text

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

Function at 0x509b9e
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x572d88
mov ecx, edi
call fcn.00507ec3
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x509bf1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x509c04
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.005081e1
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.005081b9
jmp 0x509c04
mov ecx, esi
call fcn.0050bb9c
test eax, eax
je 0x509c04
push edi
mov ecx, eax
call fcn.00509b56
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x50b469
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 0x50b4ab
call fcn.00515239
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50b4ab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50b4a2
xor eax, eax
jmp 0x50b4b3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050b4b9
pop edi
pop esi
pop ebx
ret 4

Function at 0x513e4c
Capabilities:
Create http request

Disassembly:
mov eax, 0x531d24
call fcn.004f6684
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x513e84
call fcn.00515239
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x513ea9
push eax
push dword [esi + 4]
call fcn.00514ab7
jmp 0x513eb5
push esi
push eax
mov ecx, 0x574a30
call fcn.00513ec6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x514026
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x531d5f
call fcn.004f6684
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0050ddea
mov eax, dword [0x569c90]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x574a30
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.00513ec6
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.00507ec3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004ea815
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00507e73
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00507d3a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x518d98
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 0x518dc0
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x518dd1
push 2
call edi
test ax, ax
jge 0x518dd1
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.00509161
cmp dword [esi + 0x30], ebx
jne 0x518eab
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00509161
cmp eax, dword [esp + 0x34]
jne 0x518eab
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x518e47
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x518e8c
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x518eab
cmp eax, 0x205
je 0x518eab
cmp eax, 0x201
je 0x518eab
cmp eax, 0x204
je 0x518eab
cmp eax, ebx
jne 0x518e72
cmp dword [esp + 0x1c], 0x1b
je 0x518eab
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 [0x574ab4]
jbe 0x518ea1
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x518e04
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
Function at 0x401250
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
push 0x43a0e0
push eax
call fcn.004096fe
mov esi, dword [0x42d0c0]
mov cl, 0x61
mov byte [esp + 0x18], cl
mov byte [esp + 0x1e], cl
mov edi, eax
xor ecx, ecx
add esp, 8
mov bl, 0x63
mov dl, 0x68
mov al, 0x74
cmp esi, ecx
mov byte [esp + 0xc], 0x77
mov byte [esp + 0xd], 0x65
mov byte [esp + 0xe], bl
mov byte [esp + 0xf], dl
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 0x77
mov byte [esp + 0x13], 0x65
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], dl
mov byte [esp + 0x17], al
mov byte [esp + 0x18], cl
jle 0x4012d7
mov eax, ecx
mov ebx, 0xd
cdq
idiv ebx
mov bl, byte [ecx + 0x42d0c4]
mov dl, byte [esp + edx + 0xc]
xor bl, dl
mov byte [ecx + 0x42d0c4], bl
inc ecx
cmp ecx, esi
jl 0x4012b6
push edi
push 1
push esi
push 0x42d0c4
call fcn.00409594
push edi
call fcn.00409517
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 0x10
ret