joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ad64
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x487584]
cmp byte [eax + 0xc], 0
je 0x44aed1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44aeca
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48b578], 0
jne 0x44adb8
push 0x44aed8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44aee0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48b578], eax
cmp dword [0x47d658], 0
jne 0x44aeb3
push 0x44aef0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47d658], eax
cmp dword [0x47d658], 0
je 0x44aeb3
push 0x44aefc
mov eax, dword [0x47d658]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48b57c], eax
push 0x44af0c
mov eax, dword [0x47d658]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48b580], eax
push 0x44af20
mov eax, dword [0x47d658]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48b584], eax
push 0x44af38
mov eax, dword [0x47d658]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48b588], eax
push 0x44af50
mov eax, dword [0x47d658]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48b58c], eax
push 0x44af64
mov eax, dword [0x47d658]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48b590], eax
push 0x44af7c
mov eax, dword [0x47d658]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48b594], eax
push 0x44af94
mov eax, dword [0x47d658]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48b598], eax
push 0x44afb0
mov eax, dword [0x47d658]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48b59c], eax
push 0x44afbc
mov eax, dword [0x47d658]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48b5a0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44aed1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x450540
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x450594]
test si, 4
je 0x450555
or bl, 1
test si, 8
je 0x45055f
or bl, 4
test si, 1
je 0x450569
or bl, 8
test si, 2
je 0x450573
or bl, 0x10
test si, 0x10
je 0x45057d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45058c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x450598
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4505d4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4505b2
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4505c1
or bl, 4
test esi, 0x20000000
je 0x4505cc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x457c88
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x457c9a
add esp, 0xfffffff0
call fcn.00403cf0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a974
mov eax, dword [0x4871f0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45802c
mov eax, dword [0x4871fc]
mov dword [eax + 4], ebx
mov dword [eax], 0x458038
mov eax, ebx
call fcn.00458044
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412558]
call fcn.0040399c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412558]
call fcn.0040399c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412558]
call fcn.0040399c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412558]
call fcn.0040399c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412558]
call fcn.0040399c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x453adc
push eax
push 0
push 0
mov eax, dword [0x487368]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e670]
call fcn.0041fec4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e670]
call fcn.0041fec4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e670]
call fcn.0041fec4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00458474
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458344
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458344
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458344
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457dd7
call fcn.00403d48
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x458128
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4582d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4582b4
mov dl, 1
mov eax, dword [0x41297c]
call fcn.0040399c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047f8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4582a3
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.0044b0c0
test al, al
je 0x458296
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4582e4
lea eax, [ebp - 0x254]
call fcn.00409798
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x458296
xor eax, eax
push ebp
push 0x45828f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45831c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x458278
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a68
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
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 + 0x3c]
jne 0x458278
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458296
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x458199
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041673c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4582da
lea eax, [ebp - 0x260]
call fcn.004047f8
ret

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

Disassembly:
push ecx
mov eax, dword [0x48b5b0]
cmp byte [eax + 0xad], 0
jne 0x458cbd
cmp dword [0x48b5c8], 0
jne 0x458c7e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x458c08
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48b5c8], eax
cmp dword [0x48b5c4], 0
jne 0x458c99
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48b5c4], eax
cmp dword [0x48b5cc], 0
jne 0x458cbd
push esp
push 0
push 0
push 0x458bac
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48b5cc], eax
pop edx
ret
Function at 0x458e90
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x458ea7
add esp, 0xfffffff0
call fcn.00403cf0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a974
mov eax, dword [0x487344]
cmp word [eax + 2], 0
jne 0x458ecf
mov eax, dword [0x487344]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045a940
mov eax, dword [0x487414]
cmp word [eax + 2], 0
jne 0x458ee9
mov eax, dword [0x487414]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ab4c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412558]
call fcn.0040399c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412558]
call fcn.0040399c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x412558]
call fcn.0040399c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41f180]
call fcn.00426b24
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4590a0
mov eax, dword [0x48725c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426ef8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b20c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48725c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cf44
test eax, eax
je 0x458ff0
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409150
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cf78
test eax, eax
je 0x459004
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a68
mov byte [ebx + 0xd4], 0
push ebx
push 0x45a4a0
call fcn.0041baf0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x48712c]
cmp byte [eax], 0
jne 0x459055
mov eax, ebx
call fcn.004591e4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045b3e8
mov eax, ebx
call fcn.0045bf48
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459095
call fcn.00403d48
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459464
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48b5b0]
cmp dword [eax + 0x30], 0
je 0x45950e
cmp dword [ebx + 0x94], 0
jne 0x459508
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4593f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x459508
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4594ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x459508
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041498c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4594dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a228
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45a25d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004048e8
jmp 0x45a26a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040484c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45b5cc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45b63a
mov eax, esi
call fcn.00445d58
test al, al
je 0x45b63a
mov eax, dword [ebx + 0x84]
call fcn.004459b8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45b63a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45b62e
push 0
mov eax, dword [ebx + 0x84]
call fcn.004459b8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043ddd8
jmp 0x45b63a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045b408
pop esi
pop ebx
ret

Function at 0x4636a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, edx
nop
nop
push 2
push eax
mov eax, dword [0x48a7f4]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
mov eax, dword [0x48a7f4]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [esi], eax
push ebx
mov eax, dword [0x48a7f4]
push eax
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
pop esi
pop ebx
ret
Function at 0x465e24
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov ebx, eax
mov eax, ebx
call fcn.004660dc
test al, al
jne 0x465e77
mov eax, esp
xor ecx, ecx
mov edx, 0x3c
call fcn.00403310
mov dword [esp], 0x3c
mov dword [esp + 4], 0x40
mov eax, 0x465f24
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 1
push esp
call sub.shell32.dll_ShellExecuteExA
push 0xffffffffffffffff
mov eax, dword [esp + 0x3c]
push eax
call sub.user32.dll_WaitForInputIdle
mov eax, ebx
call fcn.00465fe0
mov eax, ebx
call fcn.004660c4
test al, al
je 0x465e90
mov eax, ebx
call fcn.00466108
mov eax, ebx
call fcn.00465f64
mov eax, ebx
call fcn.00466088
mov esi, 0x465f30
lea edi, [ebx + 4]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebx + 4]
push eax
push 0
push 0xc
mov eax, dword [ebx + 0x88]
push eax
call sub.user32.dll_SendMessageA
cmp dword [ebx + 0x88], 0
je 0x465f0c
mov eax, ebx
call fcn.004660b4
mov eax, ebx
call fcn.00465dcc
mov eax, dword [ebx + 0xb8]
call fcn.0041d89c
mov esi, eax
mov edx, esi
mov edi, dword [ebx + 0xb8]
mov eax, edi
call fcn.0041d8b0
mov edx, eax
mov eax, edi
call fcn.0041d908
mov eax, dword [ebx + 0xb8]
push eax
call sub.user32.dll_SetFocus
mov byte [ebx + 0x37], 1
push 0x1f4
call sub.kernel32.dll_Sleep_1
add esp, 0x3c
pop edi
pop esi
pop ebx
ret

Function at 0x466088
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, eax
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x88]
push eax
call sub.user32.dll_SendMessageA
lea edx, [ebx + 0x50]
push edx
inc eax
push eax
push 0xd
mov eax, dword [ebx + 0x88]
push eax
call sub.user32.dll_SendMessageA
pop ebx
ret

Function at 0x468fa8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x468fd6
mov eax, ebx
call fcn.00469a5c
cmp dword [ebx + 0x40], 0
je 0x468fcf
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x469047
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x469039
cmp dword [ebx + 8], 0
je 0x468ff8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46900a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x469039
cmp dword [ebx + 8], 0
je 0x468feb
cmp eax, 3
je 0x46901d
dec eax
jne 0x468feb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x468feb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x468feb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x469065
cmp dword [ebx + 0x14], 0xcc
je 0x469065
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00469070
pop ebx
ret
Function at 0x4094f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13ac
call fcn.004568a0
mov eax, dword [0x4d9180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x13a4], ebx
call fcn.00451e8e
mov edi, eax
mov esi, edx
mov dword [ebp - 0x139c], edi
mov dword [ebp - 0x13ac], esi
call fcn.00451e77
mov dword [ebp - 0x1398], eax
mov ecx, edx
mov dword [ebp - 0x13a8], ecx
cmp edi, 0x989680
jne 0x409559
test esi, esi
jne 0x409559
push esi
push 0x64
push ecx
push eax
call fcn.004562c0
mov ecx, eax
mov edi, eax
jmp 0x4095fa
cmp edi, 0x16e3600
jne 0x4095a4
test esi, esi
jne 0x4095a4
push esi
push edi
push ecx
push eax
call fcn.004a7d30
push esi
push 0x16e3600
mov edi, edx
mov ebx, eax
push edi
push ebx
call fcn.004562c0
mov ecx, dword [ebp - 0x1398]
sub ecx, eax
mov eax, dword [ebp - 0x13a8]
push esi
push 0x3b9aca00
sbb eax, edx
push eax
push ecx
call fcn.004562c0
push esi
push 0x16e3600
jmp 0x4095cf
push ebx
push esi
push edi
push ecx
push eax
call fcn.004a8420
mov esi, ebx
pop ebx
push 0
push 0x3b9aca00
push esi
push ecx
mov ebx, eax
mov edi, edx
call fcn.004562c0
push dword [ebp - 0x13ac]
push dword [ebp - 0x139c]
push edx
push eax
call fcn.004a7d30
push 0
push 0x3b9aca00
push edi
push ebx
mov dword [ebp - 0x1398], eax
call fcn.004562c0
mov ecx, dword [ebp - 0x1398]
mov ebx, dword [ebp - 0x13a4]
add ecx, eax
mov edi, ecx
mov dword [ebp - 0x138c], ecx
mov ecx, 1
mov dword [ebp - 0xc], 0xffffffff
nop dword [eax]
mov eax, edi
shr eax, 0x1e
xor eax, edi
imul edi, eax, 0x6c078965
add edi, ecx
mov dword [ebp + ecx*4 - 0x138c], edi
inc ecx
cmp ecx, 0x270
jb 0x409610
mov dword [ebp - 0x1390], 0x270
mov esi, 0xc
mov edi, 0xff
lea ecx, [ebp - 0x1390]
call fcn.0041c000
mul edi
cmp eax, 0xff
jae 0x409672
cmp eax, 1
jae 0x409672
nop dword [eax]
lea ecx, [ebp - 0x1390]
call fcn.0041c000
mul edi
cmp eax, 1
jb 0x409660
mov eax, dword [ebx + 4]
inc dl
mov byte [ebp - 0x1391], dl
cmp eax, dword [ebx + 8]
je 0x409689
mov byte [eax], dl
inc dword [ebx + 4]
jmp 0x409698
lea ecx, [ebp - 0x1391]
push ecx
push eax
mov ecx, ebx
call fcn.00416330
sub esi, 1
jne 0x409643
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455352
mov esp, ebp
pop ebp
ret
Function at 0x40c370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x40c3a2
jl 0x40c395
test ecx, ecx
jne 0x40c3a2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40c47f
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40c3d2
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x40c3d4
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x40c428
jg 0x40c3e5
test esi, esi
je 0x40c428
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x40c3f9
jl 0x40c3f3
cmp ecx, esi
jae 0x40c3f9
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.0046f3e0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x40c44c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40c468
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x40c3b7
jl 0x40c468
test ecx, ecx
jne 0x40c3b7
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40c4c3
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40c4c3
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0046f3e0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x40c52c
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40c4e9
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x40c517
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00485651
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40c52c
cmp edi, eax
ja 0x40c4f5
test edi, edi
je 0x40c52c
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00485651
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc