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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1000d050
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x100620ac]
test al, al
je 0x1000c901
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000c77c
cmp eax, 3
jne 0x1000c8fa
mov ebx, dword [0x100620b0]
test ebx, ebx
je 0x1000c8fa
mov dword [ebp - 0x20], 0
jmp 0x1000c7a7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x1000c7d8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1000c94b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000c7a0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x1000c7a0
test byte [ebp - 0x20], 1
je 0x1000c8fa
mov ebx, dword [0x100620b0]
test ebx, ebx
je 0x1000c8fa
mov dword [ebp - 0x20], 0
jmp 0x1000c807
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x1000c838
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1000c94b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000c800
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x1000c800
test byte [ebp - 0x20], 1
je 0x1000c8fa
mov ebx, dword [0x100620b0]
test ebx, ebx
je 0x1000c8fa
mov dword [ebp - 0x20], 0
jmp 0x1000c867
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x1000c898
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1000c94b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000c860
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x1000c860
test byte [ebp - 0x20], 1
je 0x1000c8fa
mov ebx, dword [0x100620b0]
test ebx, ebx
je 0x1000c8fa
mov dword [ebp - 0x20], 0
jmp 0x1000c8c7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x1000c8f4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1000c94b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000c8c0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x1000c8c0
test byte [ebp - 0x20], 1
jne 0x1000c914
movzx eax, byte [0x100495c0]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x100620b0]
jmp 0x1000c91f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x1000c8fa
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1000c94b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000c91c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x1000c91c
mov dword [ebp - 0x10], 0
push 0x1003f1d4
call fcn.10038090
add esp, 4
ud2
Function at 0x1000fa90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test eax, eax
je 0x1000fab3
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x1000fac8
cmp dword [eax + 4], 0
je 0x1000fac8
add eax, 8
pop esi
ret
push esi
call fcn.10037170
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x1000faa8
mov eax, dword [esi]
test eax, eax
je 0x1000fb5a
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x1000fb73
test eax, eax
jne 0x1000fb1e
movzx eax, byte [0x10062079]
push 4
push 0x10
call fcn.10005990
add esp, 8
test eax, eax
je 0x1000fb88
mov dword [eax], esi
mov dword [eax + 4], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x1000fb77
dec ecx
push eax
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x1000fb42
mov edx, dword [esi]
xor ecx, ecx
mov dword [esi], 0
cmp edx, 1
mov edx, 0
jne 0x1000fb46
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x1000fb46
xor ecx, ecx
xor edx, edx
lea esi, [eax + 8]
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
mov eax, esi
pop esi
ret
push esi
call fcn.10037170
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x1000fae3
xor eax, eax
pop esi
ret
push esi
mov esi, eax
call fcn.10037170
add esp, 4
mov ecx, eax
mov eax, esi
jmp 0x1000fb12
push 0x10
push 4
call fcn.10037ba0
int3
Function at 0x1000fba0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10010e20
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [esi]
test eax, eax
je 0x1000fcad
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x1000fbf1
cmp dword [eax + 4], 0
jne 0x1000fca8
mov eax, dword [esi]
test eax, eax
je 0x1000fccb
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x1000fce4
test eax, eax
jne 0x1000fc5b
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esi
movzx eax, byte [0x10062079]
push 4
push 0xc
call fcn.10005990
add esp, 8
test eax, eax
je 0x1000fd0c
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov ecx, dword [esi]
test ecx, ecx
je 0x1000fcf8
dec ecx
push eax
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x1000fc73
mov ecx, dword [edx]
mov dword [edx], 0
test ecx, ecx
je 0x1000fc75
mov ecx, dword [edx + 4]
jmp 0x1000fc75
xor ecx, ecx
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
test esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
je 0x1000fca8
test edx, edx
je 0x1000fca8
lock dec dword [edx]
jne 0x1000fca8
lea ecx, [ebp - 0x24]
push ecx
mov esi, eax
call fcn.10001ca0
mov eax, esi
add esp, 4
add eax, 8
jmp 0x1000fce6
push esi
call fcn.10037170
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x1000fbe7
jmp 0x1000fbf1
push esi
call fcn.10037170
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x1000fc0c
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
mov esi, eax
call fcn.10037170
add esp, 4
mov ecx, eax
mov eax, esi
jmp 0x1000fc4f
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.10037ba0
add esp, 8
ud2
Function at 0x10010550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10010e70
lea eax, [ebp - 0x18]
mov ebx, dword [ebp + 0x10]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x10062079]
push 4
push 8
call fcn.10005990
add esp, 8
test eax, eax
je 0x10010632
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 0x100106b0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100105cd
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x1001061f
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x10010604
push dword [ecx + 8]
push eax
push dword [ebp - 0x24]
call fcn.100059a0
add esp, 0xc
push 4
push 8
push dword [ebp - 0x28]
call fcn.100059a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 8
push 4
call fcn.10037ba0
add esp, 8
ud2
Function at 0x10010a80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10010ea0
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x100616a8]
test eax, eax
je 0x10010b97
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x10010ad3
cmp dword [eax + 4], 0
jne 0x10010b92
mov eax, dword [0x100616a8]
test eax, eax
je 0x10010bb9
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x10010bd6
test eax, eax
jne 0x10010b48
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x100616a8
movzx eax, byte [0x10062079]
push 4
push 0xc
call fcn.10005990
add esp, 8
test eax, eax
je 0x10010c02
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov ecx, dword [0x100616a8]
test ecx, ecx
je 0x10010bea
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x10010b5d
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x10010b5f
mov ecx, dword [esi + 4]
jmp 0x10010b5f
xor ecx, ecx
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
test esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
je 0x10010b92
test edx, edx
je 0x10010b92
lock dec dword [edx]
jne 0x10010b92
lea ecx, [ebp - 0x24]
push ecx
mov esi, eax
call fcn.10001bc0
mov eax, esi
add esp, 4
add eax, 8
jmp 0x10010bd8
push 0x100616a8
call fcn.10037170
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x10010ac9
jmp 0x10010ad3
push 0x100616a8
call fcn.10037170
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x10010af1
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100616a8
mov edi, eax
call fcn.10037170
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x10010b3c
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.10037ba0
add esp, 8
ud2
Function at 0x10010c40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x100616b8]
mov esi, ecx
test eax, eax
je 0x10010c66
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x10010c7f
cmp byte [eax + 4], 0
je 0x10010c7f
add eax, 5
pop esi
pop edi
ret
push 0x100616b8
call fcn.10037170
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x10010c5a
mov eax, dword [0x100616b8]
test eax, eax
je 0x10010cf5
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x10010d0e
test eax, eax
jne 0x10010cd1
movzx eax, byte [0x10062079]
push 4
push 8
call fcn.10005990
add esp, 8
test eax, eax
je 0x10010d28
mov dword [eax], 0x100616b8
mov byte [eax + 4], 0
mov ecx, dword [0x100616b8]
test ecx, ecx
je 0x10010d13
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
xor ecx, ecx
test esi, esi
je 0x10010ce6
cmp byte [esi], 0
mov byte [esi], 0
movzx edx, byte [esi + 1]
cmove edx, ecx
mov ecx, edx
lea edx, [eax + 5]
mov byte [eax + 4], 1
mov byte [eax + 5], cl
mov eax, edx
pop esi
pop edi
ret
push 0x100616b8
call fcn.10037170
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x10010c95
xor eax, eax
pop esi
pop edi
ret
push 0x100616b8
mov edi, eax
call fcn.10037170
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x10010cc5
push 8
push 4
call fcn.10037ba0
int3
Function at 0x10011a70
Capabilities:
Create udp socket

Disassembly:
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
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 dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x10011ab4
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x10011ac8
cmp eax, 0x2739
jne 0x10011af3
push 1
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x10011afb
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x10011b0c
mov dword [esi + 4], edi
jmp 0x10011aab
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x10011aae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x10011aae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10011aae
Function at 0x10013200
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 0x10013244
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 0x1001324a
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 dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1001327f
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x1001328f
mov dword [esi + 4], 0
jmp 0x100132a1
cmp eax, 0x103
je 0x100132bb
test eax, eax
js 0x100132ac
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 dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x100132a4
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x100407cc
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 edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.10011920
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.10003ce0
mov ecx, 7
int 0x29
ud2
Function at 0x10013320
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 0x10013364
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 0x1001336a
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 dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x100133a6
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x100133cb
test eax, eax
js 0x100133b5
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x100133c1
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x100407cc
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 edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.10011920
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.10003ce0
mov ecx, 7
int 0x29
ud2
Function at 0x10015e10
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1b8
mov eax, dword [esp + 0x1d0]
mov esi, dword [esp + 0x1cc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
movzx eax, word [eax + 8]
mov word [esp + 2], ax
mov eax, dword [0x100620c4]
cmp eax, 3
jne 0x10015f09
lea eax, [esp + 2]
cmp ebx, 0x17f
mov dword [esp + 8], eax
ja 0x10015f2a
lea ebp, [esp + 0x38]
push ebx
push edi
push ebp
call fcn.10029a30
add esp, 0xc
mov byte [esp + ebx + 0x38], 0
inc ebx
lea eax, [esp + 0xc]
push ebx
push ebp
push eax
call fcn.10023900
add esp, 0xc
cmp dword [esp + 0xc], 0
je 0x10015e9f
mov eax, dword [0x100412e8]
mov ecx, dword [0x100412ec]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x10015f3c
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
lea ecx, [esp + 4]
mov dword [esp + 4], 0
lea edx, [esp + 0x18]
movups xmmword [esp + 0x18], xmm0
movups xmmword [esp + 0x28], xmm0
mov dword [esp + 0x20], 1
push ecx
push edx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x10015ef0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x10015f3c
mov eax, dword [esp + 4]
movzx ecx, word [esp + 2]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], cx
mov dword [esi], eax
jmp 0x10015f3c
push 0x100620c4
call fcn.10037b00
add esp, 4
lea eax, [esp + 2]
cmp ebx, 0x17f
mov dword [esp + 8], eax
jbe 0x10015e58
lea eax, [esp + 8]
mov ecx, esi
mov edx, edi
push eax
push ebx
call fcn.10037a10
add esp, 8
mov eax, esi
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10018070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x448
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10019020
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp esi, 0x201
jae 0x10018100
jmp 0x100180ee
jbe 0x10018186
cmp esi, 0x201
jae 0x10018100
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x454]
mov edi, esi
jmp 0x10018131
mov edi, dword [ebp - 0x34]
sub esi, edi
je 0x10018125
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.100377d0
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x10018155
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100181f3
cmp esi, edi
jne 0x100180e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10018212
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x100180ee
jmp 0x10018100
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x1001822f
lea eax, [ebp - 0x44]
push esi
push ebx
push eax
call fcn.10017310
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
movsd xmm1, qword [ebp - 0x3c]
mov esi, dword [ebp + 8]
movsd qword [ebp - 0x4c], xmm1
movsd qword [ebp - 0x54], xmm0
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100181dd
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.100059a0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x448
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], bind
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x100181cd
jmp 0x100181dd
mov dword [ebp - 0x10], 0
push 0x10041a9c
push 0x28
push 0x10041a74
call fcn.10037e00
add esp, 0xc
jmp 0x1001823e
push 0x10041a64
push eax
push esi
call fcn.10038130
add esp, 0xc
ud2
Function at 0x10018270
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10019030
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov esi, 0x200
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
cmp esi, 0x201
jae 0x10018300
jmp 0x100182ee
jbe 0x10018389
cmp esi, 0x201
jae 0x10018300
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x458]
mov edi, esi
jmp 0x10018331
mov edi, dword [ebp - 0x34]
sub esi, edi
je 0x10018325
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.100377d0
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x10018358
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100183f6
cmp esi, edi
jne 0x100182e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10018415
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x100182ee
jmp 0x10018300
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x10018432
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.10017310
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
movsd xmm1, qword [ebp - 0x40]
mov esi, dword [ebp + 8]
movsd qword [ebp - 0x50], xmm1
movsd qword [ebp - 0x58], xmm0
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100183e0
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.100059a0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x44c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], bind
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x100183d0
jmp 0x100183e0
mov dword [ebp - 0x10], 0
push 0x10041a9c
push 0x28
push 0x10041a74
call fcn.10037e00
add esp, 0xc
jmp 0x10018441
push 0x10041a64
push eax
push esi
call fcn.10038130
add esp, 0xc
ud2