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

Disassembly:
jmp 0x4167b0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x448718
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41682d
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3d
push esi
call edi
add esp, 8
test eax, eax
jne 0x41682d
push 0x3b
push esi
call edi
add esp, 8
test eax, eax
jne 0x41682d
lea ecx, [esp + 0x1c]
call fcn.0041a7e0
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
push esi
mov dword [esp + 0x1c], 0
call fcn.00401393
test eax, eax
jne 0x416843
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041b280
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
inc esi
push esi
call sub.MFC42u.DLL_operatornew
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push eax
call fcn.0042fd20
mov ecx, dword [esp + 0x30]
add esp, 0x10
push ebx
call fcn.0041b540
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041b280
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x401073
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x416910
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x448738
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41698d
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3d
push esi
call edi
add esp, 8
test eax, eax
jne 0x41698d
push 0x3b
push esi
call edi
add esp, 8
test eax, eax
jne 0x41698d
lea ecx, [esp + 0x1c]
call fcn.0041a7e0
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
push esi
mov dword [esp + 0x1c], 0
call fcn.00401393
test eax, eax
jne 0x4169a3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041b280
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
cdq
sub eax, edx
sar eax, 1
inc eax
lea ebx, [eax + eax]
push ebx
call sub.MFC42u.DLL_operatornew
mov ecx, ebx
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push eax
call fcn.0042fd20
mov ecx, dword [esp + 0x30]
add esp, 0x10
push esi
call fcn.00420f30
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041b280
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x401096
Capabilities:
Get hostname
Resolve dns

Disassembly:
jmp 0x4077c0
sub esp, 0x100
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push pe_nt_image_headers32
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x4077fd
xor eax, eax
pop edi
add esp, 0x100
ret 8
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x407818
pop edi
add esp, 0x100
ret 8
mov ecx, dword [edi + 0xc]
xor eax, eax
cmp dword [ecx], 0
je 0x407852
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, dword [esp + 0x110]
xor edx, edx
cmp eax, ebx
jge 0x407844
mov ecx, dword [edx + ecx]
inc eax
add esi, 4
mov ecx, dword [ecx]
mov dword [esi - 4], ecx
mov ecx, dword [edi + 0xc]
add edx, 4
cmp dword [edx + ecx], 0
jne 0x407834
pop esi
pop ebx
pop edi
add esp, 0x100
ret 8
Function at 0x40127b
Capabilities:
Get file size

Disassembly:
jmp 0x4174f0
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0xffffffff
jne 0x417569
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41751c
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x417528
xor eax, eax
pop esi
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x417559
mov eax, dword [esi + 0x24]
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, 1
pop esi
ret
mov edx, dword [esi + 0x24]
push 2
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, 1
pop esi
ret
Function at 0x4012ee
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x4180f0
mov eax, dword [0x458754]
sub esp, 0x190
test eax, eax
je 0x41810b
mov eax, 1
add esp, 0x190
ret
lea eax, [esp]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x41814a
mov ax, word [esp]
cmp al, 1
jne 0x418145
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x418145
mov dword [0x458754], 1
mov eax, 1
add esp, 0x190
ret
call sub.WS2_32.dll_WSACleanup
xor eax, eax
add esp, 0x190
ret

Function at 0x401370
Capabilities:
Copy file

Disassembly:
jmp 0x412a00
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x412a90
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push edi
call ebx
add esp, 4
test eax, eax
je 0x412a90
mov esi, dword [esp + 0x14]
test esi, esi
je 0x412a90
push esi
call ebx
add esp, 4
test eax, eax
je 0x412a90
push edi
call fcn.00401708
add esp, 4
test eax, eax
je 0x412a90
push esi
push edi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x412a90
push esi
call fcn.004011e0
add esp, 4
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x412a87
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412a90
push 0
push 0
push 0x240
push esi
push 0
push edi
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_SetupInstallFileW]
test eax, eax
je 0x412a90
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4013d9
Capabilities:
Encode data using xor

Disassembly:
jmp 0x417060
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
je 0x4170c4
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4170c4
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4170c4
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
je 0x417086
mov dword [ecx], esi
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jb 0x4170c6
push ebp
mov ebp, ecx
push edi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop ebp
test esi, esi
jbe 0x4170ba
mov ecx, ebx
mov eax, edx
sub ecx, edx
mov dl, byte [ecx + eax]
xor dl, 0x54
mov byte [eax], dl
inc eax
dec esi
jne 0x4170ae
pop esi
mov eax, 1
pop ebx
ret 0x14
xor eax, eax
pop esi
pop ebx
ret 0x14

Function at 0x40140b
Capabilities:
Delete file

Disassembly:
jmp 0x4031e0
push 0xffffffffffffffff
push 0x447460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push str.CleanKernelFolder...
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0x14]
xor esi, esi
push esi
push 2
push eax
mov dword [esp + 0x30], esi
call fcn.004012d5
add esp, 0xc
lea ecx, [esp + 0x10]
push ebp
call sub.MFC42u.DLL_CString::CString_1
push str.AKernel3.exe
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.00419e72
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00401708
add esp, 4
test eax, eax
je 0x40328d
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40329d
call ebx
cmp eax, 5
jne 0x40329d
mov ecx, dword [0x456e20]
push 0x1388
inc ecx
mov esi, 1
mov dword [0x456e20], ecx
call edi
jmp 0x403291
test esi, esi
je 0x40329d
cmp dword [0x456e20], 0xb4
jl 0x40324b
mov eax, dword [ebp]
push eax
call fcn.004011cc
add esp, 4
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
jne 0x4032f8
push str.Remove_Kernels_temp_Folder_failed.
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp]
mov byte [esp + 0x14], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp]
mov byte [esp + 0x14], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40155a
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x415d20
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x448590
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor eax, eax
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, ecx
push edi
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x415da0
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3d
push ebp
call edi
add esp, 8
test eax, eax
jne 0x415da0
push 0x3b
push ebp
call edi
add esp, 8
test eax, eax
jne 0x415da0
lea ecx, [esp + 0x2c]
call fcn.0041a7e0
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push ebp
mov dword [esp + 0x2c], 0
call fcn.00401393
test eax, eax
je 0x415db6
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041b280
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x1c]
push edx
push ecx
call fcn.0042fb50
add esp, 0xc
mov edi, eax
add esi, 4
push ebp
lea edx, [esp + 0x18]
push esi
push edx
mov byte [esp + 0x30], 1
call fcn.0041b9b0
push 0x3d
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x2c], 2
push eax
call fcn.0041c9c0
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x30], 3
call fcn.0041b7f0
push 0x3b
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x30], 4
call fcn.0041c9c0
push eax
mov ecx, esi
mov byte [esp + 0x28], 5
call fcn.0041b420
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 4
call fcn.0041b280
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call fcn.0041b280
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.0041b280
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.0041b280
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.0041b280
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041b280
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4015f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x4025a0
push 0xffffffffffffffff
push 0x4472e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push 0x456e1c
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_3
lea eax, [esp + 4]
mov ecx, esi
push eax
mov dword [esp + 0x1c], 0
call fcn.0040169f
test eax, eax
pop esi
je 0x40267c
push 0x456e1c
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp]
mov byte [esp + 0x14], 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402650
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402650
test al, 0x10
je 0x402650
push 0x27
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::TrimRight_2
lea ecx, [esp]
push str.AgentSetup.log
lea edx, [esp + 0xc]
push ecx
push edx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x18], 2
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x14], 1
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x402660
push 2
jmp 0x402662
push 3
push 3
call sym.ASetup.exe_void___cdecl_Dll_SetLogOutput_unsigned_long_int__unsigned_long_int__unsigned_short_int_const__
add esp, 0xc
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42u.DLL_CString::CString
jmp 0x40268a
push 0
push 0
push 0
call sym.ASetup.exe_void___cdecl_Dll_SetLogOutput_unsigned_long_int__unsigned_long_int__unsigned_short_int_const__
add esp, 0xc
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40162c
Capabilities:
Create directory

Disassembly:
jmp 0x4152a0
push 0xffffffffffffffff
push 0x448440
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [esp + 0x10], ecx
je 0x4153c9
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4153c9
push esi
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString_3
cmp word [esi], 0x5c
mov dword [esp + 0x1c], ebx
jne 0x415316
cmp word [esi + 2], 0x5c
jne 0x415316
push 3
push 0x5c
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CString::Find_2
inc eax
lea ecx, [esp + 0x24]
push eax
push 0x5c
call sub.MFC42u.DLL_CString::Find_2
jmp 0x415321
push 0x5c
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x415381
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CString::Left
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x1c], 1
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004014d3
test eax, eax
jne 0x415360
mov edx, dword [esp + 0xc]
push ebx
push edx
call edi
test eax, eax
je 0x4153ab
inc esi
lea ecx, [esp + 0x24]
push esi
push 0x5c
call sub.MFC42u.DLL_CString::Find_2
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x1c], bl
call sub.MFC42u.DLL_CString::CString
cmp esi, 0xffffffff
jne 0x41532e
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4016f4
Capabilities:
Create directory

Disassembly:
jmp 0x412640
push 0xffffffffffffffff
push 0x4480f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x412760
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x412760
push esi
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_3
cmp word [esi], 0x5c
mov dword [esp + 0x18], ebx
jne 0x4126b0
cmp word [esi + 2], 0x5c
jne 0x4126b0
push 3
push 0x5c
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::Find_2
inc eax
lea ecx, [esp + 0x20]
push eax
push 0x5c
call sub.MFC42u.DLL_CString::Find_2
jmp 0x4126bb
push 0x5c
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x41271a
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::Left
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x18], 1
push ecx
call fcn.004010c8
add esp, 4
test eax, eax
jne 0x4126f9
mov edx, dword [esp + 0xc]
push ebx
push edx
call edi
test eax, eax
je 0x412742
inc esi
lea ecx, [esp + 0x20]
push esi
push 0x5c
call sub.MFC42u.DLL_CString::Find_2
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x18], bl
call sub.MFC42u.DLL_CString::CString
cmp esi, 0xffffffff
jne 0x4126c8
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401708
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x411810
push 0xffffffffffffffff
push 0x447ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call sub.MFC42u.DLL_CFileFind::FindFile
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.00419f80
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4017da
Capabilities:
Get hostname
Resolve dns

Disassembly:
jmp 0x407ab0
sub esp, 0x118
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
push pe_nt_image_headers32
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x407aed
xor eax, eax
pop edi
add esp, 0x118
ret 4
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 4], eax
jne 0x407b0a
pop edi
add esp, 0x118
ret 4
mov eax, dword [eax + 0xc]
push ebx
mov ebx, dword [esp + 0x124]
cmp dword [eax], 0
je 0x407b7b
push ebp
push esi
xor ebp, ebp
mov eax, dword [eax + ebp]
mov esi, dword [ebx + 8]
xor edx, edx
push 0xffffffffffffffff
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov ecx, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], edx
lea edx, [esi + 1]
mov dword [esp + 0x1c], 0xffffff
push edx
call fcn.004015c8
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x10]
lea eax, [esi + esi*4]
lea esi, [esp + 0x14]
add ebp, 4
lea edi, [ecx + eax*4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0xc]
cmp dword [eax + ebp], 0
jne 0x407b1e
pop esi
pop ebp
mov eax, dword [ebx + 8]
pop ebx
pop edi
add esp, 0x118
ret 4
Function at 0x401807
Capabilities:
Create process on windows
Create process suspended

Disassembly:
jmp 0x403390
push 0xffffffffffffffff
push 0x447488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
push str.Create_process_to_run_kernel.exe..._r_n
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 8]
push 0
push 2
push eax
mov dword [esp + 0x80], 0
call fcn.004012d5
add esp, 0xc
lea ecx, [esp + 0x10]
push esi
call sub.MFC42u.DLL_CString::CString_1
push str.AKernel3.exe
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 1
call fcn.00419e72
mov ecx, dword [0x456d5c]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_3
push str._Unpack
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], 2
call fcn.00419e72
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x1c], edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edx
push eax
push ecx
mov eax, dword [esp + 0x18]
push edx
push edx
push edx
push edx
push edx
mov dword [esp + 0x40], edx
push edx
mov edx, dword [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
test eax, eax
jne 0x4034a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 4]
push str.Run_Process:_Create_Process_failed__LastError:_d_n
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0xc]
push 0
push 1
push edx
call fcn.004012d5
add esp, 0x18
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 5
push 0x44dbf8
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4034f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 4]
push str.Wait_for_Process_failed__LastError:_d_r_n
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0xc]
push 0
push 1
push eax
call fcn.004012d5
add esp, 0x18
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 2
push 0x44dbf8
push ecx
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [esp + 4]
mov byte [esp + 0x6c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x6c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x64]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x70
ret
Function at 0x408a50
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x4571e8]
test eax, eax
jne 0x408ace
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x456f88
mov dword [0x4571e8], 1
mov dword [0x456f88], 0x114
call esi
mov edx, dword [0x456f98]
xor eax, eax
cmp edx, 2
push 0x4570c8
sete al
mov dword [0x453a20], eax
mov dword [0x4570c8], 0x11c
call esi
push 0x453cc0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop esi
mov dword [0x4571e4], eax
test eax, eax
push 0x4570a0
je 0x408ac8
call eax
ret
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
ret