joyce8/EMBER2024-capa huggingface dataset:
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 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0xb021b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00b02140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b02140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b02140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b02140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xb02bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xb02c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb1487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb02c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb02c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [esp + 0x44]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x403024
push 0x67
push ebx
call esi
push 0x64
push 0x4030ec
push 0x6d
push ebx
call esi
mov dword [esp], 0x30
mov dword [esp + 4], 3
mov dword [esp + 8], 0x401180
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ebx
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push ebx
call esi
mov dword [esp + 0x18], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 6
mov dword [esp + 0x24], 0x6d
mov dword [esp + 0x28], 0x4030ec
push 0x6c
push ebx
call esi
mov dword [esp + 0x2c], eax
mov edi, esp
push edi
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov dword [0x403020], ebx
sub esp, 0x30
mov dword [esp + 0x28], ebx
movaps xmm0, xmmword [section..rdata]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], 0x403024
mov dword [esp + 4], 0x4030ec
mov dword [esp], 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x40116f
mov esi, eax
push dword [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, eax
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x401169
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
mov ebp, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x40114d
push 0
push 0
push 0
push edi
call ebp
test eax, eax
je 0x401169
push edi
push esi
push dword [esp + 8]
call ebx
test eax, eax
jne 0x401140
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x401140
mov eax, dword [esp + 8]
jmp 0x401171
xor eax, eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x401270
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x8452e8]
shr eax, 3
push esi
mov esi, dword [0x844238]
test eax, eax
jbe 0x4012e1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [ebp - 4], eax
jmp 0x4012a0
cmp dword [0x8452e8], 0x959
jne 0x4012d0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call fcn.00401070
add esi, 8
sub dword [ebp - 4], 1
jne 0x4012a0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401670
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
cmp dword [0x8452e8], 0x400
push ebx
push esi
push edi
jne 0x4016d3
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov word [esp + 0x10], ax
mov word [esp + 0x12], cx
mov eax, dword [esp + 0x10]
push eax
push ecx
push str.savuficukupa
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
lea eax, [esp + 0x1c]
call fcn.004017c0
lea esi, [esp + 0x1c]
call fcn.004017e0
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
nop
call edi
cmp esi, 0x2af2a3
jle 0x4016f2
cmp ebx, 0x78abdb45
jne 0x4016fb
inc esi
cmp esi, 0x1c5d
jl 0x4016e0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40172d
inc esi
cmp esi, 0x4f6a4
jl 0x401710
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40174d
cmp ebx, 0x785074d5
jne 0x401756
inc esi
cmp esi, 0x11915
jl 0x401739
mov edx, dword [0x4262ac]
mov dword [0x8452e8], edx
call fcn.004013e0
mov esi, dword [sym.imp.KERNEL32.dll_SetSystemTime]
mov edi, 0x3078f
cmp dword [0x8452e8], 0x51f
jne 0x40179d
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
mov word [esp + 0x10], ax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
call esi
sub edi, 1
jne 0x401772
mov eax, dword [0x844238]
mov dword [0x84487c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4033a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4251f8]
jne 0x4033aa
repz ret
jmp fcn.004076de
Function at 0x40730b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040410a
and dword [ebp - 4], 0
cmp dword [0x426cac], 0
mov ebx, eax
jne 0x4073bc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40746d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40746d
push eax
call fcn.00404098
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x426cac], eax
call esi
push eax
call fcn.00404098
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x426cb0], eax
call esi
push eax
call fcn.00404098
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x426cb4], eax
call esi
push eax
call fcn.00404098
pop ecx
mov dword [0x426cbc], eax
test eax, eax
je 0x4073bc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404098
pop ecx
mov dword [0x426cb8], eax
mov eax, dword [0x426cb8]
cmp eax, ebx
je 0x407414
cmp dword [0x426cbc], ebx
je 0x407414
push eax
call fcn.00404113
push dword [0x426cbc]
mov esi, eax
call fcn.00404113
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407414
test edi, edi
je 0x407414
call esi
test eax, eax
je 0x40740b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40740b
test byte [ebp - 0xc], 1
jne 0x407414
or dword [ebp + 0x10], 0x200000
jmp 0x40744d
mov eax, dword [0x426cb0]
cmp eax, ebx
je 0x40744d
push eax
call fcn.00404113
pop ecx
test eax, eax
je 0x40744d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40744d
mov eax, dword [0x426cb4]
cmp eax, ebx
je 0x40744d
push eax
call fcn.00404113
pop ecx
test eax, eax
je 0x40744d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x426cac]
call fcn.00404113
pop ecx
test eax, eax
je 0x40746d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40746f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x450012
Capabilities:
Encode data using xor

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
xor ebx, ebx
push ebx
push ebx
push 0x80000000
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [0x44ff28]
sub edi, edi
sub ecx, ecx
mov cl, 0xe5
inc edi
loop 0x45003a
call 0x450042
pop esi
sub esi, 0xffffffc2
push esi
sub ebx, ebx
or ebx, 0x2394
mov al, byte [esi]
xor ax, di
xchg byte [esi], al
inc esi
sub ebx, 1
cmp ebx, 0
ja 0x450052
pop esi
mov esp, dword fs:[0]
pop dword fs:[0]
pop edi
pop ebp
jmp esi

Function at 0x419b00
Capabilities:
Execute syscall

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret

Function at 0x40895e
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
call fcn.00408981
mov eax, 0x8c320f96
xor dword [ecx], edi
inc ecx
mov eax, 0x309a3441
cmp ecx, ebx
jne fcn.0040895e
dec eax
sub eax, 0xc67a18c
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408e84
mov ecx, 0x286639a1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x572483e
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x412010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b88
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b68
xor eax, eax
push ebp
push 0x402b61
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ba4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402b68
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x412010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x412010], ax
mov esp, ebp
pop ebp
ret

Function at 0x40343c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x413034], 0
je 0x40349d
cmp word [0x413208], 0xd7b2
jne 0x403465
cmp dword [0x413210], 0
jbe 0x403465
mov eax, 0x413204
call dword [0x413220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x412058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4034c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41201c], 0
jne 0x4034b9
push 0
push 0x412050
push 0x412058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4035f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402818
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x413035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4035c0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x403b8c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403bf2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403770
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004029e4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403bdc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403bf9
lea eax, [ebp - 0x10]
call fcn.0040363c
ret
Function at 0x404f00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [edi + 5]
push eax
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x405038
test edi, edi
jle 0x405181
mov ecx, edi
dec ecx
test ecx, ecx
jl 0x405181
inc ecx
xor esi, esi
mov eax, ebx
add eax, 5
xor edx, edx
push edx
push eax
mov eax, esi
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x90
inc esi
dec ecx
jne 0x40504e
jmp 0x405181
mov byte [ebx], 0xe9
mov edx, ebx
mov eax, edx
add eax, 5
push eax
mov eax, dword [ebp - 4]
pop ecx
sub eax, ecx
inc edx
mov dword [edx], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
add edi, 5
push edi
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x4052a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4072d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
jmp 0x4073dd
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x40], 0xe9
jne 0x40788f
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4074f4
cmp byte [ebp - 5], 5
je 0x407504
cmp byte [ebp - 5], 0xa
jne 0x407639
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [ebp - 4]
call fcn.00406d1c
mov dword [ebp - 0x10], eax
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
mov byte [eax], 0xb8
jmp 0x407616
push 4
lea ecx, [ebp - 0x10]
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
inc edx
mov eax, dword [0x4121bc]
mov eax, dword [eax]
call fcn.0040409c
jmp 0x407762
mov dword [ebp - 0x14], 0x4120b4
jmp 0x407745
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.0040409c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x407889
mov byte [ebp - 6], 1
jmp 0x407893
mov byte [ebp - 6], 0
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret

Function at 0x40789c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
jmp 0x40798d
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x40], 0xe9
jne 0x407c07
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x407aa1
push 5
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
lea ecx, [edx + eax + 0x40]
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
call fcn.0040409c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x407c01
mov byte [ebp - 6], 1
jmp 0x407c0b
mov byte [ebp - 6], 0
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret
Function at 0x410308
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41042e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00410811
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, dword [0x4121c0]
mov eax, dword [eax]
call fcn.00409e8c
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x2c
call fcn.00405738
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00403740
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
xor ecx, ecx
call fcn.004041d4
mov eax, dword [ebp - 0x1c]
call fcn.004037e4
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, 5
call fcn.00405738
mov edx, eax
lea eax, [ebp - 0x28]
call fcn.00403740
mov edx, dword [ebp - 0x28]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
xor ecx, ecx
call fcn.004041d4
mov eax, dword [ebp - 0x24]
call fcn.004037e4
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x2b
call fcn.00405738
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00403740
mov edx, dword [ebp - 0x30]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
xor ecx, ecx
call fcn.004041d4
mov eax, dword [ebp - 0x2c]
call fcn.004037e4
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004108dc
add esp, 0x20
push 1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410435
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00403660
ret
Function at 0x410572
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
push 0x4120f0
push dword [ebp + 8]
call sub.msvcrt.dll_fopen
add esp, 8
mov edi, eax
push 2
push 0
push edi
call sub.msvcrt.dll_fseek
add esp, 0xc
push edi
call sub.msvcrt.dll_ftell
pop ecx
mov esi, eax
push esi
call sub.msvcrt.dll_malloc
pop ecx
mov ebx, eax
push 0
push 0
push edi
call sub.msvcrt.dll_fseek
add esp, 0xc
push edi
push esi
push 1
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
push edi
call sub.msvcrt.dll_fclose
pop ecx
mov eax, ebx
mov edx, dword [eax + 0x3c]
add edx, ebx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
movzx edi, word [ecx + 6]
mov eax, dword [eax + 0x3c]
add eax, ebx
add eax, 0xf8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push dword [edx + 0x78]
push esi
push edi
push dword [ebp - 0xc]
call fcn.00410534
add esp, 0x10
add eax, ebx
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x41069d
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x20]
push esi
push edi
push dword [ebp - 0xc]
call fcn.00410534
add esp, 0x10
lea edx, [ebx + eax]
mov ecx, dword [ebp - 4]
push dword [edx + ecx*4]
push esi
push edi
push dword [ebp - 0xc]
call fcn.00410534
add esp, 0x10
add eax, ebx
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
jne 0x41069a
mov eax, dword [ebp - 0x10]
push dword [eax + 0x24]
push esi
push edi
push dword [ebp - 0xc]
call fcn.00410534
add esp, 0x10
lea edx, [ebx + eax]
mov ecx, dword [ebp - 4]
movzx eax, word [edx + ecx*2]
push eax
mov edx, dword [ebp - 0x10]
push dword [edx + 0x1c]
push esi
push edi
push dword [ebp - 0xc]
call fcn.00410534
add esp, 0x10
lea ecx, [ebx + eax]
pop eax
push dword [ecx + eax*4]
push esi
push edi
push dword [ebp - 0xc]
call fcn.00410534
add esp, 0x10
mov esi, eax
push ebx
call sub.msvcrt.dll_free
pop ecx
mov eax, esi
jmp 0x4106ac
inc dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [ebp - 4]
ja 0x41060d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret