joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039f6
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x264
mov eax, dword [0x43a180]
push ebx
mov ebx, dword [esp + 0x26c]
imul ebx, ebx, 0x1c
push esi
mov esi, ecx
mov dword [esp + 0x268], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx + 0x10]
mov edx, dword [ecx - 0xc]
add eax, ebx
test edx, edx
jne 0x403a2c
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x260]
call fcn.00411fce
add esp, 0x264
ret 4
push edi
lea edi, [eax + 0x14]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x403a5f
push 0x24
push eax
call fcn.00411fdc
add esp, 8
test eax, eax
je 0x403a5f
sub eax, dword [edi]
cmp eax, 0xffffffff
je 0x403a5f
mov edx, dword [esi + 0x1c]
push edx
push str._INSDIR
mov ecx, edi
call fcn.00403500
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [ebx + ecx]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x20], 0x44
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x174]
push str._s_s__s
push edx
call fcn.00412866
lea eax, [esp + 0x17c]
push eax
lea ecx, [esp + 0x7c]
push 0x42e174
push ecx
call fcn.00412866
add esp, 0x20
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call fcn.00403170
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x188]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403b5a
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx]
mov edx, dword [eax + ebx + 0x10]
add eax, ebx
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x70]
push str._s_s
push ecx
call fcn.00412866
add esp, 0x14
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call fcn.00403170
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x403b40
push 0
push 0x42e14c
lea eax, [esp + 0x6c]
push eax
call fcn.00420bfa
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x260]
call fcn.00411fce
add esp, 0x264
ret 4
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call edi
mov eax, dword [esp + 0xc]
test eax, eax
mov eax, dword [esi + 4]
mov ecx, dword [ebx + eax]
lea edx, [esp + 0x64]
push ecx
je 0x403ba5
push 0x42e13c
jmp 0x403baa
push 0x42e12c
push edx
call fcn.00412866
add esp, 0xc
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.00403170
mov ecx, dword [esp + 0x26c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
call fcn.00411fce
add esp, 0x264
ret 4
Function at 0x403e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c308
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.00403870
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004014c0
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 0x403f22
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 0xc
Function at 0x406780
Capabilities:
Delete file
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x43a180]
push ebx
push esi
push edi
mov dword [esp + 0x224], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x26
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4067ee
push eax
push 0x42e688
push 0x42e66c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x224]
call fcn.00411fce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4067f5
sub eax, edx
push eax
lea ecx, [esp + 0x14]
lea esi, [ebx + 0x1c]
push ecx
mov ecx, esi
call fcn.00401680
lea edx, [esp + 0x118]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x118]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406830
mov eax, dword [str.Setup.ini]
mov ecx, dword [0x42e664]
mov dx, word [0x42e668]
mov dword [edi], eax
mov dword [edi + 4], ecx
push 0x8d
lea eax, [esp + 0x11c]
push eax
mov ecx, ebx
mov word [edi + 8], dx
call fcn.00403220
test eax, eax
je 0x4067d9
lea ecx, [esp + 0x118]
push ecx
mov ecx, ebx
call fcn.00405770
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00403700
mov eax, dword [eax]
push 0x42da40
push eax
call fcn.004129de
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4068cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4068dd
push 0x42da40
mov ecx, esi
call fcn.00404000
mov ecx, dword [esp + 0x224]
mov eax, 1
call fcn.00411fce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407423
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 0x407438
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40744a
xor eax, eax
jmp 0x40747c
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 0x40746e
cmp esi, eax
jae 0x407446
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407460
cmp esi, eax
jae 0x407446
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x408eca
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 0x408f1d
call fcn.00428e1e
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x408f1d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x408f13
xor eax, eax
jmp 0x409036
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 0x408f4d
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 0x408f4d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x409033
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x408f7a
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00407745
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x409033
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x408fc3
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x408fc3
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x408fbd
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00407745
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x409023
and dword [ebp + 0xc], 0
jmp 0x409023
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x409023
push 0xc
call fcn.00424020
mov esi, eax
test esi, esi
pop ecx
je 0x409005
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 0x409007
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40901e
push dword [ebp - 8]
call fcn.0041ecf5
jmp 0x409023
call fcn.0041eccc
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x408f88
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x411700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4118d4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x43e7a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4118d4
test cl, 0x48
je 0x41176b
cmp byte [eax + 5], 0xa
je 0x41176b
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4117bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4117a5
call fcn.00414a63
mov dword [eax], 9
call fcn.00414a6c
mov dword [eax], esi
jmp 0x4117b5
cmp eax, 0x6d
je 0x4118d4
push eax
call fcn.00414a75
pop ecx
or eax, 0xffffffff
jmp 0x4118d6
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4118cf
test eax, eax
je 0x4117e4
cmp byte [ebx], 0xa
jne 0x4117e4
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4117ed
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4118c9
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4118b9
cmp al, 0xd
je 0x41181f
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4118ab
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x411839
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x411834
add dword [ebp + 0x10], 2
jmp 0x41188d
mov dword [ebp + 0x10], eax
jmp 0x4118a7
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x411861
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4118a7
cmp dword [ebp - 0xc], 0
je 0x4118a7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x411882
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41188d
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4118aa
cmp ebx, dword [ebp + 0xc]
jne 0x411892
cmp byte [ebp - 1], 0xa
jne 0x411892
mov byte [ebx], 0xa
jmp 0x4118aa
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411d1d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4118ab
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x411803
jmp 0x4118c9
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4118c9
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4118d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411986
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x43a180]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4119b7
xor eax, eax
jmp 0x411b40
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x43e7a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4119f3
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00416548
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x411ace
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x411b0c
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x411a57
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x411a48
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x411a28
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411a97
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x411aa0
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x411a19
jmp 0x411aa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x411b3b
cmp dword [ebp - 0x6c], edi
je 0x411b0c
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x411b01
call fcn.00414a63
mov dword [eax], 9
call fcn.00414a6c
mov dword [eax], esi
jmp 0x411b36
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411af6
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x411aa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x411aa2
push dword [ebp - 0x6c]
call fcn.00414a75
pop ecx
jmp 0x411b36
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x411b24
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x411b24
xor eax, eax
jmp 0x411b3e
call fcn.00414a63
mov dword [eax], 0x1c
call fcn.00414a6c
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x411b3e
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00411fce
add ebp, 0x3a0
leave
ret
Function at 0x412c71
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x412c8e
call fcn.00414a63
mov dword [eax], 0x16
xor eax, eax
jmp 0x412cf8
push esi
push 0x8c
push 1
call fcn.004150a7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x412ce3
push esi
call fcn.00416a94
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x412cc1
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x412bdc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x412cf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00411353
test ebx, ebx
pop ecx
je 0x412cf5
push ebx
call fcn.00414a75
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x412dee
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.00412fe0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412e89
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 [0x43d244]
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 0x412e89
cmp eax, 1
je 0x412eaa
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 0x412e89
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x412e56
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x412e85
xor eax, eax
inc eax
jmp 0x412ec9
cmp edi, eax
jae 0x412e8d
xor eax, eax
jmp 0x412ec9
cmp eax, esi
jae 0x412e94
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 [0x43d244]
jmp 0x412ead
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 0x413082
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x431818
call fcn.0041415c
mov edi, 0x94
mov eax, edi
call fcn.00412fe0
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 [0x43d244], ecx
mov eax, dword [esi + 4]
mov dword [0x43d250], eax
mov edx, dword [esi + 8]
mov dword [0x43d254], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43d248], esi
cmp ecx, 2
je 0x4130e2
or esi, 0x8000
mov dword [0x43d248], esi
shl eax, 8
add eax, edx
mov dword [0x43d24c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41311d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41311d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x413135
cmp eax, 0x20b
je 0x413122
mov dword [ebp - 0x1c], esi
jmp 0x413149
cmp dword [ecx + 0x84], 0xe
jbe 0x41311d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x413143
cmp dword [ecx + 0x74], 0xe
jbe 0x41311d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00415300
pop ecx
test eax, eax
jne 0x41315d
push 0x1c
call fcn.0041305e
pop ecx
call fcn.00416c8e
test eax, eax
jne 0x41316e
push 0x10
call fcn.0041305e
pop ecx
call fcn.004190b3
mov dword [ebp - 4], esi
call fcn.00415fd0
test eax, eax
jge 0x413187
push 0x1b
call fcn.00413039
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43eb10], eax
call fcn.00418f91
mov dword [0x43d230], eax
call fcn.00418eef
test eax, eax
jge 0x4131ad
push 8
call fcn.00413039
pop ecx
call fcn.00418cbc
test eax, eax
jge 0x4131be
push 9
call fcn.00413039
pop ecx
push 1
call fcn.00413fc1
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4131d4
push eax
call fcn.00413039
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00418c5f
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4131f5
movzx eax, word [ebp - 0x40]
jmp 0x4131f8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041e31c
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x413216
push edi
call fcn.004140ee
call fcn.00414110
jmp 0x413248
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00414197
ret
Function at 0x41402b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x431888
call fcn.0041415c
push 8
call fcn.004152b5
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43d284], esi
jne 0x41405f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43d280], esi
mov al, byte [ebp + 0x10]
mov byte [0x43d27c], al
cmp dword [ebp + 0xc], edi
jne 0x4140a9
cmp dword [0x43eb08], edi
je 0x414099
mov eax, dword [0x43eb04]
sub eax, 4
mov dword [0x43eb04], eax
cmp eax, dword [0x43eb08]
jb 0x414099
mov eax, dword [eax]
cmp eax, edi
je 0x41407a
call eax
jmp 0x41407a
push 0x43909c
mov eax, 0x439090
call fcn.00413fa9
pop ecx
push 0x4390a8
mov eax, 0x4390a0
call fcn.00413fa9
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4140da
cmp dword [ebp + 0x10], edi
jne 0x4140e8
mov dword [0x43d284], esi
push dword [ebp + 8]
call fcn.00413f67
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4140e7
push 8
call fcn.00415200
pop ecx
ret
call fcn.00414197
ret

Function at 0x415e8f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00412fe0
mov eax, dword [0x43a180]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00411d1d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x415fc2
push 2
push esi
push dword [ebp + 8]
call fcn.00411d1d
add esp, 0xc
cmp eax, ebx
je 0x415fc2
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x415f62
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004138b0
push 0x8000
push dword [ebp + 8]
call fcn.0041b44b
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x415f18
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00411986
add esp, 0xc
cmp eax, 0xffffffff
je 0x415f38
sub edi, eax
test edi, edi
jg 0x415f10
jmp 0x415f50
call fcn.00414a6c
cmp dword [eax], 5
jne 0x415f4d
call fcn.00414a63
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041b44b
pop ecx
pop ecx
jmp 0x415faa
jge 0x415faa
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411d1d
push dword [ebp + 8]
call fcn.004162c9
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x415faa
call fcn.00414a63
mov dword [eax], 0xd
call fcn.00414a6c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00411d1d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x415fc4
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00411fce
leave
ret