joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b8e0
Capabilities:
Print debug messages

Disassembly:
push edi
pxor xmm0, xmm0
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push ebx
lea ebx, [ebp - 0x41]
sub esp, 0x50
movups xmmword [ebp - 0x21], xmm0
mov eax, dword [0x5bb1e0]
mov dword [ebp - 0xc], eax
xor eax, eax
movups xmmword [ebp - 0x41], xmm0
movups xmmword [ebp - 0x31], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 8], str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x35
mov dword [esp], ebx
call sym.___ms_snprintf
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sym._abort
lea esi, cs:[esi]
lea esi, [esi]

Function at 0x49bcd0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x5bb1bc], 1
je 0x49bd70
push edi
mov eax, 0x5bb1bc
push esi
push ebx
sub esp, 0x10
call sym._enterOnceObject
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call sym._pthread_mutex_lock
mov edi, dword [0x5bb1bc]
test edi, edi
jne 0x49bd40
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4a60d4], eax
cmp eax, 0xffffffff
je sym.__pthread_once_raw.constprop.0.isra.0.cold
mov dword [0x5bb1bc], 1
mov dword [esp], esi
call sym._pthread_mutex_unlock
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp sym._leaveOnceObject.part.0
cmp edi, 1
je 0x49bd22
mov dword [esp], 2
call dword [0x4a60e4]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x5bb1bc
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sym._fprintf
jmp 0x49bd22
ret
Function at 0x49bd80
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call sym._pop_pthread_mem
mov ebx, eax
test eax, eax
je 0x49be93
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
sub esp, 0x10
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x38]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x49be9d
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je sym.___pthread_self_lite.part.0.cold
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
sub esp, 4
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
mov dword [ebx + 0x68], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x4a60d4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je sym.___pthread_self_lite.part.0.cold
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._replace_spin_keys.part.0
lea esi, cs:[esi]
lea esi, [esi]

Function at 0x49beb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4a60d4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x49bed8
add esp, 0x1c
ret
add esp, 0x1c
jmp sym.___pthread_self_lite.part.0
Function at 0x49c03a
Capabilities:
Set thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov esi, dword [ecx]
call sym.__fpreset
mov dword [esp], 0x4a60cc
lea ebx, [esi + 0x1c]
call sym._pthread_mutex_lock
mov dword [esp], ebx
call sym._pthread_mutex_lock
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4a60d4]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp], ebx
call sym._pthread_mutex_unlock
lea eax, [esi + 0x70]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x1c], esi
call sym.__setjmp3
mov dword [esp], 0x4a60cc
test eax, eax
jne 0x49c161
call sym._pthread_mutex_unlock
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 8]
test eax, eax
je 0x49c168
mov edx, dword [esi + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov dword [esp], 0x4a60cc
call sym._pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x49c0f0
call sym.__pthread_cleanup_dest.part.0
mov esi, dword [ebp - 0x1c]
lea ebx, [esi + 0x1c]
mov dword [esp], ebx
call sym._pthread_mutex_lock
mov eax, esi
mov esi, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x49c114
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov eax, dword [ebp - 0x1c]
xor edx, edx
cmp dword [eax + 0x14], 0
mov dword [eax + 0x18], edx
je 0x49c17b
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x68], 1
mov dword [esp], 0x4a60cc
call sym._pthread_mutex_unlock
test eax, eax
jne 0x49c172
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push edx
jmp 0x49c143
call sym._pthread_mutex_lock
jmp 0x49c0f0
mov ebx, pe_nt_image_headers32
jmp 0x49c0cf
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xdeadbeef
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
mov eax, edi
call sym._push_pthread_mem
mov eax, dword [0x4a60d4]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push ebx
jmp 0x49c143
Function at 0x49c1c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x49c1e8
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x49c2e0
add esp, 0x14
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x49c2b0
cmp eax, 3
jne 0x49c1d9
mov eax, dword [0x4a60d4]
cmp eax, 0xffffffff
je 0x49c1d9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x49c1d9
test byte [eax + 0x20], 0x30
je 0x49c318
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x49c22b
call sym.__pthread_cleanup_dest.part.0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x49c25d
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x49c24f
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x49c3e6
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x49c3da
mov eax, dword [0x4a60d4]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x49c1d9
mov eax, dword [0x5bb194]
test eax, eax
je 0x49c2ff
mov dword [esp + 4], sym._SetThreadName_VEH_4
mov dword [esp], 1
call eax
sub esp, 8
mov dword [0x5bb198], eax
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [0x5bb198]
test eax, eax
je 0x49c1d9
mov edx, dword [0x5bb190]
test edx, edx
je 0x49c2ff
mov dword [esp], eax
call edx
sub esp, 4
mov dword [0x5bb198], 0
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x49c38c
test eax, eax
je 0x49c332
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x49c34f
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x24], 4
je 0x49c3ca
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x49c25d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
jmp 0x49c26b
test eax, eax
je 0x49c3ca
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x49c3e6
mov dword [ebx + 0x38], 0xffffffff
jmp 0x49c1d9
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
jmp 0x49c3b1
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x49c291
call sym._replace_spin_keys.part.0
lea esi, cs:[esi]
Function at 0x49c6c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [0x5bb1e0]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov eax, dword [ebx]
test esi, esi
je 0x49c800
cmp eax, 1
je 0x49c71e
mov eax, ebx
call sym._enterOnceObject
lea edi, [eax + 4]
mov dword [esp + 0x1c], eax
mov dword [esp], edi
call sym._pthread_mutex_lock
mov ebp, dword [ebx]
test ebp, ebp
je 0x49c740
cmp ebp, 1
jne 0x49c7d0
mov dword [esp], edi
call sym._pthread_mutex_unlock
mov eax, dword [esp + 0x1c]
call sym._leaveOnceObject.part.0
xor eax, eax
mov edx, dword [esp + 0x2c]
sub edx, dword [0x5bb1e0]
jne 0x49c84a
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], sym.__pthread_once_cleanup
mov dword [esp + 0x24], eax
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4a60d4]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x49c838
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
lock or dword [esp], 0
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4a60d4]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x49c820
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], ecx
lock or dword [esp], 0
call esi
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4a60d4]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x49c810
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x49c70d
mov dword [esp], 2
call dword [0x4a60e4]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sym._fprintf
jmp 0x49c70d
mov eax, 0x16
jmp 0x49c720
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x49c7ba
jmp 0x4a211b
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x49c796
jmp 0x4a2110
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x49c770
jmp sym._pthread_once.cold
call sym.___stack_chk_fail
nop
lea eax, [esp + 0x20]
mov dword [0], eax
ud2
mov eax, dword [esp + 0x28]
mov dword [0], eax
ud2

Function at 0x49ccf0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4a60d4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x49cd18
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x49cd0d
add esp, 0x1c
ret

Function at 0x49cd80
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4a60d4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x49cda8
add eax, 0xc
add esp, 0x1c
ret
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x49cd9d
jmp 0x49cda0
Function at 0x49cde0
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 0x49ce02
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
jne 0x49ce1c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x4a60d4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x49ce5d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x49ce9d
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x49ce52
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x49ce66
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call sym._push_pthread_mem
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x4a60d4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x49ce5d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x49ceb1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x49ce7e

Function at 0x49cec0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5bb1c4]
test eax, eax
jne 0x49ced0
xor eax, eax
ret
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4a60d4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x49cf10
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x49cf00
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x49cef4
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x49cef6
call sym.___pthread_self_lite.part.0
test eax, eax
je 0x49cef4
jmp 0x49ceed

Function at 0x49cf20
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4a60d4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x49cf60
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x49cf50
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x49cf3d
add esp, 0x1c
ret
Function at 0x49d070
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4a60d4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x49d0e0
test byte [ebx + 0x20], 0xc
jne 0x49d0a0
mov eax, dword [0x5bb1c4]
test eax, eax
jne 0x49d0b0
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call sym._pthread_mutex_lock
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x49d0d2
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x49d0d2
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x49d0f1
mov dword [esp], esi
call sym._pthread_mutex_unlock
add esp, 0x14
pop ebx
pop esi
ret
call sym.___pthread_self_lite.part.0
mov ebx, eax
test eax, eax
jne 0x49d091
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x49d111
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call sym._pthread_mutex_unlock
call sym.__pthread_invoke_cancel
nop

Function at 0x4a0d10
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2c
mov dword [esp + 4], str._stack_smashing_detected_:_terminated_n
mov dword [esp], 2
call sym._write
mov dword [esp], 0x17
call sym._IsProcessorFeaturePresent_4
sub esp, 4
test eax, eax
je 0x4a0d49
mov ecx, 2
int 0x29
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], 0xc0000409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4a1070
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x4a10d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x5bb210]
test esi, esi
jle 0x4a11f0
mov eax, dword [0x5bb214]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4a1104
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4a1187
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4a10f0
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4a1217
mov eax, dword [0x5bb214]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x5bb214]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4a11f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4a1180
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x4a1190
add dword [0x5bb210], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x5bb214]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4a1180
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x4a110e
mov eax, dword [0x5bb214]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, cs:[esi]
nop

Function at 0x4a1760
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5bb22c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5bb224]
sub esp, 4
test ebx, ebx
je 0x4a17b5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x4a17ae
test eax, eax
jne 0x4a17ae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4a1790
mov dword [esp], 0x5bb22c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4a1b10
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4a1b35
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4a1b40
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4a1b35
push esi
push ebx
mov ebx, dword [esp + 0xc]
movzx eax, word [ecx + 0x400014]
movzx esi, word [ecx + 0x400006]
sub ebx, 0x400000
lea eax, [edx + eax + 0x18]
test si, si
je 0x4a1b88
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4a1b7e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4a1b8a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4a1b70
xor eax, eax
pop ebx
pop esi
ret

Function at 0x4a1f90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], str.msvcrt.dll
mov esi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 4
mov dword [esp + 4], str.rand_s
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
je 0x4a1fd8
mov dword [esp + 0x20], esi
mov dword [sym._init_rand_s], eax
add esp, 0x14
pop ebx
pop esi
jmp eax
mov dword [esp], str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
sub esp, 4
mov dword [esp + 4], str.SystemFunction036
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [0x5bb244], eax
mov eax, sym._mingw_rand_s
jmp 0x4a1fc3
Function at 0x100973a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, 0x400
push esi
mov dword [ebp - 4], 1
call fcn.010096ae
test eax, eax
je 0x1009780
push 2
lea eax, [ebp - 4]
push eax
push 0x20001009
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 4]
call fcn.010096f8
test eax, eax
mov eax, dword [ebp + 8]
je 0x100977d
or dword [eax], 0x20
jmp 0x1009780
or dword [eax], 0x10
pop esi
leave
ret 4

Function at 0x4873b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x58000]
push edi
jmp 0x4873ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4873d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4873c0
mov eax, 1
add ebx, ebx
jne 0x4873e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4873f4
jne 0x487413
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487413
dec eax
add ebx, ebx
jne 0x487400
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4873d8
add ebx, ebx
jne 0x48740f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x487465
xor ecx, ecx
sub eax, 3
jb 0x48742b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48749a
sar eax, 1
mov ebp, eax
jmp 0x487436
add ebx, ebx
jne 0x487436
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487404
inc ecx
add ebx, ebx
jne 0x487444
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487404
add ebx, ebx
jne 0x487451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x487446
jne 0x487462
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x487446
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x487484
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x487476
jmp 0x4873c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x487484
add edi, ecx
jmp 0x4873c6
pop esi
mov edi, esi
mov ecx, 0x2cb7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4874a2
cmp byte [edi], 0x11
jne 0x4874a2
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 0x4874a7
lea edi, [esi + 0x85000]
mov eax, dword [edi]
or eax, eax
je 0x487516
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x94c0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x94c84]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4874d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x94c88]
or eax, eax
je 0x487510
mov dword [ebx], eax
add ebx, 4
jmp 0x4874f1
call dword [esi + 0x94c98]
mov ebp, dword [esi + 0x94c8c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x48754a
sub esp, 0xffffff80
jmp 0x44058f