joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1e40
Capabilities:
Check os version
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x11c], 0
push esi
lea esi, [ebx + 0xf8]
mov eax, dword [ebx + 4]
push edi
mov dword [ebp - 0x134], eax
jne 0x4a1eeb
push 0x110
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x130], 0x114
push 0
push eax
call fcn.0064cf50
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a1eae
cmp dword [ebp - 0x12c], 6
jb 0x4a1eae
mov cl, 1
jmp 0x4a1eb0
xor cl, cl
push 0
push 0
sub esp, 0x10
movzx eax, cl
add ax, 8
mov edx, str.Segoe_UI
movzx eax, ax
test cl, cl
push eax
mov eax, str.MS_Shell_Dlg
cmovne eax, edx
push eax
push 0
push 0x40000040
push 0
push 0
sub esp, 8
push 0
push ecx
lea ecx, [esi + 0x20]
call fcn.004a2c10
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4a1f08
call fcn.006205f1
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4a1f08
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4a1f68
push 0
push 0
push eax
call fcn.006206f3
lea edi, [esi + 8]
test edi, edi
je 0x4a1ff5
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x79dd0c
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x79dd24]
mov dword [edi + 8], eax
push 0x79dd0c
mov dword [0x79dd24], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x4a4090
push dword [ebp - 0x134]
push dword [esi + 0x24]
push dword [0x7a98e8]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [ebx + 0xfc]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebp - 0xc]
lea ecx, [ebx + 4]
sub eax, dword [ebp - 0x14]
push eax
call fcn.0049d090
push 0xfffffffffffffff0
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xfffffff7
cmp eax, ecx
je 0x4a1fb6
push ecx
push 0xfffffffffffffff0
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xffff0000
push 0
push 0x401
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
mov byte [esi + 0x78], 0
call fcn.0049c090
push 5
push dword [ebx + 0xfc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006116c3
mov esp, ebp
pop ebp
ret
push 1
push 0xc0000005
call fcn.0046b2c0
int3

Function at 0x4a2460
Capabilities:
Check if file exists
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add ecx, 0xffffffcc
pop ebp
jmp fcn.004a1490
Function at 0x4a6340
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x686a88
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, 0x6a7
lea ecx, [ebp - 0x28]
call fcn.00478590
mov dword [ebp - 4], 0
lea eax, [ebp - 0x13c]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov ebx, dword [esi + 0x26c]
cmovae edi, dword [ebp - 0x28]
push 0x110
push 0
push eax
mov dword [ebp - 0x140], 0x114
call fcn.0064cf50
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a63d3
cmp dword [ebp - 0x13c], 6
jb 0x4a63d3
mov cl, 1
jmp 0x4a63d5
xor cl, cl
push 0
push 0
sub esp, 0x10
movzx eax, cl
add ax, 8
add esi, 0x20
movzx eax, ax
test cl, cl
mov edx, str.Segoe_UI
push eax
mov eax, str.MS_Shell_Dlg
cmovne eax, edx
push eax
push ebx
push 0x80c80040
push 0x5a
push 0x10a
sub esp, 8
push edi
push ecx
mov ecx, esi
call fcn.004a2c10
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00453390
sub esp, 0xc
push 0x7697d0
push ecx
push 0x20000
sub esp, 0x10
push 0x64
push ecx
mov eax, esp
mov ecx, esi
mov dword [eax], 0x82
call fcn.004a64b0
sub esp, 0xc
push 0x7697d0
push ecx
push 0x20000
sub esp, 0x10
push 0x65
push ecx
mov eax, esp
mov ecx, esi
mov dword [eax], 0x82
call fcn.004a64b0
sub esp, 0xc
push 0x7697d0
push ecx
push 0x10003
sub esp, 0x10
push 0x66
push ecx
mov eax, esp
mov ecx, esi
mov dword [eax], 0x80
call fcn.004a64b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret

Function at 0x4a6ed0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6842d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 4], 0
mov edx, ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x28], 0x22
call fcn.004a6b60
mov byte [ebp - 4], 1
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4a6f2d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00459fe0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00453390
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jae 0x4a6f68
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [eax + ecx*2], 0x22
jmp 0x4a6f7a
push 0x22
mov byte [ebp - 0x44], 0
push dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0046acb0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push 0x76b264
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x28]
call fcn.00453390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
Function at 0x4a7ef0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a7fd7
cmp dword [ebp - 0x108], 2
jne 0x4a7fd7
cmp dword [ebp - 0x114], 6
jb 0x4a7fd7
push ebx
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push 8
mov ebx, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4a7fc5
lea eax, [ebp - 0x124]
mov dword [ebp - 0x120], 0
push eax
push 4
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0
push eax
push 0x14
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4a7fb9
mov ecx, dword [ebp - 0x120]
xor ebx, ebx
test ecx, ecx
sete bl
test esi, esi
je 0x4a7fb9
xor edx, edx
test ecx, ecx
setne dl
mov dword [esi], edx
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [esi], 1
xor ecx, ebp
pop esi
call fcn.006116c3
mov esp, ebp
pop ebp
ret
Function at 0x4ab110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0
push ecx
push 0
lea ecx, [ebp - 0x138]
call fcn.00489640
lea eax, [ebp - 0x130]
push eax
push 0
lea eax, [ebp - 0x138]
push eax
push 0x474300
push 0
push 0
call fcn.0065f4c6
add esp, 0x18
mov dword [ebp - 0x134], eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x134]
xor esi, esi
mov dword [ebp - 0x13c], esi
test eax, eax
je 0x4ab18c
lea ecx, [ebp - 0x13c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [ebp - 0x13c]
lea ecx, [ebp - 0x138]
call fcn.004899c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.006116c3
mov esp, ebp
pop ebp
ret
Function at 0x4b8bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x688446
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x4b8c9c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x4b8c9c
call fcn.004b7690
mov edi, eax
jmp 0x4b8dbb
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4b8cbf
call fcn.004b7690
jmp 0x4b8dae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4b8cdd
call fcn.004b7690
jmp 0x4b8dae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4b8cfe
mov edi, 0x8007000e
jmp 0x4b8db0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4b8df4
jb 0x4b8d1c
cmp eax, 0xffffffff
ja 0x4b8df4
cmp eax, 0x400
jbe 0x4b8d31
push eax
lea ecx, [ebp - 0x418]
call fcn.004b7660
jmp 0x4b8d57
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x4b8d57
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x4b8d6e
mov edi, 0x8007000e
jmp 0x4b8db0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4b8d8e
call fcn.004b7690
jmp 0x4b8dae
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004b8a90
mov edi, eax
test esi, esi
je 0x4b8dbb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4b8dd4
lea ecx, [ebp - 0x418]
call fcn.004b7640
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.0046abb0
int3
Function at 0x4e9b90
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.006122b0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.004c3890
mov ebx, eax
push ebx
push esi
call fcn.004c3770
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4e9c19
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4e9bf3
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.004c37e0
push esi
call fcn.004c3930
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4e9c19
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.004c3890
mov ebx, eax
push ebx
push esi
call fcn.004c3770
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4e9c88
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4e9c6e
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.004c37e0
push esi
call fcn.004c3930
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x4e9c11
push esi
call fcn.004c3930
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4ea230
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.006122b0
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0x10
lea eax, [edx + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x4ea274
cmp ecx, edx
jb 0x4ea274
push edi
mov ecx, esi
sub edx, esi
mov edi, 0x10
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x4ea263
pop edi
jmp 0x4ea281
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push 0x10
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call fcn.00504920
add esp, 0x14
pop esi
test eax, eax
je 0x4ea2ab
cmp dword [esp], 0x10
jne 0x4ea2ab
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x4ea3f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4ea453
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4ea453
push ebx
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
cmp edx, eax
mov ebx, eax
cmovb ebx, edx
xor ecx, ecx
test ebx, ebx
je 0x4ea426
mov al, byte [ecx + esi]
xor byte [edi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x4ea417
mov eax, dword [edi + 0xc]
cmp edx, eax
jbe 0x4ea451
sub edx, eax
mov eax, 0x10
cmp edx, eax
cmova edx, eax
xor ecx, ecx
test edx, edx
je 0x4ea451
nop dword [eax]
mov eax, dword [edi + 0xc]
add eax, ecx
mov al, byte [eax + esi]
xor byte [edi + ecx + 0x30], al
inc ecx
cmp ecx, edx
jb 0x4ea440
pop edi
pop ebx
pop esi
ret

Function at 0x4eab80
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.006122b0
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
mov eax, esi
sub eax, ebx
je 0x4eabc8
sub eax, 2
je 0x4eabc8
sub eax, 0x15
je 0x4eabc8
push 0x293
push str.crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.004bafd0
add esp, 0x14
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
call fcn.004ea980
cmp eax, 1
jne 0x4eabc0
mov eax, dword [esp + 0x3c]
xor ecx, ecx
push ebp
push edi
xorps xmm0, xmm0
mov dword [esp + 0x10], ecx
xor edi, edi
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x4eac09
or ecx, 0x400
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x3c], 1
jne 0x4eac17
or ecx, 1
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x4eac6f
cmp esi, 8
je 0x4eacb6
mov ecx, dword [esp + 0x10]
test ecx, 0x400
je 0x4eac7e
push ebp
lea eax, [esp + 0x14]
and ecx, 0xfffffbff
push eax
push dword [esp + 0x40]
or ecx, 4
mov edi, esi
push dword [esp + 0x40]
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x4eac35
mov ebx, 1
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2d6
push str.crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.004bafd0
test edi, edi
cmovne esi, edi
push esi
call fcn.004eb0c0
push eax
push 1
call fcn.004ba660
add esp, 0x20
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2c7
push str.crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.004bafd0
add esp, 0x14
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret

Function at 0x5281a0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x5281b4
mov dword [esp + 0x18], fcn.00526980
jmp fcn.0051ff50
mov dword [esp + 0x18], fcn.00525c10
jmp fcn.0051fc80
Function at 0x5b2350
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x5b2399
mov al, byte [esi]
push eax
call fcn.005b0c50
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x5b2377
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x5bb160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.005bb190
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0066bbbc

Function at 0x5bd9a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5bd9be
cmp dword [esi + 0x78], 0
je 0x5bd9be
push 2
push 3
push esi
call fcn.005b9820
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005e5ea0
add esp, 4
test esi, esi
je 0x5bd9de
cmp dword [esi + 0x78], 0
je 0x5bd9de
push 3
push esi
call fcn.005b9860
add esp, 8
pop esi
pop ebp
ret

Function at 0x5bda90
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x5bdaa5
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x5bdaba
xor al, al
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop ebp
ret

Function at 0x5be9e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x71a], 0
je 0x5bea63
cmp dword [edi + 0x1b0], 0
je 0x5bea2d
push esi
push 1
push edi
call fcn.005d7be0
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.005d7be0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x5bea63
push dword [edi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x6f0654
push 2
push eax
call fcn.0065d7be
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0065d7be
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret
Function at 0x5bedb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [edx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [eax + ecx*4 + 0x150]
push ecx
push eax
push edx
mov dword [ebp - 0x108], edx
call fcn.005bf230
add esp, 0xc
test eax, eax
je 0x5bee0b
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x5bee88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x5bee50
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.005bcc90
push eax
push str.Send_failure:__s
push dword [ebp - 0x108]
call fcn.005bea70
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [eax + 0x970], ebx
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006116c3
mov esp, ebp
pop ebp
ret

Function at 0x5bf230
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x178]
add esi, eax
mov eax, dword [ecx + 0x2a8]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x5bf306
cmp dword [ecx + edx*4 + 0x168], 0x5becb0
jne 0x5bf306
cmp dword [esi], 0
je 0x5bf27d
test edi, edi
je 0x5bf306
mov ebx, dword [ecx + edx*4 + 0x150]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.005e24b0
add esp, 0x14
cmp eax, 0xffffffff
je 0x5bf306
test al, 1
je 0x5bf306
mov ecx, dword [esi]
test ecx, ecx
jne 0x5bf2e1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4e0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x79ca20]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
jne 0x5bf2cc
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x5bf2ff
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x5bf306
add dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x5bfd20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.005dccb0
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.005bd5a0
push dword [ebp + 0xc]
mov edi, eax
call fcn.005bd5a0
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x5bfda7
lea eax, [ebp - 0x20]
push eax
call fcn.005dccb0
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.005dcd60
add esp, 0x20
test edx, edx
ja 0x5bfdca
jb 0x5bfd95
cmp eax, 0x3e8
ja 0x5bfdca
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x5bfd60
test edi, edi
je 0x5bfdb4
push edi
call fcn.00659210
add esp, 4
test esi, esi
je 0x5bfdc1
push esi
call fcn.00659210
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x5bfdd7
push edi
call fcn.00659210
add esp, 4
test esi, esi
je 0x5bfde4
push esi
call fcn.00659210
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5c6dd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x84]
or esi, 0xffffffff
push ecx
mov ebx, dword [edi + 0xc]
mov eax, dword [ebx + 0x154]
push eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5c6e44
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push dword [ebp - 0x8c]
push ebx
push edi
call fcn.005e35a0
add esp, 0xc
cmp esi, 0xffffffff
jne 0x5c6e7d
push str.Error_accept__ing_server_connect
push edi
call fcn.005bea70
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.005beb30
push 1
push esi
mov byte [ebx + 0x26d], 0
mov dword [ebx + 0x154], esi
call fcn.005f01c0
add esp, 0x10
mov byte [ebx + 0x280], 1
cmp dword [edi + 0x1b8], 0
je 0x5c6efa
push 1
push edi
call fcn.005d7be0
mov eax, dword [edi + 0x1b8]
push 1
push esi
push dword [edi + 0x1bc]
call eax
push 0
push edi
mov esi, eax
call fcn.005d7be0
add esp, 0x1c
test esi, esi
je 0x5c6efa
push ebx
push edi
call fcn.005c7340
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006116c3
mov esp, ebp
pop ebp
ret