joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50aa90
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50ac3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x50ac1c
mov dl, 1
mov eax, dword [0x43b360]
call fcn.00449840
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00406bc4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x50ac0b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00498028
test al, al
je 0x50abfe
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x50ac4c
lea eax, [ebp - 0x394]
call fcn.0041fa88
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x50abfe
xor eax, eax
push ebp
push 0x50abf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x50acbc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x50abe0
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004077a0
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x44]
jne 0x50abe0
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004077a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50abfe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x50ab01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0044977c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ac42
lea eax, [ebp - 0x3a0]
call fcn.00406bc4
ret

Function at 0x50b7f4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5352fc]
cmp byte [eax + 0xb1], 0
jne 0x50b866
cmp dword [0x53531c], 0
jne 0x50b826
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x52f5ec]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x53531c], eax
cmp dword [0x535318], 0
jne 0x50b841
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x535318], eax
cmp dword [0x535320], 0
jne 0x50b866
push esp
push 0
push 0
mov eax, dword [0x52f5e8]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x535320], eax
pop edx
ret
Function at 0x50bb80
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x50bb97
add esp, 0xfffffff0
call fcn.00405584
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004524d8
mov eax, dword [0x52f78c]
cmp byte [eax], 0
jne 0x50bbc4
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x184], al
mov eax, dword [0x52fa98]
cmp word [eax + 2], 0
jne 0x50bbde
mov eax, dword [0x52fa98]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0050dd74
mov eax, dword [0x52fbc0]
cmp word [eax + 2], 0
jne 0x50bbf8
mov eax, dword [0x52fbc0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0050df78
mov byte [ebx + 0x39], 0
mov dl, 1
mov eax, dword [0x463850]
call fcn.00469ac8
mov esi, eax
mov dword [ebx + 0x40], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x50e4f0
mov dl, 1
mov eax, dword [0x437bec]
call fcn.00404f48
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x437bec]
call fcn.00404f48
mov dword [ebx + 0xb4], eax
xor eax, eax
mov dword [ebx + 0x64], eax
xor eax, eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x60], 0xff000018
mov dword [ebx + 0x7c], 0x1f4
mov byte [ebx + 0x80], 1
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x78], 0x9c4
mov byte [ebx + 0x8c], 0
mov byte [ebx + 0xa9], 1
mov byte [ebx + 0xc0], 1
mov dl, 1
mov eax, dword [0x4683a8]
call fcn.00473460
mov esi, eax
mov dword [ebx + 0xa4], esi
push 0x50bddc
mov eax, dword [0x52f96c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004738f0
mov eax, dword [ebx + 0xa4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x50e7d8
mov dl, 1
mov eax, dword [0x437bec]
call fcn.00404f48
mov dword [ebx + 0x9c], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x52f96c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041f89c
test eax, eax
je 0x50bd0c
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041f64c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041f880
test eax, eax
je 0x50bd24
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x90]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004077a0
push ebx
push 0x50d74c
call fcn.00501738
mov dword [ebx + 0x180], eax
mov byte [ebx + 0xd4], 0
mov eax, dword [0x52f78c]
cmp byte [eax], 0
jne 0x50bd75
mov eax, ebx
call fcn.0050bf9c
mov byte [ebx + 0x5d], 1
mov byte [ebx + 0x5e], 1
mov byte [ebx + 0x5f], 1
mov byte [ebx + 0xaa], 1
mov byte [ebx + 0xd5], 0
mov byte [ebx + 0xe0], 0
xor eax, eax
mov dword [ebx + 0xd8], eax
mov byte [ebx + 0xd7], 0
xor eax, eax
mov dword [ebx + 0xac], eax
mov eax, ebx
call fcn.0050ea20
mov eax, ebx
call fcn.0050f64c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x50bdd2
call fcn.004055dc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50c2d4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x50c380
cmp dword [ebx + 0x98], 0
jne 0x50c37a
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x50c20c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x94]
cmp dword [eax + 8], 0
je 0x50c37a
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x50c340
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x94]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x50c37a
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x94]
call fcn.00445214
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x50c34f
inc dword [ebx + 0x98]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x50c5a0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5352fc]
cmp dword [eax + 0x178], 0
je 0x50c705
test bl, bl
jne 0x50c653
cmp dword [esi + 0xa0], 0
jne 0x50c648
mov eax, esi
call fcn.0050f49c
push eax
push 0x50c4ac
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x48], 0
je 0x50c619
mov eax, dword [0x5352fc]
cmp byte [eax + 0xd7], 0
je 0x50c619
mov eax, dword [esi + 0xdc]
call fcn.004088dc
mov edi, eax
cmp edi, 0
jl 0x50c619
push 0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x50c602
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x50c648
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00445214
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x50c628
inc dword [esi + 0xa0]
jmp 0x50c705
cmp dword [esi + 0xa0], 0
jle 0x50c705
dec dword [esi + 0xa0]
cmp dword [esi + 0xa0], 0
jne 0x50c705
cmp dword [esi + 0x48], 0
je 0x50c6b0
mov eax, dword [0x5352fc]
cmp byte [eax + 0xd7], 0
je 0x50c6b0
mov eax, dword [esi + 0xdc]
call fcn.004088dc
mov edi, eax
cmp edi, 0
jl 0x50c6b0
push 5
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x50c699
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x50c6df
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00445214
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x50c6bf
mov eax, dword [esi + 0x9c]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xdc]
mov ecx, 1
mov edx, dword [0x4fe698]
call fcn.00408a88
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x50d358
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb0], 0
je 0x50d3c3
cmp byte [ebx + 0xd7], 0
jne 0x50d3c3
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x178]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406d4c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x50d3b0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x50d3d0
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00406fa4
jmp 0x50d3d0
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00406fa4
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x50ec08
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x50ec76
mov eax, esi
call fcn.00492050
test al, al
je 0x50ec76
mov eax, dword [ebx + 0x88]
call fcn.00491c9c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50ec76
mov eax, dword [ebx + 0x88]
mov edx, dword [eax]
call dword [edx + 0x108]
test al, al
je 0x50ec6a
push 0
mov eax, dword [ebx + 0x88]
call fcn.00491c9c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.00488a80
jmp 0x50ec76
mov cl, 1
mov edx, dword [ebx + 0x78]
mov eax, ebx
call fcn.0050ea40
pop esi
pop ebx
ret
Function at 0x5133d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x51344a
mov eax, dword [ebx + 8]
call fcn.00491c9c
mov ecx, eax
mov dl, 1
mov eax, dword [0x49dae8]
call fcn.0048c088
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.004a2180
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x512cc8
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00491c9c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00491c9c
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5134c0
mov eax, dword [ebx + 8]
call fcn.00491c9c
mov ecx, eax
mov dl, 1
mov eax, dword [0x49dae8]
call fcn.0048c088
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.004a2180
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x512d14
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00491c9c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00491c9c
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x51352c
mov eax, dword [ebx + 8]
call fcn.00491c9c
mov ecx, eax
mov dl, 1
mov eax, dword [0x49e524]
call fcn.0048c088
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x278], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.00491c9c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.00491c9c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x51913c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x519154
add esp, 0xfffffff0
call fcn.00405584
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x51926e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00404530
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x519258
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004a57fc
xor eax, eax
push ebp
push 0x519245
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004a57fc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.004077dc
jmp 0x519216
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00407b08
mov eax, dword [ebx + 4]
call fcn.004070b4
dec eax
jle 0x51922a
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x519204
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51924c
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519275
lea eax, [ebp - 4]
call fcn.00406c0c
ret

Function at 0x51a2b4
Capabilities:
Hide graphical window

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
mov eax, ebx
call fcn.00519870
test byte [ebx + 0x2ad], 4
jne 0x51a349
mov edx, esp
mov eax, ebx
call fcn.004883f0
push esp
mov eax, ebx
call fcn.00491a34
push eax
push 0
mov eax, ebx
test eax, eax
je 0x51a2e9
sub eax, 0xfffffd0c
push eax
push 0
push 0xfffffffffffffffb
mov eax, dword [ebx + 0x288]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
cmp dword [ebx + 0x29c], 0
jne 0x51a31a
mov ecx, dword [0x52fa30]
mov dl, 1
mov eax, dword [0x4a5178]
call fcn.004241cc
call fcn.004062f8
mov eax, ebx
call fcn.0051af44
cmp byte [ebx + 0x61], 0
jne 0x51a350
mov eax, ebx
call fcn.00491c9c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x51a350
push 0
mov eax, ebx
call fcn.00491c9c
push eax
call sub.user32.dll_ShowWindow
jmp 0x51a350
mov eax, ebx
call fcn.0048d904
add esp, 0x10
pop ebx
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x8de0f0
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de0f6
pop ebp
sub ebp, 6
sub ebp, 0x4de0f0
jmp 0x8de154
jmp 0x8de15d
mov eax, 0x4de0f0
add eax, ebp
add eax, 0x93
mov ecx, 0x61f
mov edx, 0x270beb96
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de174
jmp 0x8de187
cld
salc
invalid
Function at 0x86b67c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x8931fc]
test eax, eax
je 0x86b6bb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x86b6bb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x86b6bb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x86b6bb
cmp dword [ecx + 0x74], 0xe
jbe 0x86b6bb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x87e558
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x8a9de0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x87e598
cmp byte [ebx], 0xa
jne 0x87e598
or byte [edi + eax + 0x28], 4
jmp 0x87e59d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x87e69c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x87e67f
inc eax
cmp dl, 0xd
je 0x87e5c9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x87e5ef
cmp eax, ecx
jae 0x87e5fd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x87e5b1
jmp 0x87e69c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x87e67a
cmp dword [ebp - 0x10], 0
je 0x87e67a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x8a9de0]
test byte [eax + edi + 0x28], 0x48
je 0x87e654
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x87e63f
mov byte [esi], dl
jmp 0x87e650
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x8a9de0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x87e69c
cmp byte [ebp - 1], 0xa
jne 0x87e663
cmp esi, ebx
jne 0x87e663
mov byte [esi], 0xa
jmp 0x87e69b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00884d5c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x87e69c
mov byte [esi], 0xd
jmp 0x87e69b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x8a9de0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x87e699
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x87e69c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x87e6a5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x8a9de0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x87e6eb
cmp word [ebx], dx
jne 0x87e6eb
or byte [eax + edi + 0x28], 4
jmp 0x87e6f0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x87e853
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x87e833
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x87e731
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x87e767
cmp eax, edx
jae 0x87e775
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x87e70c
jmp 0x87e853
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x87e82e
cmp dword [ebp - 0x18], 0
je 0x87e82e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x8a9de0]
test byte [eax + edi + 0x28], 0x48
je 0x87e804
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x87e7c8
mov word [esi], cx
jmp 0x87e7ff
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x8a9de0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x8a9de0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x8a9de0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x87e853
pop eax
cmp word [ebp - 4], ax
jne 0x87e814
cmp esi, ebx
jne 0x87e814
mov word [esi], ax
jmp 0x87e850
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00884d5c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x87e853
push 0xd
pop eax
jmp 0x87e80f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x8a9de0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x87e84d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x87e853
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.00401507
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
nop
push 1
nop
pop eax
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
sub ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
push esi
pop edi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
push edi
pop ecx
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20