joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e680
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002bcb8]
jne 0x1000e68a
repz ret
jmp fcn.1001412c

Function at 0x10014323
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1002be98]
je 0x1001433e
inc edi
cmp edi, 0x17
jb 0x1001432f
cmp edi, 0x17
jae 0x100144be
push ebp
push 3
call fcn.1001b9b8
cmp eax, 1
pop ecx
je 0x1001448a
push 3
call fcn.1001b9b8
test eax, eax
pop ecx
jne 0x10014372
cmp dword [0x1002f064], 1
je 0x1001448a
cmp ebx, 0xfc
je 0x100144bd
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1002f400
push ebp
call fcn.10012be0
add esp, 0xc
test eax, eax
je 0x100143a8
push esi
push esi
push esi
push esi
push esi
call fcn.1000eea6
add esp, 0x14
push 0x104
mov esi, 0x1002f419
push esi
push 0
mov byte [0x1002f51d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100143ec
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10012be0
add esp, 0xc
test eax, eax
je 0x100143ec
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000eea6
add esp, 0x14
push esi
call fcn.10012c50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10014431
push esi
call fcn.10012c50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1002f714
push 0x100255ac
sub ecx, eax
push ecx
push eax
call fcn.10018226
add esp, 0x14
test eax, eax
je 0x10014431
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000eea6
add esp, 0x14
jmp 0x10014433
xor esi, esi
push 0x100255a8
push ebx
push ebp
call fcn.10018167
add esp, 0xc
test eax, eax
je 0x10014453
push esi
push esi
push esi
push esi
push esi
call fcn.1000eea6
add esp, 0x14
push dword [edi*8 + 0x1002be9c]
push ebx
push ebp
call fcn.10018167
add esp, 0xc
test eax, eax
je 0x10014475
push esi
push esi
push esi
push esi
push esi
call fcn.1000eea6
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1001b7fb
add esp, 0xc
jmp 0x100144bd
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100144bd
cmp ebp, 0xffffffff
je 0x100144bd
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1002be9c]
push dword [esi]
call fcn.10012c50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001b7fb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10012572
xor ebx, ebx
cmp dword [0x1002faec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1001b8d1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001b9b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001b9b1
push eax
call fcn.10012504
mov dword [esp], 0x100267f0
push edi
mov dword [0x1002faec], eax
call esi
push eax
call fcn.10012504
mov dword [esp], 0x100267dc
push edi
mov dword [0x1002faf0], eax
call esi
push eax
call fcn.10012504
mov dword [0x1002faf4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000fc8e
test eax, eax
pop ecx
pop ecx
je 0x1001b89f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000eea6
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1001b8d1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10012504
cmp eax, ebx
pop ecx
mov dword [0x1002fafc], eax
je 0x1001b8d1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10012504
pop ecx
mov dword [0x1002faf8], eax
mov eax, dword [0x1002faf8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001b956
cmp dword [0x1002fafc], ecx
je 0x1001b956
push eax
call fcn.1001257b
push dword [0x1002fafc]
mov esi, eax
call fcn.1001257b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1001b956
cmp edi, ebx
je 0x1001b956
call esi
cmp eax, ebx
je 0x1001b923
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001b923
test byte [ebp - 0x18], 1
jne 0x1001b956
lea eax, [ebp - 0x10]
push eax
call fcn.1000fcc5
test eax, eax
pop ecx
je 0x1001b93e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000eea6
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1001b94d
or dword [ebp + 0x10], 0x200000
jmp 0x1001b991
or dword [ebp + 0x10], 0x40000
jmp 0x1001b991
mov eax, dword [0x1002faf0]
cmp eax, dword [ebp - 8]
je 0x1001b991
push eax
call fcn.1001257b
cmp eax, ebx
pop ecx
je 0x1001b991
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001b991
mov eax, dword [0x1002faf4]
cmp eax, dword [ebp - 8]
je 0x1001b991
push eax
call fcn.1001257b
cmp eax, ebx
pop ecx
je 0x1001b991
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002faec]
call fcn.1001257b
cmp eax, ebx
pop ecx
je 0x1001b9b1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001b9b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ccfb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41cd3a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41cd3a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41cd3a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41cd3a
cmp dword [ecx + 0x74], 0xe
jbe 0x41cd3a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42449b
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 0x424538
push ebx
push esi
call fcn.00424464
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.004243f8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4244e5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424537
push edi
push eax
call fcn.00422f30
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x424505
call fcn.00422f7e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424536
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004243f8
add esp, 0x20
test eax, eax
jne 0x424524
push edi
call fcn.00422f7e
jmp 0x42452c
push ebx
call fcn.00422f7e
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 0x425747
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d9a0
push 0x42d998
push str.FlsAlloc
push 0x1f
call fcn.00425606
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42577b
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b144]
call esi
jmp 0x425781
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4257c5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d9b0
push 0x42d9a8
push str.FlsGetValue
push 0x21
call fcn.00425606
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4257fc
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x425804
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d9b8
push 0x42d9b0
push str.FlsSetValue
push 0x22
call fcn.00425606
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42583e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42b144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42ab10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42ab3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ab3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00414f30
mov eax, dword [0x429460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x200c], 0
push eax
push 0xf003f
push 0
push 0x425330
push 0x80000002
mov dword [ebp - 0x2008], 0x1000
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404e63
lea eax, [ebp - 0x200c]
push eax
push 0xf003f
push 0
push 0x425330
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404e63
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dfe8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2008]
push eax
lea eax, [ebp - 0x2004]
push eax
push 0
push 0
push str.UserId
push dword [ebp - 0x200c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404ed5
cmp word [ebp - 0x2004], ax
jne 0x404ea9
xor ecx, ecx
lea eax, [ebp - 0x2004]
push ecx
push eax
mov ecx, 0x42cc80
call fcn.00401c10
jmp 0x404ed7
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404eb2
sub ecx, edx
lea eax, [ebp - 0x2004]
sar ecx, 1
push ecx
push eax
mov ecx, 0x42cc80
call fcn.00401c10
jmp 0x404ed7
xor bl, bl
push dword [ebp - 0x200c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040dfe8
mov esp, ebp
pop ebp
ret

Function at 0x404f00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3068
call fcn.00414f30
mov eax, dword [0x429460]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x3068]
mov dword [ebp - 0x3068], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x425330
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404fef
mov eax, dword [0x42cc90]
mov ecx, 0x42cc80
cmp dword [0x42cc94], 8
cmovae ecx, dword [0x42cc80]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.UserId
push dword [ebp - 0x3068]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1830
lea eax, [ebp - 0x3064]
push eax
push 0xffffffffffffffff
push str.utm_sourceoffergatecpiutm_campaign6utm_mediummlutm_site1379utm_clickidproductid_253D46_2526sourceid_253D1379_2526partnerid_253D6_2526landingid_253D229_2526site_253D10torrent.net_2526version_253D2utm_ntbpack9landingl5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x3064]
lea edx, [eax + 2]
jmp 0x404fb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404fb0
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x3064]
push eax
push 1
push 0
push 0x424e78
push dword [ebp - 0x3068]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x3068]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dfe8
mov esp, ebp
pop ebp
ret
Function at 0x406720
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x81434b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40464c
call fcn.0040790b
push 4
mov dword [esp + 0x18], 0
call fcn.00408a24
mov edi, eax
add esp, 4
test edi, edi
je 0x406794
push ebx
call fcn.00407706
mov dword [edi], eax
call fcn.004074c5
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004078cc
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406788
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004078f4
pop ebx
jmp 0x406796
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4095fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x817354]
jne 0x409605
repz ret
jmp fcn.0040dc4c
Function at 0x412942
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x817354]
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.0040c1bf
and dword [ebp - 0x14], 0
cmp dword [0x81cbcc], 0
mov dword [ebp - 0x18], eax
jne 0x4129f5
push 0x403ff8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412a9d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fec
push ebx
call edi
test eax, eax
je 0x412a9d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fdc
push ebx
mov dword [0x81cbcc], eax
call edi
push eax
call esi
push 0x403fc8
push ebx
mov dword [0x81cbd0], eax
call edi
push eax
call esi
push 0x403fac
push ebx
mov dword [0x81cbd4], eax
call edi
push eax
call esi
mov dword [0x81cbdc], eax
test eax, eax
je 0x4129f5
push 0x403f94
push ebx
call edi
push eax
call esi
mov dword [0x81cbd8], eax
mov eax, dword [0x81cbd8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412a4e
cmp dword [0x81cbdc], ecx
je 0x412a4e
push eax
call esi
push dword [0x81cbdc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412a4e
test ebx, ebx
je 0x412a4e
call edi
test eax, eax
je 0x412a45
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412a45
test byte [ebp - 8], 1
jne 0x412a4e
or dword [ebp + 0x10], 0x200000
jmp 0x412a81
mov eax, dword [0x81cbd0]
cmp eax, dword [ebp - 0x18]
je 0x412a81
push eax
call esi
test eax, eax
je 0x412a81
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412a81
mov eax, dword [0x81cbd4]
cmp eax, dword [ebp - 0x18]
je 0x412a81
push eax
call esi
test eax, eax
je 0x412a81
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81cbcc]
call esi
test eax, eax
je 0x412a9d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412a9f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004095fb
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4043e4
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x42e348]
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ecx]
mov dword [ebp - 0x28], eax
mov eax, dword [str._r1__b]
push esi
push edi
mov edi, dword [ecx + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], 0x9e3779b9
call fcn.004043dd
mov eax, dword [0x42e350]
add dword [ebp - 4], 0x23f
mov dword [ebp - 0x18], eax
mov eax, dword [0x42e354]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x282879c]
cmp eax, 0xfa9
jne 0x404465
mov dword [0x2828798], 0xedeb2e40
cmp eax, 0x3eb
jne 0x404473
and dword [0x2828224], 0
mov edx, dword [ebp - 4]
add edx, ebx
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1c]
mov dword [0x2828794], 0xf4ea3dee
xor eax, edx
xor eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
sub edi, eax
mov eax, edi
shr eax, 5
add edx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x28]
xor esi, edx
cmp dword [0x282879c], 0xb03
jne 0x4044d8
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
xor eax, esi
sub ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 4], eax
dec dword [ebp - 0x14]
jne 0x404439
mov dword [ecx + 4], edi
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
leave
ret 4

Function at 0x4044fd
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x282879c]
mov ecx, dword [0x2828228]
sub esp, 0xc00
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4045cf
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x282879c], 0x959
jne 0x4045bd
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x403ef0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0x403f3c
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0x403f68
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push 0x403fa0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.004043e4
add edi, 8
dec ebx
jne 0x404525
pop edi
pop ebx
pop esi
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x4e203c], 1
mov dword [0x4e2038], 1
mov dword [0x4e2034], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x4e200c], eax
mov eax, dword [0x4e2048]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x4e205c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x4e2044]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x4d4064], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x40c5b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40c610
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4e2050]
test esi, esi
jle 0x40c730
mov eax, dword [0x4e2054]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40c644
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40c6c7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40c630
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x40c757
mov eax, dword [0x4e2054]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x4e2054]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40c737
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40c6c0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x40c6d0
add dword [0x4e2050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4e2054]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40c6c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40c64e
mov eax, dword [0x4e2054]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop
Function at 0x40cc80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4e206c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4e2064]
sub esp, 4
test ebx, ebx
je 0x40ccd5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x40ccce
test eax, eax
jne 0x40ccce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40ccb0
mov dword [esp], 0x4e206c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d010
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40d035
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40d040
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40d035
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x40d088
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40d07e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40d08a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x40d070
xor eax, eax
pop ebx
pop esi
ret