joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4124b6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x26], 0
mov dword [ebp - 0x22], 0
mov word [ebp - 0x1e], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
lea edx, [ebp - 0x26]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41250a
mov eax, 0
jmp 0x412622
movzx eax, byte [ebp - 0x26]
cmp al, 0x45
je 0x41251c
mov eax, 0
jmp 0x412622
mov dword [ebp - 0xc], 1
jmp 0x412545
lea edx, [ebp - 0x26]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x20
jne 0x412541
lea edx, [ebp - 0x26]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0
jmp 0x41254b
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 8
jle 0x412525
lea eax, [ebp - 0x26]
add eax, 1
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x41256c
mov eax, 0
jmp 0x412622
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._calloc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0xc], 8
jg 0x41260a
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
lea eax, [ebp - 0x26]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x41260a
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
lea eax, [ebp - 0x26]
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcpy
mov eax, 8
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x41260a
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x412616
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
test eax, eax
jg 0x4125cb
jmp 0x412617
nop
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
leave
ret
Function at 0x412624
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0xc], 0
jne 0x41263a
mov eax, 0xffffffff
jmp 0x41274c
mov dword [esp + 4], 0x1820
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._json_dumps
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x412660
mov eax, 0xffffffff
jmp 0x41274c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strlen
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x22], 0
mov dword [ebp - 0x1e], 0
mov word [ebp - 0x1a], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], str.E_d
lea eax, [ebp - 0x22]
mov dword [esp], eax
call dbg.sprintf
lea eax, [ebp - 0x22]
mov dword [esp], eax
call sym._strlen
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x14]
mov dword [esp + 8], edx
lea edx, [ebp - 0x22]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4126e1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jge 0x4126f3
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, 0xffffffff
jmp 0x41274c
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x41272a
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jge 0x41273c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, 0xffffffff
jmp 0x41274c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, 0
leave
ret

Function at 0x412880
Capabilities:
Write file on windows

Disassembly:
endbr32
sub esp, 0x1c
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._fwrite
cmp eax, 1
setne al
add esp, 0x1c
movzx eax, al
neg eax
ret
Function at 0x414740
Capabilities:
Read file on windows

Disassembly:
endbr32
sub esp, 0x2c
lea eax, [esp + 0x1f]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__read]
cmp eax, 1
jne 0x414778
movzx eax, byte [esp + 0x1f]
add esp, 0x2c
ret
mov eax, 0xffffffff
jmp 0x414770

Function at 0x418dd0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__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 dbg.__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 0x418e30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x438174]
test esi, esi
jle 0x418f50
mov eax, dword [0x438178]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x418e64
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x418ee7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x418e50
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x418f77
mov eax, dword [0x438178]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x438178]
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 0x418f57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x418ee0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x418ef0
add dword [0x438174], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x438178]
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 0x418ee0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x418e6e
mov eax, dword [0x438178]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x4194b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x438190
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x438188]
sub esp, 4
test ebx, ebx
je 0x419505
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
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4194fe
test esi, esi
je 0x4194fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4194e0
mov dword [esp], 0x438190
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x419830
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x419855
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x419860
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x419855
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4198a8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x41989e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4198aa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x419890
xor eax, eax
pop ebx
pop esi
ret
Function at 0x426720
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 dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x4267fb
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x4267cd
cmp eax, 0x6a
je 0x4267ea
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x4267c8
cmp eax, 0x6a
je 0x4267ea
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sym._abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x4267e0

Function at 0x426b80
Capabilities:
Allocate thread local storage

Disassembly:
push edi
mov eax, 0x438ca8
push esi
push ebx
sub esp, 0x10
call dbg.enterOnceObject
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call dbg.pthread_mutex_lock
mov edi, dword [0x438ca8]
test edi, edi
jne 0x426be8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x42c0c4], eax
cmp eax, 0xffffffff
je sym.__pthread_once_raw.part.0.constprop.0.cold
mov dword [0x438ca8], 1
mov dword [esp], esi
call dbg.pthread_mutex_unlock
test ebx, ebx
je 0x426bd8
mov eax, ebx
call sym._leaveOnceObject.part.0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
cmp edi, 1
je 0x426bc5
mov dword [esp], 2
call dword [0x42c0ac]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x438ca8
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sym._fprintf
jmp 0x426bc5
Function at 0x426d5a
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 eax, dword [ecx]
mov esi, eax
mov dword [ebp - 0x1c], eax
call dbg._fpreset
mov dword [esp], 0x42c0bc
lea ebx, [esi + 0x1c]
call dbg.pthread_mutex_lock
mov dword [esp], ebx
call dbg.pthread_mutex_lock
cmp dword [0x438ca8], 1
je 0x426d95
call sym.__pthread_once_raw.part.0.constprop.0
mov esi, dword [ebp - 0x1c]
mov eax, dword [0x42c0c4]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp], ebx
call dbg.pthread_mutex_unlock
lea eax, [esi + 0x70]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.__setjmp3
test eax, eax
je 0x426e5f
mov dword [esp], 0x42c0bc
call dbg.pthread_mutex_lock
mov esi, dword [ebp - 0x1c]
lea ebx, [esi + 0x1c]
mov dword [esp], ebx
call dbg.pthread_mutex_lock
mov eax, esi
mov esi, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x426e08
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
je 0x426eb2
mov dword [esp], ebx
call dbg.pthread_mutex_unlock
mov dword [esp], ebx
call dbg.pthread_mutex_destroy
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x68], 1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp], 0x42c0bc
call dbg.pthread_mutex_unlock
test eax, eax
jne 0x426ea9
mov dword [esp], 0
call ebx
push eax
jmp 0x426e43
mov dword [esp], 0x42c0bc
call dbg.pthread_mutex_unlock
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x426eef
mov edx, dword [edx + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov dword [esp], 0x42c0bc
call dbg.pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x426de4
call sym.__pthread_cleanup_dest.part.0
jmp 0x426de4
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 dbg.pthread_mutex_unlock
mov dword [esp], ebx
call dbg.pthread_mutex_destroy
mov eax, edi
call sym._push_pthread_mem
mov eax, dword [0x42c0c4]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x426e3d
mov ebx, pe_nt_image_headers32
jmp 0x426e7f
Function at 0x426f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x438ca8], 1
je 0x426f15
call sym.__pthread_once_raw.part.0.constprop.0
mov eax, dword [0x42c0c4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x426f40
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x426f2c
test esi, esi
je 0x426f2c
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 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]
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x18], eax
sub esp, 0x10
lea eax, [esi + 0x38]
mov dword [esp], eax
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x42705d
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
call ebp
lea edx, [esi + 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], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je sym.___pthread_self_lite.cold
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x42c0c4]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je sym.___pthread_self_lite.cold
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._replace_spin_keys.part.0
lea esi, [esi]
lea esi, [esi]
Function at 0x427070
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4270a0
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x427170
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x4271a0
cmp eax, 3
jne 0x42708a
mov eax, dword [0x42c0c4]
cmp eax, 0xffffffff
je 0x42708a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x42708a
test byte [eax + 0x20], 0x30
je 0x4271d0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4270e3
call sym.__pthread_cleanup_dest.part.0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x427115
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 0x427107
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dbg.pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x427250
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x4272c0
mov eax, dword [0x42c0c4]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x42708a
mov eax, dword [0x438c84]
test eax, eax
je 0x42708a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x438c84], 0
sub esp, 4
jmp 0x42708a
mov dword [esp + 4], dbg.SetThreadName_VEH
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x438c84], eax
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x427258
test eax, eax
je 0x4271ea
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 0x427207
call sym.__pthread_cleanup_dest.part.0
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
test byte [ebx + 0x24], 4
je 0x4272a0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x427230
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call dbg.pthread_mutex_destroy
mov dword [esp], esi
call dbg.pthread_spin_destroy
cmp eax, 1
jne 0x427134
call sym._replace_spin_keys.part.0
lea esi, [esi]
test eax, eax
je 0x427268
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call dbg.pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x427250
mov dword [ebx + 0x38], 0xffffffff
jmp 0x42708a
mov dword [esp], edi
call dbg.pthread_mutex_destroy
mov dword [esp], esi
call dbg.pthread_spin_destroy
cmp eax, 1
jne 0x42728a
jmp 0x427250
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x427149
Function at 0x427b30
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 0x427b52
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
jne 0x427b6c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x42c0c4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x427baf
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x427bf3
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x427ba2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x427bb8
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]
push edx
mov dword [ebx + 0x14], 0
mov eax, ebx
call sym._push_pthread_mem
mov eax, dword [0x42c0c4]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x427baf
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x427c07
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jmp 0x427bd2
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x402ee0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045b8
test esi, esi
jne 0x402f17
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004046a8
jmp 0x402f38
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d7c
mov dword [esp], eax
test esi, esi
je 0x402f38
cmp dword [ebx], 0
je 0x402f38
dec esi
jmp 0x402f1f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403614
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b3020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40368c
xor eax, eax
push ebp
push 0x403685
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4036c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40368c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4b3020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b3020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ba04c], 0
je 0x404411
cmp word [0x4ba220], 0xd7b2
jne 0x4043d9
cmp dword [0x4ba228], 0
jbe 0x4043d9
mov eax, 0x4ba21c
call dword [0x4ba238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b306c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404438
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b3030], 0
jne 0x40442d
push 0
push 0x4b3064
push 0x4b306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40456c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402b1c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4ba04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404534
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc