joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40129e
Capabilities:
Get geographical location

Disassembly:
jmp 0x40bb70
mov edx, dword [esp + 8]
sub esp, 0x20c
push esi
xor esi, esi
cmp edx, 0xffffffff
push edi
jne 0x40bb91
call fcn.004012b7
mov dx, ax
and edx, 0xffff
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x103
push eax
push 0x1004
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0x4824bc
push 0x103
push edx
mov dword [esp + 0x18], 0xffffffff
call fcn.00434c20
mov edx, dword [esp + 0x18]
add esp, 0x10
xor ecx, ecx
mov eax, 0x482480
cmp edx, dword [eax]
je 0x40bc04
add eax, 8
inc ecx
cmp eax, 0x4824b0
jb 0x40bbea
mov eax, esi
pop edi
pop esi
add esp, 0x20c
ret
mov eax, dword [ecx*8 + 0x482484]
mov ecx, dword [esp + 0x218]
push eax
mov esi, 1
call fcn.004262d0
mov eax, esi
pop edi
pop esi
add esp, 0x20c
ret

Function at 0x4012da
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x41d390
mov eax, dword [0x4888f0]
sub esp, 0x190
test eax, eax
je 0x41d3ab
mov eax, 1
add esp, 0x190
ret
lea eax, [esp]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x41d3ea
mov ax, word [esp]
cmp al, 1
jne 0x41d3e5
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x41d3e5
mov dword [0x4888f0], 1
mov eax, 1
add esp, 0x190
ret
call sub.WS2_32.dll_WSACleanup
xor eax, eax
add esp, 0x190
ret

Function at 0x401311
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x402470
push 0xffffffffffffffff
push 0x46fbe0
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_3
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 0x40251f
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 0x480970
push ecx
mov byte [esp + 0x2c], 1
call edi
add esp, 8
cmp eax, ebx
je 0x40250d
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 0x4024c1
jmp 0x40251f
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 0x402556
mov edx, dword [esp + 0x18]
lea ecx, [edx + 0xc8]
call fcn.00401744
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 0x401361
Capabilities:
Copy file

Disassembly:
jmp 0x417370
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x417400
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push edi
call ebx
add esp, 4
test eax, eax
je 0x417400
mov esi, dword [esp + 0x14]
test esi, esi
je 0x417400
push esi
call ebx
add esp, 4
test eax, eax
je 0x417400
push edi
call fcn.00401762
add esp, 4
test eax, eax
je 0x417400
push esi
push edi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x417400
push esi
call fcn.00401195
add esp, 4
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4173f7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x417400
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 0x417400
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4013ca
Capabilities:
Encode data using xor

Disassembly:
jmp 0x41c030
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
je 0x41c094
mov esi, dword [esp + 0x10]
test esi, esi
je 0x41c094
mov edx, dword [esp + 0x14]
test edx, edx
je 0x41c094
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
je 0x41c056
mov dword [ecx], esi
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jb 0x41c096
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 0x41c08a
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 0x41c07e
pop esi
mov eax, 1
pop ebx
ret 0x14
xor eax, eax
pop esi
pop ebx
ret 0x14

Function at 0x4013fc
Capabilities:
Delete file
Move file

Disassembly:
jmp 0x403970
push 0xffffffffffffffff
push 0x46ff20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push ebp
lea ecx, [esp + 0x14]
xor esi, esi
call sub.MFC42u.DLL_CString::CString_2
push 0x480dd4
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], esi
call fcn.0041f1ac
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
push eax
call fcn.00401762
add esp, 4
test eax, eax
je 0x4039fa
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403a0a
call ebx
cmp eax, 5
jne 0x403a0a
mov ecx, dword [0x486f3c]
push 0x1388
inc ecx
mov esi, 1
mov dword [0x486f3c], ecx
call edi
jmp 0x4039fe
test esi, esi
je 0x403a0a
cmp dword [0x486f3c], 0xb4
jl 0x4039b8
mov eax, dword [ebp]
push eax
call fcn.00401181
add esp, 4
test eax, eax
jne 0x403a6f
push 0x480d7c
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [ebp]
push 4
push 0
push eax
mov byte [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4014c9
Capabilities:
Copy file

Disassembly:
jmp 0x406560
push 0xffffffffffffffff
push 0x470640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push esi
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_2
push 0x48195c
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call fcn.0041f1ac
mov eax, dword [esp + 4]
mov ecx, esi
push eax
push 1
push str.RT_APPICON
call fcn.004012ad
test eax, eax
jne 0x406684
push 0x486f38
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
push ecx
mov ecx, esi
call fcn.00401703
mov edx, dword [eax]
push 0x48195c
push edx
lea eax, [esp + 0x10]
push 0x481838
push eax
mov byte [esp + 0x28], 2
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 8]
push ecx
call fcn.00401762
add esp, 4
test eax, eax
je 0x406676
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406676
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov byte [esp + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
push eax
push ecx
push 0x48195c
lea edx, [esp + 0x18]
push str.Copy_File___s__failed__ErrPath_:_s__LastError:_d_r_n
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
push 0
push 1
push eax
call fcn.004012bc
add esp, 0x20
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x401573
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x41acf0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x471eb0
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 0x41ad70
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3d
push ebp
call edi
add esp, 8
test eax, eax
jne 0x41ad70
push 0x3b
push ebp
call edi
add esp, 8
test eax, eax
jne 0x41ad70
lea ecx, [esp + 0x2c]
call fcn.0041fb60
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push ebp
mov dword [esp + 0x2c], 0
call fcn.00401384
test eax, eax
je 0x41ad86
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00420610
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.00434de0
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.00420d50
push 0x3d
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x2c], 2
push eax
call fcn.00421d60
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x30], 3
call fcn.00420b90
push 0x3b
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x30], 4
call fcn.00421d60
push eax
mov ecx, esi
mov byte [esp + 0x28], 5
call fcn.004207b0
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 4
call fcn.00420610
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call fcn.00420610
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.00420610
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00420610
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.00420610
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00420610
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 0x4015f5
Capabilities:
Copy file

Disassembly:
jmp 0x406320
push 0xffffffffffffffff
push 0x4705e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push esi
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_2
push 0x4818dc
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call fcn.0041f1ac
mov eax, dword [esp + 4]
mov ecx, esi
push eax
push 1
push str.RT_POLICY
call fcn.004012ad
test eax, eax
jne 0x406444
push 0x486f38
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
push ecx
mov ecx, esi
call fcn.00401703
mov edx, dword [eax]
push 0x4818dc
push edx
lea eax, [esp + 0x10]
push 0x481838
push eax
mov byte [esp + 0x28], 2
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 8]
push ecx
call fcn.00401762
add esp, 4
test eax, eax
je 0x406436
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406436
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov byte [esp + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
push eax
push ecx
push 0x4818dc
lea edx, [esp + 0x18]
push str.Copy_File___s__failed__ErrPath_:_s__LastError:_d_r_n
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
push 0
push 1
push eax
call fcn.004012bc
add esp, 0x20
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40161d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x402ab0
push 0xffffffffffffffff
push 0x46fca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push 0x486f38
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.004016ea
test eax, eax
pop esi
je 0x402b8c
push 0x486f38
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 0x402b60
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402b60
test al, 0x10
je 0x402b60
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 0x402b70
push 2
jmp 0x402b72
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 0x402b9a
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 0x40165e
Capabilities:
Create directory

Disassembly:
jmp 0x41a0f0
push 0xffffffffffffffff
push 0x471ca0
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 0x41a219
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x41a219
push esi
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString_3
cmp word [esi], 0x5c
mov dword [esp + 0x1c], ebx
jne 0x41a166
cmp word [esi + 2], 0x5c
jne 0x41a166
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 0x41a171
push 0x5c
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x41a1d1
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.004014dd
test eax, eax
jne 0x41a1b0
mov edx, dword [esp + 0xc]
push ebx
push edx
call edi
test eax, eax
je 0x41a1fb
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 0x41a17e
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 0x4016ea
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x4025b0
push 0xffffffffffffffff
push 0x46fc10
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_3
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 0x402647
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 0x48097c
push ecx
mov byte [esp + 0x28], 1
call edi
add esp, 8
test eax, eax
je 0x40266d
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 0x4025fc
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 0x4026ea
mov ax, word [eax]
cmp ax, 0x22
jne 0x4026ea
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 0x4026ea
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 0x4016f4
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x409170
push 0xffffffffffffffff
push 0x470bc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call fcn.0041f212
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0
call sub.MFC42u.DLL_CString::CString_2
mov ebx, 1
push 0x481f30
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], bl
call fcn.0041f1ac
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x40931d
push esi
call fcn.0040160e
add esp, 4
test eax, eax
je 0x40931d
mov edi, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x28
push eax
call edi
add esp, 8
test eax, eax
je 0x40931d
push 0x29
push eax
call edi
add esp, 8
test eax, eax
je 0x40931d
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CException::CException
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 2
call sub.MFC42u.DLL_CString::CString_4
mov edi, 0x47741c
mov byte [esp + 0x40], 3
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42u.DLL_CString::operator
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x24]
push eax
push 0x1001
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 4
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x4092ab
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x14]
shl eax, 1
push eax
push esi
call sub.MFC42u.DLL_CFile::Write
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CFile::Close
mov byte [esp + 0x40], bl
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 9
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x40], bl
mov dword [esp + 0x24], 0x4773f8
jmp 0x409319
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
mov byte [esp + 0x40], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x48103c
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x24]
push 0
push ebx
push edx
call fcn.004012bc
add esp, 0x20
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 4
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x40], bl
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 6
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x40], bl
mov dword [esp + 0x24], 0x4773f8
mov byte [esp + 0x40], bl
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42u.DLL_CFile::CFile
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x40174e
Capabilities:
Create directory

Disassembly:
jmp 0x416fa0
push 0xffffffffffffffff
push 0x471700
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 0x4170c0
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4170c0
push esi
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_3
cmp word [esi], 0x5c
mov dword [esp + 0x18], ebx
jne 0x417010
cmp word [esi + 2], 0x5c
jne 0x417010
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 0x41701b
push 0x5c
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x41707a
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.004018f7
add esp, 4
test eax, eax
jne 0x417059
mov edx, dword [esp + 0xc]
push ebx
push edx
call edi
test eax, eax
je 0x4170a2
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 0x417028
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 0x401762
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x416130
push 0xffffffffffffffff
push 0x4714e8
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.0041f2f0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret