joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012300
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1006e090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001233d
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100169ed
mov esp, ebp
pop ebp
ret
push str.DGYg80dlVh2FoNE0
push str.YkNeF8pGJvCom4Qj
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.10012080
add esp, 0x10
mov dword [ebp - 0x50], 0
test ebx, ebx
mov dword [ebp - 0x20], 0
mov ecx, 0x10056728
mov dword [ebp - 0x58], 0x3c
mov eax, str.runas
mov dword [ebp - 0x48], esi
cmove eax, ecx
mov dword [ebp - 0x54], 0x40
cmp dword [ebp - 8], 8
xorps xmm0, xmm0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x20]
mov esi, eax
test ecx, ecx
je 0x100123dc
cmp dword [ebp + 0x10], 0
je 0x100123dc
push dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.100027b0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100169ed
mov esp, ebp
pop ebp
ret
Function at 0x100186b6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x10043b18
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100437db

Function at 0x10043b23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004395c

Function at 0x10048e8d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10048b4d
Function at 0x40b8ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40b8e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405008
jmp 0x40b8ee
mov eax, ebx
mov edx, esi
call fcn.00404ecc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b8f8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40b91a
movzx eax, word [esp]
jmp 0x40b91c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c0a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x40c1c9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0040beb8
mov esi, eax
mov eax, dword [0x417d54]
cmp byte [eax], 0
je 0x40c171
mov eax, dword [0x417c78]
call fcn.0040319c
call fcn.00402f8c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40c080]
call fcn.00405d58
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x40c1e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c1ad
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x417c58]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41ab48]
call fcn.00405e10
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1d0
lea eax, [ebp - 4]
mov edx, dword [0x40c080]
call fcn.00405d64
ret
Function at 0x40da63
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404ac0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40da86
mov eax, edi
add eax, eax
call fcn.00402e24
mov esi, eax
jmp 0x40da88
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40dac1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40daab
mov eax, esp
cmp esi, eax
je 0x40dace
mov eax, esi
call fcn.00402e40
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40db08
cmp bl, 0
je 0x40db04
cmp bl, 0x41
jl 0x40daff
cmp bl, 0x5a
jg 0x40daff
or bl, 0x20
xor al, bl
inc esi
jmp 0x40dae3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40da48

Function at 0x40e6f8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e73e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040e68c
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e745
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x40ea6c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40eb03
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40eab7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00405008
jmp 0x40eaed
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x40ead0
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404f20
jmp 0x40eae3
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040e92c
mov ebx, eax
test esi, esi
je 0x40eae3
dec esi
jmp 0x40eabe
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404ecc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb0a
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x40eb14
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00408bd8
add esp, 0x208
pop ebx
ret
Function at 0x40ec78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40edb0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40ed9a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40ecd5
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40ed9a
cmp dword [ebp - 0x14], 0
jne 0x40ecec
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404ecc
mov bl, 1
jmp 0x40ed9a
cmp dword [ebp - 0x14], 0x70000000
jb 0x40ecfa
call fcn.0040c210
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00405008
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004056e0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40ec9e
test eax, eax
jne 0x40ed9a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40ed48
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40ed9a
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40ed50
dec esi
test esi, esi
je 0x40ed5f
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x40ed4f
cmp dword [ebp - 0x10], 7
jne 0x40ed6a
test esi, esi
je 0x40ed6a
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00405134
cmp dword [ebp - 0x10], 7
jne 0x40ed8d
test esi, esi
je 0x40ed8d
lea eax, [ebp - 4]
call fcn.004056e0
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404ecc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40edb7
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x40f834
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x41cd9c
mov eax, esi
mov edx, 8
test al, 1
je 0x40f850
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f852
shr eax, 1
dec edx
jne 0x40f843
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40f83c
pop esi
ret

Function at 0x40f868
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x41cd98], 0
jne 0x40f88b
call fcn.0040f834
push 1
push 0x41cd98
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40f8b6
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x41cd9c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40f891
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4111f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004111a4
test al, al
jne 0x411211
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x41125d
xor eax, eax
push ebp
push 0x41124d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404f58
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411254
lea eax, [ebp - 0xc]
call fcn.004111e0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41149c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4114a4
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x411591
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040eb40
mov edx, dword [ebp - 8]
mov ecx, 0x4115ac
xor eax, eax
call fcn.00411380
push 0
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x41155f
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4114be
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00411010
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004084dc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040f0c8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.00410fe0
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406f70]
call fcn.0040c21c
call fcn.004040b0
jmp 0x4114be
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404ecc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411598
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404ec4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ec4
ret

Function at 0x4115c0
Capabilities:
Shutdown system

Disassembly:
push ebx
push esi
add esp, 0xffffffec
mov esi, edx
mov ebx, eax
mov eax, dword [0x417dbc]
cmp dword [eax], 2
jne 0x41162e
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4115e9
xor eax, eax
jmp 0x41163b
lea eax, [esp + 8]
push eax
push 0x411644
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x41162e
xor eax, eax
jmp 0x41163b
push esi
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
pop esi
pop ebx
ret
Function at 0x41167c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4116d6
inc esi
xor edi, edi
cmp edi, 1
jne 0x4116a2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x4116b0
cmp edi, 1
jle 0x4116b0
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004111f0
test eax, eax
jne 0x4116d6
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4116d6
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4116d6
inc edi
dec esi
jne 0x411692
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4116e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x411704
mov eax, dword [ebp - 4]
jmp 0x411707
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x41170c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x411759
xor ebx, ebx
jmp 0x41174e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407f9c
test eax, eax
jne 0x41174d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x411803
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x41172f
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x411765
je 0x41176e
jmp 0x411777
call fcn.0040edf8
mov esi, eax
jmp 0x411779
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x411779
xor esi, esi
test si, si
je 0x411803
xor ebx, ebx
jmp 0x41179f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x41179e
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x411803
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x411786
xor ebx, ebx
jmp 0x4117f8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x4117f7
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x4117ec
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004116e0
push eax
mov eax, esi
call fcn.004116e0
pop edx
cmp edx, eax
jne 0x4117f7
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x411803
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4117ae
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x414fa8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41507d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415098
push ebx
push 0x4150a8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405370
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x415028
mov al, 0x62
call fcn.00414c20
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00414f7c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x415031
call fcn.00414f7c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415084
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x415130
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151fb
jmp 0x4151ef
cmp dword [esi + 0x10], 0x1000
jne 0x4151db
test byte [esi + 0x15], 1
jne 0x4151db
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x41518c
cmp ebp, 2
je 0x41518c
cmp ebp, 0x10
je 0x41518c
cmp ebp, 0x20
jne 0x4151a8
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4151a8
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4151b9
mov eax, dword [esi]
add eax, ebx
call fcn.00415128
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4151ac
cmp byte [esp + 4], 0
je 0x4151db
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151fb
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x415161
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x100326e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], 4
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], 0xe0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xc], 0xe91b012f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
cmp dword [ebp + 8], 0
jne 0x10032b2
mov eax, dword [ebp - 0x2c]
jmp 0x1003370
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x10032d5
cmp dword [ebp - 0xc], 0xe91b0131
jb 0x10032c9
sub byte [ebp - 0x14], 0xb2
mov eax, dword [ebp - 0x2c]
jmp 0x1003370
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0x4550
je 0x10032f1
mov eax, dword [ebp - 0x2c]
jmp 0x1003370
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0xe91b0131
jb 0x100330c
or dword [ebp - 0x14], 0x8c09ea5b
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0x10b
je 0x1003333
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x20b
je 0x1003333
mov eax, dword [ebp - 0x2c]
jmp 0x1003370
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], 0
je 0x100334a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x100335f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [ebp - 0x14], 0x4d2a859b
cmp dword [ebp + 0x14], 0
je 0x100336d
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x1003ab4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], 0xe91b012f
mov dword [ebp - 0x10c], 0x100
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x108], eax
cmp eax, 0
jne 0x1003b17
add word [ebp - 0x114], 0x4525
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov dword [ebp - 0x104], 0
jmp 0x1003b3c
mov eax, dword [ebp - 0x104]
add eax, dword [ebp - 0x110]
mov dword [ebp - 0x104], eax
xor byte [ebp - 0x114], 0xc
mov eax, dword [ebp - 0x104]
cmp eax, dword [ebp + 8]
jae 0x1003d73
cmp dword [ebp - 0x118], 0xe91b0131
jb 0x1003c5c
mov dword [ebp - 0x114], 0x2a0aaf5c
lea ecx, [ebp - 0x100]
push ecx
and word [ebp - 0x114], 0x854
call fcn.01003a5d
add word [ebp - 0x114], 0xc53b
add esp, 0xc
push dword [ebp - 0x10c]
lea eax, [ebp - 0x260]
sub word [ebp - 0x114], 0xe473
push eax
lea ecx, [ebp - 0x100]
or dword [ebp - 0x114], 0x631b00b8
cmp dword [ebp - 0x118], 0xe91b0131
jb 0x1003bd1
push dword [ebp - 0x10c]
lea eax, [ebp - 0x260]
push eax
cmp dword [ebp - 0x118], 0xe91b0131
jb 0x1003b5b
push ecx
xor dword [ebp - 0x114], 0x30eed9d
call fcn.01003a5d
add esp, 0xc
push dword [ebp - 0x10c]
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.01003a5d
add esp, 0xc
push dword [ebp - 0x10c]
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x100]
push ecx
or word [ebp - 0x114], 0xd03f
call fcn.01003a5d
add esp, 0xc
push dword [ebp - 0x10c]
lea eax, [ebp - 0x260]
push eax
or dword [ebp - 0x114], 0x77e5cbaf
lea ecx, [ebp - 0x100]
cmp dword [ebp - 0x118], 0xe91b0131
jb 0x1003d52
sub dword [ebp - 0x114], 0x92be55dc
mov byte [ebp - 0x260], 0
mov byte [ebp - 0x25f], 0
push dword [ebp - 0x10c]
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x100]
add byte [ebp - 0x114], 0x86
push ecx
sub word [ebp - 0x114], 0xf197
call fcn.01003a5d
add esp, 0xc
push dword [ebp - 0x10c]
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.01003a5d
add esp, 0xc
push 0x1009a08
push dword [ebp - 0x10c]
lea eax, [ebp - 0x260]
sub dword [ebp - 0x114], 0x78ec955b
push eax
or dword [ebp - 0x114], 0x691ca33d
call fcn.01003d79
lea eax, [ebp - 0x260]
push eax
call sub.msvcrt.dll_toupper
add esp, 4
push dword [ebp - 0x10c]
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.01003a5d
add esp, 0xc
sub word [ebp - 0x114], 0x849b
push dword [ebp - 0x10c]
lea eax, [ebp - 0x260]
push eax
xor byte [ebp - 0x114], 0x84
lea ecx, [ebp - 0x100]
push ecx
call fcn.01003a5d
add esp, 0xc
or byte [ebp - 0x114], 0x7f
cmp dword [ebp - 0x118], 0xe91b0131
jb 0x1003bb8
and byte [ebp - 0x114], 0xd8
push ecx
sub word [ebp - 0x114], 0x58a1
call fcn.01003a5d
xor dword [ebp - 0x114], 0x9983c20f
add esp, 0xc
jmp 0x1003b23
mov esp, ebp
pop ebp
ret 4