joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb45f
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x505f70
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
and dword [ebp - 0x58], 0
and dword [ebp - 0x5c], 0
and dword [ebp - 0x50], 0
and dword [ebp - 0x54], 0
and dword [ebp - 0x48], 0
and dword [ebp - 0x4c], 0
and dword [ebp - 0x40], 0
and dword [ebp - 0x44], 0
and dword [ebp - 0x3c], 0
and dword [ebp - 0x34], 0
mov dword [ebp - 0x68], 4
mov dword [ebp - 0x38], 0x400010
cmp dword [edx + 0xc], 0x80000000
je 0x4cb4de
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
cmp dword [edx + 0x18], 0x80000000
je 0x4cb508
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4cb503
mov esi, dword [edx + 0x1c]
xor ecx, ecx
movzx edi, byte [esi]
inc esi
or ecx, dword [edi*4 + 0x5bb55c]
dec eax
jne 0x4cb4f3
jmp 0x4cb505
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov ebx, dword [edx + 8]
test ebx, ebx
mov dword [ebp - 0x28], ebx
je 0x4cb54b
cmp ebx, 0x20000000
jae 0x4cb5e5
mov edi, dword [edx + 4]
lea esi, [ebx*4]
push 4
pop ecx
mov edx, esi
call fcn.00422b99
test eax, eax
je 0x4cb5ee
xor edx, edx
mov ecx, dword [edi + edx*4]
mov dword [eax + edx*4], ecx
inc edx
cmp ebx, edx
jne 0x4cb53c
mov edx, ebx
jmp 0x4cb550
xor edx, edx
push 4
pop eax
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x24], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
lea eax, [ebp - 0x30]
push 0
push eax
push 0
push 0
push ecx
push 0
push 2
push 0x58e083
push 0
call dword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x4cb58b
mov ecx, dword [ebp - 0x20]
and dword [ecx], 0
mov dword [ecx + 4], eax
jmp 0x4cb5c9
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
lea esi, [ebp - 0x70]
inc edx
mov dword [esi - 8], edx
mov dword [esi - 4], edx
mov dword [ebp - 0x10], edx
mov dword [esi], eax
mov dword [esi + 4], ecx
push 0x10
pop ecx
call fcn.00422c40
movsd xmm0, qword [ebp - 0x78]
movsd xmm1, qword [ebp - 0x70]
mov ecx, dword [ebp - 0x20]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov dword [ecx + 4], eax
mov byte [ecx], 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.004f1f91
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
or dword [ebp - 0x10], 0xffffffff
call fcn.004211c0
or dword [ebp - 0x10], 0xffffffff
push 4
pop ecx
mov edx, esi
call fcn.00536ff0
push ebp
sub esp, 0x24
add ebp, 0xc
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.004f1f91
add esp, 0x24
pop ebp
ret
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 [0x5dd8c8]
test al, al
je 0x4cd811
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4cd68c
cmp eax, 3
jne 0x4cd80a
mov ebx, dword [0x5dd8cc]
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 [0x5dd8cc]
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 [0x5dd8cc]
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 [0x5dd8cc]
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 [0x5c7800]
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 [0x5dd8cc]
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 0x590a6c
call fcn.005373b0
add esp, 4
ud2
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], 0x59033c
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 [0x5dd938]
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.00539a20
jmp 0x4cfc2f
mov ecx, 0x5dc07c
call fcn.00539a20
jmp 0x4cfc50
mov ecx, 0x5dc07c
call fcn.00539a20
jmp 0x4cfc95
mov ecx, 4
mov edx, 0x10
call fcn.00536ff0
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.00527450
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.00527450
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.00527450
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:UsersMark.cargo_registry_srcindex.crates.io_6f17d22bba15001f_block_buffer_0.10.4_srclib.rs
mov edx, 0x19
push 0x58fb50
call fcn.005373b0
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 0x590b68
push 0x58e5e4
push eax
call fcn.00537670
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], 0x59033c
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 [0x5dd938]
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.00536ff0
jmp 0x4d7b05
mov edi, 1
push esi
push dword [ebp - 0x38]
push edi
call fcn.005282a0
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 0x590bc0
call fcn.00537350
mov dword [ebp - 0x10], 0
call fcn.004211c0
ud2
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 [0x5dd8b4]
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.005282a0
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 [0x58f8e8]
mov ecx, dword [0x58f8ec]
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.00539fb0
cmp ebp, 0x17f
jbe 0x4dafaf
mov ecx, esi
mov edx, edi
push ebx
push ebp
call fcn.0053a000
add esp, 0x1b0
jmp 0x4db106
Function at 0x4e3e00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.00527420
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5064b0
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.00528820
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x4dbca0
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x4e3f54
mov ebx, dword [sym.imp.kernel32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4e3e8a
cmp dword [ebp - 0x2c], 0
jne 0x4e3f65
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4e3f65
cmp esi, 0x1000
ja 0x4e3fa1
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x4e3f87
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + edi - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x4dbca0
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x4e3f5c
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4e3f00
cmp dword [ebp - 0x2c], 0
jne 0x4e3f62
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x4e3ec0
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x4dbca0
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x4e3e8a
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x4e3f65
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, esi
push 0x5905a8
call fcn.00537570
add esp, 4
jmp 0x4e3fbc
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0x5905a8
call fcn.00537350
add esp, 4
ud2
Function at 0x4e4090
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x5064d0
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x4e410e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x5906bc
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
mov edx, 0x5906e8
mov dword [esi + 0x2c], fcn.004d4f10
mov dword [esi + 0x3c], 1
call fcn.00537260
ud2
Function at 0x4f2adf
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x4f2ae1
test al, 1
je 0x4f2af8
test al, 2
jne 0x4f2b0a
xor eax, 3
ret
push 0x23
pop edx
mov ecx, str.assertion_failed:_prev.is_running__
push 0x5936ac
call fcn.005373b0
push 0x25
pop edx
mov ecx, 0x5936bc
push 0x5936e4
call fcn.005373b0
Function at 0x4f3a55
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x18]
mov edi, edx
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x2c]
mov dword [ecx - 4], esp
or dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x506be0
mov dword [ebp - 0x40], edi
mov edx, dword fs:[0]
mov dword [ecx], edx
mov dword fs:[0], ecx
xor edx, edx
lea ecx, [edi + 0xc]
cmp dword [edi + 0xc], 0xffffffff
cmove ecx, edx
mov edx, 0x7fffffff
cmp eax, edx
mov dword [ebp - 0x44], ecx
cmovb edx, eax
mov dword [ebp - 0x50], edx
mov edx, dword [edi + 8]
mov ecx, esi
push dword [ebp + 8]
call fcn.004f372f
pop eax
mov edx, dword [ebp - 0x2c]
cmp edx, 2
je 0x4f3bf9
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
test edx, edx
jne 0x4f3c01
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
mov edx, 0x591df4
mov dword [ebp - 0x54], eax
mov ecx, esi
call fcn.00452adc
push 0
push dword [ebp - 0x50]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x4f3b07
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x34], 4
jmp 0x4f3baf
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
and word [ebp - 0x33], 0
mov byte [ebp - 0x31], al
mov dword [ebp - 0x30], esi
call fcn.0043dba8
cmp al, 0xd
jne 0x4f3baf
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4f3ba4
mov eax, dword [ecx + 4]
mov dword [ebp - 0x38], esi
mov edx, dword [ecx]
lock inc dword [eax]
jle 0x4f3c2c
mov edi, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
add edx, 8
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x2c]
push edi
push esi
push eax
call fcn.00468ed8
add esp, 0xc
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], eax
push 4
pop ecx
call fcn.004cd11b
cmp byte [ebp - 0x2c], 4
mov edi, dword [ebp - 0x40]
je 0x4f3baf
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
cmp bl, 4
je 0x4f3baf
mov esi, dword [ebp - 0x28]
or dword [ebp - 0x10], 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], esi
call fcn.004cd11b
jmp 0x4f3bc0
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 4
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
cmp bl, 4
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], ebx
je 0x4f3c0b
lea ecx, [ebp - 0x4c]
call fcn.004eb880
cmp al, 0xd
jne 0x4f3c13
mov ecx, edi
lea edx, [ebp - 0x58]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], 2
call fcn.004f341f
or dword [ebp - 0x10], 0xffffffff
lea esi, [ebp - 0x2c]
push esi
call fcn.004e9f96
pop eax
mov edi, dword [ebp - 0x40]
jmp 0x4f3aa9
mov eax, dword [ebp - 0x20]
mov byte [eax], 5
jmp 0x4f3c1b
mov edx, dword [ebp - 0x20]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x4f3c1b
mov eax, dword [ebp - 0x20]
mov byte [eax], 4
jmp 0x4f3c18
mov eax, dword [ebp - 0x20]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
ud2