joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push ebx
xor ebx, ebx
mov byte [esi], bl
mov ecx, dword [0x4219a0]
mov eax, dword [str.SOFTWARERising_]
mov edx, dword [0x4219a4]
mov dword [esp + 0xc], eax
mov eax, dword [0x4219a8]
mov dword [esp + 0x10], ecx
mov cl, byte [0x4219ac]
push edi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], cl
mov dword [esp + 0x18], edx
xor eax, eax
mov ecx, 0x3d
lea edi, [esp + 0x21]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
mov dword [esp + 0xc], ebx
call edi
mov edx, dword [ebp + 0xc]
mov ecx, 0x105
sub ecx, eax
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 8]
push edx
push 1
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407cf9
lea ecx, [ebp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x18]
push str.installpath
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407cee
push 0x5c
push esi
call fcn.0040a7de
add esp, 8
test eax, eax
je 0x407ce9
mov cl, byte [eax + 1]
test cl, cl
jne 0x407ce9
mov byte [eax], bl
mov ebx, 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407d10
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x407db6
push ebx
mov ebx, dword [esp + 0x18]
push edi
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407d81
lea ecx, [esp + 0xc]
push ecx
push esi
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x28]
push 0x422fa4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jne 0x407da0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
call edi
pop edi
pop ebx
pop esi
add esp, 8
ret
push str._system32
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call edi
pop edi
pop ebx
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x407e30
Capabilities:
Check os version
Shutdown system

Disassembly:
push ecx
mov eax, dword [esp + 8]
push 4
push 0x422ff4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x407ea4
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x407e93
lea ecx, [esp]
push ecx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407e93
mov edx, dword [esp]
push 1
push str.SeShutdownPrivilege
push edx
call fcn.00407dc0
mov eax, dword [esp + 0xc]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x407ec0
Capabilities:
Delete file
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
mov esi, ecx
movzx ecx, word [esp + 0x14]
mov edx, dword [esi + 0x40]
push eax
push ecx
push edx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x407f79
mov eax, dword [esi + 0x40]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esi + 0x40]
push edi
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x407f70
mov esi, dword [esp + 0x1c]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
push 0x80
push 4
push ebp
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x407f70
cmp esi, 0xffffffff
je 0x407f70
push ebp
lea edx, [esp + 0x18]
push edx
push ebx
push edi
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407f69
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407f69
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x408d40
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408da1
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x408d83
cmp eax, 2
jne 0x408d93
test esi, esi
mov eax, dword [esp + 0x14]
je 0x408d9d
mov cl, byte [eax + esi - 1]
test cl, cl
je 0x408d9d
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x408e40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
xor edi, edi
mov esi, 0x42b1f8
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push edx
push 0x2001f
push 0
push eax
push ecx
mov dword [esp + 0x20], 0
call ebp
test eax, eax
jne 0x408eac
test edi, edi
je 0x408e7f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0xc]
mov edi, ecx
jne 0x408eac
lea eax, [esp + 0xc]
push eax
lea edx, [esi + 0x10]
push edx
mov edx, dword [esi + 8]
lea eax, [esp + 0x18]
push eax
push 0
push edx
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esi, 0x1c
cmp esi, 0x42b428
jl 0x408e53
test edi, edi
je 0x408ec2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 8
ret

Function at 0x408ed0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
jmp 0x408ef0
imul esi, esi, 0x1c
mov eax, dword [esi + 0x42b1fc]
mov ecx, dword [esi + 0x42b1f8]
lea edx, [esp + 0xc]
push edx
push 0x2001f
push 0
push eax
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409000
test ebx, ebx
je 0x408f2e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ebx, dword [esp + 0xc]
jne 0x409000
mov edx, dword [esi + 0x42b200]
mov eax, dword [esi + 0x42b204]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push edx
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esi + 0x42b1f8]
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x41
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
mov eax, 0x104
lea ecx, [esp + 0x18]
call fcn.00408db0
mov eax, dword [esi + 0x42b200]
mov ecx, dword [esi + 0x42b1fc]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
push str._s_s_s
push 0x42d360
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 8]
add esp, 0x14
push 0x42d360
push 0
push 0xfb8
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x409000
mov eax, dword [str.NoTrayContextMenu]
mov ecx, dword [0x42b204]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push eax
push ebx
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.ntdll.dll
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, dword [esp + 0x10]
inc esi
cmp esi, 0x14
mov dword [esp + 0x10], esi
jl 0x408ef0
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
je 0x409029
push eax
call fcn.0040b272
add esp, 4
mov dword [esi], edi
cmp ebx, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
je 0x40903a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov esi, 0x42b448
xor ebx, ebx
lea ebx, [ebx]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
mov eax, dword [esi]
add eax, 0x80000000
cmp eax, 5
ja case.0x40908d.2147483644
jmp dword [eax*4 + 0x4091dc]
push 0x104
push 0x421a00
lea eax, [esp + 0x20]
push eax
jmp 0x4090e2
push 0x104
push str.HKEY_CURRENT_CONFIG
jmp 0x4090dd
push 0x104
push 0x4219d8
lea edx, [esp + 0x20]
push edx
jmp 0x4090e2
push 0x104
push 0x4219c4
lea eax, [esp + 0x20]
push eax
jmp 0x4090e2
push 0x104
push 0x4219b8
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
push str._s_s_s
push 0x42d468
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp + 8]
add esp, 0x14
push 0x42d468
push ebx
push 0xfb8
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push edx
push 0x2001f
push ebx
push eax
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4091a3
cmp dword [esi + 0xc], 0xffffffff
jne 0x40917b
mov edi, dword [esi + 8]
push str.about:blank
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.about:blank
push 1
push ebx
push edi
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esi + 0x10], 0xffffffff
jmp 0x409198
mov ecx, dword [esi + 8]
mov edi, dword [esp + 0xc]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push ebx
push ecx
push edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, ebx
je 0x4091a3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x1c
cmp esi, 0x42b65c
jl 0x409070
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
cmp eax, ebx
je 0x4091c7
push eax
call fcn.0040b272
add esp, 4
mov dword [esi], ebx
pop edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409260
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x420ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
mov ebp, 0x42b44c
jmp 0x409290
mov edi, dword [esp + 0x18]
lea ecx, [ecx]
cmp dword [ebp + 8], 0xffffffff
jne 0x4093ba
xor ebx, ebx
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x14], ebx
mov eax, dword [ebp]
mov ecx, dword [ebp - 4]
lea edx, [esp + 0x10]
push edx
push 0x2001f
push ebx
push eax
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x409315
mov eax, dword [edi + 0xc]
mov edx, dword [eax - 4]
mov ebx, dword [esp + 0x10]
lea esi, [edi + 0xc]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
sub eax, 0x400
or eax, ecx
mov dword [esp + 0x14], ebx
jge 0x409300
push 0x400
mov ecx, esi
call fcn.00401840
mov esi, dword [esi]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
lea ecx, [esp + 0x20]
call fcn.00408d40
mov ecx, dword [edi + 0xc]
add edi, 0xc
test ecx, ecx
jne 0x409323
xor eax, eax
jmp 0x409337
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409328
sub eax, esi
js 0x409439
cmp eax, dword [ecx - 8]
jg 0x409439
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
mov byte [eax + edx], 0
mov eax, dword [edi]
mov edx, dword [eax - 4]
mov esi, dword [eax - 0xc]
mov eax, dword [eax - 8]
mov ecx, 1
sub ecx, edx
sub eax, esi
or eax, ecx
jge 0x409369
push esi
mov ecx, edi
call fcn.00401840
mov eax, dword [edi]
push eax
call fcn.0040b1ed
add esp, 4
test esi, esi
jl 0x409439
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x409439
mov dword [eax - 0xc], esi
mov eax, dword [edi]
mov byte [esi + eax], 0
mov edi, dword [edi]
push str.about:blank
push edi
call fcn.0040b749
add esp, 8
test eax, eax
je 0x4093ab
mov dword [ebp + 0xc], 0
test ebx, ebx
mov dword [esp + 0x2c], 0xffffffff
je 0x409412
push ebx
jmp 0x40940c
mov eax, dword [ebp]
mov ecx, dword [ebp - 4]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push 0
push eax
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409412
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 4]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push eax
push esi
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
je 0x409412
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebp, 0x1c
cmp ebp, 0x42b660
jl 0x409289
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
push 0x80070057
call fcn.00401490
int3
Function at 0x40b55b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040b0e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b5f6
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42f4e8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40b5f6
cmp eax, 1
je 0x40b617
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b5f6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b5c3
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b5f2
xor eax, eax
inc eax
jmp 0x40b636
cmp edi, eax
jae 0x40b5fa
xor eax, eax
jmp 0x40b636
cmp eax, esi
jae 0x40b601
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42f4e8]
jmp 0x40b61a
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b9d3
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x425448
call fcn.0040c834
mov edi, 0x94
mov eax, edi
call fcn.0040b0e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42f4e8], ecx
mov eax, dword [esi + 4]
mov dword [0x42f4f4], eax
mov edx, dword [esi + 8]
mov dword [0x42f4f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42f4ec], esi
cmp ecx, 2
je 0x40ba33
or esi, 0x8000
mov dword [0x42f4ec], esi
shl eax, 8
add eax, edx
mov dword [0x42f4f0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40ba6e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ba6e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40ba86
cmp eax, 0x20b
je 0x40ba73
mov dword [ebp - 0x1c], esi
jmp 0x40ba9a
cmp dword [ecx + 0x84], 0xe
jbe 0x40ba6e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40ba94
cmp dword [ecx + 0x74], 0xe
jbe 0x40ba6e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040f13f
pop ecx
test eax, eax
jne 0x40baae
push 0x1c
call fcn.0040b9af
pop ecx
call fcn.0040d49c
test eax, eax
jne 0x40babf
push 0x10
call fcn.0040b9af
pop ecx
call fcn.00410be6
mov dword [ebp - 4], esi
call fcn.004109e8
test eax, eax
jge 0x40bad8
push 0x1b
call fcn.0040b98a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x430db0], eax
call fcn.004108c6
mov dword [0x42f4d4], eax
call fcn.00410824
test eax, eax
jge 0x40bafe
push 8
call fcn.0040b98a
pop ecx
call fcn.004105f1
test eax, eax
jge 0x40bb0f
push 9
call fcn.0040b98a
pop ecx
push 1
call fcn.0040c28d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40bb25
push eax
call fcn.0040b98a
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00410594
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40bb46
movzx eax, word [ebp - 0x40]
jmp 0x40bb49
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00415408
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40bb67
push edi
call fcn.0040c3ba
call fcn.0040c3dc
jmp 0x40bb99
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040c86f
ret
Function at 0x40c2f7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4254b8
call fcn.0040c834
push 8
call fcn.0040f2e3
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42f528], esi
jne 0x40c32b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42f524], esi
mov al, byte [ebp + 0x10]
mov byte [0x42f520], al
cmp dword [ebp + 0xc], edi
jne 0x40c375
cmp dword [0x430da8], edi
je 0x40c365
mov eax, dword [0x430da4]
sub eax, 4
mov dword [0x430da4], eax
cmp eax, dword [0x430da8]
jb 0x40c365
mov eax, dword [eax]
cmp eax, edi
je 0x40c346
call eax
jmp 0x40c346
push 0x42b088
mov eax, 0x42b080
call fcn.0040c275
pop ecx
push 0x42b094
mov eax, 0x42b08c
call fcn.0040c275
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40c3a6
cmp dword [ebp + 0x10], edi
jne 0x40c3b4
mov dword [0x42f528], esi
push dword [ebp + 8]
call fcn.0040c233
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40c3b3
push 8
call fcn.0040f22e
pop ecx
ret
call fcn.0040c86f
ret
Function at 0x40ff7f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40ffad
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40ffb4
cmp ebx, dword [eax + 4]
jae 0x40ffb4
xor eax, eax
jmp 0x4101a4
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40ffc5
xor eax, eax
inc eax
jmp 0x4101a3
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40ffdb
cmp ecx, edx
jae 0x410120
cmp dword [eax + 4], 0
je 0x40ffe4
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40ffcc
cmp dword [ebp + 8], 0
je 0x410006
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x410120
cmp eax, esi
jae 0x410120
mov eax, dword [0x42f6a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41002b
cmp dword [esi*4 + 0x42f6b0], edi
je 0x410124
inc esi
cmp esi, eax
jl 0x410019
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4101a0
cmp dword [ebp - 8], 0x1000000
jne 0x4101a0
test byte [ebp - 0xc], 0xcc
je 0x4100a9
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4101a0
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4101a0
cmp word [eax + 0x18], 0x10b
jne 0x4101a0
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4101a0
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4100a9
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4100a9
test byte [ecx + 0x27], 0x80
jne 0x410120
push 1
push 0x42f6f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40ffbd
mov ecx, dword [0x42f6a8]
test ecx, ecx
mov edx, ecx
jle 0x4100dd
lea eax, [ecx*4 + 0x42f6ac]
cmp dword [eax], edi
je 0x4100dd
dec edx
sub eax, 4
test edx, edx
jg 0x4100d1
test edx, edx
jne 0x41010e
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4100ea
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x410102
lea eax, [edx*4 + 0x42f6b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4100f0
cmp ecx, 0x10
jge 0x41010e
inc ecx
mov dword [0x42f6a8], ecx
push 0
push 0x42f6f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40ffbd
xor eax, eax
jmp 0x4101a3
test esi, esi
jle 0x40ffbd
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42f6f0
call ebx
test eax, eax
jne 0x40ffbd
cmp dword [esi*4 + 0x42f6b0], edi
je 0x41017a
mov eax, dword [0x42f6a8]
lea esi, [eax - 1]
test esi, esi
jl 0x410168
cmp dword [esi*4 + 0x42f6b0], edi
je 0x410164
dec esi
jns 0x410158
test esi, esi
jge 0x410178
cmp eax, 0x10
jge 0x410173
inc eax
mov dword [0x42f6a8], eax
lea esi, [eax - 1]
jmp 0x41017a
je 0x410192
xor ecx, ecx
test esi, esi
jl 0x410192
lea eax, [ecx*4 + 0x42f6b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x410180
push 0
push 0x42f6f0
call ebx
jmp 0x40ffbd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410280
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42bfc0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x42c3c0]
je 0x4102b5
inc eax
cmp eax, 0x13
jb 0x4102a6
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42c3c0]
jne 0x4103db
mov eax, dword [0x42f4dc]
cmp eax, 1
je 0x4103b3
cmp eax, edx
jne 0x4102e5
cmp dword [0x42bfb4], 1
je 0x4103b3
cmp ecx, 0xfc
je 0x4103db
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41031b
lea eax, [ebp - 0x80]
push 0x425ab4
push eax
call fcn.00411c20
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040bf90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41034f
mov eax, edi
push eax
call fcn.0040bf90
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x425ab0
push edi
call fcn.0040fe40
add esp, 0x10
push edi
call fcn.0040bf90
push dword [esi + 0x42c3c4]
mov ebx, eax
call fcn.0040bf90
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040b0e0
mov ebx, esp
push 0x425a94
push ebx
call fcn.00411c20
push edi
push ebx
call fcn.00411c30
push 0x425a90
push ebx
call fcn.00411c30
push dword [esi + 0x42c3c4]
push ebx
call fcn.00411c30
push 0x12010
push 0x425a68
push ebx
call fcn.004135c7
add esp, 0x2c
jmp 0x4103db
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x42c3c4]
push dword [esi]
call fcn.0040bf90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040bf1e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret