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

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4f3890
call sym._EnterCriticalSection_4
mov ebx, dword [0x4f3888]
sub esp, 4
test ebx, ebx
je 0x43149b
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 0x431494
test esi, esi
je 0x431494
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x431470
mov dword [esp], 0x4f3890
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x431680
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 0x4316d0
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 0x4317a4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x43170e
cmp eax, 4
jne 0x431730
test esi, esi
je 0x431722
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x431714
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 0x43176f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x431761
cmp ecx, 0x40
je 0x431722
cmp ecx, 4
je 0x431722
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.00431680
lea esi, [esi]
Function at 0x431c40
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x431c58
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 0x431ca8
call sym._IsDebuggerPresent_0
test eax, eax
je 0x431c4f
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 0x431c97

Function at 0x431ce0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x4f3904
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 0x431da8
mov edx, dword [0x4f38c0]
mov eax, dword [edx + 4]
test eax, eax
je 0x431d70
cmp edx, 0x4f38c0
jne 0x431d55
mov dword [0x4f38c0], eax
cmp eax, 0x4f38c0
je 0x431d5c
lea esi, [esi]
test eax, eax
je 0x431d84
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x4f38c0
jne 0x431d48
mov eax, dword [0x4f38c4]
mov dword [edx + 4], eax
test eax, eax
je 0x431d84
mov edx, eax
jmp 0x431d52
mov dword [esp], 0x4f3940
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x431dc4
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, 0x4e3ea8
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 0x431d84
Function at 0x431de0
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 + 0x4f3905], al
mov byte [edx + edx + 0x4f3904], cl
add edx, 1
cmp edx, 4
jne 0x431df2
xor eax, eax
mov edx, 0x5f
jmp 0x431e2f
movzx edx, byte [eax + str.__eh_shmem3_gcc_tdm_]
mov byte [eax + 0x4f390c], dl
add eax, 1
cmp eax, 0x15
jne 0x431e28
xor eax, eax
mov edx, 0x5f
jmp 0x431e57
movzx edx, byte [eax + str.__eh_shmem3_gcc_tdm_]
mov byte [eax + 0x4f3940], dl
add eax, 1
cmp eax, 0x14
jne 0x431e50
mov dword [esp + 8], 0x4f3904
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x4f3954], 0x2d
mov dword [0x4f3955], 0x61616161
mov dword [0x4f3959], 0x61616161
mov dword [0x4f395d], 0x61616161
mov dword [0x4f3961], 0x61616161
mov dword [0x4f3965], 0x61616161
mov dword [0x4f3969], 0x61616161
mov dword [0x4f396d], 0x61616161
mov dword [0x4f3971], 0x61616161
mov byte [0x4f3975], 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 0x43203a
mov dword [esp], 0x4f3940
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x431f90
mov edx, 0x4f38c0
mov eax, 0x20
nop
bt edx, eax
jae 0x431f30
mov ecx, eax
neg ecx
mov byte [ecx + 0x4f3975], 0x41
sub eax, 1
jne 0x431f20
mov dword [esp], 0x4f3940
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x432029
mov dword [esp], dbg.__eh_shmem3_gcc_tdm_cleanup_local_region
mov dword [0x4f38c0], 0x4f38c0
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 [0x4f38c0]
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], 0x4f3940
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x432059
lea esi, [esi]
cmp byte [eax + 0x4f3955], 0x41
jne 0x431fdb
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x431fc8
mov eax, esi
mov dword [0x4f38c0], eax
jmp 0x431ffc
cmp edx, 0x4f38c0
je 0x431f63
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x431ff0
cmp edx, 0x4f38c0
je 0x431f63
mov dword [edx + 4], 0x4f38c0
mov dword [esp], dbg.__eh_shmem3_gcc_tdm_cleanup_local_region
call sym.__onexit
jmp 0x431f63
mov eax, 0x4e3f04
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x431f7e
mov eax, 0x4e3ee0
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, 0x4e3f28
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x431fe5
Function at 0x436270
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 8
mov eax, dword [0x4f39e0]
test eax, eax
je 0x4362f0
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x436310
mov dword [eax + 0x18], 0x4dd2d4
mov ebx, 0x4dd2d4
call sym._TlsAlloc_0
mov dword [ebx], eax
mov eax, dword [0x4f39e0]
test eax, eax
je 0x4362c8
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x4362e8
mov dword [eax + 0x18], 0x4dd2d4
mov eax, 0x4dd2d4
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 [0x4f39e0]
mov edx, dword [edx + 0x18]
test edx, edx
je 0x4362ab
test eax, eax
jne 0x4362e8
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x4362b7
call sym.___shmem3_winpthreads_tdm_init_local_region
mov ebx, dword [eax + 0x18]
mov eax, dword [0x4f39e0]
test ebx, ebx
je 0x436288
test eax, eax
jne 0x436310
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov ebx, dword [eax + 0x18]
jmp 0x436294

Function at 0x436320
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 0x4363fa
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x4363cd
cmp eax, 0x6a
je 0x4363ea
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x4363c8
cmp eax, 0x6a
je 0x4363ea
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 0x4363e0
Function at 0x439600
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 0x439622
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
je 0x4397c7
mov eax, dword [0x4f39e0]
test eax, eax
je 0x4396a8
mov ebx, dword [eax + 0x18]
test ebx, ebx
jne 0x4396c8
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 0x439693
mov edx, dword [ebx + 0x14]
mov eax, dword [eax + 0x18]
test edx, edx
je 0x4396d0
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x439682
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x439778
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 0x439640
test eax, eax
jne 0x4396c8
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x43964c
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4396e5
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 0x439768
mov eax, dword [0x4f39e0]
test eax, eax
je 0x439740
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x439760
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 0x439709
test eax, eax
jne 0x439760
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x439715
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x4396f9
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 0x4397a4
mov eax, ebx
call sym._push_pthread_mem.part.0
mov eax, dword [0x4f39e0]
test eax, eax
jne 0x439702
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
test eax, eax
mov eax, dword [0x4f39e0]
jne 0x439753
jmp 0x439709
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
lea esi, [esi]
Function at 0x43b420
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x43b438
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 0x43b488
call sym._IsDebuggerPresent_0
test eax, eax
je 0x43b42f
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 0x43b477

Function at 0x43b4c0
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 0x43b588
mov edx, dword [0x4f39e0]
mov eax, dword [edx + 4]
test eax, eax
je 0x43b550
cmp edx, 0x4f39e0
jne 0x43b535
mov dword [0x4f39e0], eax
cmp eax, 0x4f39e0
je 0x43b53c
lea esi, [esi]
test eax, eax
je 0x43b564
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x4f39e0
jne 0x43b528
mov eax, dword [0x4f39e4]
mov dword [edx + 4], eax
test eax, eax
je 0x43b564
mov edx, eax
jmp 0x43b532
mov dword [esp], 0x4f3a80
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x43b5a4
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 0x43b564
Function at 0x43b5c0
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 0x43b5d2
xor eax, eax
mov edx, 0x5f
jmp 0x43b60f
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4f3a48], dl
add eax, 1
cmp eax, 0x1a
jne 0x43b608
xor eax, eax
mov edx, 0x5f
jmp 0x43b637
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4f3a80], dl
add eax, 1
cmp eax, 0x19
jne 0x43b630
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 0x43b81a
mov dword [esp], 0x4f3a80
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x43b770
mov edx, 0x4f39e0
mov eax, 0x20
nop
bt edx, eax
jae 0x43b710
mov ecx, eax
neg ecx
mov byte [ecx + 0x4f3aba], 0x41
sub eax, 1
jne 0x43b700
mov dword [esp], 0x4f3a80
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x43b809
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 0x43b839
lea esi, [esi]
cmp byte [eax + 0x4f3a9a], 0x41
jne 0x43b7bb
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x43b7a8
mov eax, esi
mov dword [0x4f39e0], eax
jmp 0x43b7dc
cmp edx, 0x4f39e0
je 0x43b743
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x43b7d0
cmp edx, 0x4f39e0
je 0x43b743
mov dword [edx + 4], 0x4f39e0
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
call sym.__onexit
jmp 0x43b743
mov eax, str.failed_to_add_string_to_atom_table_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x43b75e
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 0x43b7c5
Function at 0x446460
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 0x446534
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.004319b0
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 0x446540
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 0x446530
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 0x446530
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x446580
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 0x4464f2
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x4464f2
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x4464f2
mov eax, esi
jmp 0x4464f2
mov esp, ebx
jmp 0x446534
Function at 0x40284b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40288a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40288a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40288a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40288a
cmp dword [ecx + 0x74], 0xe
jbe 0x40288a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4034b0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x40dac2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 0x10]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x14]
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x18]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x1c]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x20]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString_2
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x11
mov byte [esp + 0x30], 4
call ebp
push 0x10
mov dword [esi + 4], eax
call ebp
mov ecx, dword [esp + 0x34]
mov dword [esi], eax
mov eax, dword [esp + 0x38]
push eax
push ecx
mov ecx, esi
call fcn.00403960
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x403645
mov edi, dword [edi]
push 0
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 5
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x30], 6
mov dword [esi + 0xc], 0
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40359a
mov edi, dword [esi + 0xc]
lea eax, [esp + 0x38]
inc edi
push eax
lea ecx, [esp + 0x14]
mov dword [esi + 0xc], edi
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x403581
mov edi, dword [esi + 0xc]
lea ecx, [edi*4 + 4]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov byte [esp + 0x2c], 7
je 0x4035d4
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_2
lea ebp, [eax + 4]
push edi
push 4
push ebp
mov dword [eax], edi
call fcn.0040d0dc
jmp 0x4035d6
xor ebp, ebp
mov edx, dword [esp + 0x10]
xor edi, edi
push edi
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 6
mov dword [esi + 8], ebp
call dword [edx + 0x30]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x403627
cmp edi, dword [esi + 0xc]
jge 0x403627
mov edx, dword [esi + 8]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [edx + edi*4]
call fcn.0040ce50
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
inc edi
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x4035ff
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
call fcn.0040ce74
jmp 0x40364c
mov dword [esi + 8], 0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x403710
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x204
push ebx
push ebp
push esi
mov ebp, dword [esp + 0x220]
push edi
mov ebx, dword [esp + 0x220]
mov edi, ecx
mov edx, dword [esp + 0x21c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x10]
push eax
push 0x200
push ecx
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, ebp
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40377a
test cl, cl
je 0x403776
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40377a
add eax, 2
add esi, 2
test cl, cl
jne 0x403756
xor eax, eax
jmp 0x40377f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40379f
mov eax, dword [esp + 0x228]
test eax, eax
je 0x40379f
mov eax, dword [esp + 0x21c]
push ebp
push ebx
push eax
mov ecx, edi
call fcn.00403820
mov esi, dword [esp + 0x218]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040ce56
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 0x14

Function at 0x403880
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0
lea ecx, [esp + 0x110]
push 0
mov eax, dword [eax + 0x90]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea ecx, [esp + 0x10c]
lea edx, [esp + 4]
lea eax, [esi + 0x18]
push ecx
push edx
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 8]
push 0x4130e0
push edx
lea eax, [esi + 0x14]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 8]
push 0x103
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 8]
push 0x4130e0
push edx
lea eax, [esi + 0x1c]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 8]
push 0x103
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 8]
push 0x4130e0
push edx
add esi, 0x20
push str._s_s
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0x10
pop esi
add esp, 0x208
ret