joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401050
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
call fcn.00401120
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401089
pop esi
mov eax, 1
pop ebx
pop ecx
ret 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x4010ad
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 2
pop ebx
pop ecx
ret 4
mov dword [esi + 0xc], eax
inc eax
push edi
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x10]
add esp, 4
inc ecx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x10], edi
push 0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
test eax, eax
push ebx
jne 0x40110a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00401120
pop esi
mov eax, 3
pop ebx
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x10]
mov dword [esi + 8], eax
pop esi
xor eax, eax
pop ebx
pop ecx
ret 4

Function at 0x4014a0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x410710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov al, byte [0x417b20]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x14]
lea ecx, [esp + 8]
push edx
mov dword [esp + 0x124], 1
call fcn.0040fc42
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [esp + 0x128]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0040fc1e
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x4016a0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x410768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x5c
push 0x2f
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::Replace_1
push 0x416048
push 0x416044
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Replace
push 0x416040
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
test esi, esi
jg 0x401719
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
inc esi
lea ecx, [esp + 0x1c]
push esi
push 0x416048
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
test esi, esi
jle 0x40175c
lea eax, [esi + 1]
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
mov edx, dword [esp + 8]
push 0
push edx
call edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
jmp 0x401720
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402540
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4108f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1808
call fcn.004101f0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push 0x417b20
mov ecx, esi
call fcn.0040fc42
mov ecx, ebx
call fcn.004021c0
push 0
push 0
push 0
push 0
push str.myhttpget
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x4025b3
mov eax, 0xc9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push 0
push connect
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
mov dword [ebx + 8], eax
jne 0x4025e8
mov eax, 0xc9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dl, byte [0x417b20]
mov ecx, 0x600
xor eax, eax
lea edi, [ebp - 0x1817]
mov byte [ebp - 0x1818], dl
rep stosd dword es:[edi], eax
lea ecx, [ebp + 0xc]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [ebx + 8]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1818]
push 0x1800
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40271c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x402715
mov byte [ebp + eax - 0x1818], 0
lea eax, [ebp - 0x1818]
push eax
lea ecx, [ebp + 0x10]
push esi
push ecx
call sub.MFC42.DLL_operator
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x4026b5
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4026b5
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp + 0xc]
mov eax, dword [eax - 8]
push eax
push 0x416140
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov ecx, edi
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
jmp 0x40261a
push 0x417b20
mov ecx, esi
call fcn.0040fc42
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, ebx
call fcn.004021c0
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4034c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov ebx, ecx
jle 0x40350a
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 4]
mov ebp, dword [sym.imp.WS2_32.dll_send]
push 0
push esi
push edi
push eax
call ebp
cmp eax, 0xffffffff
je 0x4034fe
sub esi, eax
test esi, esi
jle 0x40350a
mov ecx, dword [ebx + 4]
add edi, eax
push 0
push esi
push edi
push ecx
call ebp
cmp eax, 0xffffffff
jne 0x4034e7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x403520
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00403490
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x40362b
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x4035a1
lea ecx, [ecx + ecx*4]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 0x2c]
push 4
lea ecx, [ecx + ecx*4]
push edx
push 0x1006
push 0xffff
lea ecx, [ecx + ecx*4]
push eax
shl ecx, 3
mov dword [esp + 0x40], ecx
call edi
cmp eax, 0xffffffff
je 0x403621
mov edx, dword [esi + 4]
lea ecx, [esp + 0x2c]
push 4
push ecx
push 0x1005
push 0xffff
push edx
call edi
cmp eax, 0xffffffff
je 0x403621
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 0x12], ecx
push edx
mov dword [esp + 0x1a], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x1e], ecx
mov word [esp + 0x22], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ebp, dword [sym.imp.WS2_32.dll_connect]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov word [esp + 0x12], ax
xor edi, edi
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
call ebp
test eax, eax
je 0x403615
push 0x3e8
call ebx
inc edi
cmp edi, 2
jl 0x4035e8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0xc
Function at 0x403640
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x410a9b
push eax
mov eax, 0x280c
mov dword fs:[0], esp
call fcn.004101f0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov al, byte [0x417b20]
mov ecx, 0xa00
mov byte [esp + 0x18], al
xor eax, eax
lea edi, [esp + 0x19]
mov edx, dword [ebp + 4]
rep stosd dword es:[edi], eax
xor ebx, ebx
lea ecx, [esp + 0x18]
push ebx
push 0x2800
stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_recv]
push ecx
push edx
mov dword [esp + 0x2834], ebx
mov dword [esp + 0x24], ebx
call edi
mov esi, eax
test esi, esi
jle 0x4036f2
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + esi + 0x1c], 0
call sub.MFC42.DLL_CString::operator
push str._r_n_r_n
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x403772
mov edx, dword [ebp + 4]
push 0
lea ecx, [esp + 0x1c]
push 0x2800
push ecx
push edx
add ebx, esi
call edi
mov esi, eax
test esi, esi
jg 0x4036af
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebp + 4]
push 0
lea eax, [esp + 0x1c]
push 0x2800
push eax
push ecx
call edi
mov esi, eax
test esi, esi
jle 0x403741
mov edx, dword [esp + 0x282c]
lea eax, [esp + 0x18]
push edx
push 1
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, dword [ebp + 4]
add esp, 0x10
lea ecx, [esp + 0x18]
add ebx, esi
push 0
push 0x2800
push ecx
push edx
call edi
mov esi, eax
test esi, esi
jg 0x40370e
lea ecx, [esp + 0x10]
mov dword [esp + 0x2824], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x281c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2818
ret 4
mov edx, dword [esp + 0x282c]
mov ecx, 4
sub ecx, ebx
push edx
add eax, ecx
push 1
sub esi, eax
lea ecx, [esp + eax + 0x20]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov ebx, esi
jmp 0x4036f6
Function at 0x403900
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x40
push esi
push edi
xor eax, eax
lea edi, [ecx + 4]
mov ecx, 0x10
lea esi, [esp + 8]
mov byte [esp + 8], 0x80
mov byte [esp + 9], al
mov byte [esp + 0xa], al
mov byte [esp + 0xb], al
mov byte [esp + 0xc], al
mov byte [esp + 0xd], al
mov byte [esp + 0xe], al
mov byte [esp + 0xf], al
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov byte [esp + 0x16], al
mov byte [esp + 0x17], al
mov byte [esp + 0x18], al
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], al
mov byte [esp + 0x21], al
mov byte [esp + 0x22], al
mov byte [esp + 0x23], al
mov byte [esp + 0x24], al
mov byte [esp + 0x25], al
mov byte [esp + 0x26], al
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
mov byte [esp + 0x30], al
mov byte [esp + 0x31], al
mov byte [esp + 0x32], al
mov byte [esp + 0x33], al
mov byte [esp + 0x34], al
mov byte [esp + 0x35], al
mov byte [esp + 0x36], al
mov byte [esp + 0x37], al
mov byte [esp + 0x38], al
mov byte [esp + 0x39], al
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], al
mov byte [esp + 0x3c], al
mov byte [esp + 0x3d], al
mov byte [esp + 0x3e], al
mov byte [esp + 0x3f], al
mov byte [esp + 0x40], al
mov byte [esp + 0x41], al
mov byte [esp + 0x42], al
mov byte [esp + 0x43], al
mov byte [esp + 0x44], al
mov byte [esp + 0x45], al
mov byte [esp + 0x46], al
mov byte [esp + 0x47], al
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
add esp, 0x40
ret 4
Function at 0x4045e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x468
push esi
push edi
push 0x416180
mov edi, ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x404611
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x468
ret 8
lea ecx, [esp + 0x18]
push ebx
push ecx
mov ecx, edi
call fcn.00403900
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x400
lea edx, [esp + 0x7c]
push 1
push edx
call ebx
add esp, 0x10
test eax, eax
je 0x404662
push eax
lea eax, [esp + 0x78]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, edi
call fcn.00403a50
push esi
push 0x400
lea edx, [esp + 0x7c]
push 1
push edx
call ebx
add esp, 0x10
test eax, eax
jne 0x40463a
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00403b10
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edi, dword [esp + 0x480]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 4
xor esi, esi
xor edx, edx
mov dl, byte [esp + esi + 0xc]
push edx
push edi
push str._s_02x
push edi
call ebx
add esp, 0x10
inc esi
cmp esi, 0x10
jb 0x40468c
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x468
ret 8

Function at 0x406d00
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov ecx, 0x5b
xor eax, eax
mov edi, 0x417bf0
push 0x416180
rep stosd dword es:[edi], eax
mov edi, str.C:
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.dataconfig.dat
mov eax, ecx
mov esi, edi
mov edi, 0x417bf0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 1
mov dword [0x417d24], 0
mov dword [0x417d1c], edi
mov dword [0x417d20], edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x406d6c
mov eax, edi
pop edi
pop esi
ret
push esi
push 0x16c
push edi
push 0x417bf0
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret

Function at 0x406d90
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x410f88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea eax, [esp]
push esi
push eax
call fcn.004015a0
mov ecx, esp
mov dword [esp + 0xc], esp
push str.dataconfig.txt
push eax
push ecx
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_operator
call fcn.004016a0
add esp, 4
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
push 0x416034
push str.dataconfig.dat
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x406e14
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret
push esi
push 0x16c
push 1
push 0x417bf0
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x20]
add esp, 0x14
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret
Function at 0x40a540
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41161b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push esi
mov esi, dword [esp + 0x134]
lea ecx, [esp + 4]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x20]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x12c], 0
call dword [edx + 0x54]
lea eax, [esp + 8]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
mov esi, dword [esp + 0x138]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 4]
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0xc]
mov byte [esp + 0x1c], 0
push edx
push eax
mov dword [esp + 0x18], ecx
call sub.MFC42.DLL_CFile::SetStatus
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x124]
pop esi
mov dword fs:[0], ecx
add esp, 0x12c
ret 8

Function at 0x40b260
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40b26f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x416714]
test eax, eax
je 0x40b27d
call fcn.0040b200
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x40b37f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x417d70]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x417d70]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x417d70]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x417d70]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x417d70]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x417d70]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x417d70]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x417d70]
xor eax, ecx
inc esi
dec edi
jne 0x40b297
pop edi
test edx, edx
je 0x40b3a1
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x417d70]
xor eax, ecx
inc esi
dec edx
jne 0x40b383
pop ebx
pop esi
not eax
ret 0xc
Function at 0x404840
Capabilities:
Copy file

Disassembly:
sub esp, 0x24
mov eax, dword [0x457640]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, edx
push esi
mov esi, ecx
mov ecx, dword [ebx + 0x30]
sub ecx, dword [ebx + 0x2c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x404874
call fcn.0042cc40
mov ecx, dword [ebx + 0x2c]
push edi
push 0xffffffffffffffff
push 0
lea edi, [esi + 0x5c]
push ecx
mov ecx, edi
call fcn.00402150
fldz
inc dword [esi + 0x58]
fstp dword [esi + 0x78]
push edi
add esi, 0x20
push esi
lea edi, [esp + 0x18]
call fcn.00403110
mov eax, dword [esp + 0x1c]
add esp, 8
mov esi, 0x10
mov dword [esp + 0xc], 0
pop edi
cmp dword [esp + 0x24], esi
jae 0x4048bc
lea eax, [esp + 0x10]
cmp dword [ebx + 0x18], esi
jb 0x4048c6
mov ebx, dword [ebx + 4]
jmp 0x4048c9
add ebx, 4
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0x404950
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
test eax, eax
setne bl
cmp dword [esp + 0x24], esi
jb 0x4048f7
mov eax, dword [esp + 0x10]
push eax
call fcn.0040fc42
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call int.0042c7ef
add esp, 0x24
ret

Function at 0x4061e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xc
mov eax, 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x45b730], al
jne 0x406204
or dword [0x45b730], eax
call ebx
mov dword [0x45b72c], eax
call ebx
mov ecx, eax
sub ecx, dword [0x45b72c]
cmp ecx, 0x1f4
jb 0x4062b6
movzx edx, word [edi]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
shl edx, 0x10
push edx
push 0
mov dword [0x45b72c], eax
mov eax, dword [esi + 0xd8]
push 0x401
push eax
call ebx
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0xd8]
push 0
push ecx
push 0x402
push edx
call ebx
cmp dword [edi + 0x20], 0x10
jb 0x40625b
mov eax, dword [edi + 0xc]
jmp 0x40625e
lea eax, [edi + 0xc]
push eax
push 0x3ea
mov ecx, esi
call fcn.0041982f
mov eax, dword [esi + 0x12c]
push 0x640000
push 0
push 0x401
push eax
call ebx
fld dword [edi + 0x24]
mov edx, dword [esi + 0x12c]
fnstcw word [esp + 6]
movzx eax, word [esp + 6]
or eax, 0xc00
mov dword [esp + 8], eax
push 0
fldcw word [esp + 0xc]
fistp qword [esp + 0xc]
mov ecx, dword [esp + 0xc]
push ecx
push 0x402
fldcw word [esp + 0x12]
push edx
call ebx
pop ebx
add esp, 0xc
ret
Function at 0x406740
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x443a43
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x457640]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457640]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
push 0x44
xor ebx, ebx
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.0042f220
xor eax, eax
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
lea ecx, [ebp + 0x80]
push ecx
mov edi, str.Setup.exe
lea esi, [esp + 0x38]
mov dword [esp + 0xcc], ebx
call fcn.004052b0
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0xc8], 1
call fcn.00402150
mov edi, 0x10
mov byte [esp + 0xbc], bl
cmp dword [esp + 0x40], edi
jb 0x40681a
mov edx, dword [esp + 0x2c]
push edx
call fcn.0040fc42
add esp, 4
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], edi
jae 0x406831
lea eax, [esp + 0x94]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406873
push ebx
push str.Error
push 0x44ab38
mov ecx, ebp
call fcn.00415894
cmp dword [esp + 0xa8], edi
jb 0x4068ad
mov eax, dword [esp + 0x94]
push eax
jmp 0x4068a5
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
cmp dword [esp + 0xa8], edi
jb 0x4068ad
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0040fc42
add esp, 4
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call int.0042c7ef
add esp, 0xac
ret 4