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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4b39fc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x10], 0
push ebx
push esi
je 0x416ae6
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.0047aa20
mov ebx, esp
test ebx, ebx
je 0x416ae6
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, 0x1c8
push ebx
call fcn.004020a0
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.004089a0
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
cmp byte [eax + 0x179], 0
je 0x416ae6
mov eax, dword [edi + 0x10]
call fcn.00420a50
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004771de
mov esp, ebp
pop ebp
ret
Function at 0x41d6e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
test ecx, ecx
jne 0x41d6eb
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x41d7c4
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 + 0x49db50]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x49db50]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x49db50]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49db50]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49db50]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49db50]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49db50]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49db50]
inc ecx
sub edx, 8
sub esi, 1
jne 0x41d700
pop edi
test edx, edx
je 0x41d7eb
jmp 0x41d7d0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x49db50]
inc ecx
sub edx, 1
jne 0x41d7d0
not eax
pop esi
ret

Function at 0x41d7f0
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 + 0x49db50]
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 + 0x49db50]
mov dword [edx + 8], ecx
ret

Function at 0x41d840
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 + 0x49db50]
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 + 0x49db50]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x41df00
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 0x41df38
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 0x41df2d
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 0x41df4b
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.004779c0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret

Function at 0x41e7d0
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 0x41e7e8
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x41e7dd
cmp dword [edi + 0x7c], ebx
je 0x41e7f7
call fcn.0041ebc0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0041e5f0
add esp, 0xc
test eax, eax
je 0x41e81d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.004778e9
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x41e85f
push 0x4000
call fcn.004778e9
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 0x41e86b
push ebp
call fcn.00479054
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 0x41e8b4
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.0041dab0
test eax, eax
jne 0x41e8b4
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 0x41e8de
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x41e8e7
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 0x41e924
mov cl, byte [esi]
cmp cl, bl
je 0x41e924
call fcn.0041d7f0
add esi, 1
jne 0x41e914
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 0x428df0
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 0x428e12
cmp eax, esi
jge 0x428e0a
mov edx, edi
call fcn.004286b0
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
xor eax, eax
cmp dword [edi + 8], eax
jle 0x428e3a
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 0x428e20
cmp eax, 4
jge 0x428e57
mov esi, dword [edi + 4]
mov edx, dword [edi]
nop
cmp edx, esi
jb 0x428e48
xor cl, cl
jmp 0x428e4b
mov cl, byte [edx]
inc edx
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 4
jl 0x428e40
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 0x428e90
mov dword [0x4fa88c], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [edi]
add ecx, esi
cmp ecx, dword [edi + 4]
jbe 0x428ea9
pop edi
mov dword [0x4fa88c], 0x49e958
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi + 0x10]
lea edx, [eax + esi]
cmp edx, dword [edi + 0x18]
jbe 0x428ec1
push esi
call fcn.004287b0
add esp, 4
test eax, eax
je 0x428e8a
push ebx
mov ebx, dword [edi]
push ebp
mov ebp, dword [edi + 0x10]
push esi
push ebx
push ebp
call fcn.004779c0
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 0x436f70
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x69c], 0
je 0x436ff5
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0x100
jne 0x436fd3
cmp bx, 0xd
jne 0x436fd3
cmp byte [esi + 0x6a2], 0
je 0x436fb3
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x436fd3
cmp byte [esi + 0x6a3], 0
jne 0x436fd3
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x436fcb
push 0
push 0
push 0
push str.return
push esi
call fcn.004089a0
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 0x439910
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48eaf7
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x4b39fc]
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.00476c60
push 0x14c
push edi
push eax
mov dword [esi], eax
call fcn.00477820
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.00476c60
push 0x14c
push edi
push eax
mov dword [esi + 0x10], eax
call fcn.00477820
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.00476c60
push 0x14c
push edi
push eax
mov dword [esi + 0x1c], eax
call fcn.00477820
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.00476c60
push 0x14c
push edi
push eax
mov dword [esi + 0x1ec], eax
call fcn.00477820
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
Function at 0x43b520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, eax
shr ecx, 0x10
push edi
mov dword [esp + 0xc], esi
test ecx, ecx
je 0x43b567
cmp word [eax], 0x3c
je 0x43b567
call fcn.0040bb30
add eax, 0x1c
push 1
push eax
mov eax, dword [ebp + 8]
call fcn.00402a50
test eax, eax
je 0x43b55b
mov eax, dword [eax]
test eax, eax
je 0x43b564
mov dword [ebp + 8], eax
jmp 0x43b567
mov eax, dword [ebp + 8]
mov edx, eax
shr edx, 0x10
test edx, edx
je 0x43b5ab
cmp word [eax], 0x3c
push eax
jne 0x43b591
mov eax, esi
call fcn.00445f80
test al, al
jne 0x43b639
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, esi
call fcn.004460d0
test al, al
jne 0x43b639
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [esi + 0x148]
test edi, edi
jne 0x43b5c5
mov edi, dword [0x4fa9c0]
test edi, edi
jne 0x43b5c5
mov edi, dword [0x4fa9c8]
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x43b586
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x43b5f7
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x10]
push edi
mov dword [eax + 0x140], edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [esp + 0x10]
push eax
mov eax, edi
call fcn.00446020
test al, al
je 0x43b586
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x144], ecx
mov esi, edi
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
push eax
push esi
call fcn.0043b660
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x44a2a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x10], eax
mov dword [eax + 0x588], 0
cmp dword [esi + 4], 0
push edi
jne 0x44a333
lea edi, [esp + 0xc]
mov eax, esi
call fcn.0044a3d0
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0xb4]
push 0
sub edx, ecx
push edx
mov edx, dword [esp + 0x14]
sub edi, edx
push edi
push ecx
push edx
push 0
push 0x40000000
push 0
push eax
mov ecx, esi
call fcn.00401370
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
mov edi, dword [ecx + 0x558]
call eax
mov ecx, edi
mov edx, eax
call fcn.00409a80
mov ecx, dword [eax]
mov edx, dword [esi + 4]
push 1
push ecx
push 0x30
push edx
call ebx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x1c]
push edx
call eax
mov ecx, dword [eax]
cmp word [ecx], 0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
sete byte [esp + 0xb]
cmp eax, edx
je 0x44a362
push eax
call fcn.00479054
add esp, 4
cmp byte [esp + 0xb], 0
je 0x44a378
mov eax, dword [esi + 0x10]
add eax, 0x578
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x578]
add eax, 0x578
mov dword [esi + 0x1a], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x1e], edx
mov ecx, dword [eax + 8]
push eax
mov dword [esi + 0x22], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 4]
push 0
push 0x1002
push eax
mov dword [esi + 0x26], edx
call ebx
mov ecx, dword [esi + 4]
push 4
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
mov byte [esi + 0x18], 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44e4a0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x298
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x294], eax
lea eax, [esp]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x44e4e0
xor eax, eax
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004771de
mov esp, ebp
pop ebp
ret
push 0xfe
lea ecx, [esp + 0x195]
push 0
push ecx
mov byte [esp + 0x19c], 0
call fcn.00477820
add esp, 0xc
push 0xff
lea edx, [esp + 0x194]
push edx
call sub.WS2_32.dll_gethostname
lea eax, [esp + 0x190]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44e4cc
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 8
movzx edx, cl
movzx eax, al
shl edx, 8
add eax, edx
mov edx, ecx
shr edx, 0x10
shl eax, 8
movzx edx, dl
add eax, edx
shr ecx, 0x18
shl eax, 8
add eax, ecx
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004771de
mov esp, ebp
pop ebp
ret
Function at 0x44e590
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov dword [esi + 0x10], eax
push ebx
mov dword [eax + 0x580], 0
cmp dword [esi + 4], 0
push edi
jne 0x44e64e
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x44e624
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x1c]
call edx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0xb4]
push 0
sub ebx, edx
push ebx
sub edi, ecx
push edi
push edx
push ecx
push 0
push 0x40030000
push 0
push eax
mov ecx, esi
call fcn.00401370
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
mov edi, dword [ecx + 0x558]
call eax
mov ecx, edi
mov edx, eax
call fcn.00409a80
mov ecx, dword [eax]
mov edx, dword [esi + 4]
push 1
push ecx
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x24]
push edx
call eax
mov ecx, dword [eax]
cmp word [ecx], 0
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
sete bl
cmp eax, edx
je 0x44e67b
push eax
call fcn.00479054
add esp, 4
test bl, bl
je 0x44e68d
call fcn.0044e4a0
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0x578], eax
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 0x578]
mov ecx, dword [esi + 4]
push eax
push 0
push 0x465
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 4]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
mov byte [esi + 0x18], 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4901fb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b39fc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebx, ebx
lea esi, [edi + 0x10]
mov dword [edi], vtable.DuiLib::CWindowWnd.0
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov byte [edi + 0xc], bl
call fcn.00454180
mov dword [esp + 0x1c], ebx
mov dword [edi + 0x18], vtable.DuiLib::INotifyUI.0
mov dword [edi + 0x1c], vtable.DuiLib::IDialogBuilderCallback.0
mov dword [edi], vtable.DuiLib::CMenuWnd.0
mov dword [esi], vtable.DuiLib::CMenuWnd.1.0
mov dword [edi + 0x18], vtable.DuiLib::CMenuWnd.2.0
mov dword [edi + 0x1c], vtable.DuiLib::CMenuWnd.3.0
mov byte [edi + 0x20], bl
lea ecx, [edi + 0x30]
mov dword [edi + 0x2c], 0x499f38
call fcn.00403a10
mov dword [edi + 0x6dc], ebx
mov dword [edi + 0x6e0], ebx
mov dword [edi + 0x6e4], 6
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x450330
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 8]
push ebx
push edi
mov dword [esi + 0x28], edx
mov dword [esi + 0x6dc], eax
mov dword [esi + 0x6e0], 0
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x6e4], 6
test eax, eax
jne 0x450378
call fcn.00453c20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push 0
call eax
lea edi, [esi + 0x10]
call fcn.00453c20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push edi
call eax
mov ecx, dword [esi + 0x6dc]
test ecx, ecx
jne 0x45039a
mov eax, dword [0xb4]
jmp 0x4503a7
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [eax + 0xb4]
push 0
push 0
push 0
push 0
push 0
push 0x88
push SysReAllocString
push 0
push eax
mov ecx, esi
call fcn.00401370
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push edi
call ebx
test eax, eax
je 0x4503e1
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x4503d5
mov ecx, dword [esi + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4600f0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
lea eax, [ebx - 0x21]
cmp eax, 0xd
ja case.0x460133.41
movzx eax, byte [eax + 0x4601b8]
jmp dword [eax*4 + 0x4601b0]
or edi, 0x100
cmp dword [esp + 0x220], 0
je 0x460150
or edi, 0x1000000
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x16]
push edx
mov word [esp + 0x18], cx
call fcn.00477820
add esp, 0xc
push 0x104
lea eax, [esp + 0x10]
push eax
shl edi, 0x10
push edi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea eax, [esi + 4]
push 0xffffffffffffffff
lea edx, [esp + 0x10]
xor ecx, ecx
push edx
mov dword [esi], eax
mov word [eax], cx
call fcn.004020a0
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004771de
add esp, 0x20c
ret 8

Function at 0x4628b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48dbab
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b39fc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.DuiLib::WindowImplBase.5.0
mov dword [esi + 0x10], vtable.DuiLib::WindowImplBase.4.0
mov dword [esi + 0x20], vtable.DuiLib::WindowImplBase.3.0
mov dword [esi + 0x24], vtable.DuiLib::WindowImplBase.2.0
mov dword [esi + 0x28], vtable.DuiLib::WindowImplBase.1.0
mov dword [esi + 0x2c], vtable.DuiLib::WindowImplBase.0
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 0
call fcn.004040e0
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], 0xffffffff
call fcn.00402900
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4638d0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebx, ebx
push edi
push ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x4639bf
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x4639bf
mov ebp, dword [esp + 0x20]
cmp ebp, ebx
je 0x4639bf
push esi
movzx eax, ax
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x46399a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x46399a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x46399a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jbe 0x46399a
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x463986
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4639b3
pop esi
pop edi
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 8
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4639a4
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop edi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x4639d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
or eax, 0xffffffff
test ecx, ecx
je 0x4639fc
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x491a40]
dec ecx
inc edx
test ecx, ecx
jne 0x4639e0
pop esi
not eax
ret