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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x40f108
mov edi, dword [0x415e04]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x40f017
test byte [0x4103e0], 8
jne 0x40f0b0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x4103f0], 8
jne 0x40f070
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40efb9
cmp esi, 3
jbe 0x40f028
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x40efca
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x412f60]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x40efb9
mov dword [esp], 0x4103f0
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x40ef90
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x40ef90
mov dword [esp], 0x4103e0
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x40ef7b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x40ef83
mov eax, 0xffffffff
jmp 0x40f017

Function at 0x40f1f0
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x40f260
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40f2eb
cmp ax, 9
je 0x40f2d8
cmp ax, 0x20
je 0x40f2d8
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x40f340
cmp ax, 0x22
je 0x40f350
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40f2eb
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x40f290
test edi, 1
jne 0x40f290
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40f2d8
cmp ax, 0x20
je 0x40f2d8
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40f368
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40f2ab
and dword [ebp - 0x54], 1
jne 0x40f2a4
xor edi, 1
jmp 0x40f2ab
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40f304
Function at 0x426660
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4dff2c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4dff24]
sub esp, 4
test ebx, ebx
je 0x4266ab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4266a4
test esi, esi
je 0x4266a4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x426680
mov dword [esp], 0x4dff2c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x426890
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4268e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4269b4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x42691e
cmp eax, 4
jne 0x426940
test esi, esi
je 0x426932
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x426924
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x42697f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x426971
cmp ecx, 0x40
je 0x426932
cmp ecx, 4
je 0x426932
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00426890
lea esi, [esi]
Function at 0x426e50
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x426e68
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 0x426eb8
call sym._IsDebuggerPresent_0
test eax, eax
je 0x426e5f
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 0x426ea7

Function at 0x426ef0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x4dffa4
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 0x426fb8
mov edx, dword [0x4dff60]
mov eax, dword [edx + 4]
test eax, eax
je 0x426f80
cmp edx, 0x4dff60
jne 0x426f65
mov dword [0x4dff60], eax
cmp eax, 0x4dff60
je 0x426f6c
lea esi, [esi]
test eax, eax
je 0x426f94
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x4dff60
jne 0x426f58
mov eax, dword [0x4dff64]
mov dword [edx + 4], eax
test eax, eax
je 0x426f94
mov edx, eax
jmp 0x426f62
mov dword [esp], 0x4dffe0
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x426fd4
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, 0x4d4604
call dbg.__eh_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 0x426f94
Function at 0x426ff0
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 + 0x4dffa5], al
mov byte [edx + edx + 0x4dffa4], cl
add edx, 1
cmp edx, 4
jne 0x427002
xor eax, eax
mov edx, 0x5f
jmp 0x42703f
movzx edx, byte [eax + str.__eh_shmem3_gcc_tdm_]
mov byte [eax + 0x4dffac], dl
add eax, 1
cmp eax, 0x15
jne 0x427038
xor eax, eax
mov edx, 0x5f
jmp 0x427067
movzx edx, byte [eax + str.__eh_shmem3_gcc_tdm_]
mov byte [eax + 0x4dffe0], dl
add eax, 1
cmp eax, 0x14
jne 0x427060
mov dword [esp + 8], 0x4dffa4
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x4dfff4], 0x2d
mov dword [0x4dfff5], 0x61616161
mov dword [0x4dfff9], 0x61616161
mov dword [0x4dfffd], 0x61616161
mov dword [0x4e0001], 0x61616161
mov dword [0x4e0005], 0x61616161
mov dword [0x4e0009], 0x61616161
mov dword [0x4e000d], 0x61616161
mov dword [0x4e0011], 0x61616161
mov byte [0x4e0015], 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 0x42724a
mov dword [esp], 0x4dffe0
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x4271a0
mov edx, 0x4dff60
mov eax, 0x20
nop
bt edx, eax
jae 0x427140
mov ecx, eax
neg ecx
mov byte [ecx + 0x4e0015], 0x41
sub eax, 1
jne 0x427130
mov dword [esp], 0x4dffe0
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x427239
mov dword [esp], dbg.__eh_shmem3_gcc_tdm_cleanup_local_region
mov dword [0x4dff60], 0x4dff60
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 [0x4dff60]
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], 0x36
mov dword [esp + 4], 0x4dffe0
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x427269
lea esi, [esi]
cmp byte [eax + 0x4dfff5], 0x41
jne 0x4271eb
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x4271d8
mov eax, esi
mov dword [0x4dff60], eax
jmp 0x42720c
cmp edx, 0x4dff60
je 0x427173
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x427200
cmp edx, 0x4dff60
je 0x427173
mov dword [edx + 4], 0x4dff60
mov dword [esp], dbg.__eh_shmem3_gcc_tdm_cleanup_local_region
call sym.__onexit
jmp 0x427173
mov eax, 0x4d4660
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x42718e
mov eax, 0x4d463c
call dbg.__eh_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, 0x4d4684
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x4271f5
Function at 0x42b480
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 8
mov eax, dword [0x4e0080]
test eax, eax
je 0x42b500
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x42b520
mov dword [eax + 0x18], 0x4ce0f0
mov ebx, 0x4ce0f0
call sym._TlsAlloc_0
mov dword [ebx], eax
mov eax, dword [0x4e0080]
test eax, eax
je 0x42b4d8
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x42b4f8
mov dword [eax + 0x18], 0x4ce0f0
mov eax, 0x4ce0f0
cmp dword [eax], 0xffffffff
je sym._pthread_tls_init.cold
add esp, 8
pop ebx
ret
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e0080]
mov edx, dword [edx + 0x18]
test edx, edx
je 0x42b4bb
test eax, eax
jne 0x42b4f8
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x42b4c7
call sym.___shmem3_winpthreads_tdm_init_local_region
mov ebx, dword [eax + 0x18]
mov eax, dword [0x4e0080]
test ebx, ebx
je 0x42b498
test eax, eax
jne 0x42b520
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov ebx, dword [eax + 0x18]
jmp 0x42b4a4

Function at 0x42b530
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call sym._GetCurrentThreadId_0
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.__ultoa
cmp byte [esp + 0x3c], 0
je 0x42b60a
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x42b5dd
cmp eax, 0x6a
je 0x42b5fa
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x42b5d8
cmp eax, 0x6a
je 0x42b5fa
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call sym._OutputDebugStringA_4
sub esp, 4
call sym._abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x42b5f0
Function at 0x42e810
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 0x42e832
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
je 0x42e9d7
mov eax, dword [0x4e0080]
test eax, eax
je 0x42e8b8
mov ebx, dword [eax + 0x18]
test ebx, ebx
jne 0x42e8d8
mov dword [eax + 0x18], 0x4ce0f0
mov eax, 0x4ce0f0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
test eax, eax
je 0x42e8a3
mov edx, dword [ebx + 0x14]
mov eax, dword [eax + 0x18]
test edx, edx
je 0x42e8e0
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x42e892
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x42e988
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 [0x4e0080]
test ecx, ecx
je 0x42e850
test eax, eax
jne 0x42e8d8
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x42e85c
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x42e8f5
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 0x42e978
mov eax, dword [0x4e0080]
test eax, eax
je 0x42e950
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x42e970
mov dword [eax + 0x18], 0x4ce0f0
mov eax, 0x4ce0f0
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 [0x4e0080]
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x42e919
test eax, eax
jne 0x42e970
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x42e925
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x42e909
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 0x42e9b4
mov eax, ebx
call sym._push_pthread_mem.part.0
mov eax, dword [0x4e0080]
test eax, eax
jne 0x42e912
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
test eax, eax
mov eax, dword [0x4e0080]
jne 0x42e963
jmp 0x42e919
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
lea esi, [esi]
Function at 0x430630
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x430648
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 0x430698
call sym._IsDebuggerPresent_0
test eax, eax
je 0x43063f
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 0x430687

Function at 0x4306d0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x4e00e0
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 0x430798
mov edx, dword [0x4e0080]
mov eax, dword [edx + 4]
test eax, eax
je 0x430760
cmp edx, 0x4e0080
jne 0x430745
mov dword [0x4e0080], eax
cmp eax, 0x4e0080
je 0x43074c
lea esi, [esi]
test eax, eax
je 0x430774
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x4e0080
jne 0x430738
mov eax, dword [0x4e0084]
mov dword [edx + 4], eax
test eax, eax
je 0x430774
mov edx, eax
jmp 0x430742
mov dword [esp], 0x4e0120
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x4307b4
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 0x430774
Function at 0x4307d0
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 + 0x4e00e1], al
mov byte [edx + edx + 0x4e00e0], cl
add edx, 1
cmp edx, 4
jne 0x4307e2
xor eax, eax
mov edx, 0x5f
jmp 0x43081f
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4e00e8], dl
add eax, 1
cmp eax, 0x1a
jne 0x430818
xor eax, eax
mov edx, 0x5f
jmp 0x430847
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4e0120], dl
add eax, 1
cmp eax, 0x19
jne 0x430840
mov dword [esp + 8], 0x4e00e0
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x4e0139], 0x2d
mov dword [0x4e013a], 0x61616161
mov dword [0x4e013e], 0x61616161
mov dword [0x4e0142], 0x61616161
mov dword [0x4e0146], 0x61616161
mov dword [0x4e014a], 0x61616161
mov dword [0x4e014e], 0x61616161
mov dword [0x4e0152], 0x61616161
mov dword [0x4e0156], 0x61616161
mov byte [0x4e015a], 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 0x430a2a
mov dword [esp], 0x4e0120
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x430980
mov edx, 0x4e0080
mov eax, 0x20
nop
bt edx, eax
jae 0x430920
mov ecx, eax
neg ecx
mov byte [ecx + 0x4e015a], 0x41
sub eax, 1
jne 0x430910
mov dword [esp], 0x4e0120
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x430a19
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
mov dword [0x4e0080], 0x4e0080
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 [0x4e0080]
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], 0x4e0120
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x430a49
lea esi, [esi]
cmp byte [eax + 0x4e013a], 0x41
jne 0x4309cb
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x4309b8
mov eax, esi
mov dword [0x4e0080], eax
jmp 0x4309ec
cmp edx, 0x4e0080
je 0x430953
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x4309e0
cmp edx, 0x4e0080
je 0x430953
mov dword [edx + 4], 0x4e0080
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
call sym.__onexit
jmp 0x430953
mov eax, str.failed_to_add_string_to_atom_table_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x43096e
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 0x4309d5
Function at 0x43b550
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 0x43b624
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.00426bc0
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], 0x4d4f44
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 0x43b630
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 0x43b620
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 0x43b620
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x43b670
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 0x43b5e2
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x43b5e2
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x43b5e2
mov eax, esi
jmp 0x43b5e2
mov esp, ebx
jmp 0x43b624

Function at 0x4cb450
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
jne 0x4cb48b
jmp 0x4cb4de
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4cb488
cmp al, 9
je 0x4cb488
cmp al, 0x22
jne 0x4cb4c7
lea esi, [esi]
mov edx, ebx
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 0x22
je 0x4cb4b5
test al, al
jne 0x4cb4a0
cmp al, 0x22
jne 0x4cb4d3
lea ebx, [edx + 2]
jmp 0x4cb4d3
cmp al, 9
je 0x4cb4d3
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x4cb4c0
jmp 0x4cb4d3
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4cb4d0
cmp al, 9
je 0x4cb4d0
mov esi, 0xa
test byte [ebp - 0x30], 1
je 0x4cb4ed
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret