joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403850
Capabilities:
Get common file path
Get disk information
Get memory capacity
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x48d368]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x48d36c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], 0x9e3779b9
mov dword [ebp - 0x20], edx
call fcn.00403840
mov ecx, dword [0x48d370]
mov edx, dword [0x48d374]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0x20
jmp 0x4038c0
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x494b64]
shl esi, 4
add esi, dword [ebp - 0x28]
cmp eax, 0xfa9
jne 0x4038ec
mov dword [0x494b60], 0xedeb2e40
jmp 0x403907
cmp eax, 0x3eb
jne 0x403907
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x4945f0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x2c]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x494b64], 0x9e6
mov dword [0x494b5c], 0xf4ea3dee
jne 0x403940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
xor dword [ebp - 4], esi
cmp dword [0x494b64], 0x213
jne 0x4039b6
push 0
push 0
push 0
push 0
call ebx
lea eax, [ebp - 0x548]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [ebp - 0xd48]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x494b64], 0xc
jne 0x4039ca
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x20]
xor esi, ecx
cmp dword [0x494b64], 0xb03
jne 0x403a02
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
xor esi, dword [ebp - 4]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x4038c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403a40
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x494b64]
mov ecx, dword [0x4945f4]
shr eax, 3
sub esp, 8
test eax, eax
jbe 0x403ad7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x494b64], 0x959
jne 0x403ac1
push 0
push 0
call esi
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov eax, dword [ebp - 4]
push eax
call fcn.00403850
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x403a73
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40afaf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48cce0]
jne 0x40afb9
repz ret
jmp fcn.0040e6cb

Function at 0x40c3e4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407e1b
and dword [ebp - 4], 0
cmp dword [0x4925e0], 0
mov ebx, eax
jne 0x40c495
push 0x4023e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c546
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023d4
push edi
call esi
test eax, eax
je 0x40c546
push eax
call fcn.00407da9
mov dword [esp], 0x4023c4
push edi
mov dword [0x4925e0], eax
call esi
push eax
call fcn.00407da9
mov dword [esp], 0x4023b0
push edi
mov dword [0x4925e4], eax
call esi
push eax
call fcn.00407da9
mov dword [esp], 0x402394
push edi
mov dword [0x4925e8], eax
call esi
push eax
call fcn.00407da9
pop ecx
mov dword [0x4925f0], eax
test eax, eax
je 0x40c495
push 0x40237c
push edi
call esi
push eax
call fcn.00407da9
pop ecx
mov dword [0x4925ec], eax
mov eax, dword [0x4925ec]
cmp eax, ebx
je 0x40c4ed
cmp dword [0x4925f0], ebx
je 0x40c4ed
push eax
call fcn.00407e24
push dword [0x4925f0]
mov esi, eax
call fcn.00407e24
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c4ed
test edi, edi
je 0x40c4ed
call esi
test eax, eax
je 0x40c4e4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c4e4
test byte [ebp - 0xc], 1
jne 0x40c4ed
or dword [ebp + 0x10], 0x200000
jmp 0x40c526
mov eax, dword [0x4925e4]
cmp eax, ebx
je 0x40c526
push eax
call fcn.00407e24
pop ecx
test eax, eax
je 0x40c526
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c526
mov eax, dword [0x4925e8]
cmp eax, ebx
je 0x40c526
push eax
call fcn.00407e24
pop ecx
test eax, eax
je 0x40c526
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4925e0]
call fcn.00407e24
pop ecx
test eax, eax
je 0x40c546
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c548
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4030e7
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 + 0x461784]
je 0x403102
inc edi
cmp edi, 0x17
jb 0x4030f3
cmp edi, 0x17
jae 0x403282
push ebp
push 3
call fcn.00401ec3
cmp eax, 1
pop ecx
je 0x40324e
push 3
call fcn.00401ec3
test eax, eax
pop ecx
jne 0x403136
cmp dword [0x46175c], 1
je 0x40324e
cmp ebx, 0xfc
je 0x403281
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x46437c
push ebp
call fcn.004135bc
add esp, 0xc
test eax, eax
je 0x40316c
push esi
push esi
push esi
push esi
push esi
call fcn.00407902
add esp, 0x14
push 0x104
mov esi, 0x464395
push esi
push 0
mov byte [0x464499], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4031b0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004135bc
add esp, 0xc
test eax, eax
je 0x4031b0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407902
add esp, 0x14
push esi
call fcn.00414ec0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4031f5
push esi
call fcn.00414ec0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x464690
push 0x459dcc
sub ecx, eax
push ecx
push eax
call fcn.0041188e
add esp, 0x14
test eax, eax
je 0x4031f5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00407902
add esp, 0x14
jmp 0x4031f7
xor esi, esi
push 0x459dc8
push ebx
push ebp
call fcn.00414752
add esp, 0xc
test eax, eax
je 0x403217
push esi
push esi
push esi
push esi
push esi
call fcn.00407902
add esp, 0x14
push dword [edi*8 + 0x461788]
push ebx
push ebp
call fcn.00414752
add esp, 0xc
test eax, eax
je 0x403239
push esi
push esi
push esi
push esi
push esi
call fcn.00407902
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040ba2f
add esp, 0xc
jmp 0x403281
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x403281
cmp ebp, 0xffffffff
je 0x403281
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x461788]
push dword [esi]
call fcn.00414ec0
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 0x409ae0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x461760]
jne 0x409aea
repz ret
jmp fcn.004073c6
Function at 0x40ba2f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404f63
xor ebx, ebx
cmp dword [0x464694], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40bb05
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40bbe5
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40bbe5
push eax
call fcn.00404ef5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x464694], eax
call esi
push eax
call fcn.00404ef5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x464698], eax
call esi
push eax
call fcn.00404ef5
mov dword [0x46469c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040e6fe
test eax, eax
pop ecx
pop ecx
je 0x40bad3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407902
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40bb05
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404ef5
cmp eax, ebx
pop ecx
mov dword [0x4646a4], eax
je 0x40bb05
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ef5
pop ecx
mov dword [0x4646a0], eax
mov eax, dword [0x4646a0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40bb8a
cmp dword [0x4646a4], ecx
je 0x40bb8a
push eax
call fcn.00404f6c
push dword [0x4646a4]
mov esi, eax
call fcn.00404f6c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40bb8a
cmp edi, ebx
je 0x40bb8a
call esi
cmp eax, ebx
je 0x40bb57
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bb57
test byte [ebp - 0x18], 1
jne 0x40bb8a
lea eax, [ebp - 0x10]
push eax
call fcn.0040e735
test eax, eax
pop ecx
je 0x40bb72
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407902
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40bb81
or dword [ebp + 0x10], 0x200000
jmp 0x40bbc5
or dword [ebp + 0x10], 0x40000
jmp 0x40bbc5
mov eax, dword [0x464698]
cmp eax, dword [ebp - 8]
je 0x40bbc5
push eax
call fcn.00404f6c
cmp eax, ebx
pop ecx
je 0x40bbc5
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40bbc5
mov eax, dword [0x46469c]
cmp eax, dword [ebp - 8]
je 0x40bbc5
push eax
call fcn.00404f6c
cmp eax, ebx
pop ecx
je 0x40bbc5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x464694]
call fcn.00404f6c
cmp eax, ebx
pop ecx
je 0x40bbe5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bbe7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x180fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x181b520]
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.01806e52
and dword [ebp - 0x14], 0
cmp dword [0x185d558], 0
mov dword [ebp - 0x18], eax
jne 0x180fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x180fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x180fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x185d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x185d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x185d560], eax
call edi
push eax
call esi
mov dword [0x185d568], eax
test eax, eax
je 0x180fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x185d564], eax
mov eax, dword [0x185d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x180fc78
cmp dword [0x185d568], ecx
je 0x180fc78
push eax
call esi
push dword [0x185d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x180fc78
test ebx, ebx
je 0x180fc78
call edi
test eax, eax
je 0x180fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x180fc6f
test byte [ebp - 8], 1
jne 0x180fc78
or dword [ebp + 0x10], 0x200000
jmp 0x180fcab
mov eax, dword [0x185d55c]
cmp eax, dword [ebp - 0x18]
je 0x180fcab
push eax
call esi
test eax, eax
je 0x180fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x180fcab
mov eax, dword [0x185d560]
cmp eax, dword [ebp - 0x18]
je 0x180fcab
push eax
call esi
test eax, eax
je 0x180fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x185d558]
call esi
test eax, eax
je 0x180fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x180fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.018013cb
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10002870
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 0
call esi
add esp, 4
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
push eax
call edi
add esp, 4
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
mov ebp, 0x8000
push ebp
push eax
call ebx
add esp, 8
push 1
call esi
add esp, 4
push eax
call edi
add esp, 4
push ebp
push eax
call ebx
add esp, 8
push 2
call esi
add esp, 4
push eax
call edi
add esp, 4
push ebp
push eax
call ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.10006991

Function at 0x100028d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x10010158]
test eax, eax
je 0x100028db
call eax
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, eax
mov edx, 0x1000e450
call fcn.100028f9
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit

Function at 0x100028f9
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
mov edi, edx
mov esi, ecx
test edx, edx
je 0x1000290e
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
jmp 0x10002910
xor eax, eax
push esi
push eax
push 1
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
pop esi
pop edi
ret
Function at 0x1000412b
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x100106dc]
mov ecx, dword fs:[0x2c]
mov edx, dword [esp + 4]
mov eax, dword [ecx + eax*4]
lea ecx, [eax + 4]
jmp fcn.10003745

Function at 0x10004149
Capabilities:
Terminate process

Disassembly:
mov eax, ecx
cmp edx, 0x10
jle 0x10004156
movzx ecx, word [eax - 2]
sub eax, ecx
mov ecx, dword [0x100106dc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov edx, eax
lea ecx, [ecx + 4]
jmp fcn.10003745

Function at 0x1000482b
Capabilities:
Terminate process

Disassembly:
push edi
push esi
mov eax, dword [ecx]
mov esi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10004855
mov ecx, esi
call edx
mov eax, dword [0x100106dc]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 0x1598], 0
jne 0x10004872
mov eax, dword [esi]
movsx edi, word [eax + 8]
mov ecx, 8
mov edx, edi
call fcn.1000324f
sub esi, eax
mov edx, edi
mov ecx, esi
pop esi
pop edi
jmp fcn.10004149
pop esi
pop edi
ret

Function at 0x10004fe9
Capabilities:
Terminate process

Disassembly:
push edi
push esi
mov esi, dword [ecx]
mov dword [ecx], edx
test esi, esi
je 0x1000503a
mov ecx, dword [esi - 8]
lea eax, [esi - 8]
cmp ecx, 0x10
jae 0x10005014
push dword [esi]
push eax
push 1
call fcn.100047fc
add esp, 0xc
mov ecx, esi
pop esi
pop edi
jmp fcn.1000482b
lea edx, [ecx - 0x10]
mov edi, edx
xor edi, ecx
add ecx, 0x7ffffff0
test edi, edi
cmovns ecx, edi
test ecx, ecx
js 0x1000503d
mov dword [esi - 8], edx
push dword [esi]
push eax
push 0
call fcn.100047fc
add esp, 0xc
pop esi
pop edi
ret
pop esi
pop edi
jmp fcn.1000328d

Function at 0x10005c1e
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
mov esi, edx
mov edi, ecx
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ebx, eax
push eax
push esi
push 1
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
pop esi
pop edi
pop ebx
ret
push esi
cmp dword [0x10010160], 0
je 0x10005c77
call fcn.10005bc7
mov esi, edx
push edx
push eax
call dword [0x10010160]
test esi, esi
je 0x10005c5d
test byte [esi + 3], 0x40
jne 0x10005c5d
mov eax, dword [0x100106dc]
mov ecx, dword fs:[0x2c]
mov edx, esi
mov eax, dword [ecx + eax*4]
lea ecx, [eax + 4]
call fcn.10003745
mov eax, dword [0x100106dc]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 0x1598], 0
jne 0x10005c7d
pop esi
ret
pop esi
jmp 0x10005bf0
mov eax, dword [0x100106dc]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea ecx, [eax + 0x159c]
mov byte [eax + 0x1598], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
push 0
call fcn.10004f69
jmp 0x10005c75
Function at 0x1000605a
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ebp, 2
push ebp
call edi
add esp, 4
mov esi, eax
xor eax, eax
inc eax
push esi
push 0x10
push eax
push str.could_not_load:
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
push ebp
call edi
add esp, 4
add ebx, 4
cmp dword [esp + 0x14], 0
mov edi, 0x1000e690
mov esi, eax
cmovne edi, ebx
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push esi
push eax
mov eax, 1
push eax
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
jne 0x10006102
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
push eax
push 0x30
push 1
push str._n_bad_format__library_may_be_wrong_architecture_
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, eax
mov edx, 0x1000e566
call fcn.100028f9
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit

Function at 0x10006120
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edi, 2
mov esi, ecx
push edi
call ebx
add esp, 4
mov ecx, eax
mov edx, str.could_not_import:
call fcn.100028f9
push edi
call ebx
add esp, 4
mov ecx, eax
mov edx, esi
call fcn.100028f9
push edi
call ebx
add esp, 4
mov ecx, eax
mov edx, 0x1000e566
call fcn.100028f9
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit

Function at 0x10006554
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ebp, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ebx, 2
push ebx
call ebp
add esp, 4
add edi, 4
cmp dword [esp + 0x14], 0
mov edx, 0x1000e690
mov ecx, eax
cmovne edx, edi
call fcn.100028f9
push ebx
call ebp
add esp, 4
mov ecx, eax
mov edx, 0x1000e566
call fcn.100028f9
mov ecx, esi
call fcn.100065a1

Function at 0x100069dc
Capabilities:
Terminate process

Disassembly:
call fcn.10005cfd
push 0x10010180
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10005d3c
call fcn.100013b0
add esp, 4
jmp fcn.10006991
Function at 0x1000cc60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x1000cc71
jmp dword [eax*4 + 0x1000ed7c]
cmp dword [0x10010704], 0
je 0x1000ccdb
push 0x10010708
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x10010720]
test edi, edi
je 0x1000ccd0
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[eax + eax]
nop dword [eax]
push dword [edi]
call ebx
mov esi, eax
call ebp
test esi, esi
je 0x1000ccc9
test eax, eax
jne 0x1000ccc9
mov eax, dword [edi + 4]
push esi
call eax
add esp, 4
mov edi, dword [edi + 8]
test edi, edi
jne 0x1000ccb0
push 0x10010708
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x10010704]
cmp eax, 1
jne case.default.0x1000cc71
mov eax, dword [0x10010720]
test eax, eax
je 0x1000cd12
nop word cs:[eax + eax]
nop dword [eax]
mov esi, dword [eax + 8]
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
test esi, esi
mov eax, esi
jne 0x1000cd00
mov dword [0x10010720], 0
mov dword [0x10010704], 0
push 0x10010708
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp case.default.0x1000cc71
cmp dword [0x10010704], 0
jne 0x1000cd4a
push 0x10010708
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x10010704], 1
jmp case.default.0x1000cc71
call fcn.1000d1f0
jmp case.default.0x1000cc71
cmp dword [0x10010704], 0
je case.default.0x1000cc71
push 0x10010708
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x10010720]
test edi, edi
je 0x1000cdb0
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
push dword [edi]
call ebx
mov esi, eax
call ebp
test esi, esi
je 0x1000cda9
test eax, eax
jne 0x1000cda9
mov eax, dword [edi + 4]
push esi
call eax
add esp, 4
mov edi, dword [edi + 8]
test edi, edi
jne 0x1000cd90
push 0x10010708
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000cee0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [sym.SWTeTJw.dll_Ordinal_0]
xor eax, eax
movzx ecx, word [esi]
cmp ecx, 0x5a4d
jne 0x1000cf48
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x1000cf48
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x1000cf48
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x1000cf48
mov edx, dword [esp + 0xc]
movzx eax, word [esi + 0x14]
sub edx, dword [sym.SWTeTJw.dll_Ordinal_0]
lea eax, [esi + eax + 0x18]
xor esi, esi
nop dword [eax + eax]
mov edi, dword [eax + 0xc]
cmp edi, edx
ja 0x1000cf3e
add edi, dword [eax + 8]
cmp edi, edx
ja 0x1000cf48
inc esi
add eax, 0x28
cmp esi, ecx
jb 0x1000cf30
xor eax, eax
pop esi
pop edi
ret