joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f49b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
lea eax, [ebp - 0x44]
mov dword [ebp - 0xc], eax
mov dword [esp + 8], 0x30
mov dword [esp + 4], 0
lea eax, [ebp - 0x44]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x14], 0
jmp 0x42f52e
mov dword [ebp - 0x10], 0x10
jmp 0x42f4f9
mov eax, dword [ebp - 0x10]
sub eax, 1
mov edx, dword [ebp + 8]
movzx edx, byte [edx + eax]
lea ecx, [edx + 1]
mov edx, dword [ebp + 8]
mov byte [edx + eax], cl
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
test al, al
jne 0x42f501
sub dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
jg 0x42f4d4
jmp 0x42f502
nop
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
lea ecx, [edx + 0x20]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ecx
call dbg.mbedtls_aes_crypt_ecb
add dword [ebp - 0xc], 0x10
add dword [ebp - 0x14], 0x10
cmp dword [ebp - 0x14], 0x2f
jle 0x42f4cb
mov dword [ebp - 0x10], 0
jmp 0x42f563
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx eax, byte [eax]
xor ecx, eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x10]
add eax, edx
mov byte [eax], cl
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0x2f
jle 0x42f53d
mov eax, dword [ebp + 8]
lea edx, [eax + 0x20]
mov dword [esp + 8], 0x100
lea eax, [ebp - 0x44]
mov dword [esp + 4], eax
mov dword [esp], edx
call dbg.mbedtls_aes_setkey_enc
lea eax, [ebp - 0x44]
add eax, 0x20
mov edx, dword [ebp + 8]
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._memcpy
mov eax, 0
leave
ret

Function at 0x42f8e2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 0xc], 0xffffffc6
mov dword [esp + 4], 0x44fa20
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42f915
mov eax, 0xffffffc6
jmp 0x42f988
mov dword [esp + 8], 0x100
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.mbedtls_ctr_drbg_random
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42f979
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x100
mov dword [esp + 4], 1
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._fwrite
cmp eax, 0x100
je 0x42f970
mov dword [ebp - 0xc], 0xffffffc6
jmp 0x42f97a
mov dword [ebp - 0xc], 0
jmp 0x42f97a
nop
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x42f98a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 4], 0x44fa23
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42f9b9
mov eax, 0xffffffc6
jmp 0x42fa8c
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
cmp dword [ebp - 0x10], 0x100
jbe 0x42fa18
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffffc8
jmp 0x42fa8c
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._fread
cmp dword [ebp - 0x10], eax
je 0x42fa53
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffffc6
jmp 0x42fa8c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.mbedtls_ctr_drbg_update
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.mbedtls_ctr_drbg_write_seed_file
leave
ret
Function at 0x4308d5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0x44fa62
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x430901
mov eax, 0xffffcb80
jmp 0x430a48
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x430945
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffcb80
jmp 0x430a48
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x43099a
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add eax, 1
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._calloc
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x4309af
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffcc00
jmp 0x430a48
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fread
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
cmp eax, edx
je 0x430a03
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym.___mingw_aligned_free
nop
mov eax, 0xffffcb80
jmp 0x430a48
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 4], str._____BEGIN
mov dword [esp], eax
call sym._strstr
test eax, eax
je 0x430a43
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
lea edx, [eax + 1]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, 0
leave
ret
Function at 0x4315c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0xc], 0xffffffc1
mov dword [esp + 4], 0x44fa74
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4315f6
mov eax, 0xffffffc1
jmp 0x431661
mov dword [esp + 8], 0x40
lea eax, [ebp - 0x50]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.mbedtls_entropy_func
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x431652
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 1
lea eax, [ebp - 0x50]
mov dword [esp], eax
call sym._fwrite
cmp eax, 0x40
je 0x431649
mov dword [ebp - 0xc], 0xffffffc1
jmp 0x431653
mov dword [ebp - 0xc], 0
jmp 0x431653
nop
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x431663
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [esp + 4], 0x44fa77
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x431692
mov eax, 0xffffffc1
jmp 0x43175a
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fseek
cmp dword [ebp - 0xc], 0x400
jbe 0x4316e6
mov dword [ebp - 0xc], 0x400
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0x410]
mov dword [esp], eax
call sym._fread
cmp dword [ebp - 0xc], eax
je 0x431721
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffffc1
jmp 0x43175a
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x410]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.mbedtls_entropy_update_manual
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.mbedtls_entropy_write_seed_file
leave
ret
Function at 0x43175c
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0xc]
mov dword [esp], eax
call sym._CryptAcquireContextA_20
sub esp, 0x14
test eax, eax
jne 0x4317a4
mov eax, 0xffffffc4
jmp 0x431804
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._CryptGenRandom_12
sub esp, 0xc
test eax, eax
jne 0x4317e1
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CryptReleaseContext_8
sub esp, 8
mov eax, 0xffffffc4
jmp 0x431804
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CryptReleaseContext_8
sub esp, 8
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, 0
leave
ret

Function at 0x432f73
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 4], 0x44fb00
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x432f9f
mov eax, 0xfffffff9
jmp 0x433012
mov dword [esp + 8], 0x100
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.mbedtls_hmac_drbg_random
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x433003
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x100
mov dword [esp + 4], 1
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._fwrite
cmp eax, 0x100
je 0x432ffa
mov dword [ebp - 0xc], 0xfffffff9
jmp 0x433004
mov dword [ebp - 0xc], 0
jmp 0x433004
nop
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x433014
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 4], 0x44fb03
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x433043
mov eax, 0xfffffff9
jmp 0x433116
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
cmp dword [ebp - 0x10], 0x100
jbe 0x4330a2
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xfffffffb
jmp 0x433116
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._fread
cmp dword [ebp - 0x10], eax
je 0x4330dd
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xfffffff9
jmp 0x433116
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.mbedtls_hmac_drbg_update
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.mbedtls_hmac_drbg_write_seed_file
leave
ret

Function at 0x433d13
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sym._QueryPerformanceCounter_4
sub esp, 4
lea eax, [ebp - 0x20]
mov dword [esp], eax
call sym._QueryPerformanceFrequency_4
sub esp, 4
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [eax]
sub ecx, eax
sbb ebx, edx
mov eax, ecx
mov edx, ebx
imul ebx, edx, 0x3e8
imul ecx, eax, 0
add ecx, ebx
mov ebx, 0x3e8
mul ebx
add ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__divdi3
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], 0
je 0x433d99
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._QueryPerformanceCounter_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x433dca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [0x45e2a4], 0
mov eax, dword [ebp + 8]
imul eax, eax, 0x3e8
mov dword [0x45e2a8], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], dbg.TimerProc
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x433e35
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x438640
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x45e2d0
call sym._EnterCriticalSection_4
mov ebx, dword [0x45e2c8]
sub esp, 4
test ebx, ebx
je 0x43868b
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 0x438684
test esi, esi
je 0x438684
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x438660
mov dword [esp], 0x45e2d0
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x438870
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 0x4388c0
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 0x438994
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x4388fe
cmp eax, 4
jne 0x438920
test esi, esi
je 0x438912
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x438904
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 0x43895f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x438951
cmp ecx, 0x40
je 0x438912
cmp ecx, 4
je 0x438912
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.00438870
lea esi, [esi]
Function at 0x441380
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 0x441454
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.004414e0
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], 0x451448
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 0x441460
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 0x441450
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 0x441450
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4414a0
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 0x441412
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x441412
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x441412
mov eax, esi
jmp 0x441412
mov esp, ebx
jmp 0x441454

Function at 0x4419b0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x45ecec], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateSemaphoreW_16
sub esp, 0x10
mov dword [0x45ecf0], eax
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x441a18
mov dword [esp + 4], dbg.emutls_destroy
mov dword [esp], eax
mov dword [0x45ece8], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne sym._emutls_init.cold
add esp, 0x1c
ret
call sym._GetLastError_0
jmp 0x441a08
Function at 0x441a20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [0x45e2f0]
mov esi, dword [esp + 0x40]
test ebp, ebp
jne 0x441a48
mov eax, dword [esi + 8]
test eax, eax
je 0x441aa0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esi + 8]
test edi, edi
je 0x441ab0
mov ebx, dword [0x45ece8]
call sym._GetLastError_0
mov dword [esp], ebx
mov ebp, eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], ebp
call sym._SetLastError_4
sub esp, 4
test ebx, ebx
je 0x441b40
mov ebp, dword [ebx]
cmp ebp, edi
jb 0x441b90
lea ebx, [ebx + edi*4]
mov eax, dword [ebx]
test eax, eax
jne 0x441a3c
mov eax, esi
call sym._emutls_alloc
mov dword [ebx], eax
jmp 0x441a3c
mov eax, esi
call sym._emutls_alloc
mov dword [esi + 8], eax
jmp 0x441a3c
mov edi, dword [0x45e2f0]
test edi, edi
je 0x441c18
mov ebx, dword [0x4432ec]
test ebx, ebx
je 0x441be8
mov dword [esp], 0x45ecec
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x441c5b
mov edi, dword [esi + 8]
test edi, edi
je 0x441c23
mov eax, dword [0x45e2f0]
test eax, eax
je 0x441a4f
mov dword [esp], 0x45ecec
call sym._InterlockedDecrement_4
sub esp, 4
test eax, eax
js 0x441a4f
mov eax, dword [0x45ecf0]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._ReleaseSemaphore_12
sub esp, 0xc
jmp 0x441a4f
lea eax, [edi + 0x21]
mov dword [esp + 4], 4
lea ebp, [edi + 0x20]
mov dword [esp], eax
call sym._calloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov dword [eax], ebp
mov eax, dword [0x45ece8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
jne 0x441a86
call sym._GetLastError_0
jmp 0x441a86
lea edx, [ebp + ebp]
cmp edi, edx
jbe 0x441b9b
lea edx, [edi + 0x20]
lea eax, [edx*4 + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x1c], edx
call sym._realloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
sub edx, ebp
lea eax, [eax + ebp*4 + 4]
shl edx, 2
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memset
jmp 0x441b62
mov dword [esp], 0x4432f0
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x441c4f
call sym._emutls_init
mov dword [0x4432ec], 1
mov edx, dword [0x45e2f0]
test edx, edx
jne 0x441acc
mov edi, dword [esi + 8]
test edi, edi
jne 0x441a4f
mov eax, dword [0x45ece4]
lea edi, [eax + 1]
mov dword [0x45ece4], edi
mov dword [esi + 8], edi
jmp 0x441aee
mov dword [esp], 0
call sym._Sleep_4
sub esp, 4
mov ecx, dword [0x4432ec]
test ecx, ecx
je 0x441c40
jmp 0x441c0a
mov eax, dword [0x45ecf0]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
je 0x441ae3
mov dword [esp], 0x45ecec
call sym._InterlockedDecrement_4
sub esp, 4
jmp 0x441ae3
Function at 0x487b90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x82000]
push edi
jmp 0x487baa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x487bb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487ba0
mov eax, 1
add ebx, ebx
jne 0x487bc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x487bb8
jne 0x487bd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x487bb8
xor ecx, ecx
sub eax, 3
jb 0x487be8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x487c5a
mov ebp, eax
add ebx, ebx
jne 0x487bf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x487c00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x487c24
inc ecx
add ebx, ebx
jne 0x487c10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x487c05
jne 0x487c21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x487c05
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x487c44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x487c35
jmp 0x487ba6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x487c44
add edi, ecx
jmp 0x487ba6
pop esi
mov edi, esi
mov ecx, 0x26f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x487c62
cmp byte [edi], 0
jne 0x487c62
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 0x487c67
lea edi, [esi + 0x85000]
mov eax, dword [edi]
or eax, eax
je 0x487cdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9fba8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9fc60]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x487c94
mov ecx, edi
jns 0x487cc3
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 + 0x9fc68]
or eax, eax
je 0x487cd9
mov dword [ebx], eax
add ebx, 4
jmp 0x487cb1
call dword [esi + 0x9fc64]
mov ebp, dword [esi + 0x9fc6c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x487d13
sub esp, 0xffffff80
jmp 0x40333d