joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bf0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x402b90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
call fcn.00401ac0
push eax
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::CString_1
push str.del.h2w
lea ecx, [esp + 0xc]
mov dword [esp + 0x58], 0
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 8]
lea ecx, [esp]
push eax
mov byte [esp + 0x58], 1
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 8]
mov byte [esp + 0x54], 0
call fcn.00402692
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CFile::CFile
mov ecx, dword [esp]
push 0
push 0
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 2
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x401db0
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CFile::Close
movzx ax, byte [esp + 0x5c]
xor edx, edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x26], edx
push ecx
mov dword [esp + 0x2e], edx
lea ecx, [esp + 8]
mov word [esp + 0x22], 0x3a
mov word [esp + 0x24], 0x5c
mov word [esp + 0x26], 0
mov word [esp + 0x28], 0
mov word [esp + 0x32], dx
mov word [esp + 0x20], ax
call sub.MFC42u.DLL_CString::CString_1
push str..h2w
lea ecx, [esp + 8]
mov byte [esp + 0x58], 3
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x30]
call sub.MFC42u.DLL_CFileFind::CFileFind
mov edx, dword [esp + 4]
push 0
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 4
call sub.MFC42u.DLL_CFileFind::FindFile
test eax, eax
je 0x401d94
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push edi
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CFileFind::FindNextFileW
mov edi, eax
mov eax, dword [esp + 0x3c]
push 0x10
lea ecx, [esp + 0x40]
call dword [eax + 0x40]
test eax, eax
jne 0x401d89
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CFileFind::IsDots
test eax, eax
jne 0x401d89
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42u.DLL_CFileFind::GetFilePath
lea edx, [esp + 0x14]
push 4
push edx
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], 5
call sub.MFC42u.DLL_CString::Right
mov eax, dword [eax]
push 0x404168
push eax
call esi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.00402692
test bl, bl
je 0x401d7b
mov eax, dword [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 4
call fcn.00402692
test edi, edi
jne 0x401d05
pop edi
pop esi
pop ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 3
call fcn.004026aa
lea ecx, [esp + 4]
mov byte [esp + 0x54], 2
call fcn.00402692
lea ecx, [esp + 0xc]
mov byte [esp + 0x54], 0
call fcn.0040267a
lea ecx, [esp]
mov dword [esp + 0x54], 0xffffffff
call fcn.00402692
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
Function at 0x401e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x402bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x3c]
xor eax, eax
xor cx, cx
mov dword [esp + 0x22], eax
mov cl, bl
lea edx, [esp + 0x18]
push esi
mov dword [esp + 0x2a], eax
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x44]
mov word [esp + 0x22], 0x3a
mov word [esp + 0x24], 0x5c
mov word [esp + 0x26], 0
mov word [esp + 0x28], 0
mov word [esp + 0x32], ax
call sub.MFC42u.DLL_CString::CString_1
push str.1.h2w
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 8]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x3c], 1
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 8]
mov byte [esp + 0x38], 0
call fcn.00402692
and ebx, 0xff
lea ecx, [esp + 0xc]
sub ebx, 0x41
call sub.MFC42u.DLL_CFile::CFile
mov ecx, ebx
mov eax, dword [esp + 0x40]
shl ecx, 6
add ecx, ebx
push 0
push 0
push eax
lea edx, [ebx + ecx*4]
lea ecx, [esp + 0x18]
shl edx, 5
mov byte [esp + 0x44], 2
lea esi, [edx + 0x4392b9]
mov byte [esi], 0
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x401f27
lea ecx, [esp + 0xc]
mov byte [esi], 1
call sub.MFC42u.DLL_CFile::Close
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.0040267a
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call fcn.00402692
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x402450
Capabilities:
Get disk information
Get disk size

Disassembly:
mov dl, byte [esp + 4]
sub esp, 0x21c
push ebp
push esi
xor ebp, ebp
xor esi, esi
cmp dl, 0x61
push edi
jb 0x40246b
cmp dl, 0x7a
jbe 0x40247d
cmp dl, 0x41
jb 0x402553
cmp dl, 0x5a
ja 0x402553
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x22], 0x3a
mov word [esp + 0x24], 0x5c
mov word [esp + 0x26], bp
mov word [esp + 0x28], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ax, ax
lea ecx, [esp + 0x20]
mov al, dl
push ecx
mov word [esp + 0x24], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x402553
lea edx, [esp + 0xc]
push ebx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
push ebp
push ebx
push ebp
push ecx
mov dword [esp + 0x30], eax
xor edi, edi
call fcn.00402a60
push edi
push esi
push edx
push eax
call fcn.00402a60
mov ecx, dword [esp + 0x234]
push ebp
push ebx
push edi
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x20]
push edx
call fcn.00402a60
push edi
push esi
push edx
push eax
call fcn.00402a60
mov ecx, dword [esp + 0x238]
pop ebx
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], edx
pop ebp
add esp, 0x21c
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x21c
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x195c6e43
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x71af361a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x407fa0
Capabilities:
Modify service

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp], 1
mov dword [esp + 8], 0
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shl ecx, 3
cmp eax, 0xffffffff
mov dword [esp + 4], ecx
setne dl
mov eax, 0x70f87c
lea ecx, [esp + 8]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
push ecx
lea eax, [esp + 4]
push 2
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
add esp, 0x1c
ret

Function at 0x408140
Capabilities:
Create http request

Disassembly:
sub esp, 0x50
push esi
push edi
mov ecx, 0xe
mov esi, 0x4313d0
lea edi, [esp + 8]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov word [esp + 0x55], ax
push eax
push eax
push eax
push 1
push eax
mov byte [esp + 0x6b], al
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0x84000000
push 0
lea ecx, [esp + 0x14]
mov esi, eax
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
jmp 0x4081a7
call esi
push 0
call esi
call fcn.00408090
pop edi
xor eax, eax
pop esi
add esp, 0x50
ret 0x10
Function at 0x401120
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
push 0
mov dword [esp + 0xc], 0
push dword [esi]
call fcn.00409e45
push dword [esi]
lea eax, [esp + 0x1c]
push 2
push 1
push eax
call fcn.00409adb
mov ax, word [esp + 0x28]
add esp, 0x1c
cmp al, 0x4d
jne 0x4011f2
cmp ah, 0x5a
jne 0x4011f2
push 0
push 0x3c
push dword [esi]
call fcn.00409e45
push dword [esi]
lea eax, [esp + 0x14]
push 1
push 4
push eax
call fcn.00409adb
mov eax, dword [esp + 0x20]
push 0
add eax, 0x18
push eax
push dword [esi]
call fcn.00409e45
push dword [esi]
lea eax, [esp + 0x38]
push 1
push 2
push eax
call fcn.00409adb
mov ax, word [esp + 0x44]
add esp, 0x38
cmp al, 0xb
jne 0x4011f2
cmp ah, 1
jne 0x4011b6
mov ecx, 0x98
jmp 0x4011c0
cmp ah, 2
jne 0x4011f2
mov ecx, 0xa8
mov eax, dword [esp + 4]
push 0
add eax, ecx
push eax
push dword [esi]
call fcn.00409e45
push dword [esi]
lea eax, [esp + 0x14]
push 1
push 4
push eax
call fcn.00409adb
mov eax, dword [esp + 0x20]
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmove eax, ecx
pop esi
pop ecx
ret
or eax, 0xffffffff
pop esi
pop ecx
ret

Function at 0x401220
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi], 0
jne 0x401252
lea eax, [edi + 0x68]
push 0x421200
push eax
call fcn.00402720
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x401252
push str.Cannot_open_archive_file_n
call fcn.00401820
add esp, 4
xor eax, eax
pop edi
ret
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push 0
push dword [ebp + 4]
call sub.WS2_32.dll_ntohl
add eax, dword [edi + 4]
push eax
push dword [edi]
call fcn.00409e45
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.dll_ntohl
push eax
call fcn.004097b8
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40129a
push str.Could_not_allocate_read_buffer_n
call fcn.00401820
add esp, 4
xor eax, eax
pop ebp
pop ebx
pop edi
ret
push dword [edi]
push 1
push dword [ebp + 8]
call sub.WS2_32.dll_ntohl
push eax
push ebx
call fcn.00409adb
add esp, 0x10
cmp eax, 1
jae 0x4012ce
push str.Could_not_read_from_file_n
call fcn.00401820
push ebx
call fcn.004097b3
add esp, 8
xor eax, eax
pop ebp
pop ebx
pop edi
ret
cmp byte [ebp + 0x10], 1
jne 0x401305
push esi
push ebp
push ebx
call fcn.00401030
push ebx
mov esi, eax
call fcn.004097b3
add esp, 0xc
mov ebx, esi
test esi, esi
pop esi
jne 0x401305
lea eax, [ebp + 0x12]
push eax
push str.Error_decompressing__s_n
call fcn.00401820
add esp, 8
xor eax, eax
pop ebp
pop ebx
pop edi
ret
mov eax, dword [edi]
test eax, eax
je 0x40131a
push eax
call fcn.00409839
add esp, 4
mov dword [edi], 0
pop ebp
mov eax, ebx
pop ebx
pop edi
ret
Function at 0x401320
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push ebp
push esi
call fcn.00401220
push esi
mov ebx, eax
call fcn.00403a90
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401348
pop esi
pop ebp
or eax, eax
pop ebx
ret
push edi
lea edi, [ebp + 0x12]
lea eax, [esi + 0x2068]
push edi
push eax
call fcn.00403d60
add esp, 8
mov esi, eax
push dword [ebp + 0xc]
call sub.WS2_32.dll_ntohl
mov ebp, eax
test esi, esi
jne 0x401387
push edi
push str._s_could_not_be_extracted__n
push str.fopen
call fcn.00401800
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 1
push ebp
push ebx
call fcn.0040a5fa
add esp, 0x10
cmp eax, 1
je 0x4013b8
test ebp, ebp
je 0x4013b8
push edi
push str.Failed_to_write_all_bytes_for__s_n
push str.fwrite
call fcn.00401800
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00409839
push ebx
call fcn.004097b3
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4013d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [esp + 0x70]
push esi
push edi
mov edi, dword [esp + 0x74]
lea esi, [esp + 0x14]
push 0
add ebx, 0xffffffa0
push ebx
push dword [edi]
call fcn.00409e45
add esp, 0xc
test eax, eax
jne 0x40143d
push dword [edi]
lea eax, [esp + 0x10]
push 1
push 0x60
push eax
call fcn.00409adb
add esp, 0x10
cmp eax, 1
jb 0x40143d
nop dword [eax]
push 8
push esi
push str.MEI_f_v_n_v
call fcn.00409730
add esp, 0xc
test eax, eax
je 0x401452
dec esi
lea eax, [esp + 0xc]
cmp esi, eax
jae 0x401420
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0040784a
add esp, 0x64
ret
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [edi + 0x40], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [edi + 0x50], xmm0
movq xmm0, qword [esi + 0x50]
movq qword [edi + 0x60], xmm0
push dword [edi + 0x18]
call sub.WS2_32.dll_ntohl
lea ecx, [esp + 0xc]
sub esi, ecx
mov ecx, dword [esp + 0x6c]
add esi, ebx
sub esi, eax
xor eax, eax
add esi, 0x58
mov dword [edi + 4], esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040784a
add esp, 0x64
ret
Function at 0x401560
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi], 0
jne 0x401585
lea eax, [esi + 0x68]
push 0x421200
push eax
call fcn.00402720
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x401610
push esi
call fcn.00401120
add esp, 4
cmp eax, 1
jge 0x4015a8
push 2
push 0
push dword [esi]
call fcn.00409e45
push dword [esi]
call fcn.0040a3b7
add esp, 0x10
push eax
push esi
call fcn.004013d0
add esp, 8
cmp eax, 0xffffffff
je 0x401610
push dword [esi + 0x24]
mov dword [esi + 0x406c], 0
call sub.WS2_32.dll_ntohl
push 0
mov dword [0x42d954], eax
push dword [esi + 0x1c]
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 4]
push eax
push dword [esi]
call fcn.00409e45
add esp, 0xc
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
call fcn.004097b8
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x401615
push str.Could_not_allocate_buffer_for_TOC.
push str.malloc
call fcn.00401800
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi]
push 1
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
push dword [esi + 8]
call fcn.00409adb
add esp, 0x10
cmp eax, 1
jae 0x401649
push str.Could_not_read_from_file.
push str.fread
call fcn.00401800
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 8]
push dword [esi]
mov dword [esi + 0xc], eax
call fcn.004098e4
add esp, 4
test eax, eax
je 0x401677
push str.Error_on_file_n.
call fcn.00401820
add esp, 4
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00401200
add esp, 4
xor eax, eax
pop esi
ret
Function at 0x4037f0
Capabilities:
Create directory
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00407860
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push edi
push 0
push eax
push 0
call fcn.00404b30
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x403848
push str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.00401820
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040784a
add esp, 0x4004
ret
push esi
push 0x1000
lea eax, [esp + 0x200c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov esi, eax
call fcn.004097b3
add esp, 4
test esi, esi
jne 0x403892
push str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.00401820
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040784a
add esp, 0x4004
ret
push 0x1000
lea eax, [esp + 0x200c]
push eax
push 0
call fcn.0040dd38
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4038d5
push str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.00401820
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040784a
add esp, 0x4004
ret
push ebx
push 0x2000
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00408610
push 0x5c
push esi
call fcn.004088a7
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x403933
nop
mov ecx, edi
lea eax, [esp + 0xc]
sub ecx, esi
sar ecx, 1
inc ecx
push ecx
push esi
push eax
call fcn.0040e438
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call ebx
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.004088a7
mov edi, eax
add esp, 8
test edi, edi
jne 0x403900
push 0
push esi
call ebx
mov ecx, dword [esp + 0x400c]
mov eax, esi
pop ebx
pop esi
pop edi
xor ecx, esp
call fcn.0040784a
add esp, 0x4004
ret
Function at 0x403960
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00407860
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1018]
push 0x421200
push eax
call fcn.00402720
push esi
push edi
mov ebx, eax
call fcn.00403d60
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x403a5f
push ebx
test esi, esi
je 0x403a64
call fcn.004098b9
add esp, 4
test eax, eax
jne 0x403a36
nop dword [eax + eax]
push ebx
push 0x1000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.00409adb
add esp, 0x10
test eax, eax
jne 0x4039f9
push ebx
call fcn.004098e4
add esp, 4
test eax, eax
je 0x403a1b
push ebx
jmp 0x403a2b
push esi
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040a5fa
add esp, 0x10
test eax, eax
je 0x403a2a
push esi
call fcn.004098e4
add esp, 4
test eax, eax
jne 0x403a2a
push ebx
call fcn.004098b9
add esp, 4
test eax, eax
je 0x4039d0
jmp 0x403a36
push esi
call fcn.0040fbb4
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.00409839
push esi
call fcn.00409839
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0040784a
add esp, 0x1004
ret
test esi, esi
je 0x403a6c
push esi
call fcn.00409839
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040784a
add esp, 0x1004
ret
Function at 0x403ae0
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov eax, 0x2028
call fcn.00407860
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x2024], eax
mov eax, dword [esp + 0x202c]
push ebx
push ebp
mov ebp, dword [esp + 0x2038]
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
je 0x403b5b
push 0x42283c
call fcn.00403cb0
push ebp
mov ebx, eax
call fcn.004037f0
mov edi, eax
add esp, 8
test edi, edi
je 0x403b54
push edi
push 0x422840
call fcn.0040ea1c
push edi
mov esi, eax
call fcn.004097b3
add esp, 0xc
test esi, esi
je 0x403b5f
push str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.00401820
add esp, 4
xor eax, eax
jmp 0x403c95
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._MEI_d
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.00404580
add esp, 0x10
xor esi, esi
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040fb99
mov edi, eax
push edi
call fcn.004049a0
add esp, 0xc
test eax, eax
je 0x403c1f
push edi
call fcn.004097b3
inc esi
add esp, 4
cmp esi, 5
jl 0x403b90
test ebp, ebp
je 0x403b54
push 0
push 0x42283c
push 0
call fcn.00404b30
test ebx, ebx
je 0x403c04
push 0
push ebx
push 0
mov edi, eax
call fcn.00404b30
mov esi, eax
push esi
push edi
call fcn.0040ea1c
push edi
call fcn.004097b3
push esi
call fcn.004097b3
push ebx
call fcn.004097b3
add esp, 0x2c
xor eax, eax
jmp 0x403c95
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004097b3
add esp, 4
xor eax, eax
jmp 0x403c95
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00404bd0
push edi
call fcn.004097b3
add esp, 0x10
test ebp, ebp
je 0x403c90
push 0
push 0x42283c
push 0
call fcn.00404b30
test ebx, ebx
je 0x403c79
push 0
push ebx
push 0
mov edi, eax
call fcn.00404b30
mov esi, eax
push esi
push edi
call fcn.0040ea1c
push edi
call fcn.004097b3
push esi
call fcn.004097b3
push ebx
call fcn.004097b3
add esp, 0x2c
jmp 0x403c90
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004097b3
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040784a
add esp, 0x2028
ret
Function at 0x403cb0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00407860
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.00404b30
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x403d40
push 0x2000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 4]
push eax
push 0
call fcn.00404bd0
add esp, 0xc
test eax, eax
je 0x403d40
cmp byte [eax], 0
je 0x403d40
push eax
call fcn.00411160
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040784a
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.0040784a
add esp, 0x4004
ret

Function at 0x404240
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.00404b30
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.004097b3
add esp, 4
mov eax, esi
pop edi
pop esi
ret

Function at 0x404270
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.00407860
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
push 0x1000
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
push eax
call fcn.00404b30
push 1
push 0x16
call fcn.0040f62e
push 1
push 2
call fcn.0040f62e
push 1
push 0xf
call fcn.0040f62e
push 1
push 0x15
call fcn.0040f62e
add esp, 0x2c
mov dword [esp + 4], 0xc
lea eax, [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.0040a71a
push eax
call fcn.004111b6
push eax
call fcn.0040f146
push 1
mov dword [esp + 0x68], eax
call fcn.0040a71a
push eax
call fcn.004111b6
push eax
call fcn.0040f146
push 2
mov dword [esp + 0x78], eax
call fcn.0040a71a
push eax
call fcn.004111b6
push eax
call fcn.0040f146
add esp, 0x24
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4043c7
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.0040784a
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x422944
call fcn.00401850
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.0040784a
add esp, 0x2068
ret