joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x1d4
and esp, 0xfffffff0
call fcn.00411908
call fcn.00410928
mov dword [esp], 0x202
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
call sub.WSOCK32.DLL_WSAStartup
sub esp, 8
test eax, eax
jne 0x401d8a
mov dword [esp], 0x44b020
call fcn.00401e90
test al, al
je 0x401d7e
call fcn.00401430
test al, al
je 0x401d96
mov dword [esp], 0x447878
lea ebx, [ebp - 0x19c]
call sub.msvcrt.dll_printf
mov dword [esp], ebx
call dword [sym.imp.pthreadVC2.dll_pthread_attr_init]
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 4], eax
call dword [sym.imp.pthreadVC2.dll_pthread_attr_setscope]
mov dword [esp], ebx
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.pthreadVC2.dll_pthread_attr_setdetachstate]
mov dword [esp + 4], ebx
xor eax, eax
lea ebx, [ebp - 0x1ac]
mov dword [esp + 0xc], eax
mov eax, 0x4012f0
mov dword [esp + 8], eax
lea eax, [ebp - 0x1a8]
mov dword [esp], eax
call dword [sym.imp.pthreadVC2.dll_pthread_create]
mov dword [esp], 0x1e
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.pthreadVC2.dll_pthread_attr_init]
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 4], eax
call dword [sym.imp.pthreadVC2.dll_pthread_attr_setscope]
mov dword [esp], ebx
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.pthreadVC2.dll_pthread_attr_setdetachstate]
mov dword [esp + 4], ebx
xor ecx, ecx
mov edx, 0x401370
mov dword [esp + 0xc], ecx
lea eax, [ebp - 0x1b8]
lea ebx, [ebp - 0x1bc]
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.pthreadVC2.dll_pthread_create]
mov dword [esp], 0x1e
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.pthreadVC2.dll_pthread_attr_init]
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 4], eax
call dword [sym.imp.pthreadVC2.dll_pthread_attr_setscope]
mov dword [esp], ebx
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.pthreadVC2.dll_pthread_attr_setdetachstate]
mov dword [esp + 4], ebx
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, 0x401390
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c8]
mov dword [esp], eax
call dword [sym.imp.pthreadVC2.dll_pthread_create]
nop
mov dword [esp], 0x44b020
call fcn.004020b0
jmp 0x401d70
call sub.WSOCK32.DLL_WSACleanup
mov ebx, dword [ebp - 4]
xor eax, eax
leave
ret
mov dword [esp], str.net_start_fail
call sub.msvcrt.dll_puts
mov dword [esp], 0
call sub.msvcrt.dll_exit
lea esi, [esi]
lea edi, [edi]
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
cmp edx, 0xffff
sete bl
mov dword [ebp - 4], esi
cmp eax, 1
mov esi, eax
sete al
and al, bl
mov byte [ebp - 9], al
jne 0x401de7
test esi, esi
sete al
and bl, al
jne 0x401e10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], 0x47e010
call fcn.00405e18
cmp byte [ebp - 9], 0
je 0x401dd4
mov dword [esp], 0x44b020
call fcn.00403800
test esi, esi
sete al
and bl, al
je 0x401ddd
nop
mov dword [esp], 0x44b020
call fcn.00402e70
test bl, bl
je 0x401ddd
mov dword [esp], 0x47e010
call fcn.00405d38
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401e90
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x19], 0
cmp dword [ebx], 0xffffffff
je 0x401eb0
movzx eax, byte [ebp - 0x19]
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], 2
mov ecx, 0x11
mov edx, 2
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.WSOCK32.DLL_socket
mov dword [ebx], eax
sub esp, 0xc
inc eax
je 0x401f23
mov dword [ebx + 4], 0
mov word [ebp - 0x18], 2
mov dword [esp], 0x35
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x16], ax
sub esp, 4
mov eax, 0x10
mov dword [esp + 8], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.WSOCK32.DLL_bind
sub esp, 0xc
inc eax
je 0x401f34
mov byte [ebp - 0x19], 1
jmp 0x401ea3
mov dword [esp], str._nstart_Local_server_fail
call sub.msvcrt.dll_puts
jmp 0x401ea3
mov dword [esp], str.bind_Local_error__
call sub.msvcrt.dll_printf
mov eax, dword [ebx]
mov dword [esp], eax
call sub.WSOCK32.DLL_closesocket
mov dword [ebx], 0xffffffff
sub esp, 4
jmp 0x401ea3

Function at 0x401f60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
cmp dword [eax], 0xffffffff
mov dword [ebp - 0x850], eax
je 0x402086
movzx eax, byte [0x4478d8]
xor edx, edx
mov ecx, 0x3ff
mov dword [esp + 8], ecx
lea edi, [ebp - 0x428]
xor esi, esi
mov dword [esp + 4], edx
mov ebx, 0x400
mov byte [ebp - 0x418], al
lea eax, [ebp - 0x417]
mov dword [esp], eax
call sub.msvcrt.dll_memset
cld
xor eax, eax
mov edx, dword [ebp - 0x850]
mov ecx, 4
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], esi
lea eax, [ebp - 0x84c]
mov edi, 0x10
mov dword [esp + 0x14], eax
lea esi, [ebp - 0x418]
lea eax, [ebp - 0x428]
mov dword [esp + 0x10], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [edx]
mov dword [ebp - 0x84c], edi
mov dword [esp], eax
call sub.WSOCK32.DLL_recvfrom
sub esp, 0x18
test eax, eax
mov edx, eax
jle 0x402086
mov dword [ebp - 0x448], eax
lea ebx, [ebp - 0x848]
mov ecx, eax
cld
mov edi, ebx
shr ecx, 2
test al, 2
rep movsd dword es:[edi], dword [esi]
je 0x402035
movzx eax, word [esi]
add esi, 2
mov word [edi], ax
add edi, 2
test dl, 1
je 0x40203f
movzx eax, byte [esi]
mov byte [edi], al
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x850]
add eax, 0xcc18
mov dword [esp], eax
call fcn.00405020
mov dword [esp], 1
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4020b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp dword [ebx], 0xffffffff
je 0x402105
lea eax, [ebx + 0x28]
lea esi, [ebp - 0x428]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004050a0
test al, al
jne 0x402120
mov dword [esp], 1
call sub.KERNEL32.dll_Sleep
sub esp, 4
lea eax, [ebx + 0x19808]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004050a0
test al, al
jne 0x402150
mov dword [esp], 1
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.WSOCK32.DLL_sendto
sub esp, 0x18
jmp 0x4020e0
mov eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.WSOCK32.DLL_sendto
sub esp, 0x18
mov dword [esp], 1
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4021a0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
lea edx, [ebp - 0x438]
push edi
push esi
push ebx
sub esp, 0x87c
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [ebp - 0x84c], eax
add eax, 0x263f8
mov dword [esp], eax
call fcn.004050a0
test al, al
je 0x402224
mov ecx, dword [ebp - 0x84c]
mov esi, dword [ebp - 0x84c]
add ecx, 8
mov dword [ebp - 0x854], ecx
mov edi, dword [ecx + 4]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x32fe8]
sub edi, edx
sar edi, 3
mov dword [ebp - 0x850], eax
cmp eax, edi
mov dword [ebp - 0x85c], eax
jl 0x402348
cmp eax, dword [ebp - 0x850]
je 0x402224
mov edx, dword [ebp - 0x850]
mov eax, dword [ebp - 0x84c]
mov dword [eax + 0x32fe8], edx
mov dword [esp], 1
call sub.KERNEL32.dll_Sleep
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x447cd8
call fcn.00407638
mov eax, dword [ebp - 0x84c]
mov edx, dword [eax + 8]
lea esi, [esi]
lea edi, [edi]
mov dword [esp], 0x35
mov ecx, dword [ebp - 0x85c]
mov eax, 2
mov word [ebp - 0x448], ax
lea esi, [ebp - 0x448]
lea ebx, [edx + ecx*8]
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x446], ax
mov eax, dword [ebx + 4]
sub esp, 4
mov dword [esp + 0x10], esi
xor esi, esi
mov dword [ebp - 0x444], eax
mov eax, 0x10
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], eax
lea eax, [ebp - 0x438]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.WSOCK32.DLL_sendto
movzx eax, byte [0x4478d8]
sub esp, 0x18
lea edx, [ebp - 0x847]
mov dword [esp], edx
mov dword [esp + 4], esi
mov byte [ebp - 0x848], al
mov eax, 0x3ff
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x848]
mov dword [esp + 0xc], eax
mov eax, 0x400
mov dword [esp + 0x10], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov eax, dword [ebx]
mov dword [esp], eax
call sub.WSOCK32.DLL_recvfrom
sub esp, 0x18
test eax, eax
mov edx, eax
jg 0x402367
inc dword [ebp - 0x85c]
cmp dword [ebp - 0x85c], edi
jge 0x4023d6
mov ecx, dword [ebp - 0x84c]
mov edx, dword [ecx + 8]
mov esi, dword [ebp - 0x854]
mov eax, dword [esi + 4]
sub eax, edx
sar eax, 3
cmp eax, dword [ebp - 0x85c]
ja 0x402260
jmp 0x402240
mov dword [ebp - 0x38], eax
lea ebx, [ebp - 0x848]
mov ecx, eax
cld
mov esi, ebx
shr ecx, 2
lea edi, [ebp - 0x438]
test al, 2
rep movsd dword es:[edi], dword [esi]
mov ebx, esi
je 0x402392
movzx eax, word [esi]
add ebx, 2
mov word [edi], ax
add edi, 2
test dl, 1
je 0x40239c
movzx eax, byte [ebx]
mov byte [edi], al
lea eax, [ebp - 0x438]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84c]
add eax, 0x19808
mov dword [esp], eax
call fcn.00405020
mov ecx, dword [ebp - 0x84c]
mov edx, dword [ebp - 0x85c]
mov eax, dword [ecx + 0x32fe8]
mov dword [ebp - 0x850], edx
jmp 0x40220a
mov esi, dword [ebp - 0x84c]
mov eax, dword [esi + 0x32fe8]
jmp 0x40220a
Function at 0x403e80
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov eax, 0x11
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov ebx, 0xffffffff
mov dword [esp + 8], eax
mov eax, 2
mov esi, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 2
call sub.WSOCK32.DLL_socket
mov dword [ebp - 0x18], eax
sub esp, 0xc
cmp eax, 0xffffffff
mov edx, eax
je 0x403f2f
mov dword [ebp - 0x10], 2
mov eax, 8
mov ecx, 0xffff
mov dword [esp + 0x10], eax
mov ebx, 0x1006
lea eax, [ebp - 0x10]
mov dword [esp + 8], ebx
lea ebx, [esi + 8]
mov dword [esp + 4], ecx
mov dword [ebp - 0xc], 0
mov dword [esp + 0xc], eax
mov dword [esp], edx
call sub.WSOCK32.DLL_setsockopt
mov eax, dword [ebp + 0xc]
sub esp, 0x14
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 8]
je 0x403f38
test ecx, ecx
je 0x403f1b
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov ecx, dword [ebx + 4]
lea eax, [ecx + 8]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
mov edx, dword [esi + 8]
sub eax, edx
sar eax, 3
lea ebx, [eax - 1]
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov edx, dword [esi + 0xc]
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.0043ec20
jmp 0x403f21

Function at 0x40fe38
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040fd78
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40fe84
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x40fe58
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x410da8
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x483540]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x410de8
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.00418f28
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x411198
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x483540]
mov edi, dword [ebp + 8]
test eax, eax
je 0x411274
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x411289
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x411248
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x4111e0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x4111f0
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x41123b
test edx, edx
jne 0x41122e
test ecx, ecx
je 0x4111d8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x411298
cmp eax, 8
je 0x4111d8
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, 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]
mov eax, ebx
sub esp, 4
jmp 0x4111ca
call fcn.00410b38
mov eax, dword [0x483540]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jns 0x4111bc
call fcn.00410e08
mov eax, dword [0x483540]
jmp 0x4111bc
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00411108
cmp eax, 7
jne 0x411233
mov eax, dword [0x483540]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4112eb
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x411316
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x4112f7
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.00410b38
mov eax, dword [0x483540]
jmp 0x4112c9
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4112da
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4112da
call fcn.00410e08
mov eax, dword [0x483540]
jmp 0x4112d0
Function at 0x411578
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x483540]
mov edi, dword [ebp + 8]
test eax, eax
je 0x41160c
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x411628
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x411648
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x411600
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00411108
cmp eax, 7
jne 0x4116c7
mov eax, dword [0x483540]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x41169e
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x4116b8
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x411678
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00411328
jmp 0x4115bd
call fcn.00410b38
mov eax, dword [0x483540]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x411598
lea esi, [esi]
call fcn.00410e08
mov eax, dword [0x483540]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x4115a3
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, 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]
mov eax, ebx
sub esp, 4
jmp 0x4115a6
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4115ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4115ef
call fcn.00410b38
mov eax, dword [0x483540]
mov edx, dword [eax + 0x2c]
test edx, edx
jns 0x4115e1
nop
lea esi, [esi]
call fcn.00410e08
mov eax, dword [0x483540]
jmp 0x4115e1
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x4116d8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x41176a
mov eax, dword [0x483540]
test eax, eax
je 0x41175e
mov ebx, dword [eax + 0x2c]
test ebx, ebx
js 0x4117d9
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x41177f
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00411328
cmp eax, 7
jne 0x4117f7
mov eax, dword [0x483540]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4117ca
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x4117e8
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x4117ab
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.00410b38
mov eax, dword [0x483540]
jmp 0x4116fa
mov dword [esp], edi
call fcn.00411198
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, 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]
mov eax, ebx
sub esp, 4
jmp 0x41170f
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x41174d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41174d
call fcn.00410b38
mov eax, dword [0x483540]
jmp 0x411738
call fcn.00410e08
mov eax, dword [0x483540]
jmp 0x411705
call fcn.00410e08
mov eax, dword [0x483540]
jmp 0x411743
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x4119d8
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x411a08
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00418f28
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x100012a0
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov dword [esi], 0x10024380
test eax, eax
je 0x10001319
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 8], ecx
push eax
lea ecx, [esp + 0xc]
push 0
push ecx
push 2
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10001300
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10001330
push eax
call edi
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x10]
push ecx
call edi
mov edx, dword [esi + 0x14]
push edx
call edi
pop edi
pop esi
add esp, 8
ret

Function at 0x10001350
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x100013e5
push ebx
push edi
mov edi, dword [esi + 0x20]
mov ebx, 4
test edi, edi
je 0x1000139f
call fcn.10002500
test eax, eax
je 0x1000139f
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000138c
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x1000138c
mov ebx, dword [ecx + 0x64]
lea eax, [edi - 0x2000]
cmp ebx, eax
jbe 0x10001398
add edi, ebx
mov ebx, 0x10004
jmp 0x100013a1
xor edi, edi
lea ecx, [esi + 4]
push ecx
push ebx
push esi
push 0x100014b0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 8], eax
test eax, eax
pop ebx
je 0x100013e5
mov ecx, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x100013d4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x100013f0
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x10001404
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10001450
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x10001f70
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x1003184c]
test eax, eax
jne 0x1000205c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x100315e8
mov dword [0x1003184c], 1
mov dword [0x100315e8], 0x114
call esi
mov edx, dword [0x100315f8]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x1002e2b0], eax
je 0x1000203e
push edi
push 0x10031700
mov dword [0x10031700], 0x11c
call esi
push 0x1002f0f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x10031844], eax
call edi
mov dword [0x10031848], eax
mov eax, dword [0x10031844]
pop edi
test eax, eax
push 0x10031820
je 0x1000200c
call eax
jmp 0x10002012
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10031704]
cmp eax, 6
jae 0x1000202a
cmp eax, 5
jne 0x1000203e
cmp dword [0x10031708], 2
jb 0x1000203e
cmp word [0x10031820], 9
jne 0x1000203e
mov dword [0x100315dc], 1
push 0x100315f0
push 0x100315ec
call fcn.10002390
add esp, 8
call fcn.10002070
mov eax, 1
pop esi
ret
mov eax, 1
ret