joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f404
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x42f439
cmp edi, dword [esi + 0xc]
jge 0x42f439
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42f439
cmp edi, dword [eax + 8]
jge 0x42f439
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x42f43b
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x42f53f
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42f573
jmp fcn.004246b3
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x42f6dd
cmp eax, dword [edi + 0xc]
jge 0x42f6dd
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x42f635
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x42f6c6
cmp dword [ebp + 0xc], ebx
je 0x42f6c6
jmp 0x42f65f
push 0x10
call fcn.0042f2d0
cmp eax, ebx
je 0x42f64b
mov ecx, eax
call fcn.0042f536
mov esi, eax
jmp 0x42f64d
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42f676
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42f686
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x42f698
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004246b3
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00419140
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x42f6d8
cmp ecx, dword [esi + 8]
jge 0x42f6d8
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42f6de
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42f79c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42f7ca
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42f7e8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042f706
jmp 0x42f7e8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42f7e8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042f706
test edi, edi
mov eax, edi
jne 0x42f7d2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x444dc4]
test ecx, ecx
je 0x42f89b
jmp 0x42f79b
ret 8
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x401bd7
pop dword [ebp - 0x34]
mov eax, 0x503ccd69
add eax, 0xb0034e6e
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x988d9da9
add dword [ebp - 0x44], 0xb5c4a7a2
mov dword [ebp - 0x40], 0x5ce632e5
sub dword [ebp - 0x40], 0x2ab2e6a0
mov dword [ebp - 0x3c], 0x45b151e1
add dword [ebp - 0x3c], 0x69af24d
mov dword [ebp - 0x38], 0xe340bcc9
sub dword [ebp - 0x38], 0xe340bcc9
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x6d9ab1a2
add dword [ebp - 0x44], 0x6d7b7b4
mov dword [ebp - 0x40], 0x76134aa
add dword [ebp - 0x40], 0x3a0b2ccb
mov dword [ebp - 0x3c], 0x3718a4c4
sub dword [ebp - 0x3c], 0xd3a93858
mov dword [ebp - 0x38], 0x7c84bd06
sub dword [ebp - 0x38], 0x7c84bd06
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xfc02b2e8
sub eax, 0xfbc241e8
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x38097
push 0
call eax
mov ecx, 0x4dd9
xor edx, edx
add edx, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x34]
mov edi, 0x5458877d
add edi, 0xb6501375
add dword [ebp - 4], ebx
mov esi, dword [ebx]
sub dword [ebp - 8], 0x3e43da8
xor esi, edi
mov dword [edx], esi
xor dword [ebp - 0x10], ecx
add edx, 0x28c5819d
sub edx, 0x28c58199
add ebx, 4
loop 0x401cea
add eax, 0x2e9bbced
add eax, 0xd1656d4a
mov ebx, eax
add eax, 0x207f3b81
sub eax, 0x207f3b7c
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x404278
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x42c
lea ebx, [esp + 0xf]
and ebx, 0xfffffff0
xor eax, eax
lea esi, [esi]
mov dword [ebx + eax*4], eax
inc eax
cmp eax, 0x100
jne 0x404290
xor edi, edi
xor ecx, ecx
jmp 0x4042bc
mov eax, dword [ebx + edi*4]
mov dword [ebx + ecx*4], eax
and esi, 0xff
mov dword [ebx + edi*4], esi
inc ecx
cmp ecx, 0x100
je 0x4042ec
mov esi, dword [ebx + ecx*4]
add edi, esi
mov dword [ebp - 0x1c], edi
mov eax, ecx
xor edx, edx
div dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi + edx]
mov edi, dword [ebp - 0x1c]
add edi, eax
and edi, 0x800000ff
jns 0x4042a4
dec edi
or edi, 0xffffff00
inc edi
jmp 0x4042a4
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x404364
xor edx, edx
mov dword [ebp - 0x1c], ecx
jmp 0x404336
mov dword [ebp - 0x1c], eax
mov esi, dword [ebx + eax*4]
lea edi, [esi + edi]
and edi, 0x800000ff
js 0x404370
mov ecx, dword [ebx + edi*4]
mov dword [ebx + eax*4], ecx
and esi, 0xff
mov dword [ebx + edi*4], esi
add esi, dword [ebx + eax*4]
and esi, 0x800000ff
js 0x40434c
mov eax, dword [ebx + esi*4]
mov ecx, dword [ebp + 8]
xor byte [ecx + edx], al
inc edx
cmp dword [ebp + 0x10], edx
jbe 0x404364
mov eax, dword [ebp - 0x1c]
add eax, 3
and eax, 0x800000ff
jns 0x4042fc
dec eax
or eax, 0xffffff00
inc eax
jmp 0x4042fc
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [ebx + esi*4]
mov ecx, dword [ebp + 8]
xor byte [ecx + edx], al
inc edx
cmp dword [ebp + 0x10], edx
ja 0x404336
nop
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
dec edi
or edi, 0xffffff00
inc edi
jmp 0x40430d
Function at 0x404698
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov dword [esp + 8], str.zzzzzzzz
mov dword [esp + 4], 0
mov dword [esp], 0x1f0001
call sub.KERNEL32.dll_OpenMutexA
sub esp, 0xc
test eax, eax
je 0x4046d4
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret 0x10
mov dword [esp + 8], str.zzzzzzzz
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateMutexA
sub esp, 0xc
mov dword [esp + 8], 0x104
lea ebx, [ebp - 0x11c]
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
xor esi, esi
jmp 0x404721
inc esi
cmp esi, 0x2faf080
je 0x404730
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x63
jne 0x404718
cmp esi, 0x63
jne 0x404718
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.dll_FindResourceA
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x4046c7
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_SizeofResource
sub esp, 8
mov dword [ebp - 0x12c], eax
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x4046c7
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
push esi
mov edi, eax
test eax, eax
je 0x4046c7
mov dword [esp + 8], 2
mov dword [esp + 4], 2
mov dword [esp], 0
call sub.KERNEL32.dll_FindResourceA
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x4046c7
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_SizeofResource
sub esp, 8
mov dword [ebp - 0x130], eax
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x4046c7
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
push ecx
test eax, eax
je 0x4046c7
mov edx, dword [ebp - 0x130]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x12c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00404278
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0040437c
jmp 0x4046c7

Function at 0x4048e8
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov eax, dword [0x411070]
lea edx, [eax - 2]
lea eax, [ebx + eax]
nop
dec edx
mov cl, byte [eax - 3]
dec eax
cmp cl, 0xcc
je 0x404900
sub edx, 4
lea eax, [ebx + edx]
mov esi, eax
mov ecx, dword [eax]
dec edx
dec eax
cmp ecx, 0xcccccccc
jne 0x404910
mov dword [esi], 0xc201eb90
mov dword [0x411080], edx
lea ecx, [edx - 4]
lea eax, [ebx + edx - 5]
lea esi, [esi]
dec ecx
mov ebx, eax
mov edx, dword [eax]
dec eax
cmp edx, 0xcccccccc
jne 0x404934
mov dword [ebx], 0xe901eb90
add ecx, 4
mov dword [0x41107c], ecx
mov eax, dword [0x411080]
sub eax, ecx
mov dword [0x411084], eax
add esp, 0x10
pop ebx
pop esi
leave
ret
Function at 0x407c00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x407c26
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x407cba
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x407c75
cmp eax, 0x40
je 0x407c75
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x407c19
cmp eax, 0x40
je 0x407c19
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x407c19
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sub.msvcrt.dll__assert
lea esi, [esi]
lea edi, [edi]

Function at 0x407f30
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00407f10
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
je 0x407fd0
movzx edx, byte [ebx]
cmp dl, 9
je 0x408014
cmp dl, 0x20
je 0x408014
cmp dl, 0x22
je 0x407fb4
cmp dl, 9
mov eax, edx
je 0x407fc8
cmp dl, 0x20
je 0x408020
test dl, dl
lea esi, [esi]
jne 0x407fa2
jmp 0x407fd0
cmp al, 0x20
je 0x408020
test al, al
nop
je 0x407fd0
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x407f94
jmp 0x407fc8
cmp al, 0x22
je 0x407fbe
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x407fb0
cmp al, 0x22
jne 0x407fc8
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x408020
cmp al, 9
je 0x408020
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x407fdf
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00404698
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
jmp 0x407f61
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x408020
cmp al, 0x20
jne 0x407fd0
nop
jmp 0x408020
Function at 0x4082f8
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x416798]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x408334
mov dword [ebx + 0x24], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408ed0
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x28], eax
add esp, 0x14
pop ebx
leave
ret
call sub.KERNEL32.dll_GetLastError
jmp 0x408322

Function at 0x408458
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi]
jmp 0x408481
mov dword [eax + 0x20], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
test eax, eax
je 0x408548
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, 0xa
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [ebp - 0x20]
test eax, eax
jne 0x40856c
cmp edi, 5
je 0x408571
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x40850b
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call dword [ebp - 0x2c]
mov edi, eax
cmp eax, 7
je 0x408571
cmp eax, 8
jne 0x40856c
mov eax, dword [esi]
mov edi, dword [eax]
mov eax, dword [0x416798]
mov edx, dword [eax + 0x28]
test edx, edx
js 0x40855c
test edx, edx
je 0x408478
mov dword [esp + 4], edi
mov eax, dword [eax + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40847b
call sub.KERNEL32.dll_GetLastError
jmp 0x40847b
mov dword [ebp - 0x2c], 0
mov edi, 5
mov al, 0x1a
jmp 0x408496
call fcn.0040833c
mov eax, dword [0x416798]
mov edx, dword [eax + 0x28]
jmp 0x40851b
mov edi, 2
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x408844
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x408868
mov dword [esp], ebx
call fcn.0040874c
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [0x416798]
mov edx, dword [eax + 0x28]
test edx, edx
js 0x4088bc
test edx, edx
jne 0x408898
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x20]
mov edx, esi
mov eax, ebx
call fcn.00408458
cmp eax, 7
je 0x4088cc
call sub.msvcrt.dll_abort
nop
mov edi, dword [eax + 0x24]
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.dll_TlsGetValue
push edx
mov dword [esp], esi
mov dword [ebp - 0x2c], eax
call sub.KERNEL32.dll_SetLastError
push eax
mov eax, dword [ebp - 0x2c]
jmp 0x40887b
call fcn.0040833c
mov eax, dword [0x416798]
mov edx, dword [eax + 0x28]
jmp 0x408874
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040857c
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 8]
mov eax, dword [0x416798]
mov edx, dword [eax + 0x28]
test edx, edx
js 0x408958
test edx, edx
jne 0x408934
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x1c]
jmp 0x40890d
cmp ebx, 5
je 0x40892a
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp eax, 1
sbb ebx, ebx
and ebx, 5
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
test eax, eax
je 0x408900
mov ebx, 3
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov esi, dword [eax + 0x24]
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_TlsGetValue
push esi
mov dword [esp], ebx
mov dword [ebp - 0x2c], eax
call sub.KERNEL32.dll_SetLastError
push ebx
mov eax, dword [ebp - 0x2c]
jmp 0x4088f7
call fcn.0040833c
mov eax, dword [0x416798]
mov edx, dword [eax + 0x28]
jmp 0x4088f0

Function at 0x408968
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov eax, dword [0x416798]
mov edx, dword [eax + 0x28]
test edx, edx
js 0x4089ec
test edx, edx
jne 0x4089c8
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov edi, dword [ebx + 0xc]
test edi, edi
jne 0x4089ac
lea esi, [ebp - 0x20]
mov edx, esi
mov eax, ebx
call fcn.004083b4
cmp eax, 7
je 0x4089bd
call sub.msvcrt.dll_abort
nop
lea esi, [ebp - 0x20]
mov edx, esi
mov eax, ebx
call fcn.00408458
cmp eax, 7
jne 0x4089a5
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040857c
nop
mov edi, dword [eax + 0x24]
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.dll_TlsGetValue
push edx
mov dword [esp], esi
mov dword [ebp - 0x2c], eax
call sub.KERNEL32.dll_SetLastError
push eax
mov eax, dword [ebp - 0x2c]
jmp 0x408987
call fcn.0040833c
mov eax, dword [0x416798]
mov edx, dword [eax + 0x28]
jmp 0x408980
Function at 0x100070f0
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10047018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x220]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10007192
push 0x30
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.10011420
add esp, 0xc
mov byte [ebp - 0x60], 0x1b
lea eax, [ebp - 0x90]
push 0x30
push 0
push eax
call fcn.10011420
add esp, 0xc
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
js 0x1000718c
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xbb8
push eax
push 0x1006
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x100071c3
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor ecx, ebp
mov eax, dword [ebp - 0xc]
pop edi
pop esi
call fcn.1000f392
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x224]
xorps xmm0, xmm0
push eax
push 0
push 0x100431c8
push str.pool.ntp.org
movaps xmmword [ebp - 0x20], xmm0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, dword [ebp - 0x224]
mov ecx, edx
test ecx, ecx
je 0x10007207
nop
cmp dword [ecx + 4], 2
jne 0x10007200
mov eax, dword [ecx + 0x18]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x20], xmm0
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
jne 0x100071f0
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea ecx, [ebp - 0x60]
call fcn.1000cbc0
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push 0x30
lea eax, [ebp - 0x60]
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.1000cbc0
test esi, esi
jle 0x10007185
push 0
push 0x30
lea eax, [ebp - 0x90]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
lea ecx, [ebp - 0x90]
mov esi, eax
call fcn.1000cbc0
push edi
cmp esi, 0xffffffff
je 0x10007186
mov eax, dword [ebp - 0x68]
mov ecx, 0x989680
add eax, 0xfc558180
and eax, 0x7fffffff
mul ecx
add eax, 0xd53e8000
mov dword [ebp - 0xc], eax
adc edx, 0x19db1de
mov dword [ebp - 8], edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x100071aa

Function at 0x100090f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.10003ac0
Function at 0x10009100
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10047018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10009220
cmp word [esi], 0
je 0x10009220
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10009146
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f392
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
lea ecx, [ebp - 0xc]
push edi
mov edx, esi
movlpd qword [ebp - 0xc], xmm0
call fcn.10003df0
cmp dword [ebp - 0xc], 0
je 0x100091e3
lea ecx, [ebp - 0xc]
call fcn.1000a330
mov edi, dword [ebp - 8]
test al, al
je 0x100091a9
test edi, edi
je 0x10009197
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10009197
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10009197
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f392
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x100091ce
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x100091ce
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x100091ce
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f392
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
test edi, edi
je 0x1000920b
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1000920b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1000920b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f392
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 3
xor ecx, ebp
pop esi
call fcn.1000f392
mov esp, ebp
pop ebp
ret