joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d60d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5700c4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0xa8]
cmp eax, ecx
je 0x43d648
cmp esi, dword [ebx + 0x108]
je 0x43d648
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x108]
cmp esi, eax
je 0x43d727
test eax, eax
je 0x43d6ab
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0x17
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], 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.0043dc4d
mov dword [ebx + 0x108], edi
test esi, esi
je 0x43d727
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x43d727
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf4]
test al, al
je 0x43d727
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x43d727
push 8
pop ecx
xor eax, eax
mov dword [ebx + 0x108], esi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], 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.0043dc4d
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5245
mov esp, ebp
pop ebp
ret 4
Function at 0x44516f
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.00440766

Function at 0x44a8b1
Capabilities:
Terminate process

Disassembly:
push 0x260
mov eax, 0x5216d5
call fcn.004e63cc
mov edi, ecx
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
push dword [edi + 4]
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.0043a21c
lea eax, [edi + 0x24]
lea ecx, [ebx + 0x498]
push eax
call fcn.00448a76
xor eax, eax
push 0x14c
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004e7ca0
add esp, 0xc
lea ecx, [ebp - 0x264]
call fcn.0046c50d
xor eax, eax
mov dword [ebp - 4], eax
push 0x84
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004e7ca0
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
add esp, 0xc
push ecx
mov ecx, edi
call dword [eax + 0x28]
mov byte [ebp - 4], 1
xor ecx, ecx
mov eax, dword [ebp - 0x118]
lea esi, [edi + 0x28]
mov dword [ebp - 0x268], eax
cmp word [eax], cx
mov eax, dword [edi]
je 0x44a986
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
xor ecx, ecx
push ecx
push ebx
push esi
push dword [ebp - 0x268]
jmp 0x44a998
lea ecx, [ebp - 0x268]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
xor ecx, ecx
push ecx
push ebx
push esi
push ecx
push dword [eax]
lea ecx, [ebp - 0x264]
call fcn.0046c54e
test eax, eax
jne 0x44aa0a
push ecx
lea ecx, [ebp - 0x94]
call fcn.0040bf8b
push 0xffffffffffffffff
push 0x54cea8
lea ecx, [ebp - 0x94]
call fcn.00448c0c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
lea ecx, [ebp - 0x94]
push dword [eax]
call fcn.00448e5d
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.00448ca0
push eax
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
mov ecx, ebx
call fcn.0043cecb
lea eax, [edi + 0x20]
lea ecx, [ebx + 0x474]
push eax
call fcn.00448a76
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
xor eax, eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x118]
call fcn.00448c55
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.0046e47b
xor eax, eax
call fcn.004e6376
ret 0x10

Function at 0x44d9b6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x69c], edi
je 0x44da20
cmp dword [ebp + 8], 0x100
jne 0x44da0f
cmp word [ebp + 0xc], 0xd
jne 0x44da0f
cmp byte [esi + 0x6a2], 0
je 0x44d9f6
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x44da0f
cmp byte [esi + 0x6a3], 0
jne 0x44da0f
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x44da0b
push edi
push edi
push edi
push str.return
push esi
call fcn.0043dc4d
xor eax, eax
jmp 0x44da23
mov eax, dword [esi + 0x69c]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x45482b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x45484d
cmp dword [esi + 8], edi
jge 0x454845
call fcn.004542ce
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x454876
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx - 4], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x454859
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x454890
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x454881
xor dl, dl
jmp 0x454886
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x454878
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4548ba
xor eax, eax
jmp 0x4548f1
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
ja 0x4548b6
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4548db
push edi
mov ecx, esi
call fcn.004543ab
pop ecx
test eax, eax
je 0x4548b6
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004e7650
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x463013
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x46301e
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4630da
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x548110]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x548110]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x548110]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x548110]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x548110]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x548110]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x548110]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x548110]
sub edi, 1
jne 0x463033
pop edi
test esi, esi
je 0x4630f6
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x548110]
inc edx
sub esi, 1
jne 0x4630de
not ecx
mov eax, ecx
pop esi
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x548110]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x548110]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x463771
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5700c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x4637b6
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4637b1
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x4637dd
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x4637c6
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.004e7650
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004e5245
leave
ret
Function at 0x46c54e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
mov edx, eax
push ebx
push esi
push edi
shr edx, 0x10
mov edi, ecx
push 0x3c
pop esi
test dx, dx
je 0x46c593
cmp word [eax], si
je 0x46c593
call fcn.00438dfb
push 1
push dword [ebp + 8]
lea ecx, [eax + 0x1c]
call fcn.00449438
mov ecx, eax
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x46c593
cmp dword [ecx], 0
cmovne eax, dword [ecx]
mov dword [ebp + 8], eax
mov ecx, eax
shr ecx, 0x10
test cx, cx
je 0x46c5c4
cmp word [eax], si
jne 0x46c5b9
push eax
mov ecx, edi
call fcn.0046e11b
test al, al
jne 0x46c641
xor eax, eax
jmp 0x46c651
push ecx
push eax
mov ecx, edi
call fcn.0046e213
jmp 0x46c5aa
mov esi, dword [edi + 0x148]
test esi, esi
jne 0x46c5dd
mov esi, dword [0x575b7c]
test esi, esi
cmove esi, dword [0x575b78]
push dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x46c5b2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
push ebx
test eax, eax
jne 0x46c607
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x46c5b2
mov eax, dword [ebp + 0x10]
push esi
mov dword [edi + 0x140], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ecx
push esi
push eax
mov ecx, edi
call fcn.0046e178
test al, al
je 0x46c5b2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x144], eax
push dword [ebp + 0x18]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0046c65a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x46e213
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x354
mov eax, 0x522c83
call fcn.004e63cc
mov esi, ecx
mov edi, dword [ebp + 8]
call fcn.0046e47b
push 0x84
xor ebx, ebx
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.004e7ca0
add esp, 0xc
lea ecx, [ebp - 0xa0]
push 0x570f98
call fcn.00448c30
mov dword [ebp - 4], ebx
mov eax, dword [0x570f10]
cmp word [eax], bx
jne 0x46e336
test edi, edi
je 0x46e274
push edi
lea ecx, [ebp - 0xa0]
call fcn.00448ca3
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push 0
cmp ebx, 0xffffffff
jne 0x46e2a3
push str.Error_opening_file
jmp 0x46e355
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x46e2bb
push eax
push str.File_is_empty
jmp 0x46e355
cmp edi, 0x400000
jbe 0x46e2cf
push 0
push str.File_too_large
jmp 0x46e355
and dword [ebp - 0x14], 0
push edi
call fcn.004e582b
pop ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x35c], eax
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x46e318
mov edi, dword [ebp - 0x35c]
push edi
call fcn.004e5256
pop ecx
mov ecx, esi
call fcn.0046e47b
push 0
push str.Could_not_read_file
jmp 0x46e355
push ecx
push edi
mov edi, dword [ebp - 0x35c]
mov ecx, esi
push edi
call fcn.0046e178
push edi
mov bl, al
call fcn.004e5256
pop ecx
jmp 0x46e462
push eax
lea ecx, [ebp - 0xa0]
call fcn.00448ca3
mov ebx, dword [0x575b70]
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x46e363
push ebx
push str.Error_opening_zip_file
mov ecx, esi
call fcn.0046eb7c
mov bl, al
jmp 0x46e462
and dword [ebp - 0x35c], 0
lea eax, [ebp - 0x128]
push 0x84
push 0
push eax
call fcn.004e7ca0
add esp, 0xc
lea ecx, [ebp - 0x128]
push 0xffffffffffffffff
push edi
call fcn.00448c0c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x128]
push 0x54a820
push 0x5455a4
call fcn.00449038
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x35c]
push eax
push ecx
mov ecx, ebx
call fcn.004648ca
add esp, 0xc
test eax, eax
je 0x46e3d3
push 0
push str.Could_not_find_ziped_file
jmp 0x46e430
mov edi, dword [ebp - 0x12c]
test edi, edi
jne 0x46e3e5
push edi
push str.File_is_empty
jmp 0x46e430
cmp edi, 0x400000
jbe 0x46e3f6
push 0
push str.File_too_large
jmp 0x46e430
push edi
call fcn.004e582b
mov edx, dword [ebp - 0x35c]
mov ebx, eax
mov ecx, dword [ebp - 0x14]
push edi
push ebx
mov dword [ebp - 0x360], ebx
call fcn.004648fd
add esp, 0xc
test eax, eax
je 0x46e43b
cmp eax, 0x600
je 0x46e43b
push ebx
call fcn.004e5256
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.0046eb7c
mov bl, al
jmp 0x46e453
push ecx
push edi
push ebx
mov ecx, esi
call fcn.0046e178
push dword [ebp - 0x360]
mov bl, al
call fcn.004e5256
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.00448c55
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00448c55
mov al, bl
call fcn.004e6376
ret 8
Function at 0x46f001
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push 0x214
mov eax, 0x522d3e
call fcn.004e63cc
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x220], ebx
push esi
mov dword [ebp - 0x21c], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, dword [ebp + 0xc]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
cmp edi, 0x21
jb 0x46f04e
cmp edi, 0x28
jbe 0x46f048
lea eax, [edi - 0x2d]
cmp eax, 1
ja 0x46f04e
or esi, 0x100
cmp dword [ebp + 0x10], 0
je 0x46f05a
or esi, 0x1000000
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e7ca0
add esp, 0xc
shl esi, 0x10
lea eax, [ebp - 0x218]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00448c0c
and dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
mov eax, ebx
call fcn.004e6376
ret 0xc
Function at 0x470253
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5700c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4702db
cmp dword [esi + 0x10], 0
je 0x4702db
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004e64f0
mov ebx, esp
test ebx, ebx
je 0x4702db
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1c8
call fcn.00448de7
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
xor ecx, ecx
push ecx
push ecx
push ecx
push str.textchanged
push dword [esi + 0x10]
mov ecx, eax
call fcn.0043dc4d
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp byte [eax + 0x16d], 0
je 0x4702db
mov ecx, dword [esi + 0x10]
call fcn.00446e90
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e5245
leave
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x5700c4]
xor eax, esp
mov dword [esp + 0x298], eax
push esi
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x471984
xor eax, eax
jmp 0x4719f4
mov esi, 0xff
lea eax, [esp + 0x198]
push esi
push 0
push eax
call fcn.004e7ca0
add esp, 0xc
lea eax, [esp + 0x198]
push esi
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [esp + 0x198]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x471980
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [esp + 0xc]
push eax
call fcn.004e7650
mov ecx, dword [esp + 0x10]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [esp + 6]
shl eax, 8
add eax, ecx
movzx ecx, byte [esp + 7]
shl eax, 8
add eax, ecx
mov ecx, dword [esp + 0x29c]
pop esi
xor ecx, esp
call fcn.004e5245
mov esp, ebp
pop ebp
ret
Function at 0x476970
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 4], esi
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x75c], edx
mov dword [esi + 0x760], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x764], 6
test edx, edx
jne 0x4769bb
call fcn.00476384
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.00476384
mov ecx, dword [eax]
mov edx, dword [ecx]
lea ecx, [esi + 0x10]
push ecx
mov ecx, eax
call edx
mov ecx, dword [esi + 0x75c]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
test ecx, ecx
jne 0x4769e9
mov eax, dword [0xa8]
jmp 0x4769f4
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [eax + 0xa8]
sub esp, 0x10
lea esi, [ebp - 0x14]
mov edi, esp
push ecx
movsd dword es:[edi], dword [esi]
push 0x88
push SysReAllocString
push ecx
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.00449890
mov edi, dword [esi + 4]
jmp 0x476a25
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x476a1c
push 5
push dword [esi + 4]
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 esi
leave
ret 0x1c

Function at 0x478f23
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.2.virtual_312
Function at 0x489b70
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x5700c4]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x489c3b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.00495270
add esp, 0xc
test eax, eax
jne 0x489c3b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.00495270
add esp, 0xc
test eax, eax
jne 0x489c3b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x489bc4
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00495240
add esp, 0xc
test eax, eax
je 0x489bf8
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00495240
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x489bfa
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x489c26
mov al, byte [esi]
push eax
call fcn.00487930
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x489c08
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004e5245
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004e5245
add esp, 0x18
ret
Function at 0x494280
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [0x574478], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x4942f5
test edi, edi
je 0x4942f5
mov eax, dword [0x57447c]
test eax, eax
jne 0x4942ef
mov esi, dword [esp + 0x1c]
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.00494080
add esp, 0x10
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.004f4cdc
add esp, 4
push eax
call fcn.00495d90
push dword [0x574474]
call fcn.004f109a
add esp, 0x18
call fcn.004f55c4
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x57447c], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test edi, edi
je 0x494328
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.RECV__s:_d_recv__lu____ld_n
call fcn.00494080
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret

Function at 0x494360
Capabilities:
Send data
Send data on socket

Disassembly:
cmp byte [0x574478], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x4943d5
test edi, edi
je 0x4943d5
mov eax, dword [0x57447c]
test eax, eax
jne 0x4943cf
mov esi, dword [esp + 0x1c]
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.00494080
add esp, 0x10
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.004f4cdc
add esp, 4
push eax
call fcn.00495d90
push dword [0x574474]
call fcn.004f109a
add esp, 0x18
call fcn.004f55c4
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x57447c], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test edi, edi
je 0x494408
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.SEND__s:_d_send__lu____ld_n
call fcn.00494080
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret

Function at 0x494650
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x608], 0
je 0x494694
push esi
push 1
push edi
call fcn.004abd10
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.004abd10
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x4946cd
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x528da8
push 2
push eax
call fcn.004f4fed
push dword [edi + 0x598]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004f4fed
add esp, 0x20
xor eax, eax
pop edi
ret
Function at 0x49c720
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x5700c4]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push eax
mov ebp, dword [edi + 0x1c4]
or esi, 0xffffffff
mov ebx, dword [edi]
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x49c78e
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759lib_ftp.c
push 0x123
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x80
push eax
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.00493ec0
add esp, 0x14
mov esi, eax
push ebp
push edi
call fcn.004b7dc0
add esp, 8
cmp esi, 0xffffffff
jne 0x49c7b2
push str.Error_accept__ing_server_connect
push ebx
call fcn.004946e0
add esp, 8
mov eax, 0x1e
jmp 0x49c821
push str.Connection_accepted_from_server_n
push ebx
call fcn.004947c0
push 1
push esi
mov byte [edi + 0x2b0], 0
mov dword [edi + 0x1c4], esi
call fcn.004c2b30
add esp, 0x10
mov byte [edi + 0x1d1], 1
cmp dword [ebx + 0x610], 0
je 0x49c81f
push 1
push ebx
call fcn.004abd10
mov eax, dword [ebx + 0x610]
push 1
push esi
push dword [ebx + 0x614]
call eax
push 0
push ebx
mov esi, eax
call fcn.004abd10
add esp, 0x1c
test esi, esi
je 0x49c81f
push edi
call fcn.0049ccc0
add esp, 4
mov eax, 0x2a
jmp 0x49c821
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e5245
add esp, 0x88
ret