joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408da0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43c7d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x344
mov eax, dword [0x48ecf0]
push ebp
mov ebp, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x348], eax
call fcn.00414a53
mov edi, dword [esp + 0x35c]
push edi
lea eax, [esp + 0x1bc]
push str._s.
push eax
mov dword [esp + 0x360], 0
call fcn.0041df45
add esp, 0xc
push 0
lea ecx, [esp + 0x1bc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00414ae6
test eax, eax
je 0x408f1a
push esi
jmp 0x408e20
lea ecx, [esp + 0x14]
call fcn.00414834
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], eax
call fcn.00414a1a
test eax, eax
jne 0x408f0d
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.00414d0e
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
sub eax, 0xc8
or eax, ecx
mov byte [esp + 0x358], 1
jge 0x408e7d
push 0xc8
mov ecx, esi
call fcn.00401540
mov ecx, dword [esi]
lea edx, [esp + 0x2c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x408e83
mov byte [esp + 0x358], al
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408eb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [eax + 0x38]
test eax, eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push str._s_s
je 0x408eef
lea edx, [esp + 0x100]
push edx
call fcn.0041df45
add esp, 0x10
lea eax, [esp + 0xf4]
push eax
mov ecx, ebp
call fcn.00408da0
jmp 0x408f0d
lea edx, [esp + 0x290]
push edx
call fcn.0041df45
add esp, 0x10
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x408e20
pop esi
lea ecx, [esp + 0x10]
call fcn.00414764
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop edi
pop ebp
lea ecx, [esp + 8]
mov dword [esp + 0x34c], 0xffffffff
jne 0x408f48
call fcn.00414a77
xor eax, eax
jmp 0x408f52
call fcn.00414a77
mov eax, 1
mov ecx, dword [esp + 0x344]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x340]
call fcn.0041ce8e
add esp, 0x350
ret 4
Function at 0x408f80
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x43c7eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x48ecf0]
push ebx
push esi
xor esi, esi
push 0x43ef6a
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], eax
mov dword [esp + 0x10], esi
call fcn.00401a30
push 0x104
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x134], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, esi
je 0x409071
push edi
push ebx
push 2
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x18]
push edi
push ebx
push eax
lea ecx, [esp + 0x28]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x43fb08
push edi
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x10]
mov edx, eax
and edx, 0xffff
push edx
shr eax, 0x10
push eax
mov eax, ecx
and eax, 0xffff
push eax
shr ecx, 0x10
push ecx
lea ecx, [esp + 0x1c]
push str.V_d._d_d_d
push ecx
call fcn.00401930
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.00402760
mov esi, dword [esp + 0x134]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x128], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4090b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x118]
pop ebx
call fcn.0041ce8e
add esp, 0x124
ret 4

Function at 0x409930
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x48ecf0]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4099a4
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.0041ce8e
add esp, 0x110
ret 0xc
Function at 0x40a480
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43c8f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x40a586
push esi
call fcn.0042e5d4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x40a4eb
push 0x104
lea ecx, [esp + 0xc]
call fcn.00401540
mov esi, dword [esp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x40a4ff
xor eax, eax
jmp 0x40a513
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a504
sub eax, edx
js 0x40a596
cmp eax, dword [esi - 8]
jg 0x40a596
push edi
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.004017f0
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40a55b
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40a55b
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x80], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x40a585
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.004011f0
int3
Function at 0x40bbe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 1
push edi
jl 0x40bbf0
cmp esi, 9
jle 0x40bbfd
push str.bad_pack_level
call fcn.004125c0
add esp, 4
movzx edx, word [esi*8 + 0x48d0a4]
xor eax, eax
cmp esi, 1
mov ecx, 0x4000
mov edi, 0x4ccdb8
rep stosd dword es:[edi], eax
movzx eax, word [esi*8 + 0x48d0a2]
movzx ecx, word [esi*8 + 0x48d0a0]
mov dword [0x4903cc], eax
movzx eax, word [esi*8 + 0x48d0a6]
mov dword [0x4903bc], esi
mov dword [0x4903a8], ecx
mov dword [0x4903d0], edx
mov dword [0x4903b0], eax
jne 0x40bc55
mov eax, dword [esp + 0x10]
or byte [eax], 4
jmp 0x40bc61
cmp esi, 9
jne 0x40bc61
mov eax, dword [esp + 0x10]
or byte [eax], 2
xor esi, esi
push 0x10000
push 0x4a8568
mov dword [0x4903c8], esi
mov dword [0x4903c0], esi
call dword [0x490398]
add esp, 8
cmp eax, esi
mov dword [0x4903c4], eax
je 0x40bcd7
cmp eax, 0xffffffff
je 0x40bcd7
mov edi, 0x106
cmp eax, edi
mov dword [0x4903b8], esi
jae 0x40bcb5
nop
cmp dword [0x4903b8], esi
jne 0x40bcb5
call fcn.0040b5b0
cmp dword [0x4903c4], edi
jb 0x40bca0
movzx ecx, byte [0x4a8568]
movzx edx, byte [0x4a8569]
shl ecx, 5
xor ecx, edx
and ecx, 0x7fff
pop edi
mov dword [0x4903d4], ecx
pop esi
ret
pop edi
mov dword [0x4903c4], esi
mov dword [0x4903b8], 1
pop esi
ret
Function at 0x4124d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x4124e3
or eax, 0xffffffff
mov dword [0x48da98], eax
not eax
ret
mov eax, dword [0x48da98]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x41250f
push edi
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edi, dword [edx*4 + 0x48d698]
shr eax, 8
xor eax, edi
inc ecx
dec esi
jne 0x4124f2
pop edi
mov dword [0x48da98], eax
pop esi
not eax
ret

Function at 0x413f58
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 0x413fab
call fcn.004392bc
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x413fab
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x413fa1
xor eax, eax
jmp 0x4140c4
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 0x413fdb
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 0x413fdb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4140c1
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x414008
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041305b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4140c1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x414051
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x414051
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x41404b
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041305b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4140b1
and dword [ebp + 0xc], 0
jmp 0x4140b1
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4140b1
push 0xc
call fcn.004328af
mov esi, eax
test esi, esi
pop ecx
je 0x414093
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 0x414095
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4140ac
push dword [ebp - 8]
call fcn.0042d40b
jmp 0x4140b1
call fcn.0042d3e2
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x414016
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41cb32
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.0041ce20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41cbcd
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 [0x4e22a4]
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 0x41cbcd
cmp eax, 1
je 0x41cbee
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 0x41cbcd
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41cb9a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41cbc9
xor eax, eax
inc eax
jmp 0x41cc0d
cmp edi, eax
jae 0x41cbd1
xor eax, eax
jmp 0x41cc0d
cmp eax, esi
jae 0x41cbd8
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 [0x4e22a4]
jmp 0x41cbf1
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 0x41de1f
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 0x41de3c
call fcn.0041e359
mov dword [eax], 0x16
xor eax, eax
jmp 0x41dea6
push esi
push 0x8c
push 1
call fcn.0041ee13
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41de91
push esi
call fcn.00423b7e
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 0x41de6f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41dd8a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41dea5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041cac1
test ebx, ebx
pop ecx
je 0x41dea3
push ebx
call fcn.0041e36b
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41f01f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x444d40
call fcn.00420be0
mov edi, 0x94
mov eax, edi
call fcn.0041ce20
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 [0x4e22a4], ecx
mov eax, dword [esi + 4]
mov dword [0x4e22b0], eax
mov edx, dword [esi + 8]
mov dword [0x4e22b4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4e22a8], esi
cmp ecx, 2
je 0x41f07f
or esi, 0x8000
mov dword [0x4e22a8], esi
shl eax, 8
add eax, edx
mov dword [0x4e22ac], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41f0ba
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f0ba
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41f0d2
cmp eax, 0x20b
je 0x41f0bf
mov dword [ebp - 0x1c], esi
jmp 0x41f0e6
cmp dword [ecx + 0x84], 0xe
jbe 0x41f0ba
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41f0e0
cmp dword [ecx + 0x74], 0xe
jbe 0x41f0ba
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004219a7
pop ecx
test eax, eax
jne 0x41f0fa
push 0x1c
call fcn.0041effb
pop ecx
call fcn.00423d78
test eax, eax
jne 0x41f10b
push 0x10
call fcn.0041effb
pop ecx
call fcn.00425e40
mov dword [ebp - 4], esi
call fcn.00424e24
test eax, eax
jge 0x41f124
push 0x1b
call fcn.0041efd6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4e2b70], eax
call fcn.00425d1e
mov dword [0x4e2290], eax
call fcn.00425c7c
test eax, eax
jge 0x41f14a
push 8
call fcn.0041efd6
pop ecx
call fcn.00425a49
test eax, eax
jge 0x41f15b
push 9
call fcn.0041efd6
pop ecx
push 1
call fcn.0041f9e2
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41f171
push eax
call fcn.0041efd6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004259ec
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41f192
movzx eax, word [ebp - 0x40]
jmp 0x41f195
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042a92e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41f1b3
push edi
call fcn.0041fb0f
call fcn.0041fb31
jmp 0x41f1e5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00420c1b
ret
Function at 0x41fa4c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x444db0
call fcn.00420be0
push 8
call fcn.0042195c
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4e22e4], esi
jne 0x41fa80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4e22e0], esi
mov al, byte [ebp + 0x10]
mov byte [0x4e22dc], al
cmp dword [ebp + 0xc], edi
jne 0x41faca
cmp dword [0x4e2b68], edi
je 0x41faba
mov eax, dword [0x4e2b64]
sub eax, 4
mov dword [0x4e2b64], eax
cmp eax, dword [0x4e2b68]
jb 0x41faba
mov eax, dword [eax]
cmp eax, edi
je 0x41fa9b
call eax
jmp 0x41fa9b
push 0x44e0c4
mov eax, 0x44e0bc
call fcn.0041f9ca
pop ecx
push 0x44e0d0
mov eax, 0x44e0c8
call fcn.0041f9ca
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41fafb
cmp dword [ebp + 0x10], edi
jne 0x41fb09
mov dword [0x4e22e4], esi
push dword [ebp + 8]
call fcn.0041f988
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41fb08
push 8
call fcn.004218a7
pop ecx
ret
call fcn.00420c1b
ret
Function at 0x422536
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 0x422564
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 0x42256b
cmp ebx, dword [eax + 4]
jae 0x42256b
xor eax, eax
jmp 0x42275b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42257c
xor eax, eax
inc eax
jmp 0x42275a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x422592
cmp ecx, edx
jae 0x4226d7
cmp dword [eax + 4], 0
je 0x42259b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x422583
cmp dword [ebp + 8], 0
je 0x4225bd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4226d7
cmp eax, esi
jae 0x4226d7
mov eax, dword [0x4e2448]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4225e2
cmp dword [esi*4 + 0x4e2450], edi
je 0x4226db
inc esi
cmp esi, eax
jl 0x4225d0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x422757
cmp dword [ebp - 8], 0x1000000
jne 0x422757
test byte [ebp - 0xc], 0xcc
je 0x422660
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x422757
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x422757
cmp word [eax + 0x18], 0x10b
jne 0x422757
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x422757
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x422660
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x422660
test byte [ecx + 0x27], 0x80
jne 0x4226d7
push 1
push 0x4e2490
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x422574
mov ecx, dword [0x4e2448]
test ecx, ecx
mov edx, ecx
jle 0x422694
lea eax, [ecx*4 + 0x4e244c]
cmp dword [eax], edi
je 0x422694
dec edx
sub eax, 4
test edx, edx
jg 0x422688
test edx, edx
jne 0x4226c5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4226a1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4226b9
lea eax, [edx*4 + 0x4e2450]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4226a7
cmp ecx, 0x10
jge 0x4226c5
inc ecx
mov dword [0x4e2448], ecx
push 0
push 0x4e2490
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x422574
xor eax, eax
jmp 0x42275a
test esi, esi
jle 0x422574
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4e2490
call ebx
test eax, eax
jne 0x422574
cmp dword [esi*4 + 0x4e2450], edi
je 0x422731
mov eax, dword [0x4e2448]
lea esi, [eax - 1]
test esi, esi
jl 0x42271f
cmp dword [esi*4 + 0x4e2450], edi
je 0x42271b
dec esi
jns 0x42270f
test esi, esi
jge 0x42272f
cmp eax, 0x10
jge 0x42272a
inc eax
mov dword [0x4e2448], eax
lea esi, [eax - 1]
jmp 0x422731
je 0x422749
xor ecx, ecx
test esi, esi
jl 0x422749
lea eax, [ecx*4 + 0x4e2450]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x422737
push 0
push 0x4e2490
call ebx
jmp 0x422574
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4250bd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x48ecf0]
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 0x4250ee
xor eax, eax
jmp 0x425277
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 + 0x4e2800]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x42512a
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00429424
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x425205
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x425243
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 0x42518e
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42517f
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 0x42515f
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 0x4251ce
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4251d7
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x425150
jmp 0x4251d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x425272
cmp dword [ebp - 0x6c], edi
je 0x425243
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x425238
call fcn.0041e359
mov dword [eax], 9
call fcn.0041e362
mov dword [eax], esi
jmp 0x42526d
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 0x42522d
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4251d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4251d9
push dword [ebp - 0x6c]
call fcn.0041e36b
pop ecx
jmp 0x42526d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42525b
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x42525b
xor eax, eax
jmp 0x425275
call fcn.0041e359
mov dword [eax], 0x1c
call fcn.0041e362
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x425275
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041ce8e
add ebp, 0x3a0
leave
ret