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

Disassembly:
jmp 0x418270
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45e798
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 0x4182ed
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3d
push esi
call edi
add esp, 8
test eax, eax
jne 0x4182ed
push 0x3b
push esi
call edi
add esp, 8
test eax, eax
jne 0x4182ed
lea ecx, [esp + 0x1c]
call fcn.0041c620
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
push esi
mov dword [esp + 0x1c], 0
call fcn.0040139d
test eax, eax
jne 0x418303
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041d0c0
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.00431b60
mov ecx, dword [esp + 0x30]
add esp, 0x10
push ebx
call fcn.0041d380
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041d0c0
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 0x4183d0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45e7b8
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 0x41844d
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3d
push esi
call edi
add esp, 8
test eax, eax
jne 0x41844d
push 0x3b
push esi
call edi
add esp, 8
test eax, eax
jne 0x41844d
lea ecx, [esp + 0x1c]
call fcn.0041c620
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
push esi
mov dword [esp + 0x1c], 0
call fcn.0040139d
test eax, eax
jne 0x418463
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041d0c0
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.00431b60
mov ecx, dword [esp + 0x30]
add esp, 0x10
push esi
call fcn.00422d70
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041d0c0
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 0x408480
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 0x4084bd
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 0x4084d8
pop edi
add esp, 0x100
ret 8
mov ecx, dword [edi + 0xc]
xor eax, eax
cmp dword [ecx], 0
je 0x408512
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, dword [esp + 0x110]
xor edx, edx
cmp eax, ebx
jge 0x408504
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 0x4084f4
pop esi
pop ebx
pop edi
add esp, 0x100
ret 8
Function at 0x401285
Capabilities:
Get file size

Disassembly:
jmp 0x419070
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0xffffffff
jne 0x4190e9
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41909c
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 0x4190a8
xor eax, eax
pop esi
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x4190d9
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 0x4012f8
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x419e80
mov eax, dword [0x46f9f8]
sub esp, 0x190
test eax, eax
je 0x419e9b
mov eax, 1
add esp, 0x190
ret
lea eax, [esp]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x419eda
mov ax, word [esp]
cmp al, 1
jne 0x419ed5
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x419ed5
mov dword [0x46f9f8], 1
mov eax, 1
add esp, 0x190
ret
call sub.WS2_32.dll_WSACleanup
xor eax, eax
add esp, 0x190
ret

Function at 0x401334
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x402310
push 0xffffffffffffffff
push 0x45cb70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
xor ebx, ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_2
push ebx
push 0x2d
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], ebx
call sub.MFC42u.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
je 0x4023bf
mov edi, dword [sym.imp.MSVCRT.dll__wcsicoll]
inc esi
push 3
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Mid_1
mov ecx, dword [esp + 0x14]
push 0x469780
push ecx
mov byte [esp + 0x2c], 1
call edi
add esp, 8
cmp eax, ebx
je 0x4023ad
push esi
push 0x2d
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Find_2
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x24], bl
call sub.MFC42u.DLL_CString::CString
cmp esi, 0xffffffff
jne 0x402361
jmp 0x4023bf
lea ecx, [esp + 0x14]
mov ebp, 1
mov byte [esp + 0x24], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42u.DLL_CString::CString
cmp ebp, ebx
jne 0x4023f6
mov edx, dword [esp + 0x18]
lea ecx, [edx + 0xc8]
call fcn.0040170d
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x40137a
Capabilities:
Copy file

Disassembly:
jmp 0x413e60
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x413ef0
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push edi
call ebx
add esp, 4
test eax, eax
je 0x413ef0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x413ef0
push esi
call ebx
add esp, 4
test eax, eax
je 0x413ef0
push edi
call fcn.0040172b
add esp, 4
test eax, eax
je 0x413ef0
push esi
push edi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x413ef0
push esi
call fcn.004011e5
add esp, 4
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x413ee7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x413ef0
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 0x413ef0
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4013e3
Capabilities:
Encode data using xor

Disassembly:
jmp 0x418b20
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
je 0x418b84
mov esi, dword [esp + 0x10]
test esi, esi
je 0x418b84
mov edx, dword [esp + 0x14]
test edx, edx
je 0x418b84
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
je 0x418b46
mov dword [ecx], esi
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jb 0x418b86
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 0x418b7a
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 0x418b6e
pop esi
mov eax, 1
pop ebx
ret 0x14
xor eax, eax
pop esi
pop ebx
ret 0x14

Function at 0x401415
Capabilities:
Delete file

Disassembly:
jmp 0x4036c0
push 0xffffffffffffffff
push 0x45ce60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov ebx, ecx
push edi
push ebx
lea ecx, [esp + 0x14]
xor esi, esi
call sub.MFC42u.DLL_CString::CString_1
push str.AKernel3.exe
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], esi
call fcn.0041bc96
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
push eax
call fcn.0040172b
add esp, 4
test eax, eax
je 0x40374a
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40375a
call ebp
cmp eax, 5
jne 0x40375a
mov ecx, dword [0x46e058]
push 0x1388
inc ecx
mov esi, 1
mov dword [0x46e058], ecx
call edi
jmp 0x40374e
test esi, esi
je 0x40375a
cmp dword [0x46e058], 0xb4
jl 0x403708
mov eax, dword [ebx]
push eax
call fcn.004011d1
add esp, 4
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
jne 0x4037ab
push str.Remove_Kernels_temp_Folder_failed.
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 4]
mov byte [esp + 0x10], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401573
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x4177e0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45e610
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 0x417860
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3d
push ebp
call edi
add esp, 8
test eax, eax
jne 0x417860
push 0x3b
push ebp
call edi
add esp, 8
test eax, eax
jne 0x417860
lea ecx, [esp + 0x2c]
call fcn.0041c620
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push ebp
mov dword [esp + 0x2c], 0
call fcn.0040139d
test eax, eax
je 0x417876
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041d0c0
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.00431990
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.0041d7f0
push 0x3d
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x2c], 2
push eax
call fcn.0041e800
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x30], 3
call fcn.0041d630
push 0x3b
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x30], 4
call fcn.0041e800
push eax
mov ecx, esi
mov byte [esp + 0x28], 5
call fcn.0041d260
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 4
call fcn.0041d0c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call fcn.0041d0c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.0041d0c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.0041d0c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.0041d0c0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041d0c0
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 0x40160e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x402950
push 0xffffffffffffffff
push 0x45cc38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push 0x46e054
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_2
lea eax, [esp + 4]
mov ecx, esi
push eax
mov dword [esp + 0x1c], 0
call fcn.004016bd
test eax, eax
pop esi
je 0x402a2c
push 0x46e054
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp]
mov byte [esp + 0x14], 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402a00
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402a00
test al, 0x10
je 0x402a00
push 0x27
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::TrimRight_1
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 0x402a10
push 2
jmp 0x402a12
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 0x402a3a
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 0x401645
Capabilities:
Create directory

Disassembly:
jmp 0x416be0
push 0xffffffffffffffff
push 0x45e400
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 0x416d09
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x416d09
push esi
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString_2
cmp word [esi], 0x5c
mov dword [esp + 0x1c], ebx
jne 0x416c56
cmp word [esi + 2], 0x5c
jne 0x416c56
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 0x416c61
push 0x5c
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x416cc1
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.004014e2
test eax, eax
jne 0x416ca0
mov edx, dword [esp + 0xc]
push ebx
push edx
call edi
test eax, eax
je 0x416ceb
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 0x416c6e
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 0x4016bd
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x402450
push 0xffffffffffffffff
push 0x45cba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_2
push 0
push 0x2d
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call sub.MFC42u.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
je 0x4024e7
mov edi, dword [sym.imp.MSVCRT.dll__wcsicoll]
inc esi
push 3
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Mid_1
mov ecx, dword [esp + 0x10]
push 0x46978c
push ecx
mov byte [esp + 0x28], 1
call edi
add esp, 8
test eax, eax
je 0x40250d
push esi
push 0x2d
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find_2
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x20], 0
call sub.MFC42u.DLL_CString::CString
cmp esi, 0xffffffff
jne 0x40249c
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
add esi, 3
lea edx, [esp + 8]
push esi
push edx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Mid
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call sub.MFC42u.DLL_CString::TrimLeft
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40258a
mov ax, word [eax]
cmp ax, 0x22
jne 0x40258a
push 0x22
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::TrimLeft_1
push 1
push 0x22
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x40258a
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::Left
mov ecx, dword [esp + 0x28]
push eax
mov byte [esp + 0x24], 3
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x401717
Capabilities:
Create directory

Disassembly:
jmp 0x413a90
push 0xffffffffffffffff
push 0x45de60
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 0x413bb0
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x413bb0
push esi
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_2
cmp word [esi], 0x5c
mov dword [esp + 0x18], ebx
jne 0x413b00
cmp word [esi + 2], 0x5c
jne 0x413b00
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 0x413b0b
push 0x5c
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x413b6a
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 0x413b49
mov edx, dword [esp + 0xc]
push ebx
push edx
call edi
test eax, eax
je 0x413b92
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 0x413b18
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 0x40172b
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x412c20
push 0xffffffffffffffff
push 0x45dc48
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.0041bdb6
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4017fd
Capabilities:
Get hostname
Resolve dns

Disassembly:
jmp 0x408770
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 0x4087ad
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 0x4087ca
pop edi
add esp, 0x118
ret 4
mov eax, dword [eax + 0xc]
push ebx
mov ebx, dword [esp + 0x124]
cmp dword [eax], 0
je 0x40883b
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.004015e6
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 0x4087de
pop esi
pop ebp
mov eax, dword [ebx + 8]
pop ebx
pop edi
add esp, 0x118
ret 4