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

Disassembly:
push ebx
push esi
add esp, 0xfffff7c0
mov esi, eax
mov al, byte [0x413370]
test al, al
mov byte [esp], dl
je 0x401fb3
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x401fa7
mov edx, 0x4121dd
mov eax, esi
call fcn.0040c664
mov edx, 0x413370
mov eax, esi
call fcn.0040c664
lea eax, [esp + 4]
mov ecx, 0x3c
xor edx, edx
call fcn.0040c490
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x5c0
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x401fe1
lea edx, [esi + 1]
jmp 0x401fe3
mov edx, esi
mov dword [esp + 0x14], edx
xor eax, eax
jmp 0x402036
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x40200d
jmp 0x402006
xor edx, edx
mov dl, byte [esi + eax]
cmp edx, 0x22
jne 0x402006
mov byte [esi + eax], 0x20
jmp 0x40200d
inc eax
cmp byte [esi + eax], 0
jne 0x401ff6
xor edx, edx
mov dl, byte [esi + eax]
cmp edx, 0x20
je 0x402022
xor ecx, ecx
mov cl, byte [esi + eax + 1]
cmp ecx, 0x2f
jne 0x402035
cmp edx, 0x20
jne 0x40202b
mov byte [esi + eax], 0
lea eax, [eax + esi + 1]
mov dword [esp + 0x18], eax
jmp 0x40203d
inc eax
mov dl, byte [esi + eax]
test dl, dl
jne 0x401feb
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x14]
call fcn.0040c510
cmp eax, 4
jle 0x402070
mov edx, str..inf
add eax, dword [esp + 0x14]
add eax, 0xfffffffc
call fcn.0040c618
test eax, eax
jne 0x402070
mov dword [esp + 0x10], str.Install
xor edx, edx
mov eax, dword [esp + 0x14]
call fcn.004055b8
mov ebx, eax
test bl, bl
je 0x402096
lea edx, [esp + 0x40]
mov eax, dword [esp + 0x14]
call fcn.00405684
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], ecx
cmp byte [esp], 0
je 0x4020d7
test bl, bl
jne 0x4020d7
lea eax, [esp + 0x440]
mov edx, dword [esp + 0x14]
call fcn.0040c590
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040c664
lea eax, [esp + 0x440]
xor edx, edx
call fcn.004055b8
test al, al
je 0x402165
lea ecx, [esp + 4]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x40210b
and dword [esp + 8], 0xfffffbff
mov dword [esp + 0x14], esi
lea edx, [esp + 4]
push edx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402165
cmp byte [0x412041], 0
jne 0x40211e
cmp byte [esp], 0
je 0x402129
push 0xffffffffffffffff
push dword [esp + 0x40]
call sub.KERNEL32.DLL_WaitForSingleObject
push dword [esp + 0x3c]
call sub.KERNEL32.DLL_CloseHandle
cmp byte [0x412041], 0
je 0x40214d
cmp byte [esp], 0
jne 0x40214d
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402165
cmp byte [esp], 0
je 0x40215a
mov edx, 0xc8
jmp 0x40215f
mov edx, 0x3e8
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop esi
pop ebx
ret
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

Function at 0x402954
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4029ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4029cc
xor eax, eax
push ebp
push 0x4029c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402a08
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4029cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
jmp 0x41b3a8

Function at 0x404e58
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404e88
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x404e7e
jmp 0x4191ea
pop ebx
ret
jmp 0x41f04a
mov eax, 0x67
call fcn.0040267c
or eax, 0xffffffff
jmp 0x404e7c

Function at 0x40771c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407755
mov ecx, eax
dec ecx
jmp 0x41a837
mov eax, ebx
mov edx, esi
jmp 0x418423
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, reloc.uxtheme.dll_GetThemePartSize
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x40f58c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40f5cb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f5cb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f5cb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40f5cb
cmp dword [ecx + 0x74], 0xe
jbe 0x40f5cb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4125a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00418b80
mov eax, dword [0x4255e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004175e6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4125e3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41273f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00418ad0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x426a50]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004188fb
mov ecx, dword [esi*4 + 0x426a50]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x412738
cmp eax, dword [ecx + edi + 0x24]
jne 0x412738
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412738
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004188fb
add esp, 0x14
test edx, edx
jl 0x412738
jg 0x4126ae
test eax, eax
jb 0x412738
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412738
jl 0x4126c8
cmp dword [ebp - 0x1008], eax
ja 0x412738
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4126e6
test ebx, ebx
je 0x41271f
cmp ecx, edi
jae 0x41271f
mov al, byte [ecx]
cmp al, 0xd
jne 0x412700
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41270c
cmp byte [ecx + 1], 0xa
jne 0x41270c
inc ecx
jmp 0x41270c
movzx eax, al
movsx eax, byte [eax + 0x425d48]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4126e6
cmp edx, ebx
jne 0x4126e6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41273d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040ed03
leave
ret

Function at 0x412e70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412e9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412e9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x413232
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f758
push 0x41f750
push str.FlsAlloc
push 0x1f
call fcn.00413515
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413266
push dword [ebp + 8]
mov ecx, esi
call dword [section..10cfg]
call esi
jmp 0x41326c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4132b0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f768
push 0x41f760
push str.FlsGetValue
push 0x21
call fcn.00413515
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4132e7
push dword [ebp + 8]
mov ecx, esi
call dword [section..10cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4132ef
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f770
push 0x41f768
push str.FlsSetValue
push 0x22
call fcn.00413515
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413329
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..10cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x416d3a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x416dd7
push ebx
push esi
call fcn.00416dda
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00416c3e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x416d84
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416dd6
push edi
push eax
call fcn.004156cb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416da4
call fcn.0041477b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416dd5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00416c3e
add esp, 0x20
test eax, eax
jne 0x416dc3
push edi
call fcn.0041477b
jmp 0x416dcb
push ebx
call fcn.0041477b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4183fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x426a50]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41843c
cmp byte [ebx], 0xa
jne 0x41843c
or byte [edi + eax + 0x28], 4
jmp 0x418441
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x418540
mov dl, byte [eax]
cmp dl, 0x1a
je 0x418523
inc eax
cmp dl, 0xd
je 0x41846d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x418493
cmp eax, ecx
jae 0x4184a1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x418455
jmp 0x418540
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41851e
cmp dword [ebp - 0x10], 0
je 0x41851e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x426a50]
test byte [eax + edi + 0x28], 0x48
je 0x4184f8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4184e3
mov byte [esi], dl
jmp 0x4184f4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x426a50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418540
cmp byte [ebp - 1], 0xa
jne 0x418507
cmp esi, ebx
jne 0x418507
mov byte [esi], 0xa
jmp 0x41853f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041889d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418540
mov byte [esi], 0xd
jmp 0x41853f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x426a50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41853d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418540
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418549
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x426a50]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41858f
cmp word [ebx], dx
jne 0x41858f
or byte [eax + edi + 0x28], 4
jmp 0x418594
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4186f7
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4186d7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4185d5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41860b
cmp eax, edx
jae 0x418619
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4185b0
jmp 0x4186f7
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4186d2
cmp dword [ebp - 0x18], 0
je 0x4186d2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x426a50]
test byte [eax + edi + 0x28], 0x48
je 0x4186a8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41866c
mov word [esi], cx
jmp 0x4186a3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x426a50]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x426a50]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x426a50]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4186f7
pop eax
cmp word [ebp - 4], ax
jne 0x4186b8
cmp esi, ebx
jne 0x4186b8
mov word [esi], ax
jmp 0x4186f4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041889d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4186f7
push 0xd
pop eax
jmp 0x4186b3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x426a50]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4186f1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4186f7
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41cac8
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041cc5f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41cc37
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41cc37
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41cbec
jg 0x41cb24
test eax, eax
je 0x41cbe2
push 1
push 0x1000
call fcn.0041566e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41cb47
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41cbd9
push 0x8000
push ebx
call fcn.00411b9b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41cb70
jg 0x41cb6b
cmp ecx, 0x1000
jb 0x41cb70
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004193d5
add esp, 0x10
cmp eax, 0xffffffff
je 0x41cbb5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41cb6b
jl 0x41cb9c
test ecx, ecx
jne 0x41cb5d
push dword [ebp - 0xc]
push ebx
call fcn.00411b9b
push esi
call fcn.0041477b
add esp, 0xc
xor ebx, ebx
jmp 0x41cc45
cmp byte [edi + 0x24], 0
je 0x41cbcc
cmp dword [edi + 0x20], 5
jne 0x41cbcc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41cbd7
mov ebx, dword [edi + 0x18]
jmp 0x41cbd9
xor ebx, ebx
push esi
call fcn.0041477b
pop ecx
jmp 0x41cc45
test ecx, ecx
jg 0x41cbae
jl 0x41cbec
test eax, eax
jae 0x41cbae
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041889d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41cc0c
cmp byte [edi + 0x1c], 0
je 0x41cbae
jmp 0x41cc3d
push ebx
call fcn.0041719b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41cbae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41cc45
cmp byte [edi + 0x1c], 0
je 0x41cc42
mov ebx, dword [edi + 0x18]
jmp 0x41cc45
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041889d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf167c0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0xf169a4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7f6000]
push edi
or ebp, 0xffffffff
jmp 0xf167ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xf167f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf167e0
mov eax, 1
add ebx, ebx
jne 0xf16803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xf16814
jne 0xf16833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf16833
dec eax
add ebx, ebx
jne 0xf16820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xf167f8
add ebx, ebx
jne 0xf1682f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xf16885
xor ecx, ecx
sub eax, 3
jb 0xf1684b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xf168ba
sar eax, 1
mov ebp, eax
jmp 0xf16856
add ebx, ebx
jne 0xf16856
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf16824
inc ecx
add ebx, ebx
jne 0xf16864
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf16824
add ebx, ebx
jne 0xf16871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xf16866
jne 0xf16882
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf16866
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xf168a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xf16896
jmp 0xf167e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xf168a4
add edi, ecx
jmp 0xf167e6
pop esi
mov edi, esi
mov ecx, 0x8352
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xf168c2
cmp byte [edi], 0x26
jne 0xf168c2
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 0xf168c7
lea edi, [esi + 0xafd000]
mov eax, dword [edi]
or eax, eax
je 0xf16936
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb16c00]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb16d30]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xf168f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb16d34]
or eax, eax
je 0xf16930
mov dword [ebx], eax
add ebx, 4
jmp 0xf16911
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xf16967
cmp al, 0xef
ja 0xf1695a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xf1693c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xf16949
mov ebp, dword [esi + 0xb16d38]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0xf1699b
sub esp, 0xffffff80
jmp 0x5dec1c