joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4115f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004205e0
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 sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004205e0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x411650
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x50d76c]
test esi, esi
jle 0x411770
mov eax, dword [0x50d770]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x411684
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x411707
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x411670
mov dword [esp], ebx
call fcn.00412040
mov edi, eax
test eax, eax
je 0x411797
mov eax, dword [0x50d770]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00412180
mov edx, dword [0x50d770]
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 0x411777
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x411700
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x411710
add dword [0x50d76c], 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 [0x50d770]
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 0x411700
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004115f0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x41168e
mov eax, dword [0x50d770]
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 fcn.004115f0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004115f0
lea esi, [esi]
nop
Function at 0x411cb0
Capabilities:
Get thread local storage value

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

Function at 0x412040
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x412065
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x412070
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x412065
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 si, si
je 0x4120b8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4120ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4120ba
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4120a0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x417630
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2d
mov dword [esp + 4], str._buffer_overflow_detected_:_terminated_n
mov dword [esp], 2
call sub.msvcrt.dll__write
mov dword [esp], 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
sub esp, 4
test eax, eax
je 0x417669
mov ecx, 8
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 0x417690
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 sub.msvcrt.dll__write
mov dword [esp], 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
sub esp, 4
test eax, eax
je 0x4176c9
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 0x422e60
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
sub esp, 0x84
movups xmmword [ebp - 0x27], xmm0
movdqu xmm1, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movdqu xmm2, xmmword [0x4c7630]
movdqu xmm3, xmmword [0x4c7640]
movups xmmword [ebp - 0x47], xmm0
mov eax, dword [0x50d7ec]
mov dword [ebp - 0xc], eax
xor eax, eax
movups xmmword [ebp - 0x77], xmm1
movups xmmword [ebp - 0x67], xmm2
movups xmmword [ebp - 0x57], xmm3
movups xmmword [ebp - 0x37], xmm0
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [ebp - 0x50]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [ebp - 0x50], 0
je 0x422f1b
mov eax, 0x27
lea edx, [ebp - 0x77]
jmp 0x422eed
cmp eax, 0x6a
je 0x422f0a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x422ee8
cmp eax, 0x6a
je 0x422f0a
add ecx, 2
mov byte [ebp + eax - 0x77], 0xa
mov byte [ebp + ecx - 0x77], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [ebp - 0x77]
jmp 0x422f00

Function at 0x4232a0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x50e200], 1
je 0x423358
push edi
mov eax, 0x50e200
push esi
push ebx
sub esp, 0x10
call fcn.00422c40
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.004224d0
mov edi, dword [0x50e200]
test edi, edi
jne 0x423310
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4bf22c], eax
cmp eax, 0xffffffff
je 0x4b9125
mov dword [0x50e200], 1
mov dword [esp], esi
call fcn.00422800
test ebx, ebx
je 0x42334a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.00422f30
cmp edi, 1
je 0x4232f2
mov dword [esp], 2
call dword [0x4bf218]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x50e200
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.00422800
test ebx, ebx
jne 0x4232fe
add esp, 0x10
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll_abort
Function at 0x423360
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.00423020
mov edx, dword [entry3]
test edx, edx
je 0x423490
mov ebx, eax
test eax, eax
je 0x423490
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]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.00422b40
cmp eax, 1
je 0x42349c
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 fcn.004b912a
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x4bf22c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4234a1
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00422e60
jmp fcn.004b912a

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

Disassembly:
sub esp, 0x1c
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4234d8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.00423360
Function at 0x4237a0
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 0x4237d0
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4238d0
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x4238a0
cmp eax, 3
jne 0x4237b9
mov eax, dword [0x4bf22c]
cmp eax, 0xffffffff
je 0x4237b9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4237b9
test byte [eax + 0x20], 0x30
je 0x423908
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x423813
call fcn.004234e0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x423845
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 0x423837
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 fcn.00422980
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.00422b40
cmp eax, 1
je 0x4239d6
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x4239ca
mov eax, dword [0x4bf22c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x4237b9
mov eax, dword [0x50e1d8]
test eax, eax
je 0x4238ec
mov dword [esp + 4], 0x422bb0
mov dword [esp], 1
call eax
mov dword [0x50e1dc], eax
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x50e1dc]
test eax, eax
je 0x4237b9
mov edx, dword [0x50e1d4]
test edx, edx
je 0x4238ec
mov dword [esp], eax
call edx
mov dword [0x50e1dc], 0
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x42397c
test eax, eax
je 0x423922
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 0x42393f
call fcn.004234e0
test byte [ebx + 0x24], 4
je 0x4239ba
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x423845
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], eax
call fcn.00422980
lea eax, [ebx + 0x38]
jmp 0x423853
test eax, eax
je 0x4239ba
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], eax
call fcn.00422980
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.00422b40
cmp eax, 1
je 0x4239d6
mov dword [ebx + 0x38], 0xffffffff
jmp 0x4237b9
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00422980
lea eax, [ebx + 0x38]
jmp 0x4239a1
mov eax, ebx
call fcn.004230e0
jmp 0x423879
call fcn.00422e60
lea esi, [esi]
nop
Function at 0x423cb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov eax, dword [0x50d7ec]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
test edi, edi
je 0x423df0
cmp eax, 1
je 0x423d15
mov eax, ebx
call fcn.00422c40
mov esi, eax
lea eax, [eax + 4]
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call fcn.004224d0
mov ebp, dword [ebx]
test ebp, ebp
je 0x423d30
cmp ebp, 1
jne 0x423dc0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00422800
test esi, esi
je 0x423d15
mov eax, esi
call fcn.00422f30
xor eax, eax
mov edx, dword [esp + 0x2c]
sub edx, dword [0x50d7ec]
jne 0x423e3a
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], 0x422ff0
mov dword [esp + 0x24], esi
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x423e28
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
lock or dword [esp], 0
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x423e10
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], ecx
lock or dword [esp], 0
call edi
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x423e00
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x423cfe
mov dword [esp], 2
call dword [0x4bf218]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x423cfe
mov eax, 0x16
jmp 0x423d17
call fcn.00423360
test eax, eax
jne 0x423da6
jmp 0x4b914f
call fcn.00423360
test eax, eax
jne 0x423d82
jmp 0x4b9144
call fcn.00423360
test eax, eax
jne 0x423d5c
jmp 0x4b913d
call fcn.00417690
nop
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x20]
mov dword [0], eax
ud2
mov eax, dword [esp + 0x28]
mov dword [0], eax
ud2

Function at 0x424080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4240f8
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.00422b50
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x4240d4
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x4240d4
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.00422ba0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00423360
mov ebx, eax
jmp 0x4240ab
Function at 0x424110
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x424230
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.00422b50
cmp esi, dword [ebx + 0x28]
jae 0x424190
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call fcn.00422ba0
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x42423c
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x42423c
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x424158
call fcn.00423360
mov ebx, eax
jmp 0x424145
mov dword [esp], edi
call fcn.00422ba0
mov eax, 0xc
jmp 0x424180

Function at 0x4242c0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4242e8
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.00423360
test eax, eax
jne 0x4242dd
add esp, 0x1c
ret

Function at 0x424350
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x424378
add eax, 0xc
add esp, 0x1c
ret
call fcn.00423360
test eax, eax
jne 0x42436d
jmp 0x424370
Function at 0x4243b0
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 fcn.004234b0
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4243d2
call fcn.004234e0
test byte [ebx + 0x20], 0x30
jne 0x4243ec
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x4bf22c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x42442d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x42446d
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x424422
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 0x424436
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 fcn.00423280
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x4bf22c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x42442d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x424481
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 0x42444e

Function at 0x424490
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x50e208]
test eax, eax
jne 0x4244a0
xor eax, eax
ret
sub esp, 0x1c
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4244e0
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x4244d0
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x4244c4
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x4244c6
call fcn.00423360
test eax, eax
jne 0x4244bd
jmp 0x4244c4

Function at 0x4244f0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x424530
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x424520
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.00423360
test eax, eax
jne 0x42450d
add esp, 0x1c
ret
Function at 0x424630
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4246a0
test byte [ebx + 0x20], 0xc
jne 0x424660
mov eax, dword [0x50e208]
test eax, eax
jne 0x424670
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.004224d0
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x424692
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x424692
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x4246b1
mov dword [esp], esi
call fcn.00422800
add esp, 0x14
pop ebx
pop esi
ret
call fcn.00423360
mov ebx, eax
test eax, eax
jne 0x424651
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 0x4246d1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.00422800
call fcn.00424540
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x424760
mov dword [esp], eax
call fcn.00422160
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x4247a0
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x424800
test edi, edi
je 0x42477a
call fcn.00424630
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4247d8
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00422280
call fcn.00424630
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4247f0
call fcn.00424630
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.00424630
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.004232a0
mov eax, dword [0x4bf22c]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x424732
call fcn.00423360
mov ebx, eax
jmp 0x424732
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x42474e
call fcn.00423360
jmp 0x42477a
call fcn.00423360
mov ebx, eax
jmp 0x42472e
Function at 0x402478
Capabilities:
Terminate process

Disassembly:
pop ebp
push 0x3233
push 0x5f327377
push esp
push 0x726774c
call ebp
mov eax, 0x190
sub esp, eax
push esp
push eax
push 0x6b8029
call ebp
push eax
push eax
push eax
push eax
inc eax
push eax
inc eax
push eax
push 0xe0df0fea
call ebp
xchg edi, eax
push 5
push 0x500000a
push 0xbb010002
mov esi, esp
push 0x10
push esi
push edi
push 0x6174a599
call ebp
test eax, eax
je 0x4024d4
dec dword [esi + 8]
jne 0x4024b9
push 0x56a2b5f0
call ebp
push 0x646d63
mov ebx, esp
push edi
push edi
push edi
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [eax - 0x6f6f0809], edx
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0xf3011bf
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
nop
mov eax, str._b0_n0
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x304846c2
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219