joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013ce40
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x98], eax
xor ebx, ebx
lea esi, [esp + 0x2c]
mov dword [esi], ebx
sub esp, 0x14
mov dword [esp + 0x10], esi
movaps xmm0, xmmword [0x101b1420]
movups xmmword [esp], xmm0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
push dword [esi]
call fcn.10085990
add esp, 4
mov edi, eax
lea eax, [esp + 0x20]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], ebx
push esi
push edi
push ebx
push 0x100
push ebx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [esp + 4], edi
test edi, edi
je 0x1013cf26
test eax, eax
jne 0x1013cf26
xor ebx, ebx
mov esi, dword [esp + 4]
cmp dword [esi + 0x34], 0
je 0x1013cef1
mov eax, dword [esi + 0x40]
cmp eax, 0x47
je 0x1013cec9
cmp eax, 6
jne 0x1013cef1
push str.Virtual
push dword [esi + 0x24]
call fcn.10149bd6
add esp, 8
test eax, eax
jne 0x1013cef1
push str.virtual
push dword [esi + 0x24]
call fcn.10149bd6
add esp, 8
test eax, eax
je 0x1013cefa
mov esi, dword [esi + 8]
test esi, esi
jne 0x1013ceb6
jmp 0x1013cf26
push 0xc
call fcn.10145ba4
add esp, 4
mov dword [eax + 8], esi
lea ecx, [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov dword [esp + 0x20], eax
inc dword [esp + 0x28]
mov esi, dword [esi + 8]
mov bl, 1
jmp 0x1013cef4
mov dword [esp + 8], ebx
lea ebx, [esp + 0x30]
mov dword [ebx], 0x1013d0b0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ebx
push dword [esp + 0x2c]
lea esi, [esp + 0x28]
push esi
call fcn.1013d120
add esp, 0xc
mov ecx, dword [esp + 0x24]
cmp ecx, esi
je 0x1013d01d
mov dword [esp + 0xc], ecx
mov esi, dword [ecx + 8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x90], 0
cmp dword [esi + 0x34], 0
je 0x1013cfe1
xor edi, edi
movzx eax, byte [esi + edi + 0x2c]
mov dword [esp + 0x10], eax
push ebx
call fcn.10163aa4
add esp, 4
lea eax, [esp + eax*2]
add eax, 0x30
push dword [esp + 0x10]
push str._02X
push 0xffffffffffffffff
push 4
push eax
call fcn.1007db00
add esp, 0x14
inc edi
cmp edi, dword [esi + 0x34]
je 0x1013cfe1
push 0x101a03f0
push 0x32
push ebx
call fcn.101643aa
add esp, 0xc
cmp edi, dword [esi + 0x34]
jb 0x1013cf98
lea esi, [esp + 0x14]
mov ecx, esi
push ebx
call fcn.100349a0
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.1013d062
cmp byte [esp + 0x1f], 0
jns 0x1013d00a
push dword [esp + 0x14]
call fcn.10145bd4
add esp, 4
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
lea eax, [esp + 0x20]
cmp ecx, eax
jne 0x1013cf5a
lea esi, [esp + 0x20]
mov ecx, esi
call fcn.1013d0d6
push 0
push dword [esp + 8]
push 0x101a6dd4
call fcn.100a9680
add esp, 0xc
mov ebx, dword [esp + 8]
and bl, 1
mov ecx, esi
call fcn.1013d0d6
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401e1e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4a4fec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x4800b8
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], eax
mov eax, 0x47fd28
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebp + 8]
push eax
push 0x4a93b8
push 0x47fce4
lea eax, [ebp - 0xcc]
push 0x18
push eax
mov dword [ebp - 0xcc], 0x4800ac
mov dword [ebp - 0xc8], 0x480094
mov dword [ebp - 0xc4], 0x48008c
mov dword [ebp - 0xc0], 0x480078
mov dword [ebp - 0xbc], str._bt7
mov dword [ebp - 0xb8], 0x48005c
mov dword [ebp - 0xb4], 0x480054
mov dword [ebp - 0xb0], 0x48003c
mov dword [ebp - 0xac], 0x480038
mov dword [ebp - 0xa8], 0x480028
mov dword [ebp - 0xa4], 0x48001c
mov dword [ebp - 0xa0], 0x480004
mov dword [ebp - 0x9c], 0x47fff8
mov dword [ebp - 0x98], 0x47ffe0
mov dword [ebp - 0x94], 0x47ffd4
mov dword [ebp - 0x90], 0x47ffb8
mov dword [ebp - 0x8c], 0x47ffac
mov dword [ebp - 0x88], 0x47ff94
mov dword [ebp - 0x84], 0x47ff84
mov dword [ebp - 0x80], 0x47ff68
mov dword [ebp - 0x7c], 0x47ff54
mov dword [ebp - 0x78], 0x47ff3c
mov dword [ebp - 0x74], 0x47ff2c
mov dword [ebp - 0x70], 0x47ff10
mov dword [ebp - 0x6c], 0x47ff00
mov dword [ebp - 0x68], 0x47fee4
mov dword [ebp - 0x64], 0x47fed0
mov dword [ebp - 0x60], 0x47feb0
mov dword [ebp - 0x5c], 0x47fea4
mov dword [ebp - 0x58], 0x47fe8c
mov dword [ebp - 0x54], 0x47fe74
mov dword [ebp - 0x50], 0x47fe50
mov dword [ebp - 0x4c], 0x47fe40
mov dword [ebp - 0x44], 0x47fe2c
mov dword [ebp - 0x3c], 0x47fe20
mov dword [ebp - 0x38], 0x47fe08
mov dword [ebp - 0x34], 0x47fdf8
mov dword [ebp - 0x30], 0x47fddc
mov dword [ebp - 0x2c], 0x47fdcc
mov dword [ebp - 0x28], 0x47fdb0
mov dword [ebp - 0x24], 0x47fda4
mov dword [ebp - 0x20], 0x47fd8c
mov dword [ebp - 0x1c], 0x47fd80
mov dword [ebp - 0x18], 0x47fd68
mov dword [ebp - 0x14], 0x47fd5c
mov dword [ebp - 0x10], 0x47fd44
call fcn.00401da4
mov ecx, dword [ebp - 4]
add esp, 0x14
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0043cac0
leave
ret
Function at 0x44fcd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov edi, 0x111
cmp dword [ebp + 8], edi
mov esi, ecx
jne 0x44fd0e
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [ebp + 0xc]
call dword [eax + 0x38]
test eax, eax
je 0x44fcfb
xor eax, eax
inc eax
jmp 0x44fdd1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
jmp 0x44fdd1
cmp dword [ebp + 8], 0x4e
mov edi, dword [ebp + 0x10]
jne 0x44fd43
and dword [ebp + 8], 0
cmp dword [edi], 0
je 0x44fd3b
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push edi
push dword [ebp + 0xc]
mov ecx, esi
call dword [eax + 0x3c]
test eax, eax
je 0x44fd3b
mov eax, dword [ebp + 8]
jmp 0x44fdd1
push edi
push dword [ebp + 0xc]
push 0x4e
jmp 0x44fd02
cmp dword [ebp + 8], 6
push ebx
jne 0x44fd5a
push edi
call fcn.0044e763
push dword [ebp + 0xc]
mov ebx, eax
call fcn.0044f941
cmp dword [ebp + 8], 0x20
jne 0x44fd79
mov eax, edi
shr eax, 0x10
push eax
movsx eax, di
push eax
mov ecx, esi
call fcn.0044f9d9
test eax, eax
jne 0x44ffd9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ecx, dword [ebp + 8]
mov ebx, eax
xor ebx, ecx
and ebx, 0xff
imul ebx, ebx, 0xc
add ebx, 0x3001ef50
cmp ecx, dword [ebx]
mov dword [ebp + 0x10], eax
jne 0x44fdb6
cmp eax, dword [ebx + 8]
jne 0x44fdb6
mov eax, dword [ebx + 4]
test eax, eax
je 0x44fdc4
cmp ecx, 0xc000
jb 0x44fdf7
jmp 0x450040
mov dword [ebx], ecx
mov dword [ebx + 8], eax
cmp dword [eax], 0
jne 0x44fdda
and dword [ebx + 4], 0
mov eax, dword [esi]
push edi
push dword [ebp + 0xc]
push ecx
mov ecx, esi
call dword [eax + 0x50]
pop ebx
pop edi
pop esi
leave
ret 0xc
mov eax, dword [ebp + 0x10]
mov edx, 0xc000
cmp ecx, edx
push 0
push 0
jae 0x44fe0e
push ecx
push dword [eax + 4]
call fcn.0044e911
test eax, eax
je 0x44fe38
mov dword [ebx + 4], eax
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
dec eax
cmp eax, 0x2b
ja 0x450036
jmp dword [eax*4 + 0x30012725]
mov eax, dword [eax + 4]
push edx
jmp 0x44fe2e
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 8]
cmp dword [ecx], edx
je 0x45003d
push 0
push 0
push 0xc000
add eax, 0x18
push eax
call fcn.0044e911
test eax, eax
jne 0x44fe14
mov eax, dword [ebp + 0x10]
call dword [eax]
cmp dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
jne 0x44fdd7
jmp 0x44fdc0
xor eax, eax
inc eax
jmp 0x44fdd0
xor eax, eax
jmp 0x44fdd0
mov dword [ebx + 4], eax
mov eax, dword [eax + 0x14]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call eax
jmp 0x44fdd0
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x401000
Capabilities:
Power down monitor

Disassembly:
push esi
push 0x15
push str.Error
push str.Fatal_Error
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, eax
cmp esi, 4
jne 0x401035
push 2
push 0xf170
push 0x112
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop esi
ret
Function at 0x401059
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401070
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4010a5
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4010a1
cmp edi, eax
jae 0x4010a5
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401093
cmp edi, eax
jb 0x4010a9
xor eax, eax
jmp 0x4010b2
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4011b9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00408a50
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x401200
xor al, al
jmp 0x401220
cmp dword [ebp - 0x7c], 5
jb 0x4011fc
jbe 0x40120c
mov al, 1
jmp 0x401220
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x401220
cmp word [ebp + 0x94], 4
sbb al, al
inc al
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004087be
add ebp, 0xa0
leave
ret

Function at 0x401861
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x20]
mov eax, ebx
lea edi, [ebp - 0xc]
call fcn.0040219e
push dword [eax + 4]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, edi
call fcn.004021bc
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4018aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4018de
add esi, 0x1c
mov eax, esi
lea edi, [ebp - 0xc]
call fcn.0040219e
mov eax, dword [eax + 4]
mov ebx, dword [ebx]
push eax
push 0
push 0x40ec30
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
neg ebx
sbb bl, bl
mov ecx, edi
inc bl
call fcn.004021bc
test bl, bl
je 0x4018e3
or eax, 0xffffffff
jmp 0x4018f7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4018fc
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x214], 0xffffffff
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
push edi
push eax
mov esi, ecx
call fcn.00408a50
mov eax, dword [esi + 0x20]
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push edi
push 0x40ec38
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401a39
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
call fcn.00401fc1
add esi, 0x10
lea ebx, [ebp - 0x21c]
call fcn.004020f3
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.004010b5
push 0x40eba4
push 0x66
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x401a39
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x401a39
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x401a39
push edi
push edi
push 4
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
je 0x401a39
push dword [ebp - 0x214]
xor eax, eax
lea edi, [ebp - 0x220]
push esi
stosd dword es:[edi], eax
xor esi, esi
push esi
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, ebx
call fcn.00401ca7
pop ecx
pop ecx
test eax, eax
jne 0x401a26
push esi
push esi
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401a39
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x214], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004087be
leave
ret
Function at 0x401ca7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xd
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x9c], eax
jb 0x401e5f
xor ebx, ebx
lea eax, [ebp - 0x8c]
mov edx, edi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x8c], 0x401c91
mov dword [ebp - 0x88], 0x401c9c
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.00404501
sub dword [ebp + 8], 0xd
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
add edi, 5
mov eax, dword [edi]
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x7c], eax
call fcn.0040c517
mov esi, eax
pop ecx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 8]
push eax
add edi, 8
push edi
lea eax, [ebp - 0x7c]
push eax
push esi
lea edi, [ebp - 0x78]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], ebx
call fcn.004043b7
add esp, 0x14
push dword [ebp - 0x68]
mov edi, eax
lea eax, [ebp - 0x8c]
push eax
call dword [ebp - 0x88]
push dword [ebp - 0x64]
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x68], ebx
call dword [ebp - 0x88]
add esp, 0x10
mov dword [ebp - 0x64], ebx
cmp edi, ebx
je 0x401d90
or edi, 0xffffffff
push esi
call fcn.0040c55b
pop ecx
mov eax, edi
jmp 0x401e62
mov ecx, dword [esi]
add esi, 4
mov edi, dword [esi]
push 4
pop eax
add esi, eax
mov ebx, dword [esi]
add esi, eax
mov edx, dword [esi]
add esi, eax
mov dword [ebp - 0x90], edx
mov edx, dword [esi]
push ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x94], edx
add esi, eax
call fcn.0040c517
pop ecx
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
push eax
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
push eax
lea edx, [eax + ebx]
lea eax, [ebx + edi]
add eax, esi
push eax
push ebx
lea eax, [edi + esi]
push eax
add edx, edi
push edi
add edx, esi
push esi
call fcn.0040456e
add esp, 0x24
test eax, eax
je 0x401e09
push dword [ebp - 0x7c]
call fcn.0040c55b
mov esi, dword [ebp - 0x84]
xor edi, edi
pop ecx
inc edi
jmp 0x401d82
mov esi, dword [ebp - 0x80]
push 0
lea eax, [ebp - 0x98]
push eax
push esi
push dword [ebp - 0x7c]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401e4a
cmp dword [ebp - 0x98], esi
jne 0x401e4a
push dword [ebp - 0x7c]
call fcn.0040c55b
pop ecx
push dword [ebp - 0x84]
call fcn.0040c55b
pop ecx
xor eax, eax
jmp 0x401e62
push dword [ebp - 0x7c]
call fcn.0040c55b
pop ecx
push dword [ebp - 0x84]
call fcn.0040c55b
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004087be
leave
ret
Function at 0x4027fa
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [eax]
push ebx
push esi
push edi
sub eax, 0x10
call fcn.00402507
mov esi, eax
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
add esi, 0x10
push eax
mov dword [ebp - 8], esi
call fcn.00408a50
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x40285b
push dword [esi - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.004025b7
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402893
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [esi - 0x10]
call fcn.004010b5
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 1], 1
cmp dword [ebp + 8], ebx
je 0x4028b9
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne byte [ebp - 1]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
mov bl, byte [ebp - 1]
jmp 0x402884

Function at 0x4028fa
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, eax
call fcn.00402993
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40298b
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x402986
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
cmp edx, edi
je 0x40297d
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40297d
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov al, 1
jmp 0x40298d
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00402993
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x4029eb
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x4029f2
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4029ef
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4029ef
mov eax, dword [eax + 0x98]
test eax, eax
je 0x402a18
lea edx, [eax + ecx]
jmp 0x402a1a
xor edx, edx
test edx, edx
je 0x4029ef
lea eax, [edx + 8]
test eax, eax
je 0x4029ef
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x402a49
mov al, byte [ecx]
inc ecx
cmp al, 0x82
jne 0x402a49
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x402a4b
xor eax, eax
test eax, eax
je 0x4029ef
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret

Function at 0x402af5
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x402b18
test esi, esi
jl 0x402b2c
cmp esi, dword [edi + 0x10]
jge 0x402b2c
mov eax, dword [edi + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x10]
jne 0x402afd
lea esi, [edi + 0xc]
call fcn.00402169
mov eax, dword [edi + 4]
sub eax, 0x10
pop esi
jmp fcn.004010b5
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]