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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004b5d3b
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x4f07c4
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x4f07c4
lea eax, [ebp - 0x108]
push eax
call dword [0x5472dc]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bf36
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0041bf36
mov esp, ebp
pop ebp
ret

Function at 0x4f07e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f0760
Function at 0x4f3970
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x4f4620
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x5472d0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4f464d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4f4694
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4f469a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4f46fb
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4f46c0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4f4727
mov eax, dword [esi + 4]
push 1
push 0x52c2e4
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x52c2e5
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4f4700
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4f4750
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x4f4783
push 0x2e
push edi
call fcn.004917b0
add esp, 8
test eax, eax
je 0x4f4781
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x40104b
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x41b8e0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x472058
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 0x41b95d
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3d
push esi
call edi
add esp, 8
test eax, eax
jne 0x41b95d
push 0x3b
push esi
call edi
add esp, 8
test eax, eax
jne 0x41b95d
lea ecx, [esp + 0x1c]
call fcn.0041fb60
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
push esi
mov dword [esp + 0x1c], 0
call fcn.00401384
test eax, eax
jne 0x41b973
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00420610
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.00434fb0
mov ecx, dword [esp + 0x30]
add esp, 0x10
push esi
call fcn.004262d0
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00420610
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 common file path

Disassembly:
jmp 0x417c90
push 0xffffffffffffffff
push 0x471867
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], si
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
mov dword [esp + 0x41c], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x417cf9
mov esi, dword [esp + 0x42c]
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_4
mov dword [esp + 0x418], 1
jmp 0x417d5e
mov eax, dword [esp + 0x430]
cmp eax, esi
je 0x417d22
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x218]
push 0x481838
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
jmp 0x417d3d
lea eax, [esp + 8]
lea ecx, [esp + 0x210]
push eax
push 0x484320
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
mov esi, dword [esp + 0x42c]
lea edx, [esp + 0x210]
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0x418], 1
mov ecx, dword [esp + 0x41c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x420
ret
Function at 0x4011f9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
jmp 0x40fcb0
sub esp, 0x664
push ebx
push ebp
mov ebp, dword [esp + 0x670]
test ebp, ebp
je 0x40fe40
push ebp
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x40fe40
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40fe40
test bl, 1
je 0x40fcfb
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x40fe30
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.MSVCRT.dll_wcscpy]
push ebp
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push eax
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [esp + 0x1c]
push 0x482a5c
push ecx
call esi
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x230]
add esp, 0x10
mov dword [esp + 0x21c], 0
lea edx, [esp + 0x21c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40fe1e
lea ecx, [esp + 0x248]
push 0x482a8c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40fe00
lea edx, [esp + 0x248]
push 0x482a88
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40fe00
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x46c]
push ebp
push eax
call ebx
lea ecx, [esp + 0x1c]
push 0x4809cc
push ecx
call esi
lea edx, [esp + 0x258]
lea eax, [esp + 0x24]
push edx
push eax
call esi
lea ecx, [esp + 0x484]
push ecx
call fcn.004011f9
mov edi, dword [esp + 0x2c]
add esp, 0x1c
lea edx, [esp + 0x21c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40fd7c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x664
ret
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ebp
pop ebx
add esp, 0x664
ret
pop ebp
xor eax, eax
pop ebx
add esp, 0x664
ret
Function at 0x401249
Capabilities:
Copy file

Disassembly:
jmp 0x406710
push 0xffffffffffffffff
push 0x470678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
call fcn.004012d0
push esi
lea ecx, [esp + 0xc]
mov edi, eax
call sub.MFC42u.DLL_CString::CString_2
push str.license.dat
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call fcn.0041f1ac
cmp edi, 0xffffffff
je 0x406772
mov eax, dword [esp + 8]
mov ecx, esi
push eax
push edi
push str.RT_LICENSE
call fcn.004012ad
test eax, eax
jne 0x406802
push 0x486f38
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
push ecx
mov ecx, esi
call fcn.0040147e
cmp eax, 0xffffffff
je 0x4067f4
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4067f4
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov byte [esp + 0x1c], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 8]
push eax
push ecx
lea edx, [esp + 0x14]
push str.Copy_File_failed__ErrPath_:_s__LastError:_d_r_n
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
push 0
push 1
push eax
call fcn.004012bc
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x40124e
Capabilities:
Get file size

Disassembly:
jmp 0x41c580
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0xffffffff
jne 0x41c5f9
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41c5ac
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 0x41c5b8
xor eax, eax
pop esi
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x41c5e9
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 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 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 str.AKernel3.exe
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 str.Remove_Kernels_temp_Folder_failed.
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 0x401438
Capabilities:
Encrypt data using des

Disassembly:
jmp 0x415960
sub esp, 0xf8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x108]
push edi
mov dword [esp + 0x14], ecx
xor edx, edx
xor eax, eax
mov al, byte [edx + str.80_]
mov ecx, eax
and eax, 7
sar ecx, 3
mov bl, byte [eax*2 + 0x4837dc]
mov cl, byte [ecx + esi]
test bl, cl
setne al
mov byte [esp + edx + 0x50], al
inc edx
cmp edx, 0x38
jl 0x415977
mov eax, 0x1e
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x110], 1
je 0x4159b8
lea eax, [ebx + ebx]
lea edi, [esp + eax*4 + 0x8c]
lea ebp, [esp + eax*4 + 0x88]
xor eax, eax
xor ecx, ecx
mov cl, byte [ebx + 0x483884]
mov dword [edi], 0
mov esi, ecx
mov dword [ebp], 0
mov edx, esi
cmp edx, 0x1c
jge 0x4159ec
mov cl, byte [esp + edx + 0x50]
jmp 0x4159f0
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x1c
jl 0x4159e1
mov eax, 0x1c
lea edx, [esi + 0x1c]
cmp edx, 0x38
jge 0x415a0e
mov cl, byte [esp + edx + 0x50]
jmp 0x415a12
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x38
jl 0x415a03
xor edx, edx
mov eax, 0x4837ec
xor ecx, ecx
mov cl, byte [edx + 0x483894]
cmp byte [esp + ecx + 0x18], 0
je 0x415a3d
mov ecx, dword [eax]
mov esi, dword [ebp]
or esi, ecx
mov dword [ebp], esi
xor ecx, ecx
mov cl, byte [edx + 0x4838ac]
cmp byte [esp + ecx + 0x18], 0
je 0x415a54
mov ecx, dword [eax]
mov esi, dword [edi]
or esi, ecx
mov dword [edi], esi
add eax, 4
inc edx
cmp eax, str.80_
jl 0x415a24
mov eax, dword [esp + 0x10]
inc ebx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4159ab
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x88]
push edx
call fcn.004018fc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret 8
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 str.AppIcon.ico
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 str.AppIcon.ico
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 str.AppIcon.ico
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 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 str.Policy.ipz
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 str.Policy.ipz
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 str.Policy.ipz
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 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 str.SetupExeName
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 str.Open_File___s__failed__ErrCause:_d__LastError:_d_r_n
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