joyce8/EMBER2024-capa huggingface dataset:
Function at 0x730e00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d7000]
mov dword [edi + 0x23fe90], 0xe8c6ae30
push edi
or ebp, 0xffffffff
jmp 0x730e2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x730e31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x730e20
mov eax, 1
add ebx, ebx
jne 0x730e43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x730e54
jne 0x730e73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x730e73
dec eax
add ebx, ebx
jne 0x730e60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x730e38
add ebx, ebx
jne 0x730e6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x730ec5
xor ecx, ecx
sub eax, 3
jb 0x730e8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x730efa
sar eax, 1
mov ebp, eax
jmp 0x730e96
add ebx, ebx
jne 0x730e96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x730e64
inc ecx
add ebx, ebx
jne 0x730ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x730e64
add ebx, ebx
jne 0x730eb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x730ea6
jne 0x730ec2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x730ea6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x730ee4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x730ed6
jmp 0x730e26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x730ee4
add edi, ecx
jmp 0x730e26
pop esi
mov edi, esi
mov ecx, 0xe013
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x730f02
cmp byte [edi], 0x28
jne 0x730f02
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 0x730f07
lea edi, [esi + 0x31f000]
mov eax, dword [edi]
or eax, eax
je 0x730f7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x366a64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x366c70]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x730f34
mov ecx, edi
jns 0x730f63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x366c78]
or eax, eax
je 0x730f79
mov dword [ebx], eax
add ebx, 4
jmp 0x730f51
call dword [esi + 0x366c74]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x730fb0
cmp al, 0xef
ja 0x730fa3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x730f85
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x730f92
mov ebp, dword [esi + 0x366c7c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x730fe4
sub esp, 0xffffff80
jmp 0x4a423c
Function at 0x401200
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x144
push ebx
push esi
push edi
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetServices
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
movsw word es:[edi], word [esi]
mov ecx, 7
mov esi, str.SYSTEMCurrentControlSetEnum
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, str.sbser
mov edi, edi
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x58]
push str._s_sEnum
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x50]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x58]
push str._s_sParameters
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x50]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x58]
push str._s_sSecurity
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x50]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x58]
push str._s_s
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x50]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
add esi, 9
cmp esi, 0x431115
jl 0x401240
mov esi, str.sbmf
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x58]
push str._s_s
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x50]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
add esi, 7
cmp esi, 0x431134
jl 0x4012d8
pop edi
pop esi
pop ebx
add esp, 0x144
ret
Function at 0x401310
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
sub esp, 0x2c4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push 0x80
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x10]
push str._sinfoem.
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0x401478
push ebx
push edi
lea edx, [esp + 0x1c0]
push edx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x1c]
push str._sinf_s
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x10
push 0x80
lea edx, [esp + 0x18]
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
jne 0x4013dd
push ebp
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x11c]
push str.Delete__s_0x_x
push edx
call esi
add esp, 0x10
push 0
push 0
lea eax, [esp + 0x11c]
push eax
call fcn.00420022
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x194]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401476
jmp 0x401400
lea eax, [esp + 0x1c0]
push eax
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x1c]
push str._sinf_s
push edx
call esi
add esp, 0x10
push 0x80
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
call ebx
test eax, eax
jne 0x40145f
push ebp
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x11c]
push str.Delete__s_0x_x
push eax
call esi
add esp, 0x10
push 0
push 0
lea ecx, [esp + 0x11c]
push ecx
call fcn.00420022
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x194]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401400
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x2c4
ret

Function at 0x401e59
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401e6e
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401e80
xor eax, eax
jmp 0x401eb2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401ea4
cmp esi, eax
jae 0x401e7c
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401e96
cmp esi, eax
jae 0x401e7c
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x4025ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4025fe
call fcn.004219cc
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4025fe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4025f4
xor eax, eax
jmp 0x402717
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40262e
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40262e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x402714
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40265b
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004021a4
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x402714
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4026a4
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4026a4
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40269e
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004021a4
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x402704
and dword [ebp + 0xc], 0
jmp 0x402704
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x402704
push 0xc
call fcn.00419787
mov esi, eax
test esi, esi
pop ecx
je 0x4026e6
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4026e8
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4026ff
push dword [ebp - 8]
call fcn.00417bf3
jmp 0x402704
call fcn.00417bca
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x402669
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40be98
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4294e0
call fcn.0040d738
push 8
call fcn.0040f1df
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4350e4], esi
jne 0x40becc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4350e0], esi
mov al, byte [ebp + 0x10]
mov byte [0x4350dc], al
cmp dword [ebp + 0xc], edi
jne 0x40bf16
cmp dword [0x43696c], edi
je 0x40bf06
mov eax, dword [0x436968]
sub eax, 4
mov dword [0x436968], eax
cmp eax, dword [0x43696c]
jb 0x40bf06
mov eax, dword [eax]
cmp eax, edi
je 0x40bee7
call eax
jmp 0x40bee7
push 0x431090
mov eax, 0x431088
call fcn.0040be16
pop ecx
push 0x43109c
mov eax, 0x431094
call fcn.0040be16
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40bf47
cmp dword [ebp + 0x10], edi
jne 0x40bf55
mov dword [0x4350e4], esi
push dword [ebp + 8]
call fcn.0040bdd4
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40bf54
push 8
call fcn.0040f12a
pop ecx
ret
call fcn.0040d773
ret

Function at 0x40c0c5
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.0040c2c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c160
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 [0x4350a4]
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 0x40c160
cmp eax, 1
je 0x40c181
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 0x40c160
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40c12d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40c15c
xor eax, eax
inc eax
jmp 0x40c1a0
cmp edi, eax
jae 0x40c164
xor eax, eax
jmp 0x40c1a0
cmp eax, esi
jae 0x40c16b
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 [0x4350a4]
jmp 0x40c184
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 0x40c362
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x429510
call fcn.0040d738
mov edi, 0x94
mov eax, edi
call fcn.0040c2c0
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 [0x4350a4], ecx
mov eax, dword [esi + 4]
mov dword [0x4350b0], eax
mov edx, dword [esi + 8]
mov dword [0x4350b4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4350a8], esi
cmp ecx, 2
je 0x40c3c2
or esi, 0x8000
mov dword [0x4350a8], esi
shl eax, 8
add eax, edx
mov dword [0x4350ac], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40c3fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c3fd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40c415
cmp eax, 0x20b
je 0x40c402
mov dword [ebp - 0x1c], esi
jmp 0x40c429
cmp dword [ecx + 0x84], 0xe
jbe 0x40c3fd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40c423
cmp dword [ecx + 0x74], 0xe
jbe 0x40c3fd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040f2b2
pop ecx
test eax, eax
jne 0x40c43d
push 0x1c
call fcn.0040c33e
pop ecx
call fcn.0040eee8
test eax, eax
jne 0x40c44e
push 0x10
call fcn.0040c33e
pop ecx
call fcn.0040f210
mov dword [ebp - 4], esi
call fcn.004107d2
test eax, eax
jge 0x40c467
push 0x1b
call fcn.0040c319
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x436960], eax
call fcn.004106b0
mov dword [0x4350e8], eax
call fcn.0041060e
test eax, eax
jge 0x40c48d
push 8
call fcn.0040c319
pop ecx
call fcn.004103db
test eax, eax
jge 0x40c49e
push 9
call fcn.0040c319
pop ecx
push 1
call fcn.0040be2e
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40c4b4
push eax
call fcn.0040c319
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041037e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40c4d5
movzx eax, word [ebp - 0x40]
jmp 0x40c4d8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00417780
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40c4f6
push edi
call fcn.0040bf5b
call fcn.0040bf7d
jmp 0x40c528
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040d773
ret
Function at 0x40fe41
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 0x40fe6f
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 0x40fe76
cmp ebx, dword [eax + 4]
jae 0x40fe76
xor eax, eax
jmp 0x410066
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40fe87
xor eax, eax
inc eax
jmp 0x410065
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40fe9d
cmp ecx, edx
jae 0x40ffe2
cmp dword [eax + 4], 0
je 0x40fea6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40fe8e
cmp dword [ebp + 8], 0
je 0x40fec8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40ffe2
cmp eax, esi
jae 0x40ffe2
mov eax, dword [0x435270]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40feed
cmp dword [esi*4 + 0x435278], edi
je 0x40ffe6
inc esi
cmp esi, eax
jl 0x40fedb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410062
cmp dword [ebp - 8], 0x1000000
jne 0x410062
test byte [ebp - 0xc], 0xcc
je 0x40ff6b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x410062
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x410062
cmp word [eax + 0x18], 0x10b
jne 0x410062
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x410062
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40ff6b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40ff6b
test byte [ecx + 0x27], 0x80
jne 0x40ffe2
push 1
push 0x4352b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40fe7f
mov ecx, dword [0x435270]
test ecx, ecx
mov edx, ecx
jle 0x40ff9f
lea eax, [ecx*4 + 0x435274]
cmp dword [eax], edi
je 0x40ff9f
dec edx
sub eax, 4
test edx, edx
jg 0x40ff93
test edx, edx
jne 0x40ffd0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40ffac
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40ffc4
lea eax, [edx*4 + 0x435278]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40ffb2
cmp ecx, 0x10
jge 0x40ffd0
inc ecx
mov dword [0x435270], ecx
push 0
push 0x4352b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40fe7f
xor eax, eax
jmp 0x410065
test esi, esi
jle 0x40fe7f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4352b8
call ebx
test eax, eax
jne 0x40fe7f
cmp dword [esi*4 + 0x435278], edi
je 0x41003c
mov eax, dword [0x435270]
lea esi, [eax - 1]
test esi, esi
jl 0x41002a
cmp dword [esi*4 + 0x435278], edi
je 0x410026
dec esi
jns 0x41001a
test esi, esi
jge 0x41003a
cmp eax, 0x10
jge 0x410035
inc eax
mov dword [0x435270], eax
lea esi, [eax - 1]
jmp 0x41003c
je 0x410054
xor ecx, ecx
test esi, esi
jl 0x410054
lea eax, [ecx*4 + 0x435278]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x410042
push 0
push 0x4352b8
call ebx
jmp 0x40fe7f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41006a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x432198]
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 + 0x432578]
je 0x41009f
inc eax
cmp eax, 0x13
jb 0x410090
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x432578]
jne 0x4101c5
mov eax, dword [0x4350f0]
cmp eax, 1
je 0x41019d
cmp eax, edx
jne 0x4100cf
cmp dword [0x432194], 1
je 0x41019d
cmp ecx, 0xfc
je 0x4101c5
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 0x410105
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00412350
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040c9d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x410139
mov eax, edi
push eax
call fcn.0040c9d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x429a98
push edi
call fcn.00413fc0
add esp, 0x10
push edi
call fcn.0040c9d0
push dword [esi + 0x43257c]
mov ebx, eax
call fcn.0040c9d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040c2c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00412350
push edi
push ebx
call fcn.00412360
push 0x429a78
push ebx
call fcn.00412360
push dword [esi + 0x43257c]
push ebx
call fcn.00412360
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00413ec3
add esp, 0x2c
jmp 0x4101c5
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43257c]
push dword [esi]
call fcn.0040c9d0
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.0040c5bf
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x413ec3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4354ec], ebx
push esi
push edi
jne 0x413f43
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x413f7e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42a504
push edi
call esi
test eax, eax
mov dword [0x4354ec], eax
je 0x413f7e
push 0x42a4f4
push edi
call esi
push 0x42a4e0
push edi
mov dword [0x4354f0], eax
call esi
cmp dword [0x4350a4], 2
mov dword [0x4354f4], eax
jne 0x413f43
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4354fc], eax
je 0x413f43
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4354f8], eax
mov eax, dword [0x4354f8]
test eax, eax
je 0x413f88
call eax
test eax, eax
je 0x413f6f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4354fc]
test eax, eax
je 0x413f6f
test byte [ebp - 8], 1
jne 0x413f88
cmp dword [0x4350b0], 4
jb 0x413f82
or byte [ebp + 0x12], 0x20
jmp 0x413fa7
xor eax, eax
jmp 0x413fb7
or byte [ebp + 0x12], 4
jmp 0x413fa7
mov eax, dword [0x4354f0]
test eax, eax
je 0x413fa7
call eax
mov ebx, eax
test ebx, ebx
je 0x413fa7
mov eax, dword [0x4354f4]
test eax, eax
je 0x413fa7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4354ec]
pop edi
pop esi
pop ebx
leave
ret