joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ccf60
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push 4
push eax
push dword [esp + 0x10]
push 0xffff
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4ccf84
mov byte [esi], 4
jmp 0x4ccf90
call dword [sym.imp.kernel32.dll_GetLastError]
and dword [esi], 0
mov dword [esi + 4], eax
pop esi
ret

Function at 0x4ccf92
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebp, dword [esp + 0x34]
mov esi, ecx
cmp dl, 4
jne 0x4cd002
mov eax, dword [0x5dd864]
cmp eax, 3
jne 0x4cd0fa
cmp word [ebp], 0
push 2
pop eax
push 0x17
pop ebx
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
mov edi, eax
cmp eax, 0xffffffff
je 0x4cd01d
cmp word [ebp], 0
je 0x4cd077
mov eax, dword [ebp + 0x18]
movups xmm0, xmmword [ebp + 4]
lea ecx, [ebp + 0x14]
add ebp, 0x1c
mov dword [esp], eax
push 0x1c
pop eax
mov bx, 0x17
jmp 0x4cd087
mov eax, edx
shr eax, 8
mov word [esi + 1], ax
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov byte [esi], dl
mov dword [esi + 4], ebp
jmp 0x4cd0f2
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x4cd035
cmp eax, 0x2726
jne 0x4cd0e3
push 1
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4cd0dd
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x4ccfdb
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, ebx
jmp 0x4cd0e3
lea ecx, [ebp + 2]
add ebp, 6
push 0x10
pop eax
mov bx, 2
xorps xmm0, xmm0
movzx ebp, word [ebp]
lea edx, [esp + 4]
mov ecx, dword [ecx]
mov word [edx], bx
mov ebx, dword [esp]
rol bp, 8
mov word [edx + 2], bp
mov dword [edx + 4], ecx
movups xmmword [edx + 8], xmm0
mov dword [edx + 0x18], ebx
push eax
push edx
push edi
call dword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4cd0bf
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x4cd0f2
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi], cl
and word [esi + 1], 0
mov byte [esi + 3], cl
mov dword [esi + 4], eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x4cd0f2
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
and word [esi + 1], 0
xor ecx, ecx
mov byte [esi + 3], cl
mov byte [esi], cl
mov dword [esi + 4], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00539790
jmp 0x4ccfb2
Function at 0x4cd640
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], 0x505fe0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x5dd878]
test al, al
je 0x4cd811
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4cd68c
cmp eax, 3
jne 0x4cd80a
mov ebx, dword [0x5dd87c]
test ebx, ebx
je 0x4cd80a
mov dword [ebp - 0x20], 0
jmp 0x4cd6b7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4cd6e8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4cd85b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4cd6b0
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 0x4cd6b0
test byte [ebp - 0x20], 1
je 0x4cd80a
mov ebx, dword [0x5dd87c]
test ebx, ebx
je 0x4cd80a
mov dword [ebp - 0x20], 0
jmp 0x4cd717
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4cd748
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4cd85b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4cd710
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 0x4cd710
test byte [ebp - 0x20], 1
je 0x4cd80a
mov ebx, dword [0x5dd87c]
test ebx, ebx
je 0x4cd80a
mov dword [ebp - 0x20], 0
jmp 0x4cd777
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4cd7a8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4cd85b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4cd770
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 0x4cd770
test byte [ebp - 0x20], 1
je 0x4cd80a
mov ebx, dword [0x5dd87c]
test ebx, ebx
je 0x4cd80a
mov dword [ebp - 0x20], 0
jmp 0x4cd7d7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4cd804
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4cd85b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4cd7d0
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 0x4cd7d0
test byte [ebp - 0x20], 1
jne 0x4cd824
movzx eax, byte [0x5c77c0]
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 [0x5dd87c]
jmp 0x4cd82f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4cd80a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4cd85b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4cd82c
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x4cd82c
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x590acc
call fcn.00536b90
add esp, 4
ud2
Function at 0x4ce5f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x5dc08c]
test eax, eax
je 0x4ce6a8
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4ce61c
cmp dword [eax + 4], 0
mov edi, eax
je 0x4ce61c
add edi, 8
jmp 0x4ce6a3
mov eax, dword [0x5dc08c]
test eax, eax
je 0x4ce6b7
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4ce6a1
mov esi, eax
test eax, eax
jne 0x4ce677
movzx eax, byte [0x5dd8e8]
mov ecx, 0xc
mov edx, 4
call fcn.00421010
test eax, eax
je 0x4ce6d2
mov dword [eax], 0x5dc08c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5dc08c]
test eax, eax
je 0x4ce6c6
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x4ce6a3
test ecx, ecx
je 0x4ce6a3
lock dec dword [ecx]
jne 0x4ce6a3
call fcn.004ce170
jmp 0x4ce6a3
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x5dc08c
call fcn.00539200
jmp 0x4ce600
mov ecx, 0x5dc08c
call fcn.00539200
jmp 0x4ce62a
mov ecx, 0x5dc08c
call fcn.00539200
jmp 0x4ce66f
mov ecx, 4
mov edx, 0xc
call fcn.005367d0
int3

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

Disassembly:
push esi
mov eax, dword [0x5dc09c]
test eax, eax
je 0x4cecf4
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4cec8f
cmp byte [eax + 4], 0
mov esi, eax
jne 0x4cece9
mov eax, dword [0x5dc09c]
test eax, eax
je 0x4ced03
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4cecee
mov esi, eax
test eax, eax
jne 0x4cece3
movzx eax, byte [0x5dd8e8]
mov ecx, 8
mov edx, 4
call fcn.00421010
test eax, eax
je 0x4ced1b
mov dword [eax], 0x5dc09c
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x5dc09c]
test eax, eax
je 0x4ced0f
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x4cecf0
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x5dc09c
call fcn.00539200
jmp 0x4cec7b
mov ecx, 0x5dc09c
call fcn.00539200
jmp 0x4cec99
mov ecx, 0x5dc09c
call fcn.00539200
jmp 0x4cecdb
mov ecx, 4
mov edx, 8
call fcn.005367d0
int3
Function at 0x4cf3c0
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 0x4cf404
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 0x4cf40a
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 0x4cf446
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x4cf46b
test eax, eax
js 0x4cf455
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x4cf461
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], 0x59039c
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.004cdc20
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.004cdd50
mov ecx, 7
int 0x29
ud2
Function at 0x4cfc20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x5dc07c]
test eax, eax
je 0x4cfcb8
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4cfc46
cmp dword [eax + 4], 0
je 0x4cfc46
add eax, 8
pop esi
ret
mov eax, dword [0x5dc07c]
test eax, eax
je 0x4cfcc7
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4cfcb4
mov esi, eax
test eax, eax
jne 0x4cfc9d
movzx eax, byte [0x5dd8e8]
mov ecx, 0x10
mov edx, 4
call fcn.00421010
test eax, eax
je 0x4cfce2
mov dword [eax], 0x5dc07c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5dc07c]
test eax, eax
je 0x4cfcd6
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
ret
xor eax, eax
pop esi
ret
mov ecx, 0x5dc07c
call fcn.00539200
jmp 0x4cfc2f
mov ecx, 0x5dc07c
call fcn.00539200
jmp 0x4cfc50
mov ecx, 0x5dc07c
call fcn.00539200
jmp 0x4cfc95
mov ecx, 4
mov edx, 0x10
call fcn.005367d0
int3

Function at 0x4d0910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x506170
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
mov dword fs:[0], eax
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4d0a23
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov dword [esi], eax
call fcn.004d0c90
mov ecx, eax
or ecx, edx
je 0x4d0a0f
push edx
push eax
push ebx
push dword [esi]
mov edi, edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x1c], eax
call fcn.00527490
mov ecx, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 4], edx
mov dword [esi + 0x24], eax
imul ecx, eax
mul edi
add edx, ecx
mov ecx, edi
imul ecx, dword [esi + 4]
add ecx, edx
mov edx, dword [esi]
sub edx, eax
sbb ebx, ecx
mov eax, edx
imul ecx, ebx, 0x3b9aca00
mov ebx, 0x3b9aca00
mul ebx
add edx, ecx
push dword [esi + 0x20]
push edi
push edx
push eax
call fcn.00527490
mov ebx, eax
mov eax, dword [esi + 0x24]
mov ecx, edx
mov edx, 0x3b9aca00
mul edx
mov edi, eax
imul eax, dword [esi + 4], 0x3b9aca00
add eax, edx
add edi, ebx
adc eax, ecx
push 0
push 0x3b9aca00
push eax
push edi
call fcn.00527490
imul ecx, eax, 0xc4653600
add ecx, edi
mov edi, dword [esi + 0x30]
mov dword fs:[0], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.attempt_to_divide_by_zeroC:Usersdanya.cargo_registry_srcindex.crates.io_6f17d22bba15001f_block_buffer_0.10.4_srclib.rs
mov edx, 0x19
push 0x58fbb0
call fcn.00536b90
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x38], 0
lea eax, [esi + 0x14]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x590bc8
push 0x58e648
push eax
call fcn.00536e50
add esp, 0xc
ud2
Function at 0x4d63b0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x4d63fd
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x4d640d
mov dword [esi + 4], 0
jmp 0x4d641f
cmp eax, 0x103
je 0x4d6437
test eax, eax
js 0x4d6428
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4d6422
mov eax, esp
mov dword [esp + 0x1c], 0x59039c
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.004cdc20
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.004cdd50
mov ecx, 7
int 0x29
ud2
Function at 0x4d7900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5062b0
mov eax, edx
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x18]
mov ebx, 0x104
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x10]
lea ecx, [eax + 0x230]
mov dword [ebp - 0x38], edx
lea edx, [eax + 0x30]
mov edi, edx
cmp word [edi], 0
je 0x4d79ef
cmp word [edi + 2], 0
je 0x4d79ce
cmp word [edi + 4], 0
je 0x4d79d3
cmp word [edi + 6], 0
je 0x4d79d8
cmp word [edi + 8], 0
je 0x4d79dd
cmp word [edi + 0xa], 0
je 0x4d79e2
cmp word [edi + 0xc], 0
je 0x4d79e7
cmp word [edi + 0xe], 0
je 0x4d79ec
add ebx, 0xfffffff8
add edi, 0x10
cmp ebx, 7
ja 0x4d794e
cmp word [ecx], 0
je 0x4d79f1
cmp word [eax + 0x232], 0
je 0x4d7ad0
cmp word [eax + 0x234], 0
je 0x4d7adc
cmp word [eax + 0x236], 0
mov edi, 0x104
jne 0x4d7a0a
add eax, 0x236
mov ecx, eax
jmp 0x4d79f1
add edi, 2
jmp 0x4d79ef
add edi, 4
jmp 0x4d79ef
add edi, 6
jmp 0x4d79ef
add edi, 8
jmp 0x4d79ef
add edi, 0xa
jmp 0x4d79ef
add edi, 0xc
jmp 0x4d79ef
add edi, 0xe
mov ecx, edi
sub ecx, edx
mov dword [ebp - 0x10], 0xffffffff
mov edi, ecx
shr edi, 1
cmp ecx, 0x20a
jae 0x4d7ae8
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x48]
push edi
call fcn.004d25b0
add esp, 4
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
test esi, esi
mov dword [ebp - 0x20], eax
je 0x4d7a61
js 0x4d7af9
movzx eax, byte [0x5dd8e8]
mov ecx, esi
mov edx, 1
call fcn.00421010
mov edi, eax
test eax, eax
jne 0x4d7a66
mov ecx, 1
mov edx, esi
mov dword [ebp - 0x10], 0
call fcn.005367d0
jmp 0x4d7b05
mov edi, 1
push esi
push dword [ebp - 0x38]
push edi
call fcn.005282e0
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x30]
push ebx
call fcn.004d7b50
add esp, 4
cmp dword [ebp - 0x48], 0
movsd xmm0, qword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
movsd xmm1, qword [ebp - 0x28]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
je 0x4d7abf
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.00421070
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
add eax, 0x232
mov ecx, eax
jmp 0x4d79f1
add eax, 0x234
mov ecx, eax
jmp 0x4d79f1
mov ecx, edi
mov edx, 0x104
push 0x590c20
call fcn.00536b30
mov dword [ebp - 0x10], 0
call fcn.004211c0
ud2
Function at 0x4d8860
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push dword [esp + 0x28]
call fcn.004d0240
add esp, 4
mov ecx, dword [esp]
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
cmp ecx, 0x80000000
je 0x4d88b8
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.004d65e0
add esp, 4
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
cmp ebx, 0x80000000
jne 0x4d88c4
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov dword [esi], edi
add esp, 0x18
pop esi
pop edi
pop ebx
ret
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x4d88da
mov byte [esi], 4
test ebx, ebx
jne 0x4d88ea
jmp 0x4d88bd
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x4d88bd
mov ecx, edi
mov edx, 2
call fcn.00421070
jmp 0x4d88bd

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

Disassembly:
push edi
push esi
mov eax, dword [0x5dc0ac]
test eax, eax
je 0x4da638
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4da5ac
cmp dword [eax + 4], 0
mov edi, eax
je 0x4da5ac
add edi, 8
jmp 0x4da633
mov eax, dword [0x5dc0ac]
test eax, eax
je 0x4da647
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4da631
mov esi, eax
test eax, eax
jne 0x4da607
movzx eax, byte [0x5dd8e8]
mov ecx, 0xc
mov edx, 4
call fcn.00421010
test eax, eax
je 0x4da662
mov dword [eax], 0x5dc0ac
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5dc0ac]
test eax, eax
je 0x4da656
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x4da633
test ecx, ecx
je 0x4da633
lock dec dword [ecx]
jne 0x4da633
call fcn.004da680
jmp 0x4da633
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x5dc0ac
call fcn.00539200
jmp 0x4da590
mov ecx, 0x5dc0ac
call fcn.00539200
jmp 0x4da5ba
mov ecx, 0x5dc0ac
call fcn.00539200
jmp 0x4da5ff
mov ecx, 4
mov edx, 0xc
call fcn.005367d0
int3
Function at 0x4daf80
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1a8
mov edi, dword [edx]
mov ebp, dword [edx + 4]
movzx ebx, word [edx + 8]
mov eax, dword [0x5dd864]
mov esi, ecx
cmp eax, 3
jne 0x4db10b
cmp ebp, 0x17f
ja 0x4db11c
lea eax, [esp + 0x28]
push ebp
push edi
mov edi, eax
push eax
call fcn.005282e0
add esp, 0xc
lea eax, [ebp + 1]
cmp ebp, 6
mov byte [esp + ebp + 0x28], 0
ja 0x4dafe5
xor edx, edx
nop
cmp byte [esp + edx + 0x28], 0
je 0x4db07f
inc edx
cmp eax, edx
jne 0x4dafd0
jmp 0x4db0d5
lea ecx, [esp + 0x2b]
and ecx, 0xfffffffc
sub ecx, edi
je 0x4db018
je 0x4db018
xor edx, edx
nop word cs:[eax + eax]
nop
cmp byte [esp + edx + 0x28], 0
je 0x4db07f
inc edx
cmp ecx, edx
jne 0x4db000
lea edx, [ebp - 7]
mov dword [esp], ebx
cmp ecx, edx
jbe 0x4db020
jmp 0x4db05e
mov dword [esp], ebx
lea edx, [ebp - 7]
xor ecx, ecx
movdqa xmm0, xmmword [0x53b410]
movdqa xmm1, xmmword [0x53b420]
movq xmm2, qword [esp + ecx + 0x28]
movdqa xmm3, xmm2
paddd xmm3, xmm0
pandn xmm2, xmm3
pand xmm2, xmm1
movd edi, xmm2
pshufd xmm2, xmm2, 0x55
movd ebx, xmm2
or ebx, edi
jne 0x4db05e
add ecx, 8
cmp ecx, edx
jbe 0x4db030
mov ebx, dword [esp]
sub eax, ecx
je 0x4db0d5
lea edi, [esp + ecx + 0x28]
xor edx, edx
nop dword [eax + eax]
cmp byte [edi + edx], 0
je 0x4db07d
inc edx
cmp eax, edx
jne 0x4db070
jmp 0x4db0d5
add edx, ecx
cmp edx, ebp
jne 0x4db0d5
pxor xmm0, xmm0
lea eax, [esp + 4]
mov dword [esp + 4], 0
lea ecx, [esp + 8]
movdqu xmmword [esp + 8], xmm0
movdqu xmmword [esp + 0x18], xmm0
mov dword [esp + 0x10], 1
push eax
push ecx
push 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x4db0ee
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x4db0fe
mov eax, dword [0x58f948]
mov ecx, dword [0x58f94c]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x4db100
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], bx
mov dword [esi], eax
add esp, 0x1a8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00539790
cmp ebp, 0x17f
jbe 0x4dafaf
mov ecx, esi
mov edx, edi
push ebx
push ebp
call fcn.005397e0
add esp, 0x1b0
jmp 0x4db106
Function at 0x4e1a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x38]
call fcn.004d0240
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp edx, 0x80000000
jne 0x4e1a5e
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0x80000000
jmp 0x4e1a80
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.004e1950
mov ebx, dword [esp]
cmp ebx, 0x80000000
jne 0x4e1a95
mov ecx, esp
call fcn.004d03f0
mov dword [esi], 0x80000000
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 4]
mov ebp, dword [esp + 8]
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e1ab3
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], ebp
jmp 0x4e1a8d
test ebx, ebx
mov dword [esi], 0x80000000
je 0x4e1a8d
mov ecx, edi
mov edx, 2
call fcn.00421070
jmp 0x4e1a8d
Function at 0x4e3840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x506480
mov esi, edx
mov edi, ecx
mov ecx, 8
mov edx, 4
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x5dd8e8]
call fcn.00421010
test eax, eax
je 0x4e391c
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x4e39c0
push esi
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x4e38bd
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x4e390b
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x4e38f2
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x24]
call fcn.00421070
mov ecx, dword [ebp - 0x28]
mov edx, 4
call fcn.00421070
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.005367d0
ud2