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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
je 0x1004cc1f
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x1004cc17
je 0x1004cc15
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1004cb9f
mov edi, dword [eax + 4]
cmp dword [eax], 0
mov dword [eax], 0
jne 0x1004cbaf
call fcn.10052b60
push eax
call fcn.10050ce0
add esp, 4
mov edi, eax
mov eax, dword [0x106b6680]
movzx eax, byte [eax]
push 4
push 8
call fcn.1000d070
add esp, 8
test eax, eax
je 0x1004cc46
mov dword [eax], edi
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x1004cc10
mov eax, dword [edi]
mov ecx, dword [eax + 0x410]
lea edx, [ecx - 1]
mov dword [eax + 0x410], edx
cmp dword [eax + 0x40c], 0
jne 0x1004cc03
cmp ecx, 1
je 0x1004cc3b
push 4
push 8
push edi
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x1004cc17
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.100adc50
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x1004cb84
jmp 0x1004cc17
push eax
call fcn.10051800
add esp, 4
jmp 0x1004cc03
push 8
push 4
call fcn.100d08b0
nop
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x18
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 0
lea edi, [ebp - 0x20]
push edx
push edi
push ecx
push eax
call fcn.1004cd40
add esp, 0x10
movsd xmm0, qword [ebp - 0x10]
movsd xmm2, qword [ebp - 0x20]
movsd xmm1, qword [ebp - 0x18]
mov eax, esi
movsd qword [esi + 0x10], xmm0
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm2
add esp, 0x18
pop esi
pop edi
pop ebp
ret

Function at 0x10055f30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
vmovdqa ymm0, ymmword [edx]
vpslld ymm0, ymm0, 2
vmovdqa ymmword [ecx], ymm0
pop ebp
vzeroupper
ret

Function at 0x10055f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
vmovdqa ymm0, ymmword [edx]
vpsrld ymm0, ymm0, 0x1a
vmovdqa ymmword [ecx], ymm0
pop ebp
vzeroupper
ret

Function at 0x10055f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
vmovdqa ymm0, ymmword [edx]
vpsrlq ymm0, ymm0, 0x20
vmovdqa ymmword [ecx], ymm0
pop ebp
vzeroupper
ret

Function at 0x10055f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
vmovaps ymm0, ymmword [edx]
vblendps ymm0, ymm0, ymmword [eax], 0xe0
vmovaps ymmword [ecx], ymm0
pop ebp
vzeroupper
ret

Function at 0x10056030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
vpermpd ymm0, ymmword [edx], 0x93
vmovaps ymmword [ecx], ymm0
pop ebp
vzeroupper
ret
Function at 0x100560b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
vbroadcastf128 ymm0, xmmword [edx]
vmovaps ymmword [ecx], ymm0
pop ebp
vzeroupper
ret

Function at 0x100560d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
vmovaps ymm0, ymmword [eax]
vpermps ymm0, ymm0, ymmword [edx]
vmovaps ymmword [ecx], ymm0
pop ebp
vzeroupper
ret

Function at 0x100560f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
movaps xmm0, xmmword [0x10699200]
mov dword [esp + 0x5c], 2
mov dword [esp + 0x44], 0x10699694
mov dword [esp + 0x48], 2
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov edi, dword [esi + 8]
movups xmmword [esp + 0x64], xmm0
movaps xmm0, xmmword [0x10699210]
mov dword [esp + 0x74], 8
mov byte [esp + 0x78], 3
mov dword [esp + 0x7c], 2
mov ebx, ecx
shl ecx, 0x1a
movups xmmword [esp + 0x84], xmm0
mov dword [esp + 0x94], 8
mov byte [esp + 0x98], 3
shr ebx, 6
mov eax, ecx
add eax, edx
mov eax, ebx
adc eax, 0
mov eax, edi
setb byte [esp + 7]
shr eax, 0xc
shl edi, 0x14
add ecx, edx
movzx edx, byte [esp + 7]
adc edi, ebx
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
adc edx, eax
mov eax, ebx
setb byte [esp + 7]
shl ebx, 0xe
shr eax, 0x12
add ebx, edx
movzx edx, byte [esp + 7]
mov dword [esp + 0x18], ebx
adc eax, edx
mov edx, esi
shr esi, 0x18
shl edx, 8
add edx, eax
lea eax, [esp + 0x20]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x38], 0x100ebdf0
adc esi, 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], 0x100ebdf0
mov dword [esp + 0x54], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x58], 2
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x50], 2
push eax
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.100df660
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10059200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
je 0x100593b6
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x100593ae
je 0x100593ac
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10059246
mov edi, dword [eax]
mov dword [eax], 0
test edi, edi
jne 0x10059348
xorps xmm0, xmm0
lea edi, [esp + 0x30]
lea ebx, [esp + 0x18]
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x30], xmm0
push 0x20
push edi
push ebx
call fcn.1005eec0
add esp, 0xc
test eax, eax
jne 0x100593db
movups xmm0, xmmword [esp + 0x30]
movups xmm1, xmmword [esp + 0x40]
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x50], xmm1
push 4
push 0x106997dc
call fcn.1005aa00
add esp, 8
mov dword [esp + 0xc], eax
lea eax, [0x106997e0]
push 4
push eax
call fcn.1005aa00
add esp, 8
mov ebx, eax
mov eax, dword [0x106b6680]
movzx eax, byte [eax]
push 8
push 0x158
call fcn.1000d070
add esp, 8
test eax, eax
je 0x10059422
mov edi, eax
mov dword [eax], 1
mov dword [eax + 4], 1
add eax, 8
push 0x100
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
movaps xmm0, xmmword [esp + 0x20]
movaps xmm2, xmmword [esp + 0x50]
mov eax, dword [esp + 0xc]
movaps xmm1, xmmword [0x106998d0]
mov dword [edi + 0x108], 0x40
movups xmmword [edi + 0x110], xmm0
movups xmmword [edi + 0x120], xmm2
mov dword [edi + 0x130], 0
mov dword [edi + 0x134], 0
mov dword [edi + 0x138], eax
mov dword [edi + 0x13c], ebx
movups xmmword [edi + 0x140], xmm1
mov dword [edi + 0x150], 0
mov eax, dword [0x106b6680]
movzx eax, byte [eax]
push 4
push 8
call fcn.1000d070
add esp, 8
test eax, eax
je 0x100593d2
mov dword [eax], edi
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [esp + 0x20], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x100593a6
mov eax, dword [edi]
dec dword [eax]
jne 0x10059399
dec dword [eax + 4]
jne 0x10059399
push 8
push 0x158
push eax
call fcn.1000d080
add esp, 0xc
push 4
push 8
push edi
call fcn.1000d080
add esp, 0xc
mov eax, dword [esp + 0x20]
jmp 0x100593ae
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.100adc50
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x10059229
jmp 0x100593ae
push 8
push 4
call fcn.100d08b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], 0x106999e0
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x1005eb70
push 0x10699a54
push edi
call fcn.100dc150
push 0x158
push 8
call fcn.100d08b0
nop
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x14]
jne 0x10059454
shl eax, 2
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10082da0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x28], xmm0
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10082dd4
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x10082de4
mov eax, dword [0x1069e1a0]
mov ecx, dword [0x1069e1a4]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
add esp, 0x24
pop esi
pop ebp
ret
Function at 0x10084210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x428
mov esi, 0x200
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 2
cmp esi, 0x201
jae 0x10084270
jmp 0x1008425e
jbe 0x100842e0
cmp esi, 0x201
jae 0x10084270
mov dword [ebp - 0x20], 0x200
lea edi, [ebp - 0x434]
mov ebx, esi
jmp 0x1008429a
mov ebx, dword [ebp - 0x24]
sub esi, ebx
je 0x1008428e
mov edx, ebx
lea ecx, [ebp - 0x18]
push esi
call fcn.1006f760
add esp, 4
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
push 0
call sub.kernel32.dll_SetLastError
push edi
push ebx
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
test eax, eax
jne 0x100842b7
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x10084330
cmp esi, ebx
jne 0x10084250
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1008434e
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x1008425e
jmp 0x10084270
mov eax, dword [ebp - 0x20]
cmp esi, eax
ja 0x10084364
lea eax, [ebp - 0x34]
push esi
push edi
push eax
call fcn.10091010
add esp, 0xc
movsd xmm0, qword [ebp - 0x34]
mov eax, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x2c]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10084322
add eax, eax
push 2
push eax
push dword [ebp - 0x14]
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp + 8]
add esp, 0x428
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov ecx, dword [ebp + 8]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 0x80000000
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x10084312
jmp 0x10084322
push 0x1069e2d0
push 0x28
push 0x1069abd0
call fcn.100dc1e0
add esp, 0xc
jmp 0x10084373
push 0x1069e2c0
push eax
push esi
call fcn.100e1b70
add esp, 0xc
ud2
Function at 0x10097a90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push edx
push eax
call fcn.100d1110
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000000
jne 0x10097b07
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x10097b33
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x10097b53
jmp 0x10097b5f
mov ecx, dword [0x1069ca80]
mov edx, dword [0x1069ca84]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x10097b5f
push 1
push eax
push dword [ebp - 0x1c]
call fcn.1000d080
add esp, 0x40
jmp 0x10097b62
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
movzx eax, word [eax]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x10097b5f
push 1
push ebx
push edi
call fcn.1000d080
add esp, 0xc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10098570
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call fcn.100f2490
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push 0x100a2910
push eax
push 0x1000
push ebx
mov dword [ebp - 0x10], edi
push edi
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x10098695
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x100985ce
cmp dword [ebp - 0x18], 0
jne 0x1009869c
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1009869c
cmp ebx, 0x1000
ja 0x100986c6
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x100986b5
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push 0x100a2910
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x10098697
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x10098640
cmp dword [ebp - 0x18], 0
jne 0x1009869c
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x10098600
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push 0x100a2910
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x100985ce
jmp 0x10098697
call sub.kernel32.dll_GetLastError
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1069dc4c
push ebx
push edi
call fcn.100e1bd0
add esp, 0xc
jmp 0x100986d9
push 0x1069dc4c
push 0x1000
push ebx
call fcn.100e1b70
add esp, 0xc
ud2
Function at 0x1009d440
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call fcn.100a9c80
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x1009d494
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call fcn.100abfe0
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x1009d4a1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x1009d4b9
mov byte [esi], 4
test edi, edi
jne 0x1009d4c8
jmp 0x1009d499
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x1009d499
add edi, edi
push 2
push edi
push ebx
call fcn.1000d080
add esp, 0x30
jmp 0x1009d49c

Function at 0x1009fd30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x1009fd74
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x1009fd7a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1009fdad
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x1009fdbd
mov dword [esi + 4], 0
jmp 0x1009fdcf
cmp eax, 0x103
je 0x1009fde8
test eax, eax
js 0x1009fdda
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x1009fdd2
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x1069d978
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push esi
call fcn.1008ebe0
add esp, 0xc
mov ecx, esi
call fcn.100625f0
mov ecx, 7
int 0x29
ud2
Function at 0x1009fe50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x1009fe94
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x1009fe9a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1009fed4
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x1009fef5
test eax, eax
js 0x1009fee0
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x1009fee8
xor ebx, ebx
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x1069d978
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push esi
call fcn.1008ebe0
add esp, 0xc
mov ecx, esi
call fcn.100625f0
mov ecx, 7
int 0x29
ud2

Function at 0x100a03c0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, 0x17
cmp word [eax], 0
mov eax, 2
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x100a0404
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x100a0417
cmp eax, 0x2739
jne 0x100a0440
push 1
push 0
push 0
push 0
push edi
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x100a0448
mov edi, eax
push 0
push 1
push eax
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x100a0458
mov dword [esi + 4], edi
jmp 0x100a03fa
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x100a03fd
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x100a03fd
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call sub.ws2_32.dll_closesocket
jmp 0x100a03fd
Function at 0x100a90f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x106b6680]
mov ebx, dword [ebp + 0x10]
movzx eax, byte [eax]
push 4
push 8
call fcn.1000d070
add esp, 8
test eax, eax
je 0x100a9189
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push 0x100a91e0
push eax
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x100a9142
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x100a9182
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x100a9153
push edi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x100a9167
push dword [ebx + 8]
push eax
push edi
call fcn.1000d080
add esp, 0xc
push 4
push 8
push esi
call fcn.1000d080
add esp, 0xc
call sub.kernel32.dll_GetLastError
mov edi, dword [ebp + 8]
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
mov ebx, dword [ebp + 0x14]
push 8
push 4
call fcn.100d08b0
add esp, 8
ud2

Function at 0x100ad920
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0xc]
test eax, 0x3fffffff
jne 0x100ad908
mov esi, dword [ebp + 8]
cmp eax, 0x80000000
jne 0x100ad8b6
xor ecx, ecx
mov eax, 0x80000000
lock cmpxchg dword [esi], ecx
jne 0x100ad8b6
lock inc dword [esi + 4]
add esi, 4
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
pop esi
pop ebp
ret
cmp eax, 0xc0000000
je 0x100ad8d3
cmp eax, 0x40000000
jne 0x100ad8b3
xor ecx, ecx
mov eax, 0x40000000
lock cmpxchg dword [esi], ecx
jne 0x100ad8b3
jmp 0x100ad8fe
mov ecx, 0x40000000
mov eax, 0xc0000000
lock cmpxchg dword [esi], ecx
jne 0x100ad8b3
lock inc dword [esi + 4]
lea eax, [esi + 4]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
xor ecx, ecx
mov eax, 0x40000000
lock cmpxchg dword [esi], ecx
jne 0x100ad8b3
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressAll]
pop esi
pop ebp
ret
push 0x1069e548
push 0x24
push str.assertion_failed:_is_unlocked_state_
call fcn.100dc1e0
nop dword [eax]
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
push 1
push esi
call sub.kernel32.dll_TlsSetValue
push 8
push 0x10
push edi
call fcn.1000d080
add esp, 0xc
push 0
push esi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret