joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4801dd
Capabilities:
Move file

Disassembly:
push 0x24
mov eax, 0x532cf6
call fcn.005078e4
mov esi, 0x596308
mov dword [ebp - 0x30], esi
xor ebx, ebx
mov dword [ebp - 4], 2
cmp dword [0x59636c], ebx
je 0x480240
push ecx
call fcn.0047fe61
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.0047fb70
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x48021c
mov ecx, dword [ecx]
cmp dword [0x59631c], 0x10
mov eax, esi
push ecx
cmovae eax, dword [0x596308]
push eax
call fcn.0050abf0
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0044ea87
push ebx
push 1
mov ecx, 0x596350
call fcn.0044ea87
mov ecx, 0x596320
mov byte [ebp - 4], bl
call fcn.0047f917
push ebx
push 1
mov ecx, esi
call fcn.0044ea87
call fcn.00507893
ret

Function at 0x48026a
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x532d23
call fcn.005078b1
cmp dword [0x596360], 0
jne 0x48028a
push str._simpleLog::Log__log_filename_is_empty_n
call fcn.0050ab41
pop ecx
cmp dword [0x596368], 0
mov esi, 0x596308
jne 0x4802a4
push 0x596350
mov ecx, esi
call fcn.00454120
xor ebx, ebx
mov dword [ebp - 0x18], 0x59632c
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x14], bl
call fcn.00480759
push ebx
push ebx
push esi
push 0x47fa5a
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.005053f6
add esp, 0x18
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4802e2
lea eax, [ebp - 0x10]
mov ecx, 0x596320
push eax
call fcn.004807f2
cmp byte [ebp - 0x14], 0
je 0x4802f3
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.0050787f
ret
Function at 0x4810e9
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x532e96
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
xor ebp, ebp
xor eax, eax
inc ebp
mov dword [esp + 0x230], ebp
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
push 0x206
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push ebx
push eax
mov dword [esp + 0x20], ebp
call fcn.00507270
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x2e
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4811f2
lea eax, [esp + 0x1c]
push eax
call fcn.00450d65
pop ecx
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00450cf8
mov esi, 0x56b674
push esi
call fcn.00450d65
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00453f7f
cmp dword [esp + 0x248], ebx
je 0x4811c8
cmp dword [esp + 0x24c], 8
lea esi, [esp + 0x238]
cmovae esi, dword [esp + 0x238]
jmp 0x4811cd
mov esi, 0x56b67c
push esi
call fcn.00450d65
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00453f7f
mov esi, 0x56b678
push esi
call fcn.00450d65
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00453f7f
cmp dword [edi + 0x14], 8
jb 0x4811fc
mov eax, dword [edi]
jmp 0x4811fe
mov eax, edi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ebx
push ebp
lea ecx, [esp + 0x240]
call fcn.004510bf
mov eax, edi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.005026fe
add esp, 0x220
ret
Function at 0x4824cf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edx + 0x14], 8
jb 0x4824db
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x482515
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x482501
mov eax, dword [eax]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x482522
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
cmp dword [edx + 0x14], 8
jb 0x482534
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48257b
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x482563
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4825b9
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5331fa
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call ebx
xor ecx, ecx
mov edi, eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004eb821
mov esi, eax
pop ecx
test esi, esi
je 0x48268c
push edi
push 0
push esi
call fcn.004611db
add esp, 0xc
push esi
push edi
call ebx
mov eax, edi
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
test edi, edi
jle 0x482685
mov ebx, esi
push ebx
lea ecx, [esp + 0x18]
call fcn.00450d89
and dword [esp + 0x38], 0
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x48266d
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.0044fba0
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
push 0
push 1
call fcn.004510bf
add ebx, 8
dec edi
jne 0x482638
push esi
call fcn.005033af
pop ecx
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
push 0x18
cdq
pop ecx
idiv ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005026fe
add esp, 0x28
ret
Function at 0x497de9
Capabilities:
Terminate process

Disassembly:
push 0x364
mov eax, 0x53567d
call fcn.005078e4
mov edi, ecx
call fcn.004c66f0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
push eax
push str._INFO___d___OnCreate_1
push 3
push dword [0x593b84]
call fcn.004c69aa
add esp, 0x10
mov ecx, edi
push 0xfffffffffffffff0
call fcn.0049f64a
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.0049f64a
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.0049a45f
lea eax, [edi + 0x24]
mov ecx, ebx
push eax
call fcn.0049995c
lea ecx, [ebp - 0x36c]
call fcn.004c7a3f
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
and dword [ebp - 4], 0
push ecx
mov ecx, edi
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.004970c6
test al, al
jne 0x497f05
call esi
push eax
push str._INFO___d___OnCreate_2
push 3
push dword [0x593b84]
call fcn.004c69aa
mov eax, dword [edi]
lea ecx, [ebp - 0x94]
add esp, 0x10
push ecx
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00496f15
push eax
call fcn.0050612f
pop ecx
lea ecx, [ebp - 0x94]
movzx esi, ax
mov byte [ebp - 4], 1
call fcn.0049691e
push 0
lea eax, [edi + 0x28]
push ebx
push eax
lea ecx, [ebp - 0x118]
call fcn.00496f15
push eax
push esi
lea ecx, [ebp - 0x36c]
call fcn.004c8a65
mov esi, eax
jmp 0x497f60
call esi
push eax
push str._INFO___d___OnCreate_3
push 3
push dword [0x593b84]
call fcn.004c69aa
mov eax, dword [edi]
lea ecx, [ebp - 0x19c]
add esp, 0x10
lea esi, [edi + 0x28]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
push 0
push ebx
push esi
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00496f15
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x36c]
call fcn.004c8a65
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.0049691e
test esi, esi
jne 0x497fc9
push 0xffffffffffffffff
push 0x53ab7c
lea ecx, [ebp - 0x94]
call fcn.0049681b
mov eax, dword [edi]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.00496a63
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.0049691e
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.00496f15
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call fcn.004999f2
lea eax, [edi + 0x20]
mov ecx, ebx
push eax
call fcn.004998a2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.0049691e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x36c]
call fcn.004c6bd0
xor eax, eax
call fcn.00507893
ret 0x10
Function at 0x4bc991
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.004bc6ca
Function at 0x4c3cc2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x58e700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4c3d4a
cmp dword [esi + 0x10], 0
je 0x4c3d4a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00507d80
mov ebx, esp
test ebx, ebx
je 0x4c3d4a
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1cc
call fcn.004969b6
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push 0x53c438
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049e601
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049a65d
test al, al
je 0x4c3d4a
mov ecx, dword [esi + 0x10]
call fcn.004a0e13
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005026fe
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4c6220
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x536d0a
call fcn.005078b1
mov esi, ecx
lea eax, [esi + 0xc]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
call fcn.00480759
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push ebx
push ebx
call fcn.005053f6
add esp, 0x18
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4c626a
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
call fcn.004807f2
mov bl, 1
cmp byte [ebp - 0x10], 0
je 0x4c627b
mov ecx, dword [ebp - 0x14]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
call fcn.0050787f
ret 8

Function at 0x4c66f0
Capabilities:
Get common file path

Disassembly:
push 0x23c
mov eax, 0x536e62
call fcn.005078e4
lea eax, [ebp - 0x218]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
je 0x4c672e
push 0x53ade8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
mov dword [ebp - 0x21c], 7
xor ebx, ebx
mov word [ebp - 0x230], ax
mov dword [ebp - 0x220], ebx
cmp word [ebp - 0x218], ax
je 0x4c675f
lea eax, [ebp - 0x218]
push eax
call fcn.005074c6
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00450cf8
mov esi, 0x53f93c
mov dword [ebp - 4], ebx
push esi
call fcn.005074c6
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.00453f7f
mov eax, dword [0x593c10]
mov esi, 0x593ba8
test al, 1
jne 0x4c67e6
or eax, 1
mov dword [0x593c10], eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004c6aec
pop ecx
pop ecx
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004c6285
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.0044ea87
push 0x539447
call fcn.005036f9
pop ecx
mov byte [ebp - 4], bl
mov ecx, esi
mov dword [0x593b84], esi
call fcn.004c6a57
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.004510bf
xor eax, eax
call fcn.00507893
ret
Function at 0x4dc9c2
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x5377e1
call fcn.005078e4
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x10], eax
mov dword [eax + 0x598], ebx
cmp dword [edi + 4], ebx
jne 0x4dca5c
lea eax, [ebp - 0xa8]
push eax
call fcn.004dc5d1
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.0049a3c0
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.0049f84d
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004d3a14
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00499f78
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call esi
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.004970c6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0049691e
test bl, bl
je 0x4dca99
mov eax, dword [edi + 0x10]
add eax, 0x588
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [edi + 0x10]
call fcn.004dcb08
test al, al
je 0x4dcaac
push 0x544e4c
jmp 0x4dcab1
push str.yyyy_MM_dd
push 0
push 0x1032
push dword [edi + 4]
call esi
mov eax, dword [edi + 0x10]
mov ebx, 0x588
add eax, ebx
push 0x10
push eax
lea eax, [edi + 0x1a]
push eax
call fcn.00506c20
mov eax, dword [edi + 0x10]
add esp, 0xc
add eax, ebx
push eax
push 0
push 0x1002
push dword [edi + 4]
call esi
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.00507893
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x58e700]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4dd05f
xor eax, eax
jmp 0x4dd0dc
push 0xfe
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.00507270
add esp, 0xc
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4dd05b
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.00506c20
mov ecx, dword [ebp - 0x298]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005026fe
mov esp, ebp
pop ebp
ret
Function at 0x4dd1d9
Capabilities:
Hide graphical window

Disassembly:
push 0xa4
mov eax, 0x537814
call fcn.005078e4
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x590], ebx
cmp dword [edi + 4], ebx
jne 0x4dd296
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 8
push eax
mov dword [ebp - 0x9c], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x4dd26e
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.004dcdbe
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xb0]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40030000
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.0049a3c0
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.0049f84d
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004d3a14
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00499f78
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.004970c6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0049691e
test bl, bl
je 0x4dd2d2
call fcn.004dd033
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x588], eax
mov eax, dword [edi + 0x10]
push dword [eax + 0x588]
push 0
push 0x465
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
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.00507893
ret 4

Function at 0x4deee0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bc6ca

Function at 0x4deee9
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.virtual_324
Function at 0x4dfe82
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x58e700]
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 + 0x770], 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 + 0x76c], ecx
mov dword [ebx + 0x774], eax
test ecx, ecx
jne 0x4dfeea
call fcn.004dfc65
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x4dfeea
call fcn.004dfc65
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
lea esi, [ebx + 0x10]
call fcn.004dfc65
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebx + 0x76c]
test ecx, ecx
jne 0x4dff07
mov ecx, edi
jmp 0x4dff0e
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049a3c0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.004967d2
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
mov ecx, ebx
push 0x88
movsd dword es:[edi], dword [esi]
push SysReAllocString
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.0049f84d
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x4dff51
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x4dff4c
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.005026fe
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4e5c8d
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58e700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x210], 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 0x4e5cdb
cmp edi, 0x28
jbe 0x4e5cd5
lea eax, [edi - 0x2d]
cmp eax, 1
ja 0x4e5cdb
or esi, 0x100
cmp dword [ebp + 0x10], 0
je 0x4e5ce7
or esi, 0x1000000
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00507270
add esp, 0xc
shl esi, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0049681b
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005026fe
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e5fe1
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x537ac1
call fcn.005078e4
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4e60f1
lea eax, [ebp - 0xa4]
push eax
call fcn.004e57bb
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
mov eax, dword [ecx]
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.0049a3c0
push eax
mov ecx, ebx
call fcn.0049f84d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4e60f1
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.004d3a14
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00499f78
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x7a6]
push eax
movzx eax, word [ecx + 0x7a4]
mov ecx, ebx
push eax
call fcn.004e651c
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.004e5adb
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1cc
push eax
call fcn.00496997
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0049691e
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.00507893
ret 4
Function at 0x40c2e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40c302
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c309
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c2f8
mov eax, 1
add ebx, ebx
jne 0x40c31b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c310
jne 0x40c32c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c310
xor ecx, ecx
sub eax, 3
jb 0x40c340
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c3b2
mov ebp, eax
add ebx, ebx
jne 0x40c34b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c358
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c37c
inc ecx
add ebx, ebx
jne 0x40c368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c35d
jne 0x40c379
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c35d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c39c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c38d
jmp 0x40c2fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c39c
add edi, ecx
jmp 0x40c2fe
pop esi
mov edi, esi
mov ecx, 0x3e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c3ba
cmp byte [edi], 1
jne 0x40c3ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40c3bf
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c42e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11d88]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11e28]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c3ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11e2c]
or eax, eax
je 0x40c428
mov dword [ebx], eax
add ebx, 4
jmp 0x40c409
call dword [esi + 0x11e30]
popal
jmp 0x40210c