joyce8/EMBER2024-capa huggingface dataset:
Function at 0x578544
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5786ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5d0df8]
mov eax, dword [eax]
mov ax, word [eax + 0x44]
mov word [ebp - 0x16], ax
mov eax, dword [0x5d0df8]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00480d34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.004457c4
xor edx, edx
push ebp
push 0x578691
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x578601
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
call fcn.00406624
push eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x370]
call fcn.0057663c
push eax
mov eax, dword [0x5d09f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x5785f7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004043a4
jmp 0x578698
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57863d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004453a4
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.005783dc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x578619
push 0
mov edx, 0x578374
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00444f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578698
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.00445810
mov eax, dword [0x5d0df8]
mov eax, dword [eax]
mov dx, word [ebp - 0x16]
call fcn.00480d34
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5786b5
lea eax, [ebp - 0x10]
call fcn.00406624
ret
Function at 0x579688
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
test dl, dl
je 0x57969f
add esp, 0xfffffff0
call fcn.00403e90
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.0050cb94
lea eax, [esi + 0x4c0]
mov edx, 0x5797bc
call fcn.004049b0
xor eax, eax
mov dword [esi + 0x484], eax
mov dl, 1
mov eax, esi
call fcn.0044d7d4
mov byte [esi + 0x48b], 1
mov al, byte [0x5797c4]
mov byte [esi + 0x48d], al
mov byte [esi + 0x488], 1
mov byte [esi + 0x48a], 1
mov byte [esi + 0x489], 0
mov dl, 1
mov eax, dword [0x4185d0]
call fcn.00403afc
mov dword [esi + 0x4a0], eax
xor eax, eax
mov dword [esi + 0x4a4], eax
mov byte [esi + 0x48c], 0
mov byte [esi + 0x4b8], 0
push 0x4001
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
push 0x5797c8
call sub.shell32.dll_SHGetFileInfo
mov dword [esi + 0x494], eax
push 0x4000
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
push 0x5797c8
call sub.shell32.dll_SHGetFileInfo
mov dword [esi + 0x490], eax
lea eax, [esi + 0x480]
mov edx, 0x5797d4
call fcn.004049b0
xor edx, edx
mov eax, esi
call fcn.0044dc1c
mov byte [esi + 0x478], 0
mov dword [esi + 0x474], 0xffffffff
mov dword [esi + 0x470], 0xffffffff
mov eax, esi
test bl, bl
je 0x5797ab
call fcn.00403ee8
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x57e37c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
test dl, dl
je 0x57e393
add esp, 0xfffffff0
call fcn.00403e90
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004ef6fc
xor eax, eax
mov dword [ebx + 0x46c], eax
push 0x4001
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x57e45c
call sub.shell32.dll_SHGetFileInfo
mov esi, eax
mov dword [ebx + 0x454], esi
lea eax, [ebx + 0x458]
push eax
lea eax, [ebx + 0x45c]
push eax
push esi
call fcn.00430d84
mov byte [ebx + 0x47a], 0
mov al, byte [0x57e460]
mov byte [ebx + 0x478], al
lea eax, [ebx + 0x468]
mov edx, 0x57e46c
call fcn.004049b0
mov byte [ebx + 0x479], 1
mov dl, 1
mov eax, dword [0x5749ac]
call fcn.0057e32c
mov dword [ebx + 0x450], eax
push ebx
push 0x57e58c
mov eax, ebx
call fcn.004f0f60
mov dword [ebx + 0x344], ebx
mov dword [ebx + 0x340], 0x57e478
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x57e451
call fcn.00403ee8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x583014
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x583185
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x583160
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404b44
lea eax, [ebp - 0x118]
mov edx, 0x58319c
call fcn.00404c40
mov eax, dword [ebp - 0x118]
call fcn.00404e38
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x5830d2
lea eax, [ebp - 0x111]
call fcn.0040a4c8
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404a4c
jmp 0x5830d9
mov eax, esi
call fcn.0040495c
cmp bl, 0x61
jae 0x5830fa
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e53c
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004049b0
jmp 0x583114
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e4b0
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004049b0
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x5831a8
call fcn.0040abd0
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004049b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x583167
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x588468
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e28
xor eax, eax
push ebp
push 0x5884cc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.005884d8
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a6e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5884d3
lea eax, [ebp - 4]
call fcn.0040495c
ret
Function at 0x588a14
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404e28
xor eax, eax
push ebp
push 0x588b04
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.0058820c
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a310
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00588f7c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a1f4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00588ff0
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x588b0b
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404980
ret
Function at 0x588b14
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404e28
xor eax, eax
push ebp
push 0x588c14
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.0058820c
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
cmp dword [ebp - 4], 0
je 0x588bda
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a310
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00588f7c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a1f4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00588ff0
jmp 0x588bec
xor edx, edx
mov eax, ebx
call fcn.00588f7c
xor edx, edx
mov eax, ebx
call fcn.00588ff0
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x588c1b
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404980
ret

Function at 0x58eef8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x148]
mov edx, ebx
mov eax, edi
call fcn.0058f11c
mov esi, eax
mov dword [edi + 0x148], esi
and esi, 0xff
add dword [edi + 0x14c], esi
imul esi, dword [edi + 0x14c], 0x8088405
inc esi
mov dword [edi + 0x14c], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x150]
mov eax, edi
call fcn.0058f11c
mov dword [edi + 0x150], eax
pop edi
pop esi
pop ebx
ret

Function at 0x58ef6c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x58ef91
inc esi
mov eax, edi
call fcn.0058ef50
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.0058eef8
inc ebx
dec esi
jne 0x58ef7b
pop edi
pop esi
pop ebx
ret
Function at 0x58f020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404e28
xor eax, eax
push ebp
push 0x58f095
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0058ef98
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.0058ef50
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.0058eef8
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x58f060
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58f09c
lea eax, [ebp - 4]
call fcn.0040495c
ret
Function at 0x58fa54
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x58fc24
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x58fbe0
mov eax, dword [ebp - 4]
call fcn.00591188
cmp ebx, eax
jge 0x58fbe0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf8]
mov edx, ebx
call fcn.00586b88
mov edx, dword [0x58851c]
call fcn.00403cdc
mov esi, eax
mov eax, esi
call fcn.00588f10
test al, al
je 0x58fbd6
xor eax, eax
mov dword [ebp - 0x10], eax
mov edi, dword [esi + 0x3c]
test edi, edi
jne 0x58fbca
xor eax, eax
push ebp
push 0x58fbc3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0058ffcc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110]
call fcn.0041df34
mov dword [ebp - 0x10], eax
mov edx, dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110]
xor ecx, ecx
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x3e]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx edx, word [ebp - 0x22]
movzx eax, word [ebp - 0x20]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110]
mov cx, 1
mov esi, dword [eax]
call dword [esi + 0x14]
movzx esi, word [ebp - 0x1e]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00404fc4
mov eax, dword [ebp - 8]
call fcn.00404e90
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov al, byte [eax + 0x24]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0058fdb4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov dl, byte [ebp - 9]
mov byte [eax + 0x24], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58fc0e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x58fbc2
mov eax, dword [ebp - 4]
call fcn.00590050
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040a6e0
jmp 0x58fc0e
mov eax, dword [ebp - 8]
call fcn.0040495c
jmp 0x58fc0e
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x44], 0
lea eax, [ebp - 0x48]
push eax
push 0
lea edx, [ebp - 0x4c]
mov eax, 0xb3
call fcn.00409c18
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x4183a8]
call fcn.0040d6a8
call fcn.004042f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58fc2b
lea eax, [ebp - 0x4c]
call fcn.0040495c
ret
Function at 0x592a90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x592ae1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x592ac8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x592ab8
jmp 0x592ae1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x592ac9
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5a6ff4
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00407e40
ret

Function at 0x5a7698
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 3
add esp, 0xfffff004
push eax
dec eax
jne 0x5a76a1
mov eax, dword [ebp - 4]
add esp, 0xfffff7e8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x381c], edx
mov dword [ebp - 0x3818], edx
mov dword [ebp - 0x3814], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e28
xor eax, eax
push ebp
push 0x5a77b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x3804
lea eax, [ebp - 0x3810]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00403390
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x3810]
push eax
call sub.iphlpapi.dll_GetIpForwardTable
test eax, eax
jne 0x5a778d
mov esi, dword [ebp - 0x3810]
test esi, esi
jl 0x5a778d
inc esi
lea ebx, [ebp - 0x380c]
lea edx, [ebp - 0x3814]
mov eax, dword [ebx]
call fcn.005a75ec
mov eax, dword [ebp - 0x3814]
mov edx, 0x5a77cc
call fcn.00404d84
jne 0x5a7787
lea edx, [ebp - 0x3818]
mov eax, dword [ebx + 4]
call fcn.005a75ec
mov eax, dword [ebp - 0x3818]
mov edx, 0x5a77cc
call fcn.00404d84
jne 0x5a7787
lea edx, [ebp - 0x381c]
mov eax, dword [ebx + 0xc]
call fcn.005a75ec
mov eax, dword [ebp - 0x381c]
mov edx, dword [ebp - 4]
call fcn.00404d84
jne 0x5a7787
mov eax, dword [ebx + 0x10]
mov dword [ebp - 8], eax
jmp 0x5a778d
add ebx, 0x38
dec esi
jne 0x5a7722
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a77ba
lea eax, [ebp - 0x381c]
mov edx, 3
call fcn.00404980
lea eax, [ebp - 4]
call fcn.0040495c
ret
Function at 0x5a77dc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e28
mov eax, dword [ebp - 8]
call fcn.00404e28
mov eax, dword [ebp - 0xc]
call fcn.00404e28
lea ebx, [ebp - 0x44]
xor eax, eax
push ebp
push 0x5a78f8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5a78d1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x5a7838
lea eax, [ebp - 8]
mov edx, 0x5a7914
call fcn.004049f4
mov eax, ebx
mov edx, 0x38
call fcn.00407e40
lea eax, [ebp - 4]
call fcn.00404e90
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebx], eax
lea eax, [ebp - 8]
call fcn.00404e90
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 8], eax
lea eax, [ebp - 0xc]
call fcn.00404e90
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 3
mov dword [ebx + 0x18], 3
mov dword [ebx + 0x1c], 4
xor eax, eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 1
mov dword [ebx + 0x28], 0xffffffff
mov dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x30], 0xffffffff
mov dword [ebx + 0x34], 0xffffffff
mov eax, ebx
call fcn.005a74f8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a78dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a78ff
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404980
ret

Function at 0x5a94bc
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe4
mov byte [esp], al
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x5a953e
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
push eax
push 0x5a9548
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp byte [esp], 0
je 0x5a9504
mov dword [esp + 0x18], 2
jmp 0x5a950a
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
add esp, 0x1c
pop ebx
ret
Function at 0x5a95dc
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404e28
xor eax, eax
push ebp
push 0x5a96f1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x5a96db
mov al, 1
call fcn.005a94bc
mov eax, dword [ebp - 4]
call fcn.00404c38
mov ebx, eax
add ebx, ebx
add ebx, 0x15
mov eax, ebx
call fcn.004027f0
mov dword [ebp - 0x10], eax
mov ecx, ebx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00405a9c
push esi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5a96d4
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
push 0x1000
push ebx
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x5a96b5
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x5a9704
push 0x5a9714
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a96db
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
call fcn.00402810
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a96f8
lea eax, [ebp - 4]
call fcn.0040495c
ret
Function at 0x5a9a98
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e28
xor eax, eax
push ebp
push 0x5a9bff
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x5a9bdd
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor ecx, ecx
push ebp
push 0x5a9bc0
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.0040a58c
lea eax, [ebp - 0x298]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x5a9baf
mov edx, dword [eax + 0xc]
test edx, edx
je 0x5a9ba6
mov ebx, dword [edx]
test ebx, ebx
je 0x5a9b9d
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebx]
mov dword [ebp - 0x2b8], eax
mov byte [ebp - 0x2b4], 0
xor eax, eax
mov al, byte [ebx + 1]
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 0x2ac], 0
xor eax, eax
mov al, byte [ebx + 2]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 0x2a4], 0
xor eax, eax
mov al, byte [ebx + 3]
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 0x29c], 0
lea edx, [ebp - 0x2b8]
mov ecx, 3
mov eax, 0x5a9c18
call fcn.0040abd0
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.004049b0
jmp 0x5a9bb6
mov eax, esi
call fcn.0040495c
jmp 0x5a9bb6
mov eax, esi
call fcn.0040495c
jmp 0x5a9bb6
mov eax, esi
call fcn.0040495c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a9bca
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a9be4
call sub.WS2_32.dll_WSACleanup
ret

Function at 0x5aa774
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5aa838
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
sub eax, 1
jb 0x5aa7a7
je 0x5aa7ba
dec eax
je 0x5aa7cd
jmp 0x5aa7de
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
jmp 0x5aa7de
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
jmp 0x5aa7de
lea eax, [ebp - 0x100]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
cmp ebx, 2
jne 0x5aa7f7
mov eax, esi
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404bcc
jmp 0x5aa81f
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404bcc
mov edx, dword [ebp - 0x104]
mov eax, esi
mov ecx, 0x5aa850
call fcn.00404c84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5aa83f
lea eax, [ebp - 0x104]
call fcn.0040495c
ret