joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015f29
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10015fc6
push ebx
push esi
call fcn.10015ef2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10012261
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015f73
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015fc5
push edi
push eax
call fcn.1000f60c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015f93
call fcn.1000f5d2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015fc4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10012261
add esp, 0x20
test eax, eax
jne 0x10015fb2
push edi
call fcn.1000f5d2
jmp 0x10015fba
push ebx
call fcn.1000f5d2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10015fc9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10015fda
pop esi
ret
push ebx
push edi
push esi
call fcn.10015ef2
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1000f60c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10016002
push ebx
push esi
push edi
call fcn.100056d0
add esp, 0xc
push 0
call fcn.1000f5d2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100163d2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10016017

Function at 0x1001b480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001b4ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001b4ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010d0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x108
mov eax, dword [esp + 0x10c]
push esi
test eax, eax
push edi
mov esi, ecx
mov dword [esp + 8], 0x100
jne 0x4010ff
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x401113
push 0x100
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.004011c0
mov edi, eax
add esp, 8
test edi, edi
je 0x401157
mov edx, dword [esi + 0x24]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x24], edi
add esi, 0x10
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
pop edi
mov al, 1
pop esi
add esp, 0x108
ret 8
pop edi
xor al, al
pop esi
add esp, 0x108
ret 8

Function at 0x4011c0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x118]
push ebp
push esi
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
push edi
mov edi, dword [esp + 0x120]
lea ecx, [esp + 0x18]
xor esi, esi
push eax
push ecx
lea edx, [esp + 0x18]
push esi
push edx
push esi
push edi
push ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x30], 8
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40124f
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push esi
push edi
push ebx
call ebp
test eax, eax
jne 0x40124f
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret

Function at 0x401c50
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x402c10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41d9a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], 1
call fcn.00402ee0
test al, al
je 0x402cc3
cmp dword [esi + 8], 2
jne 0x402c61
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402ef0
mov bl, al
jmp 0x402c8f
push str.__a
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x20]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x1f4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x1f
setg bl
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.0041d0e6
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041d0e6
mov al, bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x10
ret 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.0041d0e6
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041d0e6
mov ecx, dword [esp + 0xc]
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 8

Function at 0x402d00
Capabilities:
Create process on windows
Query service status
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x41d9c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [ecx + 8]
xor bl, bl
cmp eax, 2
mov dword [esp + 0x38], 1
je 0x402d61
push str.__e
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x44]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x3e8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x1f
setg bl
jmp 0x402e1e
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x402d98
mov ecx, dword [esp + 0x40]
push 0xf01ff
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x402dbe
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 0
call fcn.0041d0e6
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call fcn.0041d0e6
xor al, al
jmp 0x402e3f
lea edx, [esp + 0x14]
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402e12
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
xor esi, esi
lea eax, [esp + 0x14]
push eax
push edi
call ebp
cmp dword [esp + 0x18], 3
jne 0x402e04
push 0x3e8
call ebx
inc esi
cmp esi, 0x12c
jl 0x402de5
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
cmp eax, 1
sete bl
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebp
call esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 0
call fcn.0041d0e6
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call fcn.0041d0e6
mov al, bl
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x402e60
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41d9e0
push eax
mov dword fs:[0], esp
push ebx
push str.__a
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 1
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x14]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
lea ecx, [esp + 0x14]
seta bl
mov byte [esp + 0xc], 0
call fcn.0041d0e6
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.0041d0e6
mov ecx, dword [esp + 4]
mov al, bl
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x402ef0
Capabilities:
Query service status
Start service

Disassembly:
push 0xffffffffffffffff
push 0x41d9f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 8], edi
jne 0x402f49
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041d0e6
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov eax, dword [esp + 0x38]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x402f8d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041d0e6
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x402fce
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041d0e6
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push 0x3e8
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
xor edi, edi
lea ecx, [esp + 0x14]
push ecx
push esi
call ebp
cmp dword [esp + 0x18], 2
jne 0x403001
push 0x3e8
call ebx
inc edi
cmp edi, 6
jl 0x402fe5
mov edx, dword [esp + 0x18]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edx, 4
sete bl
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call fcn.0041d0e6
mov ecx, dword [esp + 0x30]
mov al, bl
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x403050
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41da20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
mov dword [esp + 0x120], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0xc], 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x128]
lea eax, [esp + 8]
push eax
push 0x20019
push ebx
push ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4030ec
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x130]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40311a
lea ecx, [esp + 0x128]
mov byte [esp + 0x120], bl
call fcn.0041d0e6
lea ecx, [esp + 0x12c]
mov dword [esp + 0x120], 0xffffffff
call fcn.0041d0e6
xor eax, eax
jmp 0x403165
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x134]
call fcn.0041d0fe
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x128]
mov byte [esp + 0x120], bl
call fcn.0041d0e6
lea ecx, [esp + 0x12c]
mov dword [esp + 0x120], 0xffffffff
call fcn.0041d0e6
mov eax, 1
mov ecx, dword [esp + 0x118]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 0xc

Function at 0x403180
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41da40
push eax
mov dword fs:[0], esp
push ebx
push str.__e
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 1
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x14]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
lea ecx, [esp + 0x14]
seta bl
mov byte [esp + 0xc], 0
call fcn.0041d0e6
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.0041d0e6
mov ecx, dword [esp + 4]
mov al, bl
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x4032c6
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41da86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov edx, 0x4214e0
xor eax, eax
mov ecx, 0xa
mov dword [esp + 4], esi
mov dword [esi + 4], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x10], eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 8]
mov dword [esi], 0x4214dc
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404630
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x41dcf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov ebp, ecx
push edi
push 0x429bf8
lea ecx, [esp + 0x14]
xor edi, edi
call sub.MFC42.DLL_CString::CString_2
push 0x429bf8
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edi
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
push esi
mov ecx, ebp
mov byte [esp + 0x28], 1
call fcn.004044c0
test eax, eax
jne 0x4046cf
push esi
push str.Cant_Find_file_named__s
push 3
call fcn.00415ce0
add esp, 0xc
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0041d0e6
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041d0e6
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
push 0x429bf8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0xc]
mov ebp, dword [esp + 0x28]
push ecx
push esi
push ebp
lea edx, [esp + 0x1c]
push str.copy__s_s__s
push edx
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::Format
push esi
push ebp
lea eax, [esp + 0x30]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x24
lea ecx, [esp + 0xc]
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x404771
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x30]
push 0x132
push ecx
call fcn.00415d70
mov eax, dword [eax]
mov byte [esp + 0x2c], 3
push eax
push 2
call fcn.00415ce0
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.0041d0e6
or edi, 0xffffffff
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0041d0e6
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0041d0e6
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041d0e6
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x4047c0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x41dd20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x429bf8
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
xor edi, edi
push 0x429bf8
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], edi
call sub.MFC42.DLL_CString::CString_2
push 0x429bf8
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
push esi
push ebp
lea eax, [esp + 0x1c]
push str._s_s
push eax
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::Format
mov ebx, dword [esp + 0x3c]
push esi
push ebx
lea ecx, [esp + 0x28]
push str._s_s
push ecx
call sub.MFC42.DLL_CString::Format
push esi
push ebx
push esi
push ebp
lea edx, [esp + 0x48]
push str.copy__s_s__s_s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x38
lea ecx, [esp + 0x10]
push edi
push edi
call sub.MFC42.DLL_CString::GetBuffer
push eax
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4048b8
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x38]
push 0x132
push eax
call fcn.00415d70
mov eax, dword [eax]
mov byte [esp + 0x30], 3
push eax
push 2
call fcn.00415ce0
add esp, 0x14
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 2
call fcn.0041d0e6
or edi, 0xffffffff
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.0041d0e6
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.0041d0e6
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041d0e6
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc

Function at 0x404e06
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41de26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov edx, 0x4214e0
xor eax, eax
mov ecx, 0xa
mov dword [esp + 4], esi
mov dword [esi + 4], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x10], eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 8]
mov dword [esi], 0x4214f4
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406170
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x41e080
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov ebp, ecx
push edi
push 0x429bf8
lea ecx, [esp + 0x14]
xor edi, edi
call sub.MFC42.DLL_CString::CString_2
push 0x429bf8
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edi
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
push esi
mov ecx, ebp
mov byte [esp + 0x28], 1
call fcn.00406000
test eax, eax
jne 0x40620f
push esi
push str.Cant_Find_file_named__s
push 3
call fcn.00415ce0
add esp, 0xc
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0041d0e6
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041d0e6
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
push 0x429bf8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0xc]
mov ebp, dword [esp + 0x28]
push ecx
push esi
push ebp
lea edx, [esp + 0x1c]
push str.copy__s_s__s
push edx
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::Format
push esi
push ebp
lea eax, [esp + 0x30]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x24
lea ecx, [esp + 0xc]
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4062b1
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x30]
push 0x132
push ecx
call fcn.00415d70
mov eax, dword [eax]
mov byte [esp + 0x2c], 3
push eax
push 2
call fcn.00415ce0
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.0041d0e6
or edi, 0xffffffff
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0041d0e6
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0041d0e6
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041d0e6
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x406300
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x41e0b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x429bf8
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
xor edi, edi
push 0x429bf8
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], edi
call sub.MFC42.DLL_CString::CString_2
push 0x429bf8
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
push esi
push ebp
lea eax, [esp + 0x1c]
push str._s_s
push eax
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::Format
mov ebx, dword [esp + 0x3c]
push esi
push ebx
lea ecx, [esp + 0x28]
push str._s_s
push ecx
call sub.MFC42.DLL_CString::Format
push esi
push ebx
push esi
push ebp
lea edx, [esp + 0x48]
push str.copy__s_s__s_s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x38
lea ecx, [esp + 0x10]
push edi
push edi
call sub.MFC42.DLL_CString::GetBuffer
push eax
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4063f8
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x38]
push 0x132
push eax
call fcn.00415d70
mov eax, dword [eax]
mov byte [esp + 0x30], 3
push eax
push 2
call fcn.00415ce0
add esp, 0x14
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 2
call fcn.0041d0e6
or edi, 0xffffffff
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.0041d0e6
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.0041d0e6
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041d0e6
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x406e29
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41e230
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x8484]
lea edi, [esi + 0x8484]
cmp eax, 0xffffffff
je 0x406e44
push edi
call fcn.00406de0
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x406eae
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call dword [sym.imp.MSVCRT.dll_strerror]
push eax
lea eax, [esp + 0x14]
push 0x12c
push eax
call fcn.00415d70
mov eax, dword [eax]
mov dword [esp + 0x38], 0
push eax
push 2
call fcn.00415ce0
add esp, 0x18
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041d0e6
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ebx, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0xffff
push eax
mov dword [esp + 0x24], 1
call ebx
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x20], 1
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov edx, dword [edi]
lea ecx, [esp + 0x18]
push 4
push ecx
push 1
push 6
push edx
mov dword [esp + 0x2c], 1
call ebx
mov ecx, esi
call fcn.00407ab0
test eax, eax
jne 0x406f62
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call dword [sym.imp.MSVCRT.dll_strerror]
push eax
lea eax, [esp + 0x24]
push 0x12d
push eax
call fcn.00415d70
mov eax, dword [eax]
mov dword [esp + 0x38], 1
push eax
push 2
call fcn.00415ce0
add esp, 0x18
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041d0e6
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov edx, dword [esi + 0xc]
xor eax, eax
test edx, edx
jbe 0x406f7c
mov ebx, dword [edi]
lea ecx, [esi + 0x10]
cmp dword [ecx], ebx
je 0x406f7c
inc eax
add ecx, 4
cmp eax, edx
jb 0x406f70
cmp eax, edx
jne 0x406f92
cmp edx, 0x40
jae 0x406f92
mov ecx, dword [edi]
mov dword [esi + eax*4 + 0x10], ecx
mov eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0xc], eax
mov ecx, esi
call fcn.00406da0
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x847c], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret