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

Disassembly:
push 0xffffffffffffffff
push 0x4760d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00467c79
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046d3ec
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046e944
test eax, eax
je 0x439d5c
mov ecx, dword [esp + 0x3c]
call fcn.0046d419
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x439d20
push edi
mov ecx, esi
call fcn.0046a9db
mov ecx, esi
call fcn.00439ec0
cmp dword [esp + 0x38], 1
jne 0x439d55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046ab45
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43c770
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c7a3
push esi
call fcn.0043f870
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c79c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43c829
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43c812
mov eax, dword [esi + 8]
test eax, eax
je 0x43c7c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43c80e
cmp eax, 2
je 0x43c812
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c7ba
cmp eax, 3
je 0x43c7ed
cmp eax, 1
jne 0x43c7ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43c7ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c7ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043c850
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43c838
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043c850
add esp, 4
pop esi
ret
Function at 0x44ab30
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44ab7a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44aba9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44abeb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x468a6f
Capabilities:
Get graphical window text

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

Function at 0x46a161
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 0x46a1a3
call fcn.0046fe4b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46a1a3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46a19a
xor eax, eax
jmp 0x46a1ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046a1b1
pop edi
pop esi
pop ebx
ret 4

Function at 0x47037b
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 0x4703a9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4703c7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004702e1
jmp 0x4703c7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4703c7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004702e1
test edi, edi
mov eax, edi
jne 0x4703b1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402e70
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
test ax, ax
jge 0x402e88
mov esi, 8
push 1
call edi
test ax, ax
jge 0x402e94
or esi, 1
push 2
call edi
test ax, ax
jge 0x402ea0
or esi, 2
push 0x10
call edi
test ax, ax
jge 0x402eac
or esi, 4
push 0x12
call edi
test ax, ax
jge 0x402eb8
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x404c80
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
mov esi, eax
xor edi, edi
cmp dword [esi + 0x4b8], edi
jle 0x404cd4
jmp 0x404ca0
mov eax, dword [esi + 0x4b4]
mov byte [esp + 0x38], 0
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x40]
push eax
push ebp
push ebx
call edx
cmp byte [esp + 0x38], 0
jne 0x404ea6
inc edi
cmp edi, dword [esi + 0x4b8]
jl 0x404ca0
sub ebx, 0x100
je 0x404dd1
sub ebx, 4
je 0x404d54
sub ebx, 2
jne 0x404dc5
xor eax, eax
xor ecx, ecx
push ebp
mov word [esp + 0x3c], ax
mov word [esp + 0x3e], cx
call fcn.00489d01
mov ecx, dword [esi + 0x110]
add esp, 4
mov word [esp + 0x38], ax
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
push reloc.WS2_32.dll_select
lea eax, [esp + 0x3c]
push eax
push 0x40a930
call edx
mov esi, eax
test esi, esi
je 0x404dc5
mov eax, dword [esi]
mov edx, dword [eax + 0x128]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
cmp dword [esi + 0x114], 0
je 0x404dc5
mov ecx, dword [esi + 0x12c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x128]
mov dword [esp + 0x10], 6
mov word [esp + 0x24], bp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.00402e70
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x114]
mov dword [esp + 0x18], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x10]
push eax
call edx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
cmp ebp, 9
jne 0x404dc5
cmp dword [esi + 0x114], 0
je 0x404e8d
mov ecx, dword [esi + 0x114]
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x404e39
mov ecx, dword [esi + 0x114]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10c]
call edx
test al, al
je 0x404e39
mov ecx, dword [esi + 0x114]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push str.RichEditUI
call edx
push eax
call fcn.004875c9
add esp, 8
test eax, eax
je 0x404e39
mov eax, dword [esi + 0x114]
cmp byte [eax + 0x6a1], 0
jne 0x404dc5
cmp dword [esi + 0x114], 0
je 0x404e8d
mov ecx, dword [esi + 0x114]
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x404e8d
mov ecx, dword [esi + 0x114]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10c]
call eax
test al, al
je 0x404e8d
mov ecx, dword [esi + 0x114]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push str.WkeWebkitUI
call eax
push eax
call fcn.004875c9
add esp, 8
test eax, eax
jne 0x404dc5
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge cl
movzx edx, cl
push edx
mov eax, esi
call fcn.00408860
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x20
ret 0xc
Function at 0x4082b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi + 0xb4]
cmp eax, ecx
je 0x4082d9
cmp edi, dword [esi + 0x114]
je 0x4082d9
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x114]
cmp edi, eax
je 0x4083f6
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
je 0x408359
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0x17
mov dword [esp + 0xc], edi
call ebx
mov ecx, dword [esi + 0x114]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x140]
lea edx, [esp + 8]
push edx
call eax
mov ecx, dword [esi + 0x114]
push 0
push 0
push 0
push str.killfocus
push ecx
mov ecx, esi
call fcn.00408d80
mov dword [esi + 0x114], 0
test edi, edi
je 0x4083f6
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
mov ecx, edi
call eax
cmp eax, esi
jne 0x4083f6
mov edx, dword [edi]
mov eax, dword [edx + 0x100]
mov ecx, edi
call eax
test al, al
je 0x4083f6
mov edx, dword [edi]
mov eax, dword [edx + 0x10c]
mov ecx, edi
call eax
test al, al
je 0x4083f6
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esi + 0x114], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], edi
call ebx
mov ecx, dword [esi + 0x114]
mov dword [esp + 0x10], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x140]
lea eax, [esp + 8]
push eax
call edx
mov eax, dword [esi + 0x114]
push 0
push 0
push 0
push str.setfocus
push eax
mov ecx, esi
call fcn.00408d80
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415700
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.0040f8b0
Function at 0x4171f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4cacfc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x10], 0
push ebx
push esi
je 0x417276
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.00493cb0
mov ebx, esp
test ebx, ebx
je 0x417276
mov ecx, dword [edi + 4]
push esi
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [edi + 0x10]
push 0xffffffffffffffff
add esi, 0x1cc
push ebx
call fcn.00402160
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 0
push 0
push 0
push str.textchanged
push ecx
call eax
mov ecx, eax
call fcn.00408d80
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
cmp byte [eax + 0x179], 0
je 0x417276
mov eax, dword [edi + 0x10]
call fcn.004210f0
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486dc0
mov esp, ebp
pop ebp
ret
Function at 0x41dc40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
test ecx, ecx
jne 0x41dc4b
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x41dd24
mov esi, edx
shr esi, 3
push edi
lea ecx, [ecx]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b4718]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4b4718]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4b4718]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b4718]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b4718]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b4718]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b4718]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b4718]
inc ecx
sub edx, 8
sub esi, 1
jne 0x41dc60
pop edi
test edx, edx
je 0x41dd4b
jmp 0x41dd30
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4b4718]
inc ecx
sub edx, 1
jne 0x41dd30
not eax
pop esi
ret

Function at 0x41dd50
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4b4718]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4b4718]
mov dword [edx + 8], ecx
ret

Function at 0x41dda0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4b4718]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4b4718]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x41e460
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ebx
imul esi, dword [esp + 0x10]
cmp byte [edi], 0
je 0x41e498
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41e48d
mov byte [edi + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x41e4ab
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.004877d0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret

Function at 0x41ed30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x41ed48
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x41ed3d
cmp dword [edi + 0x7c], ebx
je 0x41ed57
call fcn.0041f120
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0041eb50
add esp, 0xc
test eax, eax
je 0x41ed7d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.004876f9
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x41edbf
push 0x4000
call fcn.004876f9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
cmp eax, ebx
jne 0x41edcb
push ebp
call fcn.0048836e
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
jne 0x41ee14
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.0041e010
test eax, eax
jne 0x41ee14
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x41ee3e
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x41ee47
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
movzx eax, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
cmp esi, ebx
je 0x41ee84
mov cl, byte [esi]
cmp cl, bl
je 0x41ee84
call fcn.0041dd50
add esi, 1
jne 0x41ee74
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x42a060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x42a082
cmp eax, esi
jge 0x42a07a
mov edx, edi
call fcn.004298a0
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
xor eax, eax
cmp dword [edi + 8], eax
jle 0x42a0aa
lea ecx, [eax - 8]
lea esp, [esp]
mov dl, byte [edi + 0xc]
shr dword [edi + 0xc], 8
add dword [edi + 8], ecx
mov byte [esp + eax + 8], dl
inc eax
cmp dword [edi + 8], 0
jg 0x42a090
cmp eax, 4
jge 0x42a0c7
mov esi, dword [edi + 4]
mov edx, dword [edi]
nop
cmp edx, esi
jb 0x42a0b8
xor cl, cl
jmp 0x42a0bb
mov cl, byte [edx]
inc edx
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 4
jl 0x42a0b0
mov dword [edi], edx
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 0xb]
movzx edx, byte [esp + 0xa]
movzx esi, ah
movzx eax, al
shl esi, 8
add esi, eax
shl ecx, 8
mov eax, esi
add ecx, edx
xor eax, 0xffff
cmp ecx, eax
je 0x42a106
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx]
mov dword [edx + 4], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi]
add eax, esi
cmp eax, dword [edi + 4]
jbe 0x42a125
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx]
pop edi
mov dword [edx + 4], str.read_past_buffer
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi + 0x10]
lea ecx, [eax + esi]
cmp ecx, dword [edi + 0x18]
jbe 0x42a13b
mov edx, esi
call fcn.004299a0
test eax, eax
je 0x42a100
push ebx
mov ebx, dword [edi]
push ebp
mov ebp, dword [edi + 0x10]
push esi
push ebx
push ebp
call fcn.004877d0
add esp, 0xc
add ebx, esi
add ebp, esi
mov dword [edi + 0x10], ebp
pop ebp
mov dword [edi], ebx
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x439610
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x69c], 0
je 0x439694
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0x100
jne 0x439672
cmp ebx, 0xd
jne 0x439672
cmp byte [esi + 0x6a2], 0
je 0x439652
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x439672
cmp byte [esi + 0x6a3], 0
jne 0x439672
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x43966a
push 0
push 0
push 0
push str.return
push esi
call fcn.00408d80
pop edi
pop ebx
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esi + 0x69c]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ebx
push edi
call edx
pop edi
pop ebx
pop esi
ret 0x10
mov eax, 1
pop esi
ret 0x10

Function at 0x43c1b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49f657
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov ebp, 0x53
xor ecx, ecx
xor edi, edi
mov eax, ebp
mov edx, 4
mul edx
seto cl
mov dword [esi + 8], edi
mov dword [esi + 4], ebp
neg ecx
or ecx, eax
push ecx
call fcn.0048690e
push 0x14c
push edi
push eax
mov dword [esi], eax
call fcn.00487630
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x28], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebp
neg ecx
or ecx, eax
push ecx
call fcn.0048690e
push 0x14c
push edi
push eax
mov dword [esi + 0x10], eax
call fcn.00487630
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
mov byte [esp + 0x38], 1
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], ebp
neg ecx
or ecx, eax
push ecx
call fcn.0048690e
push 0x14c
push edi
push eax
mov dword [esi + 0x1c], eax
call fcn.00487630
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov byte [esi + 0x164], 1
lea eax, [esi + 0x16c]
xor ecx, ecx
mov dword [esi + 0x168], eax
mov word [eax], cx
mov eax, ebp
mov edx, 4
mul edx
seto cl
mov byte [esp + 0x48], 4
mov dword [esi + 0x1f4], edi
mov dword [esi + 0x1f0], ebp
neg ecx
or ecx, eax
push ecx
call fcn.0048690e
push 0x14c
push edi
push eax
mov dword [esi + 0x1ec], eax
call fcn.00487630
add esp, 0x40
mov dword [esi + 0xc], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4