joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5967e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1c0
mov eax, dword [ebp + 8]
call fcn.005967f7
Function at 0x5a1280
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x42c
mov edi, 0x200
xor esi, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x1c], 0
cmp edi, 0x201
jae 0x5a12f0
jmp 0x5a12d1
mov esi, dword [ebp - 0x10]
jbe 0x5a1379
cmp edi, 0x201
jae 0x5a12f0
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], 0x200
lea ebx, [ebp - 0x438]
mov esi, edi
jmp 0x5a1321
mov eax, dword [ebp - 0x1c]
sub edi, esi
sub eax, esi
cmp eax, edi
jae 0x5a1312
mov edx, esi
lea ecx, [ebp - 0x28]
push edi
call fcn.0058a170
add esp, 4
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
push 0
call sub.KERNEL32.dll_SetLastError
push ebx
push esi
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov edi, eax
test eax, eax
jne 0x5a1342
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x5a13c6
cmp edi, esi
jne 0x5a12c0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x5a13e4
lea edi, [esi + esi]
test esi, esi
mov esi, dword [ebp - 0x10]
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x5a12d1
jmp 0x5a12f0
mov eax, dword [ebp - 0x18]
cmp edi, eax
ja 0x5a13fa
lea eax, [ebp - 0x38]
push edi
push ebx
push eax
call fcn.005ae290
add esp, 0xc
movsd xmm0, qword [ebp - 0x38]
mov eax, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x30]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
test esi, esi
je 0x5a13b8
add esi, esi
push 2
push esi
push dword [ebp - 0x14]
call fcn.004ed020
add esp, 0xc
mov eax, dword [ebp + 8]
add esp, 0x42c
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 0x80000000
test esi, esi
jne 0x5a13a8
jmp 0x5a13b8
push 0x6e560c
push 0x28
push str.internal_error:_entered_unreachable_code
call fcn.004faaf0
add esp, 0xc
jmp 0x5a1409
push 0x6e55fc
push eax
push edi
call fcn.005006e0
add esp, 0xc
ud2

Function at 0x5a1450
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
call sub.KERNEL32.dll_GetEnvironmentStringsW
test eax, eax
je 0x5a146c
mov edx, eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], 0x6e4d3c
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], fcn.005a5fb0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x38]
push 0x6e4d44
push eax
call fcn.004faa60
add esp, 8
ud2
Function at 0x5a1990
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x434
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x440]
push dword [ebp + 0x10]
call fcn.005c8d40
add esp, 4
mov eax, dword [ebp - 0x440]
cmp eax, 0x80000000
jne 0x5a19d6
lea ecx, [ebp - 0x440]
call fcn.00582f50
mov dword [edi], 0x80000000
jmp 0x5a1b7a
mov ecx, dword [ebp - 0x43c]
mov esi, 0x200
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], ecx
cmp esi, 0x201
jae 0x5a1a40
jmp 0x5a1a2e
jbe 0x5a1ac8
cmp esi, 0x201
jae 0x5a1a40
mov dword [ebp - 0x24], 0x200
lea ebx, [ebp - 0x440]
mov edi, esi
jmp 0x5a1a74
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x5a1a65
mov edx, edi
lea ecx, [ebp - 0x30]
push esi
call fcn.0058a170
add esp, 4
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], edi
push 0
call sub.KERNEL32.dll_SetLastError
push edi
push ebx
push dword [ebp - 0x20]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x5a1a98
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x5a1b87
cmp esi, edi
jne 0x5a1a20
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x5a1ba5
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x5a1a2e
jmp 0x5a1a40
mov eax, dword [ebp - 0x24]
cmp esi, eax
ja 0x5a1bbb
lea eax, [ebp - 0x40]
push esi
push ebx
push eax
call fcn.005ae290
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5a1b07
add eax, eax
push 2
push eax
push dword [ebp - 0x1c]
call fcn.004ed020
add esp, 0xc
cmp edi, 0x80000000
jne 0x5a1b50
mov edi, dword [ebp + 8]
cmp bl, 3
mov dword [edi], 0x80000000
jne 0x5a1b63
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
push edi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x5a1b3e
push dword [ebx + 8]
push eax
push edi
call fcn.004ed020
add esp, 0xc
push 4
push 0xc
push esi
call fcn.004ed020
add esp, 0xc
mov edi, dword [ebp + 8]
jmp 0x5a1b63
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], edi
mov edi, eax
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov dword [edi + 0xc], ecx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5a1b7a
add eax, eax
push 2
push eax
push dword [ebp - 0x20]
call fcn.004ed020
add esp, 0xc
mov eax, edi
add esp, 0x434
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
mov edi, 0x80000000
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x5a1af7
jmp 0x5a1b07
push 0x6e560c
push 0x28
push str.internal_error:_entered_unreachable_code
call fcn.004faaf0
add esp, 0xc
jmp 0x5a1bca
push 0x6e55fc
push eax
push esi
call fcn.005006e0
add esp, 0xc
ud2
Function at 0x5ab2f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x50]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x50], xmm0
lea eax, [ebp - 0x30]
push 0x5c1df0
push eax
push 0x20
push ecx
push edx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x5ab36b
nop word cs:[eax + eax]
nop dword [eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x5ab340
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x5ab388
mov ecx, ebx
call fcn.005c8650
cmp al, 0xb
jne 0x5ab37d
mov ebx, dword [esi + 8]
mov dword [ebp - 0x10], edi
xor edi, edi
jmp 0x5ab3a0
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov ecx, ebx
call fcn.005c8650
cmp al, 0xb
je 0x5ab361
mov dword [edi], 0
mov dword [edi + 4], ebx
jmp 0x5ab3c1
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
cmp edi, 0x21
jae 0x5ab3db
mov eax, dword [esi]
mov ebx, dword [esi + 8]
mov ecx, esi
sub eax, ebx
cmp eax, edi
jb 0x5ab3c9
mov eax, dword [esi + 4]
add eax, ebx
push edi
lea ecx, [ebp - 0x50]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x10]
add ebx, edi
mov dword [esi + 8], ebx
mov dword [eax + 4], edi
mov byte [eax], 4
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, ebx
push edi
call fcn.0058a350
add esp, 4
mov ebx, dword [esi + 8]
jmp 0x5ab3a0
push 0x6e328c
push 0x20
push edi
call fcn.005006e0
nop dword [eax + eax]
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.004ff5f0
add esp, 8
test esi, esi
je 0x5ab439
lea edi, [ebp - 0x10]
nop word [eax + eax]
mov dword [ebp - 0x10], ebx
inc ebx
push 0x6e130c
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.004fb6a0
add esp, 0xc
dec esi
jne 0x5ab420
lea eax, [ebp - 0x18]
push eax
call fcn.004fb7c0
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5b4db0
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.004edbf0
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000000
jne 0x5b4e27
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 0x5b4e53
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x5b4e6f
jmp 0x5b4e7b
mov ecx, dword [0x6e3bd0]
mov edx, dword [0x6e3bd4]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x5b4e7b
push 1
push eax
push dword [ebp - 0x1c]
call fcn.004ed020
add esp, 0x40
jmp 0x5b4e7e
mov ecx, dword [ebp - 0x10]
movzx eax, word [ebp + 0xc]
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 0x5b4e7b
push 1
push ebx
push edi
call fcn.004ed020
add esp, 0xc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5b5c80
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.005d1cf0
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 0x5c1df0
push eax
push 0x1000
push ebx
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x5b5da6
mov dword [ebp - 0x10], edi
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x5b5cde
cmp dword [ebp - 0x18], 0
jne 0x5b5db5
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5b5db5
cmp ebx, 0x1000
ja 0x5b5ddd
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x5b5dcc
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 0x5c1df0
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x5b5dad
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x5b5d50
cmp dword [ebp - 0x18], 0
jne 0x5b5db2
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x5b5d10
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push 0x5c1df0
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x5b5cde
call sub.KERNEL32.dll_GetLastError
jmp 0x5b5db5
call sub.KERNEL32.dll_GetLastError
mov edi, dword [ebp - 0x10]
push edi
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 0x6e4e90
push ebx
push edi
call fcn.00500740
add esp, 0xc
jmp 0x5b5df0
push 0x6e4e90
push 0x1000
push ebx
call fcn.005006e0
add esp, 0xc
ud2

Function at 0x5baa80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.005c8d40
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
cmp ecx, 0x80000000
je 0x5baad4
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x18]
push 1
call fcn.005c0a00
add esp, 4
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
cmp ebx, 0x80000000
jne 0x5baae1
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov dword [esi], edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push edi
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x5baaf6
mov byte [esi], 4
test ebx, ebx
jne 0x5bab05
jmp 0x5baad9
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x5baad9
add ebx, ebx
push 2
push ebx
push edi
call fcn.004ed020
add esp, 0x24
jmp 0x5baadc
Function at 0x5bd6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 0x10]
call 0x5bd571
pop eax
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
mov eax, ecx
sub eax, edi
jb 0x5bd658
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esi]
mov edx, dword [ecx]
add ebx, edi
sub esp, 8
lea ecx, [ebp - 0x18]
push 0
push 0
push eax
push ebx
call fcn.005bd960
add esp, 0x18
movzx edx, byte [ebp - 0x18]
cmp edx, 4
jne 0x5bd5c7
add edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [esi + 8], edi
mov byte [ecx], 4
mov eax, dword [esi + 0xc]
cmp eax, edi
cmova edi, eax
mov dword [esi + 0xc], edi
jmp 0x5bd64e
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
add eax, dword [edx*4 + 0x5bd690]
jmp eax
mov eax, ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6e12cc
push ecx
push edi
call fcn.00500680
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x5bd67c
push dword [esi + 8]
push eax
push dword [ebp - 0x10]
call fcn.004ed020
add esp, 0xc
push 4
push 0xc
push edi
call fcn.004ed020
add esp, 0xc
push ebx
call fcn.0050ffb0
nop
je 0x5bd692
add byte [eax], al
xchg ecx, eax
add byte [eax], al
add byte [ebp], ah
add byte [eax], al
add byte gs:[eax], al
add byte [ebp - 0x77], dl
in eax, 0x53
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
lea ebx, [ebp - 0x10]
push edx
push ebx
push ecx
push eax
push dword [edi]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x5bd6ea
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi], eax
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x5bd704
cmp eax, 0x3e5
jne 0x5bd714
mov dword [esi + 4], 0
jmp 0x5bd6dc
mov dword [esi + 4], 1
mov dword [esi + 8], 0
jmp 0x5bd6dc
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov eax, 1
jmp 0x5bd6de
Function at 0x5bd960
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 0x5bd9a4
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 0x5bd9aa
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 0x5bd9dd
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x5bd9ed
mov dword [esi + 4], 0
jmp 0x5bd9ff
cmp eax, 0x103
je 0x5bda18
test eax, eax
js 0x5bda0a
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 0x5bda02
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x6e4b58
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.005abd30
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.00582830
mov ecx, 7
int 0x29
ud2

Function at 0x5bda80
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 0x5bdac4
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 0x5bdaca
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 0x5bdb04
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x5bdb28
test eax, eax
js 0x5bdb13
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x5bdb1e
push eax
call sub.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], 0x6e4b58
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.005abd30
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.00582830
mov ecx, 7
int 0x29
ud2
Function at 0x5be0a0
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 0x5be0e4
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 0x5be0f7
cmp eax, 0x2739
jne 0x5be120
push 1
push 0
push 0
push 0
push edi
push ebx
call sub.WS2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x5be128
mov edi, eax
push 0
push 1
push eax
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x5be138
mov dword [esi + 4], edi
jmp 0x5be0da
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x5be0dd
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x5be0dd
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call sub.WS2_32.dll_closesocket
jmp 0x5be0dd
Function at 0x5be6e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, 0x7fffffff
pxor xmm0, xmm0
lea ebx, [esp + 8]
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x80
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
cmp ecx, 0x7fffffff
cmovb edi, ecx
mov ecx, dword [ebp + 0x10]
push ebx
push eax
push ecx
push edi
push dword [ebp + 8]
push edx
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x5be7ae
movzx edx, word [esp + 0x20]
mov ecx, dword [esp + 8]
cmp edx, 0x17
je 0x5be81a
cmp edx, 2
jne 0x5be807
cmp ecx, 0xf
jbe 0x5be8ad
movzx edx, word [esp + 0x22]
mov ecx, dword [esp + 0x24]
rol dx, 8
mov dword [esp + 0xc], ecx
movd xmm0, ecx
mov word [esp + 0x10], dx
pslld xmm0, 0x10
movups xmm1, xmmword [esp + 0xe]
jmp 0x5be842
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x5be859
movzx ecx, word [esp + 0x20]
mov eax, dword [esp + 8]
cmp ecx, 0x17
je 0x5be868
cmp ecx, 2
jne 0x5be807
cmp eax, 0xf
jbe 0x5be8ad
movzx ecx, word [esp + 0x22]
mov eax, dword [esp + 0x24]
rol cx, 8
mov dword [esp + 0xc], eax
movd xmm0, eax
mov word [esp + 0x10], cx
pslld xmm0, 0x10
movups xmm1, xmmword [esp + 0xe]
jmp 0x5be88c
mov byte [esp + 0xe], 2
mov eax, 0x6e5a1c
mov ecx, dword [esp + 0xe]
mov dword [esi + 8], ecx
jmp 0x5be85d
cmp ecx, 0x1b
jbe 0x5be8be
movzx ecx, word [esp + 0x22]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
movups xmm1, xmmword [esp + 0x28]
mov ebx, 1
movd xmm0, ebx
rol cx, 8
mov dword [esi], eax
movd dword [esi + 4], xmm0
movups xmmword [esi + 8], xmm1
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edx
mov word [esi + 0x20], cx
jmp 0x5be8a5
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov word [esi + 4], 2
jmp 0x5be8a5
cmp eax, 0x1b
jbe 0x5be8be
movzx eax, word [esp + 0x22]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
movups xmm1, xmmword [esp + 0x28]
mov edi, 1
movd xmm0, edi
rol ax, 8
mov dword [esi], 0
movd dword [esi + 4], xmm0
movups xmmword [esi + 8], xmm1
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov word [esi + 0x20], ax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6e59a8
push 0x42
push str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
call fcn.004faaf0
push 0x6e59fc
push 0x43
push 0x6e59b8
call fcn.004faaf0
nop
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, esi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005be6e0
add esp, 0xc
mov eax, esi
pop esi
pop ebp
ret