joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a420
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40a480
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40a576
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x40a4f0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x40a4c5
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x40a4d5
cmp byte [esp + 0x1e], 0
je 0x40a4d5
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x40a4d5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040a420
nop

Function at 0x40a810
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x414a94
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x414aac]
sub esp, 4
test ebx, ebx
je 0x40a85b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call fcn.0040bc3c
test eax, eax
jne 0x40a854
test esi, esi
je 0x40a854
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40a830
mov dword [esp], 0x414a94
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x40ab2c
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov ebx, eax
mov eax, dword [0x414abc]
test eax, eax
je 0x40ab64
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x40ab58
add esp, 0x18
pop ebx
ret
add esp, 0x18
pop ebx
jmp fcn.0040bc3c
call fcn.0040ab08
mov dword [0x414abc], eax
jmp 0x40ab3b

Function at 0x40ab94
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [0x414ab8]
test ebx, ebx
je 0x40ac04
mov esi, dword [0x414abc]
test esi, esi
je 0x40abf4
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40abdc
mov dword [esi], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040bd00
test eax, eax
sete al
movzx eax, al
mov dword [ebx], eax
add esp, 0x14
pop ebx
pop esi
ret
call fcn.0040bc3c
test eax, eax
sete al
movzx eax, al
mov dword [ebx], eax
add esp, 0x14
pop ebx
pop esi
ret
call fcn.0040ab08
mov esi, eax
mov dword [0x414abc], eax
jmp 0x40abad
call fcn.0040ab70
mov ebx, eax
mov dword [0x414ab8], eax
jmp 0x40aba3

Function at 0x40ad88
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov eax, dword [0x414ab8]
test eax, eax
je 0x40ae4c
mov edi, dword [eax]
test edi, edi
js 0x40ae40
mov eax, dword [0x414ab8]
test eax, eax
je 0x40ae5c
mov esi, dword [eax]
test esi, esi
je 0x40ae10
mov eax, dword [0x414abc]
test eax, eax
je 0x40ae8c
mov edi, dword [eax]
call fcn.0040bc3c
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.dll_TlsGetValue
push edx
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
push ecx
mov dword [ebx], edi
mov eax, dword [0x414abc]
test eax, eax
je 0x40ae34
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x40ae28
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x414ac0]
test eax, eax
je 0x40ae6c
mov edx, dword [eax]
mov dword [ebx], edx
mov dword [eax], ebx
add esp, 0x10
pop ebx
pop esi
pop edi
ret
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.0040bc3c
call fcn.0040ab08
mov dword [0x414abc], eax
jmp 0x40adf1
call fcn.0040ac38
jmp 0x40ada9
call fcn.0040ab70
mov dword [0x414ab8], eax
jmp 0x40ad9f
call fcn.0040ab70
mov dword [0x414ab8], eax
jmp 0x40adb6
call fcn.0040aae4
mov dword [0x414ac0], eax
mov edx, dword [eax]
mov dword [ebx], edx
test eax, eax
jne 0x40ae1d
call fcn.0040aae4
mov dword [0x414ac0], eax
mov dword [eax], ebx
jmp 0x40ae1f
call fcn.0040ab08
mov dword [0x414abc], eax
jmp 0x40adc9
Function at 0x40ae9c
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 8
mov eax, dword [esp + 0x10]
mov ebx, dword [eax]
mov eax, dword [0x414ab8]
test eax, eax
je 0x40aee8
mov eax, dword [eax]
test eax, eax
js 0x40aee0
mov eax, dword [0x414ab8]
test eax, eax
je 0x40aef4
mov eax, dword [eax]
test eax, eax
je 0x40aed0
mov eax, ebx
add esp, 8
pop ebx
jmp fcn.0040ab2c
mov eax, dword [0x414ac0]
test eax, eax
je 0x40af00
mov dword [eax], ebx
add esp, 8
pop ebx
ret
call fcn.0040ac38
jmp 0x40aeb5
call fcn.0040ab70
mov dword [0x414ab8], eax
jmp 0x40aeaf
call fcn.0040ab70
mov dword [0x414ab8], eax
jmp 0x40aebe
call fcn.0040aae4
mov dword [0x414ac0], eax
jmp 0x40aed9

Function at 0x40b08c
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov edi, dword [esp + 0x40]
mov eax, dword [0x414ab8]
test eax, eax
je 0x40b1bd
mov esi, dword [eax]
test esi, esi
js 0x40b1a4
mov eax, dword [0x414ab8]
test eax, eax
je 0x40b1ae
mov ebx, dword [eax]
test ebx, ebx
je 0x40b150
mov eax, dword [0x414abc]
test eax, eax
je 0x40b188
mov esi, dword [eax]
call fcn.0040bc3c
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_TlsGetValue
push edx
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_SetLastError
push ecx
mov dword [esp + 0x2c], esi
test esi, esi
je 0x40b141
mov ecx, esi
lea ebx, [esp + 0x2c]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40b133
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 1
mov dword [esp], 1
call eax
cmp eax, 6
je 0x40b160
cmp eax, 8
jne 0x40b198
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x40b0fc
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x414ac0]
test eax, eax
je 0x40b1cc
mov esi, dword [eax]
jmp 0x40b0ee
mov dword [edi + 0xc], 0
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x10], eax
mov dword [esp + 0x2c], esi
mov edx, ebx
mov eax, edi
call fcn.0040aa50
cmp eax, 7
jne 0x40b146
mov eax, ebx
call fcn.0040acf4
nop
call fcn.0040ab08
mov dword [0x414abc], eax
jmp 0x40b0d1
mov eax, 3
add esp, 0x30
pop ebx
pop esi
pop edi
ret
call fcn.0040ac38
jmp 0x40b0ad
call fcn.0040ab70
mov dword [0x414ab8], eax
jmp 0x40b0ba
call fcn.0040ab70
mov dword [0x414ab8], eax
jmp 0x40b0a3
call fcn.0040aae4
mov dword [0x414ac0], eax
mov esi, dword [eax]
jmp 0x40b0ee
Function at 0x40b2bc
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [0x414ab8]
test eax, eax
je 0x40b369
mov eax, dword [eax]
test eax, eax
js 0x40b35f
mov eax, dword [0x414ab8]
test eax, eax
je 0x40b378
mov eax, dword [eax]
test eax, eax
je 0x40b338
mov eax, dword [0x414abc]
test eax, eax
je 0x40b353
mov esi, dword [eax]
call fcn.0040bc3c
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_TlsGetValue
push esi
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.dll_SetLastError
push edi
mov dword [esp + 0x1c], esi
lea esi, [esp + 0x1c]
mov edx, esi
mov eax, ebx
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x40b345
call fcn.0040aa50
cmp eax, 7
je 0x40b34c
call sub.msvcrt.dll_abort
mov eax, dword [0x414ac0]
test eax, eax
je 0x40b387
mov esi, dword [eax]
jmp 0x40b316
call fcn.0040af0c
jmp 0x40b32e
mov eax, esi
call fcn.0040acf4
call fcn.0040ab08
mov dword [0x414abc], eax
jmp 0x40b2f9
call fcn.0040ac38
jmp 0x40b2dd
call fcn.0040ab70
mov dword [0x414ab8], eax
jmp 0x40b2d3
call fcn.0040ab70
mov dword [0x414ab8], eax
jmp 0x40b2ea
call fcn.0040aae4
mov dword [0x414ac0], eax
mov esi, dword [eax]
jmp 0x40b316

Function at 0x40b398
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40b3b8
mov dword [esp], ebx
call fcn.0040b08c
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x414ab8]
test eax, eax
je 0x40b448
mov edi, dword [eax]
test edi, edi
js 0x40b434
mov eax, dword [0x414ab8]
test eax, eax
je 0x40b458
mov esi, dword [eax]
test esi, esi
je 0x40b424
mov eax, dword [0x414abc]
test eax, eax
je 0x40b478
mov esi, dword [eax]
call fcn.0040bc3c
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_TlsGetValue
push edx
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.dll_SetLastError
push ecx
mov dword [esp + 0x1c], esi
lea edx, [esp + 0x1c]
mov eax, ebx
call fcn.0040af0c
cmp eax, 7
je 0x40b43c
call sub.msvcrt.dll_abort
lea esi, [esi]
mov eax, dword [0x414ac0]
test eax, eax
je 0x40b468
mov esi, dword [eax]
jmp 0x40b408
call fcn.0040ac38
jmp 0x40b3cb
lea eax, [esp + 0x1c]
call fcn.0040acf4
lea esi, [esi]
call fcn.0040ab70
mov dword [0x414ab8], eax
jmp 0x40b3c5
call fcn.0040ab70
mov dword [0x414ab8], eax
jmp 0x40b3d8
call fcn.0040aae4
mov dword [0x414ac0], eax
mov esi, dword [eax]
jmp 0x40b408
call fcn.0040ab08
mov dword [0x414abc], eax
jmp 0x40b3eb

Function at 0x40b618
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ebx
push eax
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40b640
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
pop eax
pop ebx
pop esi
jmp fcn.0040bd00
pop eax
pop ebx
pop esi
jmp fcn.0040bc3c
Function at 0x40b66c
Capabilities:
Get thread local storage value

Disassembly:
push esi
sub esp, 0x28
call fcn.0040bc3c
mov esi, eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
push ecx
mov dword [esp], esi
mov dword [esp + 0x1c], eax
call sub.KERNEL32.dll_SetLastError
push esi
mov eax, dword [esp + 0x1c]
add esp, 0x28
pop esi
ret

Function at 0x40b69c
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x40b6c0
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.0040bc3c

Function at 0x40b99c
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
xor eax, eax
mov ecx, 0xffffffff
mov edi, dword [ebp + 8]
repne scasb al, byte es:[edi]
mov edx, ecx
not edx
lea eax, [edx - 1]
mov dword [ebp - 0x20], eax
lea eax, [edx + 0xe]
mov dword [ebp - 0x24], eax
lea eax, [edx + 0x3f]
and eax, 0xfffffff0
call fcn.0040bb18
sub esp, eax
lea ebx, [esp + 0xc]
mov esi, str.gcc_shmem_tdm2
mov ecx, 0xe
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x1a], 0x2d
lea eax, [esp + 0x1b]
mov edi, eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + edx + 0xf]
mov cl, 0x20
mov al, 0x61
mov edi, esi
rep stosb byte es:[edi], al
lea edi, [edx + 0x2f]
mov byte [esp + edi + 0xc], 0
mov edx, dword [ebp - 0x24]
mov byte [esp + edx + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateMutexA
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], 0x2d
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
test eax, eax
je 0x40ba4c
int3
mov dword [esp], ebx
call sub.KERNEL32.dll_FindAtomA
push ecx
test ax, ax
jne 0x40bae4
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov esi, eax
mov edx, dword [ebp - 0x20]
add edx, 0x10
mov dword [ebp - 0x20], edx
mov eax, edx
add eax, ebx
mov ecx, 0x20
lea esi, [esi]
mov edx, esi
shr edx, cl
and edx, 1
je 0x40ba8c
mov byte [eax], 0x41
inc eax
dec ecx
jne 0x40ba80
mov dword [esp], ebx
call sub.KERNEL32.dll_AddAtomA
push edx
test ax, ax
je 0x40bae0
movzx eax, ax
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
mov ecx, edi
mov edx, ebx
call fcn.0040b928
mov ebx, eax
cmp eax, esi
je 0x40bafd
mov dword [esp], esi
call fcn.0040bb9c
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseMutex
push eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push edx
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
int3
movzx eax, ax
mov edx, dword [ebp - 0x20]
add edx, 0x10
mov dword [esp], edx
mov ecx, edi
mov edx, ebx
call fcn.0040b928
mov ebx, eax
jmp 0x40babe
xor eax, eax
mov edi, esi
mov ecx, dword [ebp + 0xc]
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40babe
mov dword [esp], esi
mov eax, dword [ebp + 0x10]
call eax
jmp 0x40babe
Function at 0x10001040
Capabilities:
Get common file path

Disassembly:
push 0x104
push 0x10005380
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10001055
ret
push esi
push edi
mov edi, str.openio.sys
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x10005380
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret

Function at 0x10001190
Capabilities:
Create service

Disassembly:
push esi
push edi
call fcn.10001210
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x100011ff
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
dec ecx
push 0
neg ecx
push 0
push 0
sbb ecx, ecx
push 0
and ecx, 0xfffffffe
push 0
push eax
add ecx, 3
push 1
push ecx
push 1
push 0xf01ff
push str.ZGIO
push str.ZGIO
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
test edi, edi
je 0x100011ff
push edi
call esi
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x100012d0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10001327
push 0xf01ff
push str.ZGIO
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x10001327
lea eax, [esp + 8]
push ebx
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov ebx, eax
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x1c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
Function at 0x10001e4e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10005088
cmp edx, dword [eax]
je 0x10001e70
add eax, 8
inc ecx
cmp eax, 0x10005118
jl 0x10001e61
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10005088]
jne 0x10001f9e
mov eax, dword [0x10005498]
cmp eax, 1
je 0x10001f78
test eax, eax
jne 0x10001ea1
cmp dword [0x1000549c], 1
je 0x10001f78
cmp edx, 0xfc
je 0x10001f9e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10001ed8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10002210
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10002300
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10001f1b
lea eax, [ebp - 0x1a4]
push eax
call fcn.10002300
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100043bc
push edi
call fcn.10003380
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10002210
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10002220
lea eax, [ebp - 0xa0]
push 0x1000439c
push eax
call fcn.10002220
push dword [esi + 0x1000508c]
lea eax, [ebp - 0xa0]
push eax
call fcn.10002220
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100032ee
add esp, 0x2c
pop edi
jmp 0x10001f9e
lea eax, [ebp + 8]
lea esi, [esi + 0x1000508c]
push 0
push eax
push dword [esi]
call fcn.10002300
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4033f7
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov esi, ecx
mov dword [esi], edi
mov dword [esi + 4], 1
je 0x403435
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403435
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
mov dword [esi + 4], edi
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x404f96
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x414cac], esi
push edi
jne 0x404fb6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x414ca8], esi
mov byte [0x414ca4], al
jne 0x40501c
mov ecx, dword [0x4162a8]
test ecx, ecx
je 0x404ffd
mov eax, dword [0x4162a4]
sub eax, 4
cmp eax, ecx
jmp 0x404ff6
mov eax, dword [eax]
test eax, eax
je 0x404fe8
call eax
mov eax, dword [0x4162a4]
sub eax, 4
cmp eax, dword [0x4162a8]
mov dword [0x4162a4], eax
jae 0x404fe0
mov eax, 0x414024
mov esi, 0x41402c
cmp eax, esi
mov edi, eax
jae 0x40501c
mov eax, dword [edi]
test eax, eax
je 0x405015
call eax
add edi, 4
cmp edi, esi
jb 0x40500d
mov eax, 0x414030
mov esi, 0x414038
cmp eax, esi
mov edi, eax
jae 0x40503b
mov eax, dword [edi]
test eax, eax
je 0x405034
call eax
add edi, 4
cmp edi, esi
jb 0x40502c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x405055
push dword [ebp + 8]
mov dword [0x414cac], 1
call fcn.00404ecb
pop ebp
ret

Function at 0x405097
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4140c0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4140d8]
je 0x4050cc
inc eax
cmp eax, 0x12
jb 0x4050bd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4140d8]
jne 0x4051f2
mov eax, dword [0x414c54]
cmp eax, 1
je 0x4051ca
cmp eax, edx
jne 0x4050fc
cmp dword [0x414094], 1
je 0x4051ca
cmp ecx, 0xfc
je 0x4051f2
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405132
lea eax, [ebp - 0x80]
push 0x401894
push eax
call fcn.004047a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004048a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405166
mov eax, edi
push eax
call fcn.004048a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x401890
push edi
call fcn.00406ea0
add esp, 0x10
push edi
call fcn.004048a0
push dword [esi + 0x4140dc]
mov ebx, eax
call fcn.004048a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00405d20
mov ebx, esp
push 0x401874
push ebx
call fcn.004047a0
push edi
push ebx
call fcn.004047b0
push 0x401870
push ebx
call fcn.004047b0
push dword [esi + 0x4140dc]
push ebx
call fcn.004047b0
push 0x12010
push 0x401848
push ebx
call fcn.00406da4
add esp, 0x2c
jmp 0x4051f2
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4140dc]
push dword [esi]
call fcn.004048a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00404d66
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x406da4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x414de0], ebx
push esi
push edi
jne 0x406e24
push 0x401b70
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x406e5f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b64
push edi
call esi
test eax, eax
mov dword [0x414de0], eax
je 0x406e5f
push 0x401b54
push edi
call esi
push 0x401b40
push edi
mov dword [0x414de4], eax
call esi
cmp dword [0x414c6c], 2
mov dword [0x414de8], eax
jne 0x406e24
push 0x401b24
push edi
call esi
test eax, eax
mov dword [0x414df0], eax
je 0x406e24
push 0x401b0c
push edi
call esi
mov dword [0x414dec], eax
mov eax, dword [0x414dec]
test eax, eax
je 0x406e69
call eax
test eax, eax
je 0x406e50
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x414df0]
test eax, eax
je 0x406e50
test byte [ebp - 8], 1
jne 0x406e69
cmp dword [0x414c78], 4
jb 0x406e63
or byte [ebp + 0x12], 0x20
jmp 0x406e88
xor eax, eax
jmp 0x406e98
or byte [ebp + 0x12], 4
jmp 0x406e88
mov eax, dword [0x414de4]
test eax, eax
je 0x406e88
call eax
mov ebx, eax
test ebx, ebx
je 0x406e88
mov eax, dword [0x414de8]
test eax, eax
je 0x406e88
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x414de0]
pop edi
pop esi
pop ebx
leave
ret