joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e3ec
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, 0x4bec00
call fcn.00479eb8
mov dword [ebp - 0xc], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00488c1c
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 8
cmp dword [ebp - 4], 0
sete dl
and edx, 1
test dl, dl
je 0x40e451
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x40e536
cmp byte [ebx + 0x415], 0
je 0x40e461
mov eax, ebx
call fcn.0040e3b8
mov dword [ebx + 4], esi
cmp dword [ebp - 4], 0
je 0x40e46f
mov edx, dword [ebp - 4]
jmp 0x40e474
mov edx, 0x4beaa2
push edx
call sub.WSOCK32.DLL_gethostbyname
test eax, eax
jne 0x40e4a1
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x40e536
push 4
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00479888
add esp, 0xc
lea ecx, [ebp - 0x3c]
push 0x10
push 0
push ecx
call fcn.004798f8
add esp, 0xc
mov word [ebp - 0x3c], 2
mov ax, word [ebx + 4]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x3a], ax
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], edx
push 0x10
push ecx
mov eax, dword [ebx]
push eax
call sub.WSOCK32.DLL_connect
test eax, eax
je 0x40e511
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x40e536
mov byte [ebx + 0x415], 1
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e53c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, 0x4bec24
call fcn.00479eb8
mov dword [ebp - 0xc], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00488c1c
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 8
cmp byte [ebx + 0x415], 0
jne 0x40e596
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x40e612
push 0
cmp dword [ebp - 4], 0
je 0x40e5a6
mov ecx, dword [ebp - 4]
mov eax, dword [ecx - 4]
jmp 0x40e5a8
xor eax, eax
push eax
cmp dword [ebp - 4], 0
je 0x40e5b4
mov edx, dword [ebp - 4]
jmp 0x40e5b9
mov edx, 0x4beaa3
push edx
mov eax, dword [ebx]
push eax
call sub.WSOCK32.DLL_send
inc eax
jne 0x40e5e5
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x40e612
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.0040eff4
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f424
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, 0x4bf134
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.00479eb8
cmp dword [ebx], 0
jne 0x40f494
push 0
push 0x80
push 4
lea esi, [ebx + 0x38]
push 0
push 3
push 0xc0000000
cmp dword [esi], 0
je 0x40f45d
mov eax, dword [esi]
jmp 0x40f462
mov eax, 0x4bf084
push eax
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
mov dword [ebx], edi
cmp edi, 0xffffffff
jne 0x40f486
xor eax, eax
mov dword [ebx], eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov eax, edx
jmp 0x40f53f
push 2
push 0
push 0
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebx + 0x20]
push eax
call sub.KERNEL32.DLL_EnterCriticalSection
lea eax, [ebp + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebx + 0x840]
push ecx
call fcn.0047d5b0
mov esi, eax
add esp, 0xc
lea eax, [ebx + 0x840]
xor edx, edx
mov byte [ebx + esi + 0x840], 0
push eax
lea ecx, [ebp - 4]
mov word [ebp - 0x18], 8
push ebx
mov dword [ebp - 4], edx
push ecx
inc dword [ebp - 0xc]
call fcn.0040f3b4
add esp, 8
cmp dword [ebp - 4], 0
je 0x40f4eb
mov eax, dword [ebp - 4]
jmp 0x40f4f0
mov eax, 0x4bf08d
push eax
push str._s_t_s_r_n
lea edx, [ebx + 0xc40]
push edx
call fcn.0047d588
add esp, 0x10
mov esi, eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
push 0
lea ecx, [ebp - 0x2c]
push ecx
push esi
lea eax, [ebx + 0xc40]
push eax
mov edx, dword [ebx]
push edx
call sub.KERNEL32.DLL_WriteFile
add ebx, 0x20
push ebx
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412c90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x4132fc
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe38
push ebx
push esi
mov dword [ebp - 4], eax
lea ebx, [ebp - 4]
lea esi, [ebp - 0x38]
mov eax, 0x4c0784
call fcn.00479eb8
mov word [esi + 0x10], 8
mov eax, dword [ebx]
xor edx, edx
add eax, 8
mov dword [eax], edx
xor edx, edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0xc
mov dword [eax], edx
xor edx, edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x10
mov dword [eax], edx
xor edx, edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x18
mov dword [eax], edx
xor edx, edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [eax], edx
xor edx, edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x24
mov dword [eax], edx
xor edx, edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x40
mov dword [eax], edx
xor edx, edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x44
mov dword [eax], edx
lea edx, [ebp - 0x1c8]
mov ax, 0x202
inc dword [esi + 0x1c]
push edx
push eax
call sub.WSOCK32.DLL_WSAStartup
mov ecx, dword [ebx]
xor edx, edx
mov dword [ecx], 0xffffffff
mov eax, dword [ebx]
mov dword [eax + 4], edx
lea eax, [ebp - 8]
mov word [esi + 0x10], 0x14
mov edx, 0x4c0342
call fcn.00488be4
inc dword [esi + 0x1c]
lea edx, [ebp - 8]
mov eax, dword [ebx]
add eax, 8
call fcn.00488e00
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
mov word [esi + 0x10], 0x20
mov edx, 0x4c0343
lea eax, [ebp - 0xc]
call fcn.00488be4
inc dword [esi + 0x1c]
lea edx, [ebp - 0xc]
mov eax, dword [ebx]
add eax, 0xc
call fcn.00488e00
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00488dd0
mov word [esi + 0x10], 0x2c
mov edx, 0x4c0344
lea eax, [ebp - 0x10]
call fcn.00488be4
inc dword [esi + 0x1c]
lea edx, [ebp - 0x10]
mov eax, dword [ebx]
add eax, 0x10
call fcn.00488e00
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00488dd0
mov word [esi + 0x10], 0x38
mov edx, 0x4c0345
lea eax, [ebp - 0x14]
call fcn.00488be4
inc dword [esi + 0x1c]
lea edx, [ebp - 0x14]
mov eax, dword [ebx]
add eax, 0x24
call fcn.00488e00
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00488dd0
mov ecx, dword [ebx]
mov byte [ecx + 0x20], 0
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x28], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x2c], eax
mov edx, dword [ebx]
mov dword [edx + 0x30], 1
mov ecx, dword [ebx]
mov dword [ecx + 0x3c], 0xc8
mov eax, dword [ebx]
mov byte [eax + 0x34], 1
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x38], ecx
mov eax, dword [esi]
mov dword fs:[0], eax
mov eax, dword [ebx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413a84
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, edx
push ebx
call fcn.00479a2c
pop ecx
mov ecx, eax
xor edx, edx
mov eax, ebx
cmp ecx, edx
jle 0x413aa4
xor byte [eax], 0x26
xor byte [eax], 0x2e
inc edx
inc eax
cmp ecx, edx
jg 0x413a98
pop ebx
ret

Function at 0x414028
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, 0x4c0b08
call fcn.00479eb8
mov dword [ebp - 0x10], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00488c1c
inc dword [ebp - 0x10]
mov word [ebp - 0x1c], 8
mov dword [ebx + 4], esi
cmp dword [ebp - 4], 0
je 0x41406a
mov edx, dword [ebp - 4]
jmp 0x41406f
mov edx, 0x4c04e1
push edx
call sub.WSOCK32.DLL_gethostbyname
test eax, eax
jne 0x41409c
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x414160
push 4
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
push eax
lea edx, [ebp - 0x30]
push edx
call fcn.00479888
add esp, 0xc
lea ecx, [ebp - 0x40]
push 0x10
push 0
push ecx
call fcn.004798f8
add esp, 0xc
mov word [ebp - 0x1c], 0x14
mov eax, dword [ebp - 0x30]
push eax
call sub.WSOCK32.DLL_inet_ntoa
mov edx, eax
lea eax, [ebp - 8]
call fcn.00488be4
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
lea eax, [ebx + 0x18]
call fcn.00488e00
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x40], 2
mov cx, word [ebx + 4]
push ecx
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x3e], ax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
push 0x10
push edx
mov ecx, dword [ebx]
push ecx
call sub.WSOCK32.DLL_connect
inc eax
jne 0x414142
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x414160
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415558
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe38
push ebx
push esi
mov dword [ebp - 4], eax
lea ebx, [ebp - 4]
lea esi, [ebp - 0x38]
mov eax, 0x4c2190
call fcn.00479eb8
mov word [esi + 0x10], 8
mov eax, dword [ebx]
xor edx, edx
add eax, 8
mov dword [eax], edx
xor edx, edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0xc
mov dword [eax], edx
xor edx, edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x10
mov dword [eax], edx
xor edx, edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x18
mov dword [eax], edx
xor edx, edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [eax], edx
xor edx, edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x24
mov dword [eax], edx
lea edx, [ebp - 0x1c8]
mov ax, 0x202
inc dword [esi + 0x1c]
push edx
push eax
call sub.WSOCK32.DLL_WSAStartup
mov ecx, dword [ebx]
xor edx, edx
mov dword [ecx], 0xffffffff
mov eax, dword [ebx]
mov dword [eax + 4], edx
lea eax, [ebp - 8]
mov word [esi + 0x10], 0x14
mov edx, 0x4c1bc2
call fcn.00488be4
inc dword [esi + 0x1c]
lea edx, [ebp - 8]
mov eax, dword [ebx]
add eax, 8
call fcn.00488e00
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
mov word [esi + 0x10], 0x20
mov edx, 0x4c1bc3
lea eax, [ebp - 0xc]
call fcn.00488be4
inc dword [esi + 0x1c]
lea edx, [ebp - 0xc]
mov eax, dword [ebx]
add eax, 0xc
call fcn.00488e00
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00488dd0
mov word [esi + 0x10], 0x2c
mov edx, 0x4c1bc4
lea eax, [ebp - 0x10]
call fcn.00488be4
inc dword [esi + 0x1c]
lea edx, [ebp - 0x10]
mov eax, dword [ebx]
add eax, 0x10
call fcn.00488e00
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00488dd0
mov word [esi + 0x10], 0x38
mov edx, 0x4c1bc5
lea eax, [ebp - 0x14]
call fcn.00488be4
inc dword [esi + 0x1c]
lea edx, [ebp - 0x14]
mov eax, dword [ebx]
add eax, 0x24
call fcn.00488e00
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00488dd0
mov ecx, dword [ebx]
mov byte [ecx + 0x20], 0
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x28], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x2c], eax
mov edx, dword [ebx]
mov dword [edx + 0x30], 1
mov ecx, dword [ebx]
mov byte [ecx + 0x34], 1
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x38], edx
mov ecx, dword [esi]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415bec
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, edx
push ebx
call fcn.00479a2c
pop ecx
mov ecx, eax
xor edx, edx
mov eax, ebx
cmp ecx, edx
jle 0x415c0c
xor byte [eax], 0x26
xor byte [eax], 0x2e
inc edx
inc eax
cmp ecx, edx
jg 0x415c00
pop ebx
ret

Function at 0x4160a4
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, 0x4c24e8
call fcn.00479eb8
mov dword [ebp - 0x10], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00488c1c
inc dword [ebp - 0x10]
mov word [ebp - 0x1c], 8
mov dword [ebx + 4], esi
cmp dword [ebp - 4], 0
je 0x4160e6
mov edx, dword [ebp - 4]
jmp 0x4160eb
mov edx, 0x4c2023
push edx
call sub.WSOCK32.DLL_gethostbyname
test eax, eax
jne 0x416118
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x4161dc
push 4
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
push eax
lea edx, [ebp - 0x30]
push edx
call fcn.00479888
add esp, 0xc
lea ecx, [ebp - 0x40]
push 0x10
push 0
push ecx
call fcn.004798f8
add esp, 0xc
mov word [ebp - 0x1c], 0x14
mov eax, dword [ebp - 0x30]
push eax
call sub.WSOCK32.DLL_inet_ntoa
mov edx, eax
lea eax, [ebp - 8]
call fcn.00488be4
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
lea eax, [ebx + 0x18]
call fcn.00488e00
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x40], 2
mov cx, word [ebx + 4]
push ecx
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x3e], ax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
push 0x10
push edx
mov ecx, dword [ebx]
push ecx
call sub.WSOCK32.DLL_connect
inc eax
jne 0x4161be
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x4161dc
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4188c4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe4c
mov eax, 0x4c33c4
call fcn.00479eb8
mov word [ebp - 0x14], 8
mov edx, 0x4c3408
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
lea eax, [ebp - 0x1b4]
push eax
push 1
call sub.WSOCK32.DLL_WSAStartup
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 8], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xffffffff
mov edx, dword [ebp + 8]
mov byte [edx + 4], 0
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x418c04
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push 0
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [eax + 0xc]
push eax
call sub.WSOCK32.DLL_send
mov ebx, eax
test ebx, ebx
jg 0x418c3d
call sub.WSOCK32.DLL_WSAGetLastError
push eax
push str.send_error:__d
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 0xc
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push 0
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [eax + 0xc]
push eax
call sub.WSOCK32.DLL_recv
mov ebx, eax
test ebx, ebx
jg 0x418c7d
call sub.WSOCK32.DLL_WSAGetLastError
push eax
push str.recv_error:__d
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 0xc
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x418cbc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x4c3418
test edx, edx
jne 0x418cda
xor eax, eax
jmp 0x418dc2
xor eax, 0xffffffff
cmp ebx, 8
jb 0x418da2
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
sub ebx, 8
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
cmp ebx, 8
mov eax, esi
jae 0x418ce6
test ebx, ebx
je 0x418dbf
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
dec ebx
mov eax, esi
jne 0x418da6
xor eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x41a2f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, 0x4c4090
push ebx
push esi
push edi
call fcn.00479eb8
mov dword [ebp - 8], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00488c1c
inc dword [ebp - 8]
xor edi, edi
mov word [ebp - 0x14], 8
mov eax, dword [ebp + 0xc]
call fcn.004334fc
test al, al
jne 0x41a34f
mov eax, edi
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 8]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x41a464
push 0
push 0x80
push 3
push 0
push 1
push accept
cmp dword [ebp + 0xc], 0
je 0x41a36c
mov ecx, dword [ebp + 0xc]
jmp 0x41a371
mov ecx, 0x4c3b49
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41a3a1
mov eax, edi
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 8]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x41a464
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov esi, eax
test esi, esi
ja 0x41a3d8
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, edi
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 8]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x41a464
push esi
call fcn.00477c2c
pop ecx
mov dword [ebp - 0x28], eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
push esi
mov eax, dword [ebp - 0x28]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
cmp esi, dword [ebp - 0x2c]
je 0x41a428
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 0x28]
push edx
call fcn.00477a64
pop ecx
mov eax, edi
push eax
dec dword [ebp - 8]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x41a464
push esi
mov ecx, dword [ebp - 0x28]
push ecx
push 0
call fcn.00418cbc
mov edi, eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.00477a64
pop ecx
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, edi
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 8]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41eeec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 4
lea edx, [ebp + 0xc]
push edx
call fcn.0041b090
add esp, 0xc
call fcn.00481338
xor dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0x3ff
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 0xc]
lea edx, [ebp + eax - 0x10]
jmp 0x41ef38
mov ecx, eax
and ecx, 0x3ff
lea esi, [ebx + ecx + 8]
mov cl, byte [edx]
xor byte [esi], cl
inc eax
inc edx
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
cmp eax, ecx
jl 0x41ef26
inc dword [ebx + 4]
mov eax, dword [ebx + 4]
and eax, 0x800003ff
jns 0x41ef56
dec eax
or eax, 0xfffffc00
inc eax
test eax, eax
jne 0x41ef61
push ebx
call fcn.0041eea0
pop ecx
xor esi, esi
lea eax, [ebx + 8]
mov ebx, eax
call fcn.00481338
mov ecx, 0xff
cdq
idiv ecx
xor byte [ebx], dl
inc esi
inc ebx
cmp esi, 0x400
jl 0x41ef68
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420220
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push ecx
push 0x420120
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret
Function at 0x4206cc
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebx, ecx
mov edi, edx
mov esi, eax
push 1
lea eax, [esp + 0x10]
push eax
call sub.ADVAPI32.DLL_InitializeSecurityDescriptor
push 0
push 0
push 1
lea edx, [esp + 0x18]
push edx
call sub.ADVAPI32.DLL_SetSecurityDescriptorDacl
mov dword [esp], 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 4], ecx
xor eax, eax
mov dword [esp + 8], eax
push ebx
mov ebp, edi
push ebp
push 0
push 4
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
mov ebx, eax
push 0
push 0
push 0
push 0xf001f
push ebx
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [esi], eax
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
je 0x42074d
push ebp
push 0
mov edx, dword [esi]
push edx
call fcn.004798f8
add esp, 0xc
mov eax, ebx
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x420b84
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
je 0x420c02
lea edx, [ebp - 0xc]
push edx
push 0x4c663c
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
je 0x420bd2
mov eax, 2
jmp 0x420bd4
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0x10
lea edx, [ebp - 0x1c]
push edx
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
call sub.KERNEL32.DLL_GetLastError
test eax, eax
sete bl
and ebx, 1
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret