joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eeba0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x547e68
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, ecx
xor esi, esi
push esi
call fcn.004eee90
mov ecx, eax
call fcn.004f0190
test al, al
jne 0x4eebf1
push 0x65
call fcn.004d7dc0
mov ecx, eax
call fcn.004cc3d0
xor al, al
jmp 0x4eed4c
lea eax, [ebp + 0x3c]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b], 0
call fcn.004db100
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], esi
jmp 0x4eec10
cmp byte [esp + 0x17], 0
je 0x4eec2a
push 1
call fcn.004eee90
mov ecx, eax
call fcn.004f0190
mov byte [esp + 0x17], 0
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.004ff000
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
add esp, 8
push edx
push eax
push ecx
mov ecx, ebp
call fcn.004ee980
mov bl, al
test bl, bl
jne 0x4eecd4
cmp byte [esp + 0x4c], al
je 0x4eec74
mov edx, dword [ebp + 0x28]
mov eax, dword [edx + 0xc]
cmp eax, 0x65
je 0x4eec6f
mov byte [esp + 0x17], bl
cmp eax, 0x66
jne 0x4eec74
mov byte [esp + 0x17], 1
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004ff000
mov eax, dword [esp + 0x28]
cdq
mov ecx, eax
mov eax, dword [esp + 0x30]
add esp, 8
mov esi, edx
cdq
push 0
sub eax, ecx
push 0xf4240
sbb edx, esi
push edx
push eax
call fcn.00528570
mov ecx, dword [ebp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x24]
mov esi, edx
cdq
sub edi, eax
mov eax, dword [esp + 0x2c]
sbb esi, edx
cdq
add edi, eax
adc esi, edx
mov edx, dword [ecx]
mov eax, dword [edx + 0x70]
call eax
mov ecx, 0x3b6
mul ecx
cmp esi, edx
ja 0x4eed16
jb 0x4eecd4
cmp edi, eax
jae 0x4eed16
mov eax, 2
cmp dword [esp + 0x18], eax
jne 0x4eecfe
mov ecx, 1
cmp dword [ebp + 0x38], ecx
jne 0x4eecfe
test byte [0x59d030], al
je 0x4eecfe
mov edx, dword [ebp + 0x30]
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x28], edx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jge 0x4eed26
test bl, bl
je 0x4eec10
jmp 0x4eed26
mov eax, dword [ebp + 0x28]
cmp dword [eax + 0xc], 0
jne 0x4eed26
mov dword [eax + 0xc], 0x64
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0xc]
push eax
call fcn.004d7dc0
mov ecx, eax
call fcn.004cc3d0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004db120
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x10
Function at 0x4eed70
Capabilities:
Check if process is running under wine
Get file version info

Disassembly:
sub esp, 0x20
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
mov ebp, ecx
cmp byte [ebp + 1], 1
je 0x4eee75
mov eax, dword [0x46d8e4]
mov cx, word [0x46d8e8]
push ebx
push esi
lea edx, [esp + 0x18]
mov dword [esp + 0x20], eax
xor ebx, ebx
push edx
lea eax, [esp + 0x24]
push eax
mov word [esp + 0x2c], cx
mov byte [esp + 0x17], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x4eee37
lea ecx, [esi + 0x32]
push edi
push ecx
call fcn.00528917
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4eee36
mov edx, dword [esp + 0x1c]
push edi
push esi
push edx
lea eax, [esp + 0x30]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4eee2d
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x46d8bc
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4eee2d
cmp dword [esp + 0x14], ebx
je 0x4eee2d
mov eax, dword [esp + 0x18]
push 4
push 0x46d8b4
push eax
call fcn.0052865a
add esp, 0xc
test eax, eax
jne 0x4eee2d
mov byte [esp + 0x13], 1
push edi
call fcn.00526d54
add esp, 4
pop edi
lea ecx, [esp + 0x1c]
push ecx
push 1
push ebx
push 0x46d8a0
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x4eee60
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop esi
mov byte [ebp + 1], 1
pop ebx
je 0x4eee71
cmp byte [esp + 7], 1
jne 0x4eee75
mov byte [ebp + 2], 1
mov al, byte [ebp + 2]
mov ecx, dword [esp + 0x20]
pop ebp
xor ecx, esp
call fcn.00526a8a
add esp, 0x20
ret
Function at 0x4f0650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x548198
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.004e92f0
xor eax, eax
mov ecx, esi
mov dword [esp + 0x14], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
call fcn.004f0580
test al, al
jne 0x4f06bc
mov ecx, esi
call fcn.004f0530
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4f0970
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x548268
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov edi, dword [esp + 0x84]
mov ebx, dword [esp + 0x88]
mov esi, ecx
cmp dword [esi + 0x18], 0
mov dword [esi + 0x20], 0xffffffff
je 0x4f0a90
lea eax, [esp + 0x50]
push eax
call fcn.004bc920
cmp dword [edi + 0x18], 0
mov dword [esp + 0x7c], 0
mov ebp, 0x10
jne 0x4f09e4
xor edi, edi
jmp 0x4f09f1
cmp dword [edi + 0x1c], ebp
jb 0x4f09ee
mov edi, dword [edi + 8]
jmp 0x4f09f1
add edi, 8
push 0x3c
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00526600
add esp, 0xc
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x440
cmp dword [esi + 0x1c], ebp
jb 0x4f0a28
mov edx, dword [esi + 8]
mov dword [esp + 0x24], edx
jmp 0x4f0a2f
lea eax, [esi + 8]
mov dword [esp + 0x24], eax
cmp dword [ebx + 0x18], 0
mov dword [esp + 0x28], edi
jne 0x4f0a53
cmp dword [esp + 0x6c], ebp
jb 0x4f0a49
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x2c], ecx
jmp 0x4f0a68
lea edx, [esp + 0x58]
mov dword [esp + 0x2c], edx
jmp 0x4f0a68
cmp dword [ebx + 0x1c], ebp
jb 0x4f0a61
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
jmp 0x4f0a68
add ebx, 8
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x4f0a94
lea ecx, [esp + 0x50]
mov dword [esp + 0x7c], 0xffffffff
call fcn.004bbaf0
xor al, al
jmp 0x4f0ac6
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x4f0aa8
mov ecx, dword [esp + 0x4c]
push ecx
call eax
mov dword [esi + 0x20], eax
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x50]
mov dword [esp + 0x7c], 0xffffffff
call fcn.004bbaf0
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00526a8a
add esp, 0x6c
ret 8
Function at 0x4f0b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5482ec
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x18], 0
mov byte [esp + 0x17], 0
jne 0x4f0bdf
xor al, al
jmp 0x4f0d8e
mov eax, dword [edi + 0x24]
cmp dword [eax + 4], 0
je 0x4f0bd8
mov eax, dword [eax + 0x18]
push 0
push 2
call eax
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4f0bd8
mov dword [esp + 0x9c], 0x128
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [edi + 0x24]
lea edx, [esp + 0x9c]
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x1c]
push ebp
call eax
test eax, eax
je 0x4f0d83
push 1
lea ecx, [esp + 0x80]
push ecx
mov ecx, edi
call fcn.004bd880
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1d0], 0
call fcn.00482270
jmp 0x4f0c50
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0xa4]
je 0x4f0d3c
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x60]
call fcn.004bc7b0
mov ecx, dword [esp + 0x74]
mov byte [esp + 0x1d0], 1
test ecx, ecx
je 0x4f0c99
cmp dword [esp + 0x78], 0x10
mov eax, dword [esp + 0x64]
jae 0x4f0c91
lea eax, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x84]
call fcn.004bd880
mov byte [esp + 0x1d0], 2
test eax, eax
je 0x4f0cbd
lea esi, [eax + 4]
jmp 0x4f0cbf
xor esi, esi
push 1
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x64]
call fcn.004bd880
mov byte [esp + 0x1d0], 3
test eax, eax
je 0x4f0ce0
lea ecx, [eax + 4]
jmp 0x4f0ce2
xor ecx, ecx
cmp dword [esi + 0x18], 0x10
mov edx, dword [esi + 0x14]
jb 0x4f0cf0
mov eax, dword [esi + 4]
jmp 0x4f0cf3
lea eax, [esi + 4]
push edx
push eax
mov eax, dword [ecx + 0x14]
push eax
push 0
call fcn.00481f20
test eax, eax
lea ecx, [esp + 0x3c]
sete bl
mov byte [esp + 0x1d0], 2
call fcn.004bbaf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1d0], 1
call fcn.004bbaf0
mov byte [esp + 0x1d0], 0
test bl, bl
jne 0x4f0d57
lea ecx, [esp + 0x5c]
call fcn.004bbaf0
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + 0x20]
lea edx, [esp + 0x9c]
push edx
push ebp
call eax
test eax, eax
jne 0x4f0c50
jmp 0x4f0d6f
mov ecx, dword [esp + 0xa4]
mov dword [edi + 0x20], ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x17], 1
call fcn.004bbaf0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.004bbaf0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.00526a8a
add esp, 0x1c0
ret

Function at 0x4f3160
Capabilities:
Delete file

Disassembly:
cmp dword [ecx + 0x20], 0x10
jb 0x4f3176
mov ecx, dword [ecx + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
ret
add ecx, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
ret
Function at 0x4f3280
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5487b2
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x1e4], eax
push ebp
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x1f8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x208]
shr eax, 0xe
and al, 1
mov esi, ecx
je 0x4f34a8
lea ecx, [esp + 0x14]
call fcn.00515800
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 4]
mov dword [esp + 0x204], 0
call fcn.004bdf10
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x20]
test edx, 0xffffffe0
je 0x4f345e
lea ecx, [esp + 0x114]
call fcn.004bbad0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x200], 1
cmp esi, eax
jbe 0x4f332c
call fcn.00526bf6
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov edi, esi
mov esi, eax
cmp dword [esp + 0x20], eax
jbe 0x4f333f
call fcn.00526bf6
test ebp, ebp
je 0x4f3349
cmp ebp, dword [esp + 0x14]
je 0x4f334e
call fcn.00526bf6
cmp edi, esi
je 0x4f344a
test ebp, ebp
jne 0x4f343d
call fcn.00526bf6
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4f336f
call fcn.00526bf6
push edi
lea ecx, [esp + 0xf0]
call fcn.004bc340
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x118]
mov byte [esp + 0x204], 2
call fcn.004bcaa0
lea ecx, [esp + 0xec]
mov byte [esp + 0x200], 1
call fcn.004bbaf0
lea ecx, [esp + 0x114]
call fcn.004bba30
test al, al
jne 0x4f341c
mov esi, dword [esp + 0x208]
lea ecx, [esp + 0x114]
push ecx
lea ecx, [esp + 0xf4]
xor esi, 0x4000
mov dword [esp + 0xf0], 0x46da10
call fcn.004bc340
mov dword [esp + 0x110], 0
push esi
lea ecx, [esp + 0xf0]
mov byte [esp + 0x204], 3
call fcn.004f3280
lea ecx, [esp + 0xec]
mov byte [esp + 0x200], 1
call fcn.004f2a40
test ebp, ebp
jne 0x4f3445
call fcn.00526bf6
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4f3431
call fcn.00526bf6
mov eax, dword [esp + 0x24]
add edi, 0x20
jmp 0x4f3332
mov eax, dword [ebp]
jmp 0x4f3365
mov eax, dword [ebp]
jmp 0x4f3427
lea ecx, [esp + 0x114]
mov byte [esp + 0x200], 0
call fcn.004bbaf0
lea ecx, [esp + 0x14]
mov dword [esp + 0x200], 4
call fcn.00487d50
mov edx, dword [esp + 0x14]
push edx
call fcn.005265f5
add esp, 4
mov ecx, dword [esp + 0x1f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.00526a8a
add esp, 0x1f4
ret 4
cmp dword [esi + 0x20], 0x10
jb 0x4f34b3
mov eax, dword [esi + 0xc]
jmp 0x4f34b6
lea eax, [esi + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
test al, al
jne 0x4f347f
call fcn.004b5900
push eax
call fcn.004b5900
push eax
call fcn.004b5900
push eax
call fcn.004b5900
push eax
push 0x3ec
lea ecx, [esp + 0x148]
call fcn.004bbc90
mov dword [esp + 0x200], 5
call sub.KERNEL32.dll_GetLastError
add esi, 4
push esi
lea ecx, [esp + 0x1d4]
mov dword [esp + 0x1f4], eax
call fcn.004bb790
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x30]
call fcn.004bbd20
push 0x552bd0
lea ecx, [esp + 0x30]
push ecx
call fcn.00526c86
int3
Function at 0x4f57e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x548d38
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call fcn.004c1de0
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0
call fcn.004c1900
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
mov ecx, 2
lea eax, [esi + 0xc]
jmp 0x4f5850
mov edx, dword [eax - 8]
mov edi, dword [eax - 4]
add edx, edi
mov dword [eax], edx
test cl, 1
je 0x4f5862
inc edx
mov dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 0x21
jb 0x4f5850
lea ecx, [esp + 0xc]
mov dword [esi + 0x88], 0xc
mov dword [esi + 0x8c], 0x20
mov byte [esi], 1
mov dword [esp + 0x40], 0xffffffff
call fcn.004cc680
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00526a8a
add esp, 0x38
ret

Function at 0x4f7120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x542938
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call fcn.004c2d00
mov ecx, dword [esp + 0x30]
lea eax, [esp + 8]
push eax
mov dword [esp + 0x2c], 0
call fcn.004b5480
lea ecx, [esp + 8]
call fcn.004c2cd0
push eax
lea ecx, [esp + 0xc]
call fcn.004c2ce0
push eax
lea ecx, [esi + 0x78]
call fcn.00501df0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.004eba40
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4

Function at 0x4f77c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x549018
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x3c]
xor ebx, ebx
push ebx
lea eax, [edi + 1]
push eax
lea ecx, [esp + 0x18]
call fcn.0049adc0
mov ecx, dword [esp + 0x38]
push edi
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], ebx
call fcn.004766f0
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], bl
call fcn.004f7760
mov ecx, dword [esp + 0x18]
mov eax, ecx
neg eax
sbb eax, eax
and eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x30]
push eax
call fcn.004f3920
mov ecx, dword [esi + 0x30]
lea edi, [esi + 0x80]
push edi
call fcn.004f7230
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 5
test eax, eax
jbe 0x4f785b
mov dword [esi + 0x98], ebx
lea ecx, [esp + 0x10]
mov byte [esi + 0x7d], bl
call fcn.00476f80
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8
Function at 0x4f7880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x549061
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esi + 0x30]
lea ecx, [eax + 0x28]
mov dword [esp + 0x18], 2
call fcn.004c3c80
mov ecx, dword [esi + 0x30]
xor ebx, ebx
cmp ecx, ebx
je 0x4f78d0
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 0x34]
push eax
call fcn.005265f5
add esp, 4
lea ecx, [esi + 0x80]
mov dword [esi + 0x34], ebx
mov byte [esp + 0x18], 1
call fcn.004880b0
mov dword [esi + 0x38], 0x469080
cmp dword [esi + 0x54], 0x10
jb 0x4f7908
mov eax, dword [esi + 0x40]
push eax
call fcn.005265f5
add esp, 4
mov dword [esi + 0x54], 0xf
mov dword [esi + 0x50], ebx
mov byte [esi + 0x40], bl
mov dword [esi], 0x469080
cmp dword [esi + 0x1c], 0x10
jb 0x4f792d
mov ecx, dword [esi + 8]
push ecx
call fcn.005265f5
add esp, 4
mov dword [esi + 0x1c], 0xf
mov dword [esi + 0x18], ebx
mov byte [esi + 8], bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4f9390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x549348
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
mov esi, ecx
call fcn.004f90f0
push edi
lea ecx, [esp + 0x14]
call fcn.004bc340
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0
call fcn.004bd250
push ecx
mov eax, esp
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esp
mov dword [eax], 0x2001
push ecx
mov ecx, dword [esi + 0x30]
call fcn.004f3610
mov ecx, dword [esi + 0x30]
lea edi, [esi + 0x80]
push edi
call fcn.004f7230
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
sar edx, 5
test edx, edx
jbe 0x4f942a
mov dword [esi + 0x98], 0
lea ecx, [esp + 0x10]
mov byte [esi + 0x7d], 0
mov dword [esp + 0x3c], 0xffffffff
call fcn.004bbaf0
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00526a8a
add esp, 0x34
ret 4
Function at 0x4fc980
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov bl, 1
je 0x4fc9b4
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
call edx
test al, al
je 0x4fc9b4
mov eax, dword [esi + 0x14]
push 0
push 0
push 0x4651d5
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
mov ecx, esi
call eax
test al, al
je 0x4fc9ef
mov ecx, dword [esi + 0x14]
push 2
push ecx
call dword [sym.imp.WSOCK32.dll_shutdown]
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
test eax, eax
jge 0x4fc9e4
mov dword [esi + 0xc], 0x64
xor bl, bl
and dword [esi + 8], 0xfffffffd
mov dword [esi + 0x14], 0xffffffff
call fcn.004fb860
pop esi
mov al, bl
pop ebx
pop ecx
ret 4
Function at 0x4fe6c0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x74
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
mov esi, dword [esp + 0x80]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [edi + 4], ebx
mov dword [edi + 0x18], ebx
mov byte [edi + 0x1c], bl
cmp esi, ebx
je 0x4fe867
push esi
lea ecx, [edi + 0x58]
call fcn.004b5f20
push 0x46945c
push esi
call fcn.0052acb0
add esp, 8
test eax, eax
je 0x4fe7cc
push esi
push 0x46d0e4
lea eax, [esp + 0x44]
push 0x40
push eax
call fcn.00529faf
lea ecx, [esp + 0x4c]
push 0x469464
push ecx
mov byte [esp + 0x93], bl
call fcn.0052acb0
add esp, 0x18
cmp eax, ebx
je 0x4fe73d
mov byte [eax], bl
xor eax, eax
push 0x17
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.004fe1c0
add esp, 4
cmp eax, 1
jne 0x4fe867
mov edx, 0x17
push 0x469464
push esi
mov word [esp + 0x28], dx
call fcn.0052acb0
add esp, 8
cmp eax, ebx
je 0x4fe7bb
add eax, 1
mov dword [esp + 0xc], ebx
je 0x4fe7b7
lea ecx, [esp + 0xc]
push ecx
push 0x46dae0
push eax
call fcn.00529f8d
add esp, 0xc
cmp eax, 1
jne 0x4fe7b7
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x38], ebx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.004fe590
jmp 0x4fe867
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push 0x46d3dc
push esi
call fcn.00529f8d
add esp, 0x18
cmp eax, 4
jne 0x4fe83b
mov ebx, dword [esp + 0x1c]
cmp ebx, 0x100
jae 0x4fe867
mov edx, dword [esp + 0x18]
cmp edx, 0x100
jae 0x4fe867
mov ecx, dword [esp + 0x10]
cmp ecx, 0x100
jae 0x4fe867
mov eax, dword [esp + 0x14]
cmp eax, 0x100
jae 0x4fe867
mov byte [esp + 0xe], cl
push 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], dl
mov byte [esp + 0x13], al
push ecx
jmp 0x4fe860
cmp byte [esi], bl
je 0x4fe867
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
cmp eax, ebx
je 0x4fe867
cmp word [eax + 8], 2
jne 0x4fe867
cmp word [eax + 0xa], 4
jne 0x4fe867
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push 4
push eax
mov ecx, edi
call fcn.004fe4c0
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00526a8a
add esp, 0x74
ret 4
Function at 0x4ff450
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xf8
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0xfc]
push ebx
push ebp
mov ebp, dword [esp + 0x114]
mov ebx, ecx
mov ecx, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x10c]
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
call fcn.004dc080
mov eax, 0x20
cmp dword [esp + 0x118], eax
mov byte [esp + 0x13], 4
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 1
jle 0x4ff4c9
mov dword [esp + 0x118], eax
push 1
lea edx, [esp + 0x17]
push edx
lea ecx, [esp + 0x2c]
call fcn.004dc460
lea eax, [esp + 0x90]
push eax
push esi
mov ecx, ebx
call fcn.00500790
push 0x38
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004dc460
test ebp, ebp
je 0x4ff52e
push 0x40
push 0
push ebp
call fcn.00526600
mov ecx, 7
lea esi, [esp + 0x9c]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x20]
mov ecx, 7
lea esi, [esp + 0xb8]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
mov ecx, 7
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
push 0
lea edx, [esp + 0xcc]
push edx
add esi, 0x20
mov ecx, 7
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x98]
push eax
push ecx
mov ecx, ebx
call fcn.00500850
push 0x1c
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x2c]
call fcn.004dc460
push 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.004dc460
lea ecx, [esp + 0xe4]
push ecx
lea ecx, [esp + 0x28]
call fcn.004dc580
mov esi, dword [esp + 0x118]
test esi, esi
jle 0x4ff5cb
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xe4]
sub ecx, eax
nop
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub esi, 1
jne 0x4ff5c0
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00526a8a
add esp, 0xf8
ret 0x14