joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100017b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 9], eax
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
push ebx
mov word [esp + 0x1d], ax
push ecx
mov byte [esp + 0x23], al
mov byte [esp + 0x14], 0x64
call fcn.10001790
lea edx, [esp + 0xc]
and ebx, 1
push edx
push eax
call fcn.100035f0
mov eax, dword [esp + 0x14]
add esp, 0x10
cmp ax, 1
jne 0x100018b7
mov eax, dword [esp + 6]
mov ecx, 4
test bx, bx
mov byte [esp + 0xd], cl
jne 0x10001861
cmp ax, 0x81
jne 0x1000182b
mov eax, dword [0x1005832c]
or al, 1
mov dword [0x1005832c], eax
mov byte [esp + 0xe], al
jmp 0x1000197c
cmp ax, 0x82
jne 0x10001846
mov eax, dword [0x1005832c]
or al, 2
mov dword [0x1005832c], eax
mov byte [esp + 0xe], al
jmp 0x1000197c
cmp ax, 0x83
jne 0x100018a9
mov eax, dword [0x1005832c]
or eax, ecx
mov dword [0x1005832c], eax
mov byte [esp + 0xe], al
jmp 0x1000197c
cmp ax, 0x81
jne 0x1000187c
mov eax, dword [0x1005832c]
and al, 0xfe
mov dword [0x1005832c], eax
mov byte [esp + 0xe], al
jmp 0x1000197c
cmp ax, 0x82
jne 0x10001897
mov eax, dword [0x1005832c]
and al, 0xfd
mov dword [0x1005832c], eax
mov byte [esp + 0xe], al
jmp 0x1000197c
cmp ax, 0x83
jne 0x100018a9
mov eax, dword [0x1005832c]
and al, 0xfb
mov dword [0x1005832c], eax
mov al, byte [0x1005832c]
mov byte [esp + 0xe], al
jmp 0x1000197c
cmp ax, 0xc
jne 0x100018e6
test bx, bx
mov byte [esp + 0xd], 5
jne 0x100018da
mov eax, dword [esp + 6]
and eax, 0xffff
mov word [esp + 0xe], ax
jmp 0x1000197c
xor eax, eax
mov word [esp + 0xe], ax
jmp 0x1000197c
cmp ax, 7
jne 0x100019a5
push esi
push edi
test bx, bx
mov byte [esp + 0x15], 1
jne 0x1000192d
mov ecx, dword [0x10058328]
mov dl, byte [esp + 0xe]
xor eax, eax
test ecx, ecx
jbe 0x1000191f
cmp byte [eax + 0x10058320], dl
je 0x1000191b
inc eax
cmp eax, ecx
jb 0x1000190c
jmp 0x1000191f
cmp eax, ecx
jb 0x10001963
cmp ecx, 6
jae 0x10001963
mov byte [ecx + 0x10058320], dl
inc ecx
jmp 0x1000195d
mov esi, dword [0x10058328]
xor eax, eax
xor ecx, ecx
test esi, esi
jbe 0x1000195d
mov dl, byte [esp + 0xe]
cmp eax, ecx
je 0x1000194f
mov bl, byte [eax + 0x10058320]
mov byte [ecx + 0x10058320], bl
cmp byte [eax + 0x10058320], dl
je 0x10001958
inc ecx
inc eax
cmp eax, esi
jb 0x1000193f
mov dword [0x10058328], ecx
mov edx, ecx
mov esi, 0x10058320
lea edi, [esp + 0x17]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
mov dword [eax], 0x10
mov eax, dword [esp + 0x10]
mov dword [ecx], edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
pop ebx
add esp, 0x18
ret
Function at 0x10003450
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov ebx, dword [esp + 0x34]
xor ecx, ecx
push edi
mov eax, dword [esi + 0x1c0]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x1bc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
xor edi, edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
test ebx, ebx
mov dword [esp + 0xc], 0
mov dword [esi + 0x1c8], 1
mov dword [esp + 0x28], eax
je 0x100034a4
mov dword [ebx], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100034d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10003504
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x10003504
cmp eax, 1
jne 0x10003504
mov ecx, dword [esi + 0x1c]
push eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, eax
test ebx, ebx
je 0x1000350e
mov edx, dword [esp + 0xc]
mov dword [ebx], edx
mov eax, edi
mov dword [esi + 0x1c8], 0
pop edi
pop esi
pop ebx
add esp, 0x20
ret 0x10
Function at 0x10003b00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [esp + 0xc]
push esi
cmp bl, 0xff
push edi
jne 0x10003b34
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push esi
call ebx
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + edi], al
inc esi
cmp esi, 0x100
jl 0x10003b18
pop edi
pop esi
pop ebx
ret
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
test bl, 1
je 0x10003c1b
push 0xa2
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0xa2], al
push 0xa0
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0xa0], al
push 0xa4
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0xa4], al
push 0x5b
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0x5b], al
push 0xa3
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0xa3], al
push 0xa1
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0xa1], al
push 0xa5
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0xa5], al
push 0x5c
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0x5c], al
push 0x11
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0x11], al
push 0x10
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0x10], al
push 0x12
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0x12], al
test bl, 2
je 0x10003c5c
push 0x90
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0x90], al
push 0x14
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0x14], al
push 0x91
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 0x91], al
test bl, 4
je 0x10003c91
push 1
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 1], al
push 2
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 2], al
push 4
call edi
push eax
call fcn.10003ca0
add esp, 4
mov byte [esi + 4], al
pop edi
pop esi
pop ebx
ret
Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x50b580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x50b59a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b5a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b590
mov eax, 1
add ebx, ebx
jne 0x50b5b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b5a8
jne 0x50b5c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5a8
xor ecx, ecx
sub eax, 3
jb 0x50b5d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50b64a
mov ebp, eax
add ebx, ebx
jne 0x50b5e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50b5f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50b614
inc ecx
add ebx, ebx
jne 0x50b600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50b5f5
jne 0x50b611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50b634
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50b625
jmp 0x50b596
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50b634
add edi, ecx
jmp 0x50b596
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50b652
cmp byte [edi], 6
jne 0x50b652
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x50b657
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50b6c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50b684
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50b6c0
mov dword [ebx], eax
add ebx, 4
jmp 0x50b6a1
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50b6fa
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x406650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406669
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40667d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40669e
cmp esi, eax
jae 0x406677
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406690
cmp esi, eax
jae 0x406677
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40ba50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [esp + 0x20], 0
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareOmegaFSUFlasherFSUFlasher
push reloc.FTD2XX.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40baad
push 0
push 0
push str.Download_FSU_Flasher_from_http:__www.AVTOTOOLS.com_fsu
call fcn.00425fe5
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.Path
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40baf0
sub eax, edx
push eax
lea eax, [esp + 0x24]
add esi, 4
push eax
mov ecx, esi
call fcn.004012c0
mov ecx, esi
call fcn.0040b690
mov ecx, esi
call fcn.0040b780
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x40bb5d
mov al, byte [ebp + 8]
test al, al
je 0x40bb53
mov edx, dword [0x4374c4]
push 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], str.Path_to_Flasher_not_defined
mov dword [esp + 0x1c], 0x42c244
mov eax, dword [esp + edx*4 + 0x18]
push 0
push eax
call fcn.00425fe5
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bb64
sub eax, edx
test eax, eax
jle 0x40bb86
mov al, byte [esp + eax + 0x1f]
cmp al, 0x5c
je 0x40bb86
cmp al, 0x2f
je 0x40bb86
push 0x5c
mov ecx, esi
call fcn.00406450
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40bb90
Capabilities:
Copy file
Create process on windows

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push 0x42a100
push eax
mov dword fs:[0], esp
sub esp, 0x10
test edx, edx
push esi
push edi
mov esi, ecx
jne 0x40bbb8
xor eax, eax
jmp 0x40bbc9
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bbc0
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.004012c0
mov edi, dword [esp + 0x2c]
push edi
mov ecx, esi
call fcn.0040b890
test al, al
je 0x40bd4c
push edi
mov ecx, esi
call fcn.0040ba50
test al, al
je 0x40bd4c
push ebx
push ebp
push str.FSU.FWR
lea edi, [esi + 4]
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0040b7d0
mov ebp, eax
push str.FSU.FWR
lea ecx, [esp + 0x40]
push esi
push ecx
mov dword [esp + 0x40], 0
call fcn.0040b7d0
mov ebp, dword [ebp]
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0x18
push 0
push ebp
push eax
call ebx
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bc57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.FSU.UPD
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0040b7d0
mov ebp, eax
push str.FSU.UPD
lea ecx, [esp + 0x40]
push esi
push ecx
mov dword [esp + 0x40], 1
call fcn.0040b7d0
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push 0
push ebp
push eax
call ebx
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop ebp
pop ebx
jg 0x40bcd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bcfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [edi]
push 5
push edi
push 0
push str.FSUFlasher.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jae 0x40bd61
mov al, byte [esp + 0x2c]
test al, al
je 0x40bd4c
mov eax, dword [0x4374c4]
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], str.Flasher_running_error
mov dword [esp + 0x14], 0x42c2e4
mov ecx, dword [esp + eax*4 + 0x10]
push 0
push ecx
call fcn.00425fe5
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x18]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x40cc90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a1b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004082c0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00403140
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40cd22
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x411122
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.00410aa0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4111bd
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 [0x439444]
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 0x4111bd
cmp eax, 1
je 0x4111de
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 0x4111bd
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41118a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4111b9
xor eax, eax
inc eax
jmp 0x4111fd
cmp edi, eax
jae 0x4111c1
xor eax, eax
jmp 0x4111fd
cmp eax, esi
jae 0x4111c8
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 [0x439444]
jmp 0x4111e1
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 0x41149e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42edf8
call fcn.00412ed0
mov edi, 0x94
mov eax, edi
call fcn.00410aa0
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 [0x439444], ecx
mov eax, dword [esi + 4]
mov dword [0x439450], eax
mov edx, dword [esi + 8]
mov dword [0x439454], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x439448], esi
cmp ecx, 2
je 0x4114fe
or esi, 0x8000
mov dword [0x439448], esi
shl eax, 8
add eax, edx
mov dword [0x43944c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411539
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411539
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411551
cmp eax, 0x20b
je 0x41153e
mov dword [ebp - 0x1c], esi
jmp 0x411565
cmp dword [ecx + 0x84], 0xe
jbe 0x411539
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41155f
cmp dword [ecx + 0x74], 0xe
jbe 0x411539
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00416dd5
pop ecx
test eax, eax
jne 0x411579
push 0x1c
call fcn.0041147a
pop ecx
call fcn.0041512a
test eax, eax
jne 0x41158a
push 0x10
call fcn.0041147a
pop ecx
call fcn.004184f3
mov dword [ebp - 4], esi
call fcn.004182f5
test eax, eax
jge 0x4115a3
push 0x1b
call fcn.00411455
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43ad10], eax
call fcn.004181d3
mov dword [0x439434], eax
call fcn.00418131
test eax, eax
jge 0x4115c9
push 8
call fcn.00411455
pop ecx
call fcn.00417efe
test eax, eax
jge 0x4115da
push 9
call fcn.00411455
pop ecx
push 1
call fcn.00411fd9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4115f0
push eax
call fcn.00411455
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00417ea1
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x411611
movzx eax, word [ebp - 0x40]
jmp 0x411614
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041d50c
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x411632
push edi
call fcn.00412106
call fcn.00412128
jmp 0x411664
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00412f0b
ret
Function at 0x412043
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42ee40
call fcn.00412ed0
push 8
call fcn.0041541f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x439484], esi
jne 0x412077
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x439480], esi
mov al, byte [ebp + 0x10]
mov byte [0x43947c], al
cmp dword [ebp + 0xc], edi
jne 0x4120c1
cmp dword [0x43ad08], edi
je 0x4120b1
mov eax, dword [0x43ad04]
sub eax, 4
mov dword [0x43ad04], eax
cmp eax, dword [0x43ad08]
jb 0x4120b1
mov eax, dword [eax]
cmp eax, edi
je 0x412092
call eax
jmp 0x412092
push 0x435088
mov eax, 0x435080
call fcn.00411fc1
pop ecx
push 0x435094
mov eax, 0x43508c
call fcn.00411fc1
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4120f2
cmp dword [ebp + 0x10], edi
jne 0x412100
mov dword [0x439484], esi
push dword [ebp + 8]
call fcn.00411f7f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4120ff
push 8
call fcn.0041536a
pop ecx
ret
call fcn.00412f0b
ret
Function at 0x417964
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 0x417992
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 0x417999
cmp ebx, dword [eax + 4]
jae 0x417999
xor eax, eax
jmp 0x417b89
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4179aa
xor eax, eax
inc eax
jmp 0x417b88
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4179c0
cmp ecx, edx
jae 0x417b05
cmp dword [eax + 4], 0
je 0x4179c9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4179b1
cmp dword [ebp + 8], 0
je 0x4179eb
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x417b05
cmp eax, esi
jae 0x417b05
mov eax, dword [0x439620]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x417a10
cmp dword [esi*4 + 0x439628], edi
je 0x417b09
inc esi
cmp esi, eax
jl 0x4179fe
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417b85
cmp dword [ebp - 8], 0x1000000
jne 0x417b85
test byte [ebp - 0xc], 0xcc
je 0x417a8e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x417b85
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x417b85
cmp word [eax + 0x18], 0x10b
jne 0x417b85
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x417b85
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x417a8e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x417a8e
test byte [ecx + 0x27], 0x80
jne 0x417b05
push 1
push 0x439668
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4179a2
mov ecx, dword [0x439620]
test ecx, ecx
mov edx, ecx
jle 0x417ac2
lea eax, [ecx*4 + 0x439624]
cmp dword [eax], edi
je 0x417ac2
dec edx
sub eax, 4
test edx, edx
jg 0x417ab6
test edx, edx
jne 0x417af3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x417acf
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x417ae7
lea eax, [edx*4 + 0x439628]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x417ad5
cmp ecx, 0x10
jge 0x417af3
inc ecx
mov dword [0x439620], ecx
push 0
push 0x439668
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4179a2
xor eax, eax
jmp 0x417b88
test esi, esi
jle 0x4179a2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x439668
call ebx
test eax, eax
jne 0x4179a2
cmp dword [esi*4 + 0x439628], edi
je 0x417b5f
mov eax, dword [0x439620]
lea esi, [eax - 1]
test esi, esi
jl 0x417b4d
cmp dword [esi*4 + 0x439628], edi
je 0x417b49
dec esi
jns 0x417b3d
test esi, esi
jge 0x417b5d
cmp eax, 0x10
jge 0x417b58
inc eax
mov dword [0x439620], eax
lea esi, [eax - 1]
jmp 0x417b5f
je 0x417b77
xor ecx, ecx
test esi, esi
jl 0x417b77
lea eax, [ecx*4 + 0x439628]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x417b65
push 0
push 0x439668
call ebx
jmp 0x4179a2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret