joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439fd0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx esi, byte [eax + 0x538f80]
mov edx, esi
mov ecx, esi
shr edx, 7
imul edi, edx, 0x1b000000
shl ecx, 0x19
imul edx, edx, 0x11b
xor edi, ecx
mov ecx, esi
shl ecx, 8
or ecx, esi
shl ecx, 8
or edi, ecx
lea ecx, [esi + esi]
xor edx, ecx
xor ecx, ecx
xor edx, esi
or ecx, edi
or edx, edi
mov dword [eax*8 + 0x57d4e0], ecx
mov dword [eax*8 + 0x57d4e4], edx
inc eax
cmp eax, 0x100
jl 0x439fd4
xorps xmm0, xmm0
pop edi
movlpd qword [0x57dce8], xmm0
movlpd qword [0x57dce0], xmm0
mov byte [0x57d3e3], 1
pop esi
ret

Function at 0x43a040
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
lea ecx, [ecx]
movzx edi, byte [edx + 0x538e80]
mov eax, edi
mov dword [esp + 0x10], edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [esp + 0x14], eax
and ebx, 2
shr edi, 7
and edx, 4
imul eax, edi, 0x1b000000
lea ebp, [ecx + ecx]
mov dword [esp + 0x18], edx
xor ebp, dword [esp + 0x10]
mov edx, esi
shl ebp, 0x19
and esi, 1
shl ecx, 2
and edx, 2
xor ebp, eax
xor ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x14], 0x1b000000
shl ecx, 8
xor ebp, eax
imul eax, ebx, 0x1b000000
xor ebp, eax
imul eax, esi, 0x1b000000
xor ebp, eax
imul eax, edx, 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x18], 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x14], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
mov esi, dword [esp + 0x18]
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [esp + 0x10]
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*8]
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b0000
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, esi, 0x11b0000
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*4]
xor ecx, eax
imul eax, edi, 0x11b
add ecx, ecx
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
xor ecx, eax
imul eax, esi, 0x11b
xor ecx, eax
xor eax, eax
xor ecx, edx
or edx, ebp
or ecx, ebp
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx*8 + 0x580f00], eax
mov dword [edx*8 + 0x580f04], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x43a050
pop edi
pop esi
pop ebp
mov byte [0x57d3e2], 1
pop ebx
add esp, 0x10
ret
Function at 0x441280
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, 1
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [ecx + 0x1230]
lea edi, [ecx + 0x1238]
mov dword [ebp - 4], 0x3020100
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov dword [edi], ecx
nop
add ecx, 0x4040404
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jbe 0x4412b0
xor ebx, ebx
xor esi, esi
test edx, edx
je 0x441305
or edx, 0xffffffff
sub edx, edi
mov dword [ebp - 4], edx
mov edi, edi
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
movzx ecx, byte [esi + eax]
or ebx, ecx
mov al, byte [ecx + edi]
mov byte [esi + edx], al
mov edx, dword [ebp - 4]
mov byte [edi - 1], al
lea eax, [edi + 1]
add eax, ecx
lea ecx, [ecx]
mov cl, byte [eax - 2]
lea eax, [eax - 1]
mov byte [eax], cl
lea ecx, [edx + eax]
test ecx, ecx
jns 0x4412f0
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4412d0
mov eax, dword [ebp + 8]
pop edi
shr ebx, 2
pop esi
mov dword [eax + 0x1230], ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45675c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x478086
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5723f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00458cc7
mov dword [ebp - 0x14], eax
cmp dword [0x57a6f8], esi
jne 0x478179
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x478106
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x478259
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x478259
push 0x51d800
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x478259
push eax
call ebx
push 0x51d80c
push edi
mov dword [0x57a6f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x57a6fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x57a700], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x57a708], eax
test eax, eax
je 0x478176
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x57a704], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x47819e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x478191
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4781b3
push 4
pop eax
jmp 0x47825b
cmp dword [ebp - 0x14], esi
je 0x4781b3
push dword [0x57a6f8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x478198
mov eax, dword [0x57a704]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x478211
cmp dword [0x57a708], edi
je 0x478211
push eax
call ebx
push dword [0x57a708]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x478211
test eax, eax
je 0x478211
call ecx
test eax, eax
je 0x478206
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x478206
test byte [ebp - 8], 1
jne 0x478211
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x478241
mov eax, dword [0x57a6fc]
cmp eax, edi
je 0x47823e
push eax
call ebx
test eax, eax
je 0x47823e
call eax
mov esi, eax
test esi, esi
je 0x47823e
mov eax, dword [0x57a700]
cmp eax, edi
je 0x47823e
push eax
call ebx
test eax, eax
je 0x47823e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x57a6f8]
call ebx
test eax, eax
je 0x478259
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x47825b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ed21
mov esp, ebp
pop ebp
ret
Function at 0x48847f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4884b1
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x48b54b
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x48b56e
or esi, 1
push 2
call edi
test ax, ax
jns 0x48b57a
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x48b586
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x48b592
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x48e78f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x40c]
call fcn.0047e500
mov edi, dword [ebp + 8]
test eax, eax
jle 0x48e7e5
push ebx
lea ecx, [esi + 0x40c]
mov byte [ebp + 0xb], 0
call fcn.004888bf
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x48e843
lea ecx, [esi + 0x40c]
inc ebx
call fcn.0047e500
cmp ebx, eax
jl 0x48e7ae
sub edi, 0x100
je 0x48e8a9
sub edi, 4
je 0x48e847
dec edi
dec edi
jne 0x48e89e
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.0050366a
pop ecx
mov ecx, dword [esi + 0x104]
lea edx, [ebp + 8]
push reloc.WS2_32.dll_select
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x4901cf
call dword [eax + 0x128]
mov esi, eax
test esi, esi
je 0x48e89e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x11c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x48e8a0
cmp dword [esi + 0x108], 0
je 0x48e89e
xor eax, eax
lea edi, [ebp - 0x1c]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x11c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.0048b54b
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x48e89e
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x48e902
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x48e902
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x48e902
mov ecx, dword [esi + 0x108]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0050307b
pop ecx
pop ecx
test eax, eax
je 0x48e902
mov ecx, dword [esi + 0x108]
call fcn.004b9a30
test al, al
jne 0x48e89e
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x48e94a
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x48e94a
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x48e94a
mov ecx, dword [esi + 0x108]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0050307b
pop ecx
pop ecx
test eax, eax
jne 0x48e89e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.0048f98d
jmp 0x48e843
Function at 0x48f618
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0xa8]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x48f644
cmp esi, dword [ebx + 0x108]
je 0x48f644
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x108]
cmp esi, eax
je 0x48f71b
push edi
test eax, eax
je 0x48f6a3
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x17
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x108]
call fcn.0048f265
mov dword [ebx + 0x108], edi
test esi, esi
je 0x48f71a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x48f71a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf4]
test al, al
je 0x48f71a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x48f71a
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x108], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x108]
call fcn.0048f265
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x490ad9
Capabilities:
Terminate process

Disassembly:
push 0x37c
mov eax, 0x5142a6
call fcn.004604b6
mov edi, ecx
push 0xfffffffffffffff0
call fcn.0047e500
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.0047e500
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi]
lea ebx, [edi + 0x30]
mov ecx, edi
call dword [eax + 0x30]
push eax
push dword [edi + 4]
mov ecx, ebx
call fcn.0048b175
lea eax, [edi + 0x24]
mov ecx, ebx
push eax
call fcn.0048a70a
lea ecx, [ebp - 0x384]
call fcn.00497f72
mov eax, dword [edi]
lea ecx, [ebp - 0x130]
and dword [ebp - 4], 0
push ecx
mov ecx, edi
call dword [eax + 0x28]
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.00488eb5
test al, al
mov eax, dword [edi]
jne 0x490bb8
lea ecx, [ebp - 0xac]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004888ce
push eax
call fcn.0047fafe
pop ecx
lea ecx, [ebp - 0xac]
movzx esi, ax
mov byte [ebp - 4], 1
call fcn.004887ca
push 0
lea eax, [edi + 0x28]
push ebx
push eax
lea ecx, [ebp - 0x130]
call fcn.004888ce
push eax
push esi
lea ecx, [ebp - 0x384]
call fcn.00498fa7
mov esi, eax
jmp 0x490bf9
lea ecx, [ebp - 0x1b4]
push ecx
mov ecx, edi
lea esi, [edi + 0x28]
call dword [eax + 0x2c]
push 0
push ebx
push esi
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004888ce
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x384]
call fcn.00498fa7
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.004887ca
test esi, esi
jne 0x490c89
push 0xffffffffffffffff
push 0x51fa98
lea ecx, [ebp - 0xac]
call fcn.004886e2
mov eax, dword [edi]
lea ecx, [ebp - 0x238]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 5
call fcn.00488912
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
call fcn.004887ca
push esi
lea ecx, [ebp - 0xac]
call fcn.004888ce
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00407310
lea eax, [ebp - 0x28]
push eax
call fcn.00491082
add esp, 0x20
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push 0x10
push str.Duilib
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call fcn.0048a7a0
lea eax, [edi + 0x20]
mov ecx, ebx
push eax
call fcn.0048a650
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0
call fcn.004887ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x384]
call fcn.004995f0
xor eax, eax
call fcn.00460474
ret 0x10
Function at 0x49287f
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.004925b8

Function at 0x496e3c
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x51460a
call fcn.004604b6
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x588], ebx
cmp dword [edi + 4], ebx
jne 0x496ece
lea eax, [ebp - 0xa8]
push eax
call fcn.004969f8
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0048b0dc
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.00487f99
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004c034c
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0048ad32
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00488eb5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004887ca
mov esi, 0x578
test bl, bl
je 0x496f0d
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push 0x10
push eax
lea eax, [edi + 0x1a]
push eax
call fcn.0045a590
mov eax, dword [edi + 0x10]
add esp, 0xc
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.00460474
ret 4
Function at 0x49b80a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004925b8

Function at 0x49b813
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.virtual_312

Function at 0x49c927
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5723f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
and dword [ebx + 0x6d4], 0
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x6d0], ecx
mov dword [ebx + 0x6d8], eax
test ecx, ecx
jne 0x49c98f
call fcn.0049c70a
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x49c98f
call fcn.0049c70a
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
lea esi, [ebx + 0x10]
call fcn.0049c70a
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebx + 0x6d0]
test ecx, ecx
jne 0x49c9ac
mov ecx, edi
jmp 0x49c9b3
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0048b0dc
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00488699
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
mov ecx, ebx
push 0x88
movsd dword es:[edi], dword [esi]
push connect
push 0
push dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00487f99
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x49c9f6
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x49c9f1
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ed21
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x49dd64
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5723f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x49dd98
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49dd98
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x49de4a
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x49ddb5
cmp ax, 0x5c
jne 0x49ddb7
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x49dda9
cmp esi, ebx
je 0x49ddfd
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.0045a590
add esp, 0xc
cmp esi, 0x208
jae 0x49de5a
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0049dd64
pop ecx
pop ecx
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x49de1a
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00502f75
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00502f46
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49de4a
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0044ed21
mov esp, ebp
pop ebp
ret
call fcn.0044fdb1
int3

Function at 0x49e480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x49e52c
cmp dword [esi + 4], 0xffffffff
jne 0x49e52c
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.0045b807
pop ecx
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x49e4d3
cmp eax, 0x2f
je 0x49e4d3
push 0x53643c
push edi
call fcn.00502f46
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x49e4f5
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x49e4f5
mov eax, 0x2000000
jmp 0x49e531
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a0ba4
add esp, 0x10
test eax, eax
jne 0x49e513
mov eax, dword [ebp - 4]
jmp 0x49e531
push eax
call fcn.004a1276
pop ecx
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x49e531
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49e9da
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
push esi
mov ecx, dword [edx]
mov esi, 0xff
xor eax, ecx
shr ecx, 8
and eax, esi
mov eax, dword [eax*4 + 0x5227d8]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, esi
pop esi
xor eax, dword [ecx*4 + 0x5227d8]
mov dword [edx + 8], eax
pop ebp
ret

Function at 0x4a0ca3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x4a0cd7
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a0cd2
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4a0cfe
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x4a0ce7
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.0045a590
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4a0e29
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x4a0ee4
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5227d8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5227d8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5227d8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5227d8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5227d8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5227d8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5227d8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5227d8]
dec edi
jne 0x4a0e47
pop edi
test esi, esi
je 0x4a0efd
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5227d8]
inc edx
dec esi
jne 0x4a0ee8
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret