joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401531
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [0x4ff03c]
test ebx, ebx
je 0x40154d
cmp dword [ebx + 4], 0
jne 0x4015ac
mov ebx, dword [ebx]
jmp 0x40153f
xor esi, esi
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x1000
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
test eax, eax
je 0x4015b7
xor ecx, ecx
lea edx, [eax + 0x20]
lea esi, [eax + 0x1000]
mov dword [eax + 8], ecx
lea ecx, [edx + 0x20]
mov dword [edx], ebx
mov ebx, edx
cmp ecx, esi
je 0x401594
mov edx, ecx
jmp 0x401585
lea edx, [eax + 0xfe0]
mov ebx, eax
mov dword [eax + 4], edx
mov edx, dword [0x4ff03c]
mov dword [eax], edx
mov dword [0x4ff03c], eax
mov eax, dword [ebx + 4]
mov edx, dword [eax]
inc dword [ebx + 8]
mov dword [ebx + 4], edx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x401e28
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 5
push esi
push ebx
imul ebx, eax, 0x2c
sub esp, 0x3c
add ebx, dword [0x4ff040]
mov dword [ebp - 0x2c], edx
mov esi, dword [ebx]
test byte [ebx + 0x14], 1
je 0x401e52
sub esi, 5
mov edi, 7
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, eax
sub esp, 0x10
mov eax, 0xa
test edx, edx
je 0x401f14
mov al, byte [ebx + 0x14]
and eax, 1
cmp dword [ebp - 0x2c], 0
je 0x401ea7
mov byte [esi], 0xe9
mov edx, dword [ebx + 4]
lea ecx, [esi + 5]
sub edx, ecx
mov dword [esi + 1], edx
test al, al
je 0x401ec1
mov eax, dword [ebx]
mov word [eax], 0xf9eb
jmp 0x401ec1
mov edx, dword [ebx + 0xc]
test al, al
lea eax, [ebx + 0xc]
mov dword [esi], edx
je 0x401ebb
mov eax, dword [eax + 3]
mov dword [esi + 3], eax
jmp 0x401ec1
mov al, byte [eax + 4]
mov byte [esi + 4], al
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov dl, byte [ebp - 0x2c]
mov al, byte [ebx + 0x14]
sub esp, 0xc
and edx, 1
and eax, 0xfffffff9
lea ecx, [edx + edx]
shl edx, 2
or eax, ecx
or eax, edx
mov byte [ebx + 0x14], al
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401f1c
Capabilities:
Resume thread

Disassembly:
cmp dword [eax], 0
jne 0x401f22
ret
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
mov ebx, eax
sub esp, 0x1c
mov eax, dword [ebx]
cmp edi, dword [ebx + 8]
jae 0x401f70
mov eax, dword [eax + edi*4]
xor esi, esi
mov dword [esp], 0x5a
mov dword [esp + 4], esi
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenThread]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x401f6d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
inc edi
jmp 0x401f2f
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x4ff04c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401f93
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [ebp - 0x40], ecx
xor ecx, ecx
mov dword [ebp - 0x3c], edx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [esp + 4], ecx
mov dword [esp], 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push esi
push esi
cmp eax, 0xffffffff
je 0x4020b0
mov esi, eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x1c
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_Thread32First
push edx
push edx
test eax, eax
je 0x4020a6
cmp dword [ebp - 0x34], 0xf
jbe 0x40208b
mov edi, dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
jne 0x40208b
mov edi, dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x40208b
mov edx, dword [ebx]
test edx, edx
jne 0x402047
xor eax, eax
mov dword [ebx + 4], pe_nt_image_headers32
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
mov eax, dword [0x4ff04c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx], eax
sub esp, 0xc
test eax, eax
jne 0x40207a
jmp 0x4020a6
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
jb 0x40207a
shl eax, 3
xor edi, edi
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov eax, dword [0x4ff04c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x4020a6
mov dword [ebx], eax
shl dword [ebx + 4], 1
mov eax, dword [ebx + 8]
mov edx, dword [ebx]
lea ecx, [eax + 1]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [edx + eax*4], ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x1c
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.KERNEL32.dll_Thread32Next
jmp 0x401fe1
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
xor edi, edi
cmp dword [ebx], 0
je 0x402105
cmp edi, dword [ebx + 8]
jae 0x402105
mov eax, dword [ebx]
xor ecx, ecx
mov eax, dword [eax + edi*4]
mov dword [esp + 4], ecx
mov dword [esp], 0x5a
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenThread]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x402102
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push eax
mov edx, dword [ebp - 0x3c]
mov eax, esi
mov ecx, dword [ebp - 0x40]
call fcn.00401cc9
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
inc edi
jmp 0x4020b7
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402784
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov cl, byte [eax]
test cl, cl
setne bl
cmp cl, 0x90
setne dl
test bl, dl
je 0x4027a3
xor edx, edx
cmp cl, 0xcc
jne 0x4027bb
lea edx, [eax + 1]
add eax, esi
cmp edx, eax
je 0x4027b6
inc edx
cmp byte [edx - 1], cl
je 0x4027a8
xor edx, edx
jmp 0x4027bb
mov edx, 1
pop ebx
mov eax, edx
pop esi
pop ebp
ret
Function at 0x40c470
Capabilities:
Write file on windows

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

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4ff080]
test esi, esi
jle 0x40c5f0
mov eax, dword [0x4ff084]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40c504
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40c587
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40c4f0
mov dword [esp], ebx
call fcn.0040cec0
mov edi, eax
test eax, eax
je 0x40c617
mov eax, dword [0x4ff084]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040d000
mov edx, dword [0x4ff084]
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 0x40c5f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40c580
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40c590
add dword [0x4ff080], 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 [0x4ff084]
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 0x40c580
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040c470
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40c50e
mov eax, dword [0x4ff084]
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.0040c470
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040c470
lea esi, [esi]
nop
Function at 0x40cb30
Capabilities:
Get thread local storage value

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

Function at 0x40cec0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40cee5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40cef0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40cee5
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 0x40cf38
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40cf2e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40cf3a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40cf20
xor eax, eax
pop ebx
pop esi
ret
Function at 0x419910
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 0x4199eb
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x4199bd
cmp eax, 0x6a
je 0x4199da
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x4199b8
cmp eax, 0x6a
je 0x4199da
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 sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x4199d0

Function at 0x419d70
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x4ffaf4], 1
je 0x419e28
push edi
mov eax, 0x4ffaf4
push esi
push ebx
sub esp, 0x10
call fcn.004196f0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.00418f70
mov edi, dword [0x4ffaf4]
test edi, edi
jne 0x419de0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x49cd48], eax
cmp eax, 0xffffffff
je 0x48cb01
mov dword [0x4ffaf4], 1
mov dword [esp], esi
call fcn.004192b0
test ebx, ebx
je 0x419e1a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.00419a00
cmp edi, 1
je 0x419dc2
mov dword [esp], 2
call dword [0x49cd30]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x4ffaf4
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.004192b0
test ebx, ebx
jne 0x419dce
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort
Function at 0x419e30
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.00419af0
mov edx, dword [entry3]
test edx, edx
je 0x419f60
mov ebx, eax
test eax, eax
je 0x419f60
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.004195f0
cmp eax, 1
je 0x419f6c
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.0048cb06
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 [0x49cd48]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x419f71
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.00419910
jmp fcn.0048cb06

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

Disassembly:
sub esp, 0x1c
call fcn.00419d70
mov eax, dword [0x49cd48]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x419fa8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.00419e30
Function at 0x41a270
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41a2a0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x41a370
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x41a3a0
cmp eax, 3
jne 0x41a28b
mov eax, dword [0x49cd48]
cmp eax, 0xffffffff
je 0x41a28b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41a28b
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x41a3d0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41a2e9
call fcn.00419fb0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41a31b
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x41a30d
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call fcn.00419430
mov dword [esp], edi
call fcn.004195f0
cmp eax, 1
je 0x41a496
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x41a48a
mov eax, dword [0x49cd48]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x41a28b
mov eax, dword [0x4ffad0]
test eax, eax
je 0x41a28b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x4ffad0], 0
sub esp, 4
jmp 0x41a28b
mov dword [esp + 4], 0x419660
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x4ffad0], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x41a440
test eax, eax
je 0x41a3ea
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 0x41a407
call fcn.00419fb0
test byte [ebx + 0x24], 4
je 0x41a480
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41a31b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call fcn.00419430
jmp 0x41a323
test eax, eax
je 0x41a480
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call fcn.00419430
mov dword [esp], edi
call fcn.004195f0
cmp eax, 1
je 0x41a496
mov dword [ebx + 0x38], 0xffffffff
jmp 0x41a28b
mov dword [esp], esi
call fcn.00419430
jmp 0x41a45f
mov eax, ebx
call fcn.00419bb0
jmp 0x41a349
call fcn.00419910
lea esi, [esi]
nop
Function at 0x41a730
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
test edx, edx
je 0x41a850
cmp eax, 1
je 0x41a784
mov eax, ebx
call fcn.004196f0
lea edi, [eax + 4]
mov esi, eax
mov dword [esp], edi
call fcn.00418f70
mov ebp, dword [ebx]
test ebp, ebp
je 0x41a790
cmp ebp, 1
jne 0x41a820
mov dword [esp], edi
call fcn.004192b0
test esi, esi
je 0x41a784
mov eax, esi
call fcn.00419a00
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0x419ac0
mov dword [esp + 0x18], esi
call fcn.00419d70
mov eax, dword [0x49cd48]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41a888
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
lock or dword [esp], 0
call fcn.00419d70
mov eax, dword [0x49cd48]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41a870
lea edx, [esp + 0x14]
mov dword [eax + 0xc], edx
lock or dword [esp], 0
call dword [esp + 0x44]
call fcn.00419d70
mov eax, dword [0x49cd48]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41a860
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x41a771
mov dword [esp], 2
call dword [0x49cd30]
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 0x41a771
add esp, 0x2c
mov eax, 0x16
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00419e30
test eax, eax
jne 0x41a808
jmp 0x48cb19
call fcn.00419e30
test eax, eax
jne 0x41a7e2
jmp 0x48cb2b
call fcn.00419e30
test eax, eax
jne 0x41a7bc
jmp 0x48cb24
mov eax, dword [esp + 0x1c]
mov dword [0], eax
ud2
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x14]
mov dword [0], eax
ud2

Function at 0x41aae0
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.00419d70
mov eax, dword [0x49cd48]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41ab58
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.00419600
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x41ab34
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x41ab34
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.00419650
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.00419e30
mov ebx, eax
jmp 0x41ab0b
Function at 0x41ab70
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.00419d70
mov eax, dword [0x49cd48]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41ac90
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.00419600
cmp esi, dword [ebx + 0x28]
jae 0x41abf0
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.00419650
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 0x41ac9c
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 0x41ac9c
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 0x41abb8
call fcn.00419e30
mov ebx, eax
jmp 0x41aba5
mov dword [esp], edi
call fcn.00419650
mov eax, 0xc
jmp 0x41abe0

Function at 0x41ad20
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00419d70
mov eax, dword [0x49cd48]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41ad48
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.00419e30
test eax, eax
jne 0x41ad3d
add esp, 0x1c
ret

Function at 0x41adb0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00419d70
mov eax, dword [0x49cd48]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41add8
add eax, 0xc
add esp, 0x1c
ret
call fcn.00419e30
test eax, eax
jne 0x41adcd
jmp 0x41add0