joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c0e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 8
mov eax, dword [0x4e5900]
test eax, eax
je 0x42c160
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x42c180
mov dword [eax + 0x18], 0x4d20f0
mov ebx, 0x4d20f0
call sym._TlsAlloc_0
mov dword [ebx], eax
mov eax, dword [0x4e5900]
test eax, eax
je 0x42c138
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x42c158
mov dword [eax + 0x18], 0x4d20f0
mov eax, 0x4d20f0
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 [0x4e5900]
mov edx, dword [edx + 0x18]
test edx, edx
je 0x42c11b
test eax, eax
jne 0x42c158
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x42c127
call sym.___shmem3_winpthreads_tdm_init_local_region
mov ebx, dword [eax + 0x18]
mov eax, dword [0x4e5900]
test ebx, ebx
je 0x42c0f8
test eax, eax
jne 0x42c180
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov ebx, dword [eax + 0x18]
jmp 0x42c104

Function at 0x42c190
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 0x42c26a
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x42c23d
cmp eax, 0x6a
je 0x42c25a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x42c238
cmp eax, 0x6a
je 0x42c25a
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 0x42c250
Function at 0x42f470
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 0x42f492
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
je 0x42f637
mov eax, dword [0x4e5900]
test eax, eax
je 0x42f518
mov ebx, dword [eax + 0x18]
test ebx, ebx
jne 0x42f538
mov dword [eax + 0x18], 0x4d20f0
mov eax, 0x4d20f0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
test eax, eax
je 0x42f503
mov edx, dword [ebx + 0x14]
mov eax, dword [eax + 0x18]
test edx, edx
je 0x42f540
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x42f4f2
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x42f5e8
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 [0x4e5900]
test ecx, ecx
je 0x42f4b0
test eax, eax
jne 0x42f538
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x42f4bc
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x42f555
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 0x42f5d8
mov eax, dword [0x4e5900]
test eax, eax
je 0x42f5b0
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x42f5d0
mov dword [eax + 0x18], 0x4d20f0
mov eax, 0x4d20f0
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 [0x4e5900]
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x42f579
test eax, eax
jne 0x42f5d0
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x42f585
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x42f569
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 0x42f614
mov eax, ebx
call sym._push_pthread_mem.part.0
mov eax, dword [0x4e5900]
test eax, eax
jne 0x42f572
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
test eax, eax
mov eax, dword [0x4e5900]
jne 0x42f5c3
jmp 0x42f579
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
lea esi, [esi]
Function at 0x431290
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x4312a8
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 0x4312f8
call sym._IsDebuggerPresent_0
test eax, eax
je 0x43129f
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 0x4312e7

Function at 0x431330
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x4e5960
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 0x4313f8
mov edx, dword [0x4e5900]
mov eax, dword [edx + 4]
test eax, eax
je 0x4313c0
cmp edx, 0x4e5900
jne 0x4313a5
mov dword [0x4e5900], eax
cmp eax, 0x4e5900
je 0x4313ac
lea esi, [esi]
test eax, eax
je 0x4313d4
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x4e5900
jne 0x431398
mov eax, dword [0x4e5904]
mov dword [edx + 4], eax
test eax, eax
je 0x4313d4
mov edx, eax
jmp 0x4313a2
mov dword [esp], 0x4e59a0
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x431414
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 0x4313d4
Function at 0x431430
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 + 0x4e5961], al
mov byte [edx + edx + 0x4e5960], cl
add edx, 1
cmp edx, 4
jne 0x431442
xor eax, eax
mov edx, 0x5f
jmp 0x43147f
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4e5968], dl
add eax, 1
cmp eax, 0x1a
jne 0x431478
xor eax, eax
mov edx, 0x5f
jmp 0x4314a7
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4e59a0], dl
add eax, 1
cmp eax, 0x19
jne 0x4314a0
mov dword [esp + 8], 0x4e5960
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x4e59b9], 0x2d
mov dword [0x4e59ba], 0x61616161
mov dword [0x4e59be], 0x61616161
mov dword [0x4e59c2], 0x61616161
mov dword [0x4e59c6], 0x61616161
mov dword [0x4e59ca], 0x61616161
mov dword [0x4e59ce], 0x61616161
mov dword [0x4e59d2], 0x61616161
mov dword [0x4e59d6], 0x61616161
mov byte [0x4e59da], 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 0x43168a
mov dword [esp], 0x4e59a0
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x4315e0
mov edx, 0x4e5900
mov eax, 0x20
nop
bt edx, eax
jae 0x431580
mov ecx, eax
neg ecx
mov byte [ecx + 0x4e59da], 0x41
sub eax, 1
jne 0x431570
mov dword [esp], 0x4e59a0
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x431679
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
mov dword [0x4e5900], 0x4e5900
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 [0x4e5900]
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], 0x4e59a0
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x4316a9
lea esi, [esi]
cmp byte [eax + 0x4e59ba], 0x41
jne 0x43162b
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x431618
mov eax, esi
mov dword [0x4e5900], eax
jmp 0x43164c
cmp edx, 0x4e5900
je 0x4315b3
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x431640
cmp edx, 0x4e5900
je 0x4315b3
mov dword [edx + 4], 0x4e5900
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
call sym.__onexit
jmp 0x4315b3
mov eax, str.failed_to_add_string_to_atom_table_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x4315ce
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 0x431635
Function at 0x43c270
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 0x43c344
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.00427820
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], 0x4d8f84
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 0x43c350
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 0x43c340
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 0x43c340
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x43c390
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 0x43c302
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x43c302
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x43c302
mov eax, esi
jmp 0x43c302
mov esp, ebx
jmp 0x43c344
Function at 0x4084e4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x4266d4], 0
mov ebp, esp
push edi
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov ebx, dword [ebp + 0x10]
jne 0x408525
xor edx, edx
mov eax, edx
mov esi, 8
mov edi, eax
and eax, 1
neg eax
shr edi, 1
and eax, 0xedb88320
xor eax, edi
dec esi
jne 0x408502
mov dword [edx*4 + 0x4266d0], eax
inc edx
cmp edx, 0x100
jne 0x4084fb
mov eax, dword [ebp + 8]
not eax
jmp 0x40853f
mov dl, byte [ecx]
dec ebx
inc ecx
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x4266d0]
test ebx, ebx
jne 0x40852c
pop ebx
not eax
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419e3c
mov ecx, edi
jns 0x419e6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x189f22f1
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7041134f
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x700e370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x700e37f
pop dword [ebp - 0x2c]
mov eax, 0x700e37f
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x4992c7ba
sub dword [ebp - 0x3c], 0xfb40826f
mov dword [ebp - 0x38], 0x9ecafeb3
sub dword [ebp - 0x38], 0x6c97b26e
mov dword [ebp - 0x34], 0xe804c0dc
add dword [ebp - 0x34], 0x64478352
mov dword [ebp - 0x30], 0xba802e96
add dword [ebp - 0x30], 0x457fd16a
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x938a37c8
sub dword [ebp - 0x3c], 0x1f17ce72
mov dword [ebp - 0x38], 0x49089c6e
add dword [ebp - 0x38], 0xf863c507
mov dword [ebp - 0x34], 0x88edfd4b
add dword [ebp - 0x34], 0xda816f21
mov dword [ebp - 0x30], 0xf9975e84
add dword [ebp - 0x30], 0x668a17c
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x36d21
push 0
call eax
mov ecx, 0x37326927
sub ecx, 0x37323039
xor esi, esi
add esi, eax
mov edx, 0xeac80369
sub edx, 0xe3c62369
add edx, dword [ebp - 0x2c]
mov ebx, 0x7d8dbca1
add ebx, 0xe539b2c5
mov edi, dword [edx]
xor dword [ebp - 0x20], 0x1f38690f
xor edi, ebx
xor dword [ebp - 0x10], edi
mov dword [esi], edi
add esi, 0xfab0719
add esi, 0xf054f8eb
add edx, 4
loop 0x700e494
add eax, 0xb5fd0d84
add eax, 0x4a03c907
mov ebx, eax
add eax, 0x59f3cfe2
sub eax, 0x59f3cfdd
mov ecx, 0xa250377a
sub ecx, 0x9b50377a
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x10001430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10001493
push esi
mov esi, dword [ebp + 8]
push eax
push eax
push esi
push 0x10001300
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x200
push 0x100533c8
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x100533c8
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001467
sub eax, edx
test eax, eax
jle 0x10001493
mov cl, 0x5c
cmp byte [eax + 0x100533c8], cl
je 0x1000148c
dec eax
test eax, eax
jg 0x10001476
mov eax, 1
pop ebp
ret 0xc
mov byte [eax + 0x100533c9], 0
mov eax, 1
pop ebp
ret 0xc

Function at 0x10002f60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1004ecd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x108], esi
mov ebx, edx
cmp eax, dword [ebp + 0x10]
jne 0x10003027
mov eax, dword [0x10053378]
imul eax, eax, 0x74
mov edx, esi
add eax, 0x10051638
lea ebx, [ebx]
mov cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
test cl, cl
jne 0x10002fa0
mov edx, dword [0x10053378]
mov ecx, dword [edi]
imul edx, edx, 0x74
inc ecx
push ecx
add edx, 0x1005166a
push edx
mov eax, ebx
call fcn.100030b0
mov eax, dword [0x10053378]
mov ecx, dword [ebp + 8]
imul eax, eax, 0x74
push 0x7c
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_strchr]
mov dword [eax + 0x1005169c], ecx
mov esi, 1
call ebx
add esp, 8
test eax, eax
je 0x10002ffe
lea ecx, [ecx]
inc eax
push 0x7c
push eax
inc esi
call ebx
add esp, 8
test eax, eax
jne 0x10002ff0
mov edx, dword [0x10053378]
imul edx, edx, 0x74
mov dword [edx + 0x100516a0], esi
mov eax, dword [0x10053378]
mov esi, dword [ebp - 0x108]
imul eax, eax, 0x74
mov dword [eax + 0x100516a8], edi
inc dword [0x10053378]
cmp dword [0x100533bc], 0
je 0x10003047
call fcn.100046c0
mov ecx, dword [edi]
push eax
push ecx
push esi
push str.Items
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [edi], eax
cmp dword [0x100533b8], 0
je 0x10003083
call fcn.100046c0
mov ecx, dword [edi]
push ecx
lea edx, [ebp - 0x104]
push 0x10042cb4
push edx
mov ebx, eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push ebx
lea eax, [ebp - 0x104]
push eax
push esi
push str.Items
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [0x100533b4], 0
pop esi
pop ebx
je 0x10003094
mov dword [edi], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ea5b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f6a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1004ecd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x100058e2
cmp byte [ebx + 0x49], 0
je 0x100058e2
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x100058d6
lea esi, [ebp - 0x2c]
call fcn.100056f0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x100057c3
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x100057fb
dec eax
je 0x100057ff
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x100058dd
call fcn.10004b10
xor al, al
jmp 0x100058e4
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x1000580f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x1000583d
cmp edi, 0x10
jae 0x1000581e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x100058ce
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x100058da
test esi, esi
jne 0x100057b7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x100058ff
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x100058ff
cmp edi, esi
jae 0x100058b7
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.10005980
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x100057b7
mov ecx, eax
cmp edi, 0x10
jae 0x10005893
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x100058ae
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x100057b1
test esi, esi
jne 0x10005889
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x100058c6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x100057b1
lea esi, [ebp - 0x2c]
call fcn.10004b10
xor al, al
jmp 0x100058e4
lea esi, [ebp - 0x2c]
call fcn.10004b10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ea5b
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10008ccc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10008d25
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x10008d25
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x10008d25
xor eax, eax
inc eax
jmp 0x10008d27
xor eax, eax
leave
ret 0x10