joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439760
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x439782
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
je 0x439927
mov eax, dword [0x4f39e0]
test eax, eax
je 0x439808
mov ebx, dword [eax + 0x18]
test ebx, ebx
jne 0x439828
mov dword [eax + 0x18], 0x4dd2d4
mov eax, 0x4dd2d4
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4397f3
mov edx, dword [ebx + 0x14]
mov eax, dword [eax + 0x18]
test edx, edx
je 0x439830
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x4397e2
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x4398d8
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sym.__endthreadex
call sym.___shmem3_winpthreads_tdm_init_local_region
mov ecx, dword [eax + 0x18]
mov eax, dword [0x4f39e0]
test ecx, ecx
je 0x4397a0
test eax, eax
jne 0x439828
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x4397ac
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x439845
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebx + 0xb0]
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], 0
test eax, eax
je 0x4398c8
mov eax, dword [0x4f39e0]
test eax, eax
je 0x4398a0
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x4398c0
mov dword [eax + 0x18], 0x4dd2d4
mov eax, 0x4dd2d4
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sym.__endthreadex
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4f39e0]
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x439869
test eax, eax
jne 0x4398c0
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x439875
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x439859
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call sym._CloseHandle_4
mov ecx, dword [ebx + 0xb0]
mov dword [ebx + 0x14], 0
sub esp, 4
test ecx, ecx
jne 0x439904
mov eax, ebx
call sym._push_pthread_mem.part.0
mov eax, dword [0x4f39e0]
test eax, eax
jne 0x439862
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
test eax, eax
mov eax, dword [0x4f39e0]
jne 0x4398b3
jmp 0x439869
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
lea esi, [esi]
Function at 0x43b580
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x43b598
add esp, 0x38
pop ebx
ret
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1100
call sym._FormatMessageA_28
sub esp, 0x1c
test eax, eax
jne 0x43b5e8
call sym._IsDebuggerPresent_0
test eax, eax
je 0x43b58f
int3
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._OutputDebugStringA_4
sub esp, 4
mov dword [esp], ebx
call sym._OutputDebugStringA_4
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._LocalFree_4
sub esp, 4
jmp 0x43b5d7

Function at 0x43b620
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x4f3a40
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
jne 0x43b6e8
mov edx, dword [0x4f39e0]
mov eax, dword [edx + 4]
test eax, eax
je 0x43b6b0
cmp edx, 0x4f39e0
jne 0x43b695
mov dword [0x4f39e0], eax
cmp eax, 0x4f39e0
je 0x43b69c
lea esi, [esi]
test eax, eax
je 0x43b6c4
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x4f39e0
jne 0x43b688
mov eax, dword [0x4f39e4]
mov dword [edx + 4], eax
test eax, eax
je 0x43b6c4
mov edx, eax
jmp 0x43b692
mov dword [esp], 0x4f3a80
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x43b704
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
mov eax, str.failed_to_to_lock_cleanup_mutex_n
call sym.___shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
movzx eax, ax
mov dword [esp], eax
call sym._DeleteAtom_4
sub esp, 4
jmp 0x43b6c4
Function at 0x43b720
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call sym._GetCurrentProcessId_0
xor edx, edx
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + edx + 0x1c]
mov ecx, eax
and eax, 0xf
shr cl, 4
add eax, 0x61
add ecx, 0x41
mov byte [edx + edx + 0x4f3a41], al
mov byte [edx + edx + 0x4f3a40], cl
add edx, 1
cmp edx, 4
jne 0x43b732
xor eax, eax
mov edx, 0x5f
jmp 0x43b76f
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4f3a48], dl
add eax, 1
cmp eax, 0x1a
jne 0x43b768
xor eax, eax
mov edx, 0x5f
jmp 0x43b797
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4f3a80], dl
add eax, 1
cmp eax, 0x19
jne 0x43b790
mov dword [esp + 8], 0x4f3a40
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x4f3a99], 0x2d
mov dword [0x4f3a9a], 0x61616161
mov dword [0x4f3a9e], 0x61616161
mov dword [0x4f3aa2], 0x61616161
mov dword [0x4f3aa6], 0x61616161
mov dword [0x4f3aaa], 0x61616161
mov dword [0x4f3aae], 0x61616161
mov dword [0x4f3ab2], 0x61616161
mov dword [0x4f3ab6], 0x61616161
mov byte [0x4f3aba], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov esi, eax
test eax, eax
jne 0x43b97a
mov dword [esp], 0x4f3a80
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x43b8d0
mov edx, 0x4f39e0
mov eax, 0x20
nop
bt edx, eax
jae 0x43b870
mov ecx, eax
neg ecx
mov byte [ecx + 0x4f3aba], 0x41
sub eax, 1
jne 0x43b860
mov dword [esp], 0x4f3a80
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x43b969
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
mov dword [0x4f39e0], 0x4f39e0
call sym.__onexit
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
mov eax, dword [0x4f39e0]
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, ax
mov ebp, 0x20
mov edi, 1
mov dword [esp + 8], 0x3b
mov dword [esp + 4], 0x4f3a80
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x43b999
lea esi, [esi]
cmp byte [eax + 0x4f3a9a], 0x41
jne 0x43b91b
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x43b908
mov eax, esi
mov dword [0x4f39e0], eax
jmp 0x43b93c
cmp edx, 0x4f39e0
je 0x43b8a3
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x43b930
cmp edx, 0x4f39e0
je 0x43b8a3
mov dword [edx + 4], 0x4f39e0
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
call sym.__onexit
jmp 0x43b8a3
mov eax, str.failed_to_add_string_to_atom_table_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x43b8be
mov eax, str.failed_to_to_lock_creation_mutex_n
call sym.___shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, str.failed_to_get_string_from_atom_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x43b925
Function at 0x4464f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x4465c4
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.00431b10
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x4e47e4
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x4465d0
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x4465c0
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x4465c0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x446610
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x446582
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x446582
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x446582
mov eax, esi
jmp 0x446582
mov esp, ebx
jmp 0x4465c4
Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405934
Capabilities:
Parse pe header

Disassembly:
jmp 0x41a083
push 0
call dword [0xb99054]
test eax, eax
je 0x41a0c2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a0c2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a0c2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41a0c2
cmp dword [ecx + 0x74], 0xe
jbe 0x41a0c2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
lea eax, [ebp - 0x400]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x401047
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp dword [0x404c58], 0
je 0x40108b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x40153d
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
test esi, esi
je 0x4015c1
cmp byte [esi], 0
je 0x4015c1
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov edi, eax
mov eax, dword [ebp + 0xc]
cmp edi, 0xffffffff
jne 0x4015b7
test eax, eax
je 0x40156c
and dword [eax], 0
push esi
push str.Looking_up_hostname___s__n
call fcn.00401047
pop ecx
pop ecx
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x401593
push esi
push str.Unable_to_resolve_hostname___s__n
call fcn.00401000
pop ecx
pop ecx
jmp 0x4015c1
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00401a37
pop ecx
pop ecx
push eax
push esi
push str.__s__resolved_to__s_n
call fcn.00401047
add esp, 0xc
jmp 0x4015c1
test eax, eax
je 0x4015c1
mov dword [eax], 1
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4015c7
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov ecx, dword [0x407ca0]
mov eax, 0x404c90
test ecx, ecx
jbe 0x4015e3
or dword [eax + 4], 0xffffffff
or dword [eax], 0xffffffff
add eax, 0x18
dec ecx
jne 0x4015d6
mov ax, word [0x404c88]
push esi
mov esi, dword [sym.imp.WSOCK32.dll_htons]
push eax
mov word [0x407c90], 2
call esi
mov word [0x407c92], ax
mov eax, dword [0x404c7c]
mov dword [0x407c94], eax
mov ax, word [0x407cb8]
push eax
mov word [0x404c68], 2
call esi
mov word [0x404c6a], ax
mov eax, dword [0x404c64]
mov dword [0x404c6c], eax
mov ax, word [0x407ca4]
push eax
mov word [0x407ca8], 2
call esi
cmp dword [0x404c80], 0
mov word [0x407caa], ax
mov eax, dword [0x404c7c]
pop esi
mov dword [0x407cac], eax
je 0x40165f
jmp 0x401761
jmp fcn.00401664
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push 1
pop ebp
mov dword [esp + 0x10], ebp
call fcn.0040196d
mov edi, eax
test edi, edi
jne 0x40178a
push str.Unable_to_create_new_pipe._Maximum_number_of_connections_is_in_use_n
call fcn.00401000
pop ecx
jmp 0x401849
mov ebx, dword [sym.imp.WSOCK32.dll_socket]
push 0
push dword [0x404c78]
push 2
call ebx
mov esi, eax
cmp esi, 0xffffffff
mov dword [edi], esi
jne 0x4017ac
push str.Unable_to_create_UDP_input_socket_n
jmp 0x40180c
push 0x10
push 0x407c90
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x4017c7
push dword [0x404c88]
jmp 0x401836
lea eax, [esp + 0x10]
push 4
push eax
push 4
push pe_overlay
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
push 0xbd1
push dword [0x404c60]
push esi
call ebp
push 0
push dword [0x404c78]
push 2
call ebx
mov esi, eax
cmp esi, 0xffffffff
mov dword [edi + 4], esi
jne 0x40181d
push str.Unable_to_create_UDP_output_socket_n
call fcn.00401000
push edi
call fcn.004018b5
pop ecx
jmp 0x401784
push 0x10
push 0x407ca8
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x40184d
push dword [0x407ca4]
push str.Unable_to_bind_to_UDP_port__d_n
call fcn.00401000
push edi
call fcn.004018b5
add esp, 0xc
xor eax, eax
jmp 0x401886
push 1
push 0xbd1
push dword [0x404c60]
push esi
call ebp
push dword [0x404c88]
lea eax, [esp + 0x18]
push eax
push dword [0x404c7c]
call fcn.00401a37
pop ecx
pop ecx
push eax
push str.Listening_for_UDP_data_on__s_port__d_n
call fcn.00401047
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4021d9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4030f8
push 0x402310
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x407ccc], 0xffffffff
or dword [0x407cd0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x407cc8]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x407cc4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x407cd4], eax
call fcn.0040230b
cmp dword [0x404c38], 0
jne 0x40225c
push 0x402308
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004022f6
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x407cc0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x407cbc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0040108d
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x4011e0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [str._ISMSIDEL.INI]
sub esp, 0xc00
lea edx, [esp]
push ebx
mov ebx, ecx
push edi
push eax
mov ecx, dword [ebx + 4]
push ecx
push edx
call fcn.00406800
lea eax, [esp + 8]
push eax
call fcn.00406980
test eax, eax
jne 0x40121a
pop edi
mov eax, 1
pop ebx
add esp, 0xc00
ret
cmp dword [ebx + 0xc], 0x1f4
jb 0x401231
pop edi
mov eax, 1
pop ebx
add esp, 0xc00
ret
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x408]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x408]
push ecx
push edx
mov ecx, ebx
call fcn.00401570
test eax, eax
jne 0x401282
lea eax, [esp + 8]
push eax
call fcn.00406a30
test eax, eax
je 0x401282
mov ecx, dword [ebx + 4]
push ecx
call fcn.004069e0
test eax, eax
je 0x401282
pop edi
mov eax, 1
pop ebx
add esp, 0xc00
ret
mov al, byte [esp + 0x408]
push esi
test al, al
lea esi, [esp + 0x40c]
je 0x4012f7
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [str.NO_KEY_VALUE]
lea edx, [esp + 0x10]
push edx
mov edx, dword [str.Files]
lea eax, [esp + 0x814]
push 0x400
push eax
push ecx
push esi
push edx
call ebp
lea eax, [esp + 0x810]
push eax
call fcn.00406a30
test eax, eax
je 0x4012e7
push 0
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, ebx
call fcn.004015b0
jmp 0x4012ea
inc dword [ebx + 0xc]
push esi
call edi
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4012a2
pop ebp
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0xc00
ret

Function at 0x401570
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [str.Files]
push esi
mov esi, dword [esp + 0xc]
push eax
push 0x400
push esi
push 0x413da0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
neg eax
sbb eax, eax
pop esi
neg eax
ret 8
Function at 0x4068e0
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
push edi
mov dword [esp + 0x14], 1
call ebx
add eax, 2
push eax
call fcn.004075d4
add esp, 4
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x411314
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov edi, esi
call ebx
mov ebx, eax
xor ebp, ebp
test ebx, ebx
jbe 0x40695e
cmp byte [edi], 0x5c
jne 0x40694e
push 0
push esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40694b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406956
mov byte [edi], 0x5c
inc edi
inc ebp
cmp ebp, ebx
jb 0x406929
jmp 0x40695e
mov dword [esp + 0x10], 0
push esi
call fcn.004075c9
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x406980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40699c
test al, 0x10
jne 0x40699c
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x4069b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4069cc
test al, 0x10
je 0x4069cc
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x4069e0
Capabilities:
Delete directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
push edi
call fcn.004069b0
test eax, eax
je 0x406a1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x406a10
mov esi, 1
push 0
call ebx
pop ebx
mov eax, esi
pop edi
pop esi
ret 4
mov eax, esi
pop edi
pop esi
ret 4
Function at 0x406ba0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x474
xor eax, eax
push edi
mov dword [esp + 8], eax
mov ecx, 0x11
mov dword [esp + 0xc], eax
lea edi, [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x480]
mov dword [esp + 0x18], 0x44
test eax, eax
mov dword [esp + 0x44], 1
je 0x406bf3
mov word [esp + 0x48], 1
mov ecx, dword [esp + 0x47c]
lea edx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
lea edx, [esp + 0x94]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406cae
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push 0
push eax
push 1
call esi
test eax, eax
je 0x406c7a
cmp eax, 1
jne 0x406c7a
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
push 0
push ecx
call edi
mov eax, dword [esp + 0x64]
cmp eax, 0x11
je 0x406c7a
cmp eax, 0x10
je 0x406c7a
cmp eax, 0x12
jne 0x406c3d
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edx
mov dword [0x414870], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, dword [esp]
add esp, 0x474
ret 8
mov eax, 0xcccccccc
pop edi
add esp, 0x474
ret 8

Function at 0x406cc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x454
xor eax, eax
push edi
mov dword [esp + 4], eax
mov ecx, 0x11
mov dword [esp + 8], eax
lea edi, [esp + 0x14]
mov dword [esp + 0xc], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov word [esp + 0x44], ax
mov eax, dword [esp + 0x460]
mov dword [esp + 0x14], 0x44
test eax, eax
mov dword [esp + 0x40], 1
pop edi
je 0x406d0c
mov word [esp + 0x40], 1
mov ecx, dword [esp + 0x458]
lea edx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push 0x20
push 1
push 0
lea edx, [esp + 0x70]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x454
ret 8