joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402bd0
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1cc
push esi
push edi
mov edi, str.239.255.255.255
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 8], 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x402c25
pop edi
xor eax, eax
pop esi
add esp, 0x1cc
ret
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402c43
pop edi
xor eax, eax
pop esi
add esp, 0x1cc
ret
push 0xfad
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0xffff
push esi
mov dword [esp + 0x2c], eax
call edi
cmp eax, 0xffffffff
jne 0x402c8d
pop edi
xor eax, eax
pop esi
add esp, 0x1cc
ret
mov eax, dword [0x7f96fc]
push 1
push 0x402
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x402cc8
push 0x1010
push str.Errorm_Msg
push str.Failure_to_set_Async3_for_ServerR
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0x1cc
ret
lea ecx, [esp + 0x14]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x402ce6
pop edi
xor eax, eax
pop esi
add esp, 0x1cc
ret
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 8
push eax
push 0xc
push 0
push esi
mov dword [esp + 0x24], 0
call edi
inc eax
pop edi
neg eax
sbb eax, eax
and eax, esi
pop esi
add esp, 0x1cc
ret
Function at 0x403840
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x194
lea eax, [esp + 4]
push esi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403872
push str.Error_in_WSAStartup___in_SocketMC__
call fcn.004054e7
add esp, 4
xor eax, eax
pop esi
add esp, 0x194
ret
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40389c
push str.Error_in_socket___in_SocketMC__
call fcn.004054e7
add esp, 4
xor eax, eax
pop esi
add esp, 0x194
ret
lea ecx, [esp + 7]
push 1
push ecx
push 0xa
push 0
push esi
mov byte [esp + 0x1b], 0x32
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4038cf
push 0x4104b8
call fcn.004054e7
add esp, 4
xor eax, eax
pop esi
add esp, 0x194
ret
mov eax, esi
pop esi
add esp, 0x194
ret

Function at 0x4089a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410ba8
cmp edx, dword [eax]
je 0x4089c3
add eax, 8
inc ecx
cmp eax, 0x410c38
jl 0x4089b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410ba8]
jne 0x408af1
mov eax, dword [0x7f9878]
cmp eax, 1
je 0x408acb
test eax, eax
jne 0x4089f4
cmp dword [0x410578], 1
je 0x408acb
cmp edx, 0xfc
je 0x408af1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408a2b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a8f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408010
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408a6e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408010
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e6bc
push edi
call fcn.004050b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a8f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a900
lea eax, [ebp - 0xa0]
push 0x40e69c
push eax
call fcn.0040a900
push dword [esi + 0x410bac]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a900
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b693
add esp, 0x2c
pop edi
jmp 0x408af1
lea eax, [ebp + 8]
lea esi, [esi + 0x410bac]
push 0
push eax
push dword [esi]
call fcn.00408010
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4022a6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x46f090]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x100c
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4022e9
mov eax, 1
jmp 0x4023e6
mov eax, dword [0x46f09c]
mov dword [esp + 8], 0x20
lea edx, [ebp - 0x4c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextA]
call eax
sub esp, 0xc
mov eax, dword [0x46f0a4]
mov dword [esp + 8], 0x20
lea edx, [ebp - 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextA]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov ecx, 0x46f044
call fcn.00457718
sub esp, 4
lea edx, [eax + 0x90]
lea eax, [ebp - 0x4c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0040451f
xor eax, 1
test al, al
je 0x40237f
mov dword [esp], str.Network_number_is_invalid._nValid_network_numbers_are_in_the_format_XX:XX:XX:XX
mov ecx, 0x46f068
call fcn.004484d0
sub esp, 4
mov eax, dword [0x46f09c]
mov dword [0x46f06c], eax
mov eax, 0
jmp 0x4023e6
movzx eax, byte [0x46f054]
xor eax, 1
test al, al
je 0x4023e1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov ecx, 0x46f044
call fcn.00457718
sub esp, 4
lea edx, [eax + 0x98]
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00404639
xor eax, 1
test al, al
je 0x4023e1
mov dword [esp], str.Node_number_is_invalid._nValid_numbers_are_in_the_format_XX:XX:XX:XX:XX:XX
mov ecx, 0x46f068
call fcn.004484d0
sub esp, 4
mov eax, dword [0x46f0a4]
mov dword [0x46f06c], eax
mov eax, 0
jmp 0x4023e6
mov eax, 1
leave
ret
Function at 0x404774
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0x1400
mov dword [ebp - 0x14], 0x6f
jmp 0x404833
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4047c5
mov dword [esp + 4], str.Couldnt_allocate_IP_ADAPTER_INFO_structures_
mov dword [esp], 6
call fcn.00404254
jmp 0x40483d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xe8
jne 0x404802
mov dword [esp + 4], str.No_network_interfaces_detected_
mov dword [esp], 5
call fcn.00404254
jmp 0x40483d
cmp dword [ebp - 0x14], 0
je 0x404833
cmp dword [ebp - 0x14], 0x6f
je 0x404833
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0040604c
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error_fetching_network_interfaces:__s
mov dword [esp], 6
call fcn.00404254
jmp 0x40483d
cmp dword [ebp - 0x14], 0x6f
je 0x404794
cmp dword [ebp - 0x14], 0
je 0x404858
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0041ed88
mov eax, 0
jmp 0x404901
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x4048f4
mov byte [ebp - 0x1e], 0x7a
mov byte [ebp - 0x1d], 0x79
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x190]
cmp eax, 6
jne 0x4048ec
mov eax, dword [ebp - 0x10]
lea edx, [eax + 0x194]
mov dword [esp + 8], 6
lea eax, [ebp - 0x1e]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4048ec
mov eax, dword [ebp - 0x10]
add eax, 0x1b0
mov dword [esp], eax
call sub.WS2_32.dll_inet_addr
sub esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4048ec
mov dword [esp + 4], str.Invalid_Hamachi_interface_detected__correcting_node_number
mov dword [esp], 5
call fcn.00404254
mov eax, dword [ebp - 0x10]
lea edx, [eax + 0x196]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x404863
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4061dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 8], 0
je 0x40622b
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
sub esp, 0x18
test eax, eax
jne 0x40622b
mov eax, 1
jmp 0x406230
mov eax, 0
leave
ret

Function at 0x406232
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 8], 0
je 0x4062db
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4062b2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x14]
jne 0x406295
mov eax, 1
jmp 0x4062ff
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Registry_value_with_incorrect_size:__s
mov dword [esp], 5
call fcn.00404254
jmp 0x4062db
cmp dword [ebp - 0xc], 2
je 0x4062db
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0040604c
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error_reading_registry_value:__s
mov dword [esp], 6
call fcn.00404254
cmp dword [ebp + 0x18], 0
je 0x4062fa
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, 0
leave
ret

Function at 0x406301
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 8], 0
je 0x406375
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406352
mov eax, 1
jmp 0x40637a
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0040604c
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error_writing_registry_value:__s
mov dword [esp], 6
call fcn.00404254
mov eax, 0
leave
ret
Function at 0x4063af
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 8], 0
je 0x406424
mov dword [esp + 0x14], 4
lea eax, [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406401
mov eax, 1
jmp 0x406429
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0040604c
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error_writing_registry_value:__s
mov dword [esp], 6
call fcn.00404254
mov eax, 0
leave
ret

Function at 0x406561
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x220
cmp dword [ebp + 8], 0
je 0x406641
cmp dword [ebp + 8], 5
je 0x406641
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x20c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call eax
sub esp, 8
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax*4 + 0x461010]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, ebx
add eax, 2
cmp eax, 0x200
jbe 0x4065f0
mov eax, dword [ebp + 8]
mov eax, dword [eax*4 + 0x461010]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Path_buffer_too_small__cannot_load__s
mov dword [esp], 6
call fcn.00404254
call sub.msvcrt.dll_abort
lea eax, [ebp - 0x20c]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x20c]
add eax, edx
mov word [eax], 0x5c
mov eax, dword [ebp + 8]
mov eax, dword [eax*4 + 0x461010]
mov dword [esp + 4], eax
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xc], eax
jmp 0x40664e
mov eax, dword [ebp + 8]
mov eax, dword [eax*4 + 0x461010]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax*4 + 0x46f140], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax*4 + 0x46f140]
test eax, eax
jne 0x4066ab
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp], eax
call fcn.0040604c
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error_loading__s:__s
mov dword [esp], 6
call fcn.00404254
call sub.msvcrt.dll_abort
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x406d92
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov byte [ebp - 0x22], 0xff
mov byte [ebp - 0x21], 0xff
mov byte [ebp - 0x20], 0xff
mov byte [ebp - 0x1f], 0xff
mov byte [ebp - 0x1e], 0xff
mov byte [ebp - 0x1d], 0xff
lea eax, [ebp - 0x22]
mov dword [esp], eax
call fcn.00404541
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [esp], 0
call fcn.004060b4
mov dword [ebp - 0x18], eax
mov dword [esp + 4], str.primary
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004061dd
test al, al
je 0x406e13
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.primary
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004064b3
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x406ef7
cmp dword [ebp - 0x18], 0
je 0x406ef7
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x50], 0xc
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov dword [ebp - 0x14], edx
mov edx, eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x40]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x3a]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
call eax
sub esp, 0x20
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x406ec4
mov eax, dword [ebp - 0x50]
cmp eax, 0xc
jne 0x406ec2
movzx eax, byte [ebp - 0x41]
test al, al
je 0x406ec2
lea eax, [ebp - 0x3a]
mov dword [esp + 4], eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call fcn.00404639
test al, al
je 0x406ec2
lea eax, [ebp - 0x4c]
add eax, 4
mov dword [esp], eax
call fcn.00404541
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x406ef7
jmp 0x406ef2
cmp dword [ebp - 0x1c], 0x103
jne 0x406ecf
jmp 0x406ef7
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.0040604c
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error_enumerating_registry_value:__s
mov dword [esp], 6
call fcn.00404254
jmp 0x406e24
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004061bf
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
leave
ret

Function at 0x412bd0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00412c30
Function at 0x4132f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x46f978
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x46f970]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x413345
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 0x41333e
test esi, esi
je 0x41333e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x413320
mov dword [esp], 0x46f978
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x413560
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x413598
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x41358e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x41359a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x413580
xor eax, eax
pop ebx
pop esi
ret

Function at 0x413c00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x413c40
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x413c65
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
jmp eax

Function at 0x413fe0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x414014
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x46f994], eax
call fcn.0041f000
test eax, eax
sete al
movzx eax, al
mov dword [0x461068], eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x414003
Function at 0x4140c0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
mov eax, dword [edx]
mov dword [esp + 0x28], esi
jmp 0x4140ec
mov dword [0x46f998], edx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x4141b0
mov esi, dword [eax + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x28]
call eax
test eax, eax
jne 0x414210
test esi, esi
je 0x41416b
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call esi
cmp eax, 7
je 0x414220
cmp eax, 8
jne 0x414210
mov eax, dword [ebx]
mov edx, dword [eax]
mov eax, dword [0x461068]
test eax, eax
js 0x4141f0
test eax, eax
je 0x4140e0
mov eax, dword [0x46f994]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4140e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4140e6
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov esi, dword [esp + 0x28]
mov dword [esp + 4], 0x1a
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call esi
test eax, eax
jne 0x414210
add esp, 0x3c
mov al, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x2c], edx
call fcn.00414020
mov eax, dword [0x461068]
mov edx, dword [esp + 0x2c]
jmp 0x414178
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x3c
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4142a0
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 [0x461068]
mov ebx, dword [esp + 0x30]
test eax, eax
js 0x414320
test eax, eax
jne 0x4142d0
mov eax, dword [0x46f998]
mov dword [0x46f998], ebx
mov dword [ebx], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x46f994]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebp, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x46f994]
sub esp, 4
mov dword [ebx], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4142c5
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call fcn.00414020
mov eax, dword [0x461068]
jmp 0x4142b4