joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a50
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404040
test esi, esi
jne 0x402a86
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404130
jmp 0x402aa4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402904
mov edi, eax
test esi, esi
je 0x402aa4
cmp dword [ebx], 0
je 0x402aa4
dec esi
jmp 0x402a8d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x44a008], 0x8088405
inc edx
mov dword [ebx + 0x44a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403118
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x44a024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403190
xor eax, eax
push ebp
push 0x403189
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4031cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403190
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x44a024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x44a024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e40
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x450044], 0
je 0x403ea1
cmp word [0x450218], 0xd7b2
jne 0x403e69
cmp dword [0x450220], 0
jbe 0x403e69
mov eax, 0x450214
call dword [fcn.00450230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44a070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403ec8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44a034], 0
jne 0x403ebd
push 0
push 0x44a068
push 0x44a070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403ff4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026e8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x450045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403fbc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405f98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405ffe
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004042b0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d00
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405fe8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406005
lea eax, [ebp - 0x10]
call fcn.00404040
ret

Function at 0x408074
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404500
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40808d
test al, 0x10
jne 0x408091
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ae50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ae89
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404130
jmp 0x40ae92
mov eax, ebx
mov edx, esi
call fcn.00404094
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae9c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aebd
mov al, byte [esp]
jmp 0x40aebf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c464
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c4c8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004042b0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407ca0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4cf
lea eax, [ebp - 0xc]
call fcn.00404040
ret

Function at 0x41c17c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041bfd4
dec esi
jne 0x41c19e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42a49c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x42a4a4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x42a696
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x42a6ac
mov eax, esi
call fcn.0042823c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404094
lea ecx, [ebp - 0x10]
mov edx, 0x42a6c0
mov eax, esi
call fcn.0042823c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404094
lea ecx, [ebp - 0x14]
mov edx, 0x42a6d8
mov eax, esi
call fcn.0042823c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404094
lea ecx, [ebp - 0x18]
mov edx, 0x42a6f4
mov eax, esi
call fcn.0042823c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404094
lea ecx, [ebp - 0x1c]
mov edx, 0x42a710
mov eax, esi
call fcn.0042823c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404094
lea ecx, [ebp - 0x24]
mov edx, 0x42a728
mov eax, esi
call fcn.0042823c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407890
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00407ca0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x42a740
mov eax, esi
call fcn.0042823c
mov eax, dword [ebp - 0x28]
call fcn.00427338
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x42a750
mov eax, esi
call fcn.0042823c
mov eax, dword [ebp - 0x2c]
call fcn.00427338
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x42a768
mov eax, esi
call fcn.0042823c
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00407ca0
inc eax
je 0x42a639
lea ecx, [ebp - 0x34]
mov edx, 0x42a768
mov eax, esi
call fcn.0042823c
mov eax, dword [ebp - 0x34]
call fcn.00407c64
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409554
fstp qword [ebp - 0x3c]
wait
call fcn.004098b8
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x42a654
lea ecx, [ebp - 0x40]
mov edx, 0x42a768
mov eax, esi
call fcn.0042823c
mov eax, dword [ebp - 0x40]
call fcn.00427338
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x42a778
mov eax, esi
call fcn.0042823c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a69d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404064
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404064
ret
Function at 0x4370b4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x43710e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004370a4
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00425d1c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0042591c
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437115
lea eax, [ebp - 4]
call fcn.00404040
ret

Function at 0x43c374
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x44da84]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x43c3b0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x43c3c8
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x43c3c1
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00402cc4
xor edx, edx
mov eax, 0x44dc84
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x43c432
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x43c3e6
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x43c798
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x43c7b1
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x43c7aa
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x43c7c5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0043c15c
test bl, bl
jne 0x43c898
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x450c74
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x43c7fc
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x43c810
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0043c670
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x43c842
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x43c7f1
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x43c865
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x43c876
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x43c88a
jmp 0x43c953
cmp bl, 1
jne 0x43c953
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x450cce
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x43c8b8
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x43c8cc
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0043c670
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x43c8fe
sub ebx, 6
inc dword [ebp - 8]
jne 0x43c8ad
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x43c925
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x43c936
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x43c94a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0043c1e0
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x43cc84
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_1
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x43cd06
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
push eax
push 0x43cd10
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp byte [esp], 0
je 0x43cccc
mov dword [esp + 0x18], 2
jmp 0x43ccd2
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 0x43cd24
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
xor ebx, ebx
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
jbe 0x43cd4c
push 0
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43cd54
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
xor eax, eax
mov dword [ebx], eax
mov edi, 0x10000
push edi
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.ntdll.dll_RtlAllocateHeap
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x43cdcf
push 0
push edi
mov eax, dword [ebx]
push eax
push ebp
call sub.ntdll.dll_ZwQuerySystemInformation
mov esi, eax
cmp esi, 0xc0000004
jne 0x43cdad
mov eax, dword [ebx]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.ntdll.dll_RtlFreeHeap
add edi, 0x10000
jmp 0x43cdc3
test esi, esi
je 0x43cdc3
mov eax, dword [ebx]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.ntdll.dll_RtlFreeHeap
jmp 0x43cdcf
cmp esi, 0xc0000004
je 0x43cd6a
mov byte [esp], 1
mov al, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x43cdd8
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb0
mov esi, edx
mov edi, eax
xor eax, eax
mov dword [esp], eax
push 0
push 0
lea eax, [esp + 0x28]
xor ecx, ecx
xor edx, edx
call fcn.0041ccb8
mov dword [esp + 0x14], esi
xor eax, eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
push edi
lea eax, [esp + 0xc]
push eax
call sub.ntdll.dll_ZwOpenProcess
mov ebx, eax
test ebx, ebx
je 0x43cfd7
lea eax, [esi + 1]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
push edi
lea eax, [esp + 0xc]
push eax
call sub.ntdll.dll_ZwOpenProcess
mov ebx, eax
test ebx, ebx
je 0x43cfd7
mov dword [esp + 0xc], 0x400000
xor eax, eax
mov dword [esp + 0x10], eax
push 4
push 0x1000
lea eax, [esp + 0x14]
push eax
push 0
lea eax, [esp + 0x20]
push eax
call sub.kernel32.dll_GetCurrentProcess_1
push eax
call sub.ntdll.dll_ZwAllocateVirtualMemory
lea eax, [esp + 0xc]
push eax
push 0x400000
mov eax, dword [esp + 0x18]
push eax
push 0x10
call sub.ntdll.dll_ZwQuerySystemInformation
mov ebx, eax
mov eax, ebx
call fcn.0041ccac
test eax, eax
je 0x43cfd7
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
dec edi
test edi, edi
jl 0x43cfb6
inc edi
xor esi, esi
mov ebp, esi
add ebp, ebp
mov eax, dword [esp + 0x10]
mov al, byte [eax + ebp*8 + 8]
cmp al, byte [0x450cd8]
jne 0x43cfae
mov eax, dword [esp + 0x10]
movzx eax, word [eax + ebp*8 + 4]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
push 0x40
lea eax, [esp + 0x10]
push eax
call sub.ntdll.dll_ZwOpenProcess
mov ebx, eax
test ebx, ebx
jne 0x43cfae
push 0
push 0
push 0x1f0fff
lea eax, [esp + 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcess_1
push eax
mov eax, dword [esp + 0x24]
movzx eax, word [eax + ebp*8 + 0xa]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.ntdll.dll_ZwDuplicateObject
mov ebx, eax
test ebx, ebx
jne 0x43cfa4
push 0
push 0x18
lea eax, [esp + 0x40]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.ntdll.dll_ZwQueryInformationProcess
mov ebx, eax
mov eax, ebx
call fcn.0041ccac
test eax, eax
je 0x43cf9a
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x1c]
jne 0x43cf9a
push 0
push 0
push 0x1f0fff
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetCurrentProcess_1
push eax
mov eax, dword [esp + 0x24]
movzx eax, word [eax + ebp*8 + 0xa]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.ntdll.dll_ZwDuplicateObject
mov eax, dword [esp + 8]
push eax
call sub.ntdll.dll_ZwClose
mov eax, dword [esp + 4]
push eax
call sub.ntdll.dll_ZwClose
jmp 0x43cfb6
mov eax, dword [esp + 8]
push eax
call sub.ntdll.dll_ZwClose
mov eax, dword [esp + 4]
push eax
call sub.ntdll.dll_ZwClose
inc esi
dec edi
jne 0x43ceb7
cmp dword [esp + 0x10], 0
je 0x43cfd7
push 0x8000
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call sub.kernel32.dll_GetCurrentProcess_1
push eax
call sub.ntdll.dll_ZwFreeVirtualMemory
mov eax, dword [esp]
add esp, 0x50
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x43d664
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43d6d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404040
mov dword [ebp - 8], 0x1e
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040468c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404500
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x43d6c1
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404560
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d6de
lea eax, [ebp - 4]
call fcn.00404040
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd4c
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044f0
xor eax, eax
push ebp
push 0x43d7f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404040
xor ecx, ecx
push ebp
push 0x43d7d9
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push pe_nt_image_headers32
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x294]
mov edx, dword [ebp - 4]
call fcn.004082a8
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x43d7ca
mov edx, dword [eax + 0xc]
test edx, edx
je 0x43d7ca
mov esi, dword [edx]
test esi, esi
je 0x43d7ca
push ebx
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x29c], eax
mov byte [ebp - 0x298], 0
lea edx, [ebp - 0x2b4]
mov ecx, 3
mov eax, 0x43d810
call fcn.0040881c
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43d7e3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d800
lea eax, [ebp - 4]
call fcn.00404040
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd6c
push ebx
push esi
push edi
mov ebx, eax
mov edx, ebx
mov eax, 0x43db40
call fcn.0043f344
xor edx, edx
push ebp
push 0x43db24
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x43db15
push pe_nt_image_headers32
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostbyname
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.00404238
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43db2e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret