joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40caa0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x9c], ecx
cmp dword [ebp - 0x9c], 0
je 0x40cae9
cmp dword [ebp - 0x9c], 1
je 0x40caf0
cmp dword [ebp - 0x9c], 2
je 0x40cb1b
jmp 0x40cb2b
mov eax, 1
jmp 0x40cb2d
cmp dword [ebp - 0x94], 4
jae 0x40cb00
mov eax, 1
jmp 0x40cb2d
cmp dword [ebp - 0x94], 4
jne 0x40cb19
cmp dword [ebp - 0x90], 0xa
jae 0x40cb19
mov eax, 1
jmp 0x40cb2d
jmp 0x40cb2b
cmp dword [ebp - 0x94], 5
jae 0x40cb2b
mov eax, 1
jmp 0x40cb2d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40cc70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 5
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret

Function at 0x40cc90
Capabilities:
Create process on windows
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.0040ca60
test eax, eax
je 0x40ccf3
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40cd00
push 1
push str.rundll32.exe_shell32.dll_SHExitWindowsEx_2
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esp, ebp
pop ebp
ret

Function at 0x40fa8a
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x40fac5
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x40faa2
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x40fae1
dec esi
je 0x40fada
dec esi
jne 0x40fae6
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x410e7a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebx + 4], eax
xor eax, eax
cmp byte [ebp + 0x24], al
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov word [ebx + 0xc], ax
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], eax
jne 0x410ec2
mov ecx, 0x2000
lea edi, [esi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov word [ebx + 0x2c], ax
mov dword [ebx + 0x30], eax
call fcn.004108f8
mov eax, dword [ebx + 0x14]
and dword [ebx + 0x20], 0
mov ecx, 0x8000
push 2
mov word [ebx + 0x3c], cx
mov dword [ebx + 0x34], ecx
add eax, ecx
pop edx
movzx edi, byte [eax]
mov esi, dword [ebx + 0x20]
shl esi, 5
xor esi, edi
and esi, 0x7fff
inc eax
dec edx
mov dword [ebx + 0x20], esi
jne 0x410ee6
cmp byte [ebp + 0x24], 0
je 0x410f0d
mov edi, ebx
call fcn.0041075a
jmp 0x410f1c
xor eax, eax
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x410f0f
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.0040fbde
push 0x4b
pop edx
call fcn.0040fbde
call fcn.00410c1d
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x410f56
mov edi, dword [ebx + 0x14]
mov ecx, 0x2000
lea esi, [edi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x28]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24
Function at 0x418bf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00419310
cmp dword [ebp + 8], 0
je 0x418c0f
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
jmp 0x418c16
mov dword [ebp - 8], 0x425178
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x20c
push edx
call fcn.0041a290
add esp, 8
push 0x425180
mov eax, dword [ebp - 4]
add eax, 0x20c
push eax
call fcn.0041a290
add esp, 8
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x20c
push ecx
call fcn.0041a97b
add esp, 8
test eax, eax
jge 0x418cba
mov ecx, dword [ebp - 4]
call fcn.00419310
push str...us_
mov edx, dword [ebp - 4]
add edx, 0x20c
push edx
call fcn.0041a290
add esp, 8
cmp dword [ebp + 8], 0
je 0x418c87
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
jmp 0x418c8e
mov dword [ebp - 0xc], 0x425190
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x20c
push edx
call fcn.0041a290
add esp, 8
push 0x425198
mov eax, dword [ebp - 4]
add eax, 0x20c
push eax
call fcn.0041a290
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, 0x20c
push ecx
push 0x200
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
push 0x42519d
push str.Signature
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push str.DVR_TEXT
call fcn.00422a76
add esp, 8
test eax, eax
je 0x418d07
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x20c], 0
mov ecx, dword [ebp - 4]
call fcn.00418f80
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x418f80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x428840]
mov dword [ebp - 8], eax
mov dword [ebp - 0x148], ecx
mov dword [ebp - 4], 0
jmp 0x418fa9
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jae 0x41904b
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x148]
mov dword [edx + ecx*4 + 0x310], 0
mov eax, dword [ebp - 0x148]
add eax, 0x20c
push eax
push 0x100
lea ecx, [ebp - 0x108]
push ecx
push 0x42520e
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42857c]
push eax
push str.Fonts
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx ecx, byte [ebp - 0x108]
test ecx, ecx
jne 0x419007
jmp 0x418fa0
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x148]
call fcn.00418d90
test eax, eax
jne 0x419029
jmp 0x418fa0
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x148]
mov dword [ecx + edx*4 + 0x310], eax
jmp 0x418fa0
mov eax, 1
mov ecx, dword [ebp - 8]
call fcn.0041d00e
mov esp, ebp
pop ebp
ret
Function at 0x419190
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x20c]
test ecx, ecx
jne 0x4191a9
xor eax, eax
jmp 0x4191de
cmp dword [ebp + 0x14], 0
jne 0x4191b6
mov dword [ebp + 0x14], str.Global
mov edx, dword [ebp - 4]
add edx, 0x20c
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x42521f
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41a97b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a99b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041d8f3
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41a9bc
test byte [esp + 8], 2
je 0x41a9bc
mov dword [0x42a850], 0xd
mov dword [0x42a854], 5
jmp 0x41a997
xor eax, eax
ret

Function at 0x41ac20
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x4252d0
call fcn.0041dc44
mov eax, dword [0x428840]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x41ad2d
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x41acde
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0041c620
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x41accb
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x41ad2d
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x41ad2d
mov al, byte [edi]
cmp al, 0x5c
je 0x41acec
cmp al, 0x2f
jne 0x41acf1
cmp al, byte [edi + 1]
je 0x41ad27
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.0041dae7
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x41ad2d
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041d8f3
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x41ad49
push edi
call fcn.0041af18
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0041d00e
call fcn.0041dc7f
ret

Function at 0x41ad63
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41ad91
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x41ad96
cmp eax, 1
je 0x41ad96
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41ad9a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x428840]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x41ae10
push ebx
call fcn.0041ad63
test eax, eax
pop ecx
jne 0x41addf
mov dword [0x42a854], 0xf
mov dword [0x42a850], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0041d00e
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x41ae22
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41add2
inc eax
cmp eax, 0x104
ja 0x41add2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41ae59
cmp eax, dword [ebp + 0x10]
jg 0x41ae3d
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041af06
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41ae6d
mov dword [0x42a850], 0xc
jmp 0x41add2
cmp eax, dword [ebp + 0x10]
jle 0x41ae6d
mov dword [0x42a850], 0x22
jmp 0x41add2
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0041a280
pop ecx
pop ecx
jmp 0x41add4

Function at 0x41afea
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x42a89c], esi
push edi
jne 0x41b00a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x42a898], esi
mov byte [0x42a894], al
jne 0x41b070
mov ecx, dword [0x42d30c]
test ecx, ecx
je 0x41b051
mov eax, dword [0x42d308]
sub eax, 4
cmp eax, ecx
jmp 0x41b04a
mov eax, dword [eax]
test eax, eax
je 0x41b03c
call eax
mov eax, dword [0x42d308]
sub eax, 4
cmp eax, dword [0x42d30c]
mov dword [0x42d308], eax
jae 0x41b034
mov eax, 0x428028
mov esi, 0x428034
cmp eax, esi
mov edi, eax
jae 0x41b070
mov eax, dword [edi]
test eax, eax
je 0x41b069
call eax
add edi, 4
cmp edi, esi
jb 0x41b061
mov eax, 0x428038
mov esi, 0x428040
cmp eax, esi
mov edi, eax
jae 0x41b08f
mov eax, dword [edi]
test eax, eax
je 0x41b088
call eax
add edi, 4
cmp edi, esi
jb 0x41b080
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x41b0a9
push dword [ebp + 8]
mov dword [0x42a89c], 1
call fcn.0041af50
pop ebp
ret
Function at 0x41b3d2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x42c1a0]
push edi
jae 0x41b5a7
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x42c1c0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x41b5a7
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x41b47d
test dl, 2
jne 0x41b47d
test dl, 0x48
je 0x41b447
cmp byte [eax + 5], 0xa
je 0x41b447
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b490
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x41b478
mov dword [0x42a854], ecx
jmp 0x41b5ae
cmp eax, 0x6d
jne 0x41b484
xor eax, eax
jmp 0x41b5bb
push eax
call fcn.0041d8f3
pop ecx
jmp 0x41b5b8
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x41b5a2
test eax, eax
je 0x41b4b7
cmp byte [ebx], 0xa
jne 0x41b4b7
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41b4c0
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x41b59c
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x41b58c
cmp al, 0xd
je 0x41b4f2
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x41b57e
dec ecx
cmp dword [ebp - 8], ecx
jae 0x41b50c
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x41b507
add dword [ebp - 8], 2
jmp 0x41b560
mov dword [ebp - 8], eax
jmp 0x41b57a
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b534
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41b57a
cmp dword [ebp - 0x10], 0
je 0x41b57a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41b555
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41b560
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41b57d
cmp ebx, dword [ebp + 0xc]
jne 0x41b565
cmp byte [ebp - 1], 0xa
jne 0x41b565
mov byte [ebx], 0xa
jmp 0x41b57d
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b863
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41b57e
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x41b4d6
jmp 0x41b59c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41b59c
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x41b5bb
and dword [0x42a854], 0
mov dword [0x42a850], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b5c0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x42c1a0]
mov eax, dword [0x428840]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x41b786
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x42c1c0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x41b786
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x41b62a
xor eax, eax
jmp 0x41b79a
test al, 0x20
je 0x41b63b
push 2
push edi
push edi
push ecx
call fcn.0041ed92
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41b710
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x41b757
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x41b69d
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41b68e
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x41b670
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b6dd
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41b6e9
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x41b664
jmp 0x41b6eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x41b781
cmp dword [ebp + 0x3a4], edi
je 0x41b757
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x41b749
mov dword [0x42a854], eax
jmp 0x41b78d
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b73b
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x41b6eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x41b6eb
push dword [ebp + 0x3a4]
call fcn.0041d8f3
pop ecx
jmp 0x41b797
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41b76f
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x41b623
mov dword [0x42a850], 0x1c
mov dword [0x42a854], edi
jmp 0x41b797
sub eax, dword [ebp - 0x7c]
jmp 0x41b79a
and dword [0x42a854], 0
mov dword [0x42a850], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0041d00e
add ebp, 0x39c
leave
ret
Function at 0x41cabb
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4252f8
call fcn.0041dc44
mov edi, 0x94
mov eax, edi
call fcn.0041c620
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 [0x42a85c], ecx
mov eax, dword [esi + 4]
mov dword [0x42a868], eax
mov edx, dword [esi + 8]
mov dword [0x42a86c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42a860], esi
cmp ecx, 2
je 0x41cb1b
or esi, 0x8000
mov dword [0x42a860], esi
shl eax, 8
add eax, edx
mov dword [0x42a864], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41cb56
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41cb56
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41cb6e
cmp eax, 0x20b
je 0x41cb5b
mov dword [ebp - 0x1c], esi
jmp 0x41cb82
cmp dword [ecx + 0x84], 0xe
jbe 0x41cb56
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41cb7c
cmp dword [ecx + 0x74], 0xe
jbe 0x41cb56
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0041dcaa
pop ecx
test eax, eax
jne 0x41cbae
cmp dword [0x42a8b4], 1
jne 0x41cb9b
call fcn.004207a3
push 0x1c
call fcn.0042062c
push 0xff
call fcn.0041af50
pop ecx
pop ecx
call fcn.0041e839
mov dword [ebp - 4], esi
call fcn.0041ea1d
test eax, eax
jge 0x41cbc7
push 0x1b
call fcn.0041ca96
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42c2e4], eax
call fcn.00420c7f
mov dword [0x42a8ac], eax
call fcn.00420bdd
test eax, eax
jge 0x41cbed
push 8
call fcn.0041ca96
pop ecx
call fcn.004209aa
test eax, eax
jge 0x41cbfe
push 9
call fcn.0041ca96
pop ecx
push 1
call fcn.0041af80
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41cc14
push eax
call fcn.0041ca96
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042094d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41cc35
movzx eax, word [ebp - 0x40]
jmp 0x41cc38
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call section..text
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41cc56
push edi
call fcn.0041b0ab
call fcn.0041b0cd
jmp 0x41cc88
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041dc7f
ret
Function at 0x41d032
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 0x41d060
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 0x41d067
cmp ebx, dword [eax + 4]
jae 0x41d067
xor eax, eax
jmp 0x41d257
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41d078
xor eax, eax
inc eax
jmp 0x41d256
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41d08e
cmp ecx, edx
jae 0x41d1d3
cmp dword [eax + 4], 0
je 0x41d097
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41d07f
cmp dword [ebp + 8], 0
je 0x41d0b9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41d1d3
cmp eax, esi
jae 0x41d1d3
mov eax, dword [0x42a8b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41d0de
cmp dword [esi*4 + 0x42a8c0], edi
je 0x41d1d7
inc esi
cmp esi, eax
jl 0x41d0cc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d253
cmp dword [ebp - 8], 0x1000000
jne 0x41d253
test byte [ebp - 0xc], 0xcc
je 0x41d15c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41d253
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d253
cmp word [eax + 0x18], 0x10b
jne 0x41d253
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41d253
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41d15c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41d15c
test byte [ecx + 0x27], 0x80
jne 0x41d1d3
push 1
push 0x42a900
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41d070
mov ecx, dword [0x42a8b8]
test ecx, ecx
mov edx, ecx
jle 0x41d190
lea eax, [ecx*4 + 0x42a8bc]
cmp dword [eax], edi
je 0x41d190
dec edx
sub eax, 4
test edx, edx
jg 0x41d184
test edx, edx
jne 0x41d1c1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41d19d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41d1b5
lea eax, [edx*4 + 0x42a8c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41d1a3
cmp ecx, 0x10
jge 0x41d1c1
inc ecx
mov dword [0x42a8b8], ecx
push 0
push 0x42a900
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41d070
xor eax, eax
jmp 0x41d256
test esi, esi
jle 0x41d070
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42a900
call ebx
test eax, eax
jne 0x41d070
cmp dword [esi*4 + 0x42a8c0], edi
je 0x41d22d
mov eax, dword [0x42a8b8]
lea esi, [eax - 1]
test esi, esi
jl 0x41d21b
cmp dword [esi*4 + 0x42a8c0], edi
je 0x41d217
dec esi
jns 0x41d20b
test esi, esi
jge 0x41d22b
cmp eax, 0x10
jge 0x41d226
inc eax
mov dword [0x42a8b8], eax
lea esi, [eax - 1]
jmp 0x41d22d
je 0x41d245
xor ecx, ecx
test esi, esi
jl 0x41d245
lea eax, [ecx*4 + 0x42a8c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41d233
push 0
push 0x42a900
call ebx
jmp 0x41d070
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret