joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405228
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x413902
call fcn.0040b0c0
mov eax, 0x1038
call fcn.0040b900
push 0x1000
lea eax, [ebp - 0x1044]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x1044]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401a09
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004043ec
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x40527e
mov eax, dword [eax + 4]
jmp 0x405281
add eax, 4
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
lea ecx, [ebp - 0x44]
call fcn.004012d4
push 1
lea ecx, [ebp - 0x28]
call fcn.004012d4
push 0
push 0x403566
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x407480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x413be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x419168]
xor eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x28], eax
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0x14]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x38], ebx
jbe 0x40750a
push ebp
lea ebp, [edi + 4]
cmp dword [edi + 0x18], 0x10
jb 0x4074de
mov eax, dword [ebp]
jmp 0x4074e0
mov eax, ebp
movsx eax, byte [eax + esi]
push eax
call fcn.0040bfad
mov byte [esp + 0x4c], al
mov ecx, dword [esp + 0x4c]
add esp, 4
push ecx
push 1
lea ecx, [esp + 0x1c]
call fcn.004039db
mov eax, dword [edi + 0x14]
inc esi
cmp esi, eax
jb 0x4074d3
pop ebp
mov esi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.0040177b
cmp dword [esp + 0x28], 0x10
jb 0x40753e
mov eax, dword [esp + 0x14]
push eax
call fcn.0040ac2d
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
xor ecx, dword [esp + 0x38]
mov eax, esi
pop esi
pop ebx
add esp, 0x30
jmp fcn.0040bdea
Function at 0x40b86c
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x40b888
call fcn.0040e704
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x40b8fa
push esi
push 0x88
push 1
call fcn.0040f3af
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40b8e0
push esi
call fcn.0040ccdd
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x40b7cc
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x40b8d8
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40b8f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0040b3f8
test ebx, ebx
pop ecx
je 0x40b8f2
push ebx
call fcn.0040e716
pop ecx
or eax, 0xffffffff
jmp 0x40b8f9
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x40ba78
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x415888
call fcn.0040e6b8
mov edi, 0x94
mov eax, edi
call fcn.0040b900
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 [0x419f84], ecx
mov eax, dword [esi + 4]
mov dword [0x419f90], eax
mov edx, dword [esi + 8]
mov dword [0x419f94], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x419f88], esi
cmp ecx, 2
je 0x40bad8
or esi, 0x8000
mov dword [0x419f88], esi
shl eax, 8
add eax, edx
mov dword [0x419f8c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40bb13
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bb13
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40bb2b
cmp eax, 0x20b
je 0x40bb18
mov dword [ebp - 0x1c], esi
jmp 0x40bb3f
cmp dword [ecx + 0x84], 0xe
jbe 0x40bb13
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40bb39
cmp dword [ecx + 0x74], 0xe
jbe 0x40bb13
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040db41
pop ecx
test eax, eax
jne 0x40bb53
push 0x1c
call fcn.0040ba54
pop ecx
call fcn.0040cecc
test eax, eax
jne 0x40bb64
push 0x10
call fcn.0040ba54
pop ecx
call fcn.0040fcee
mov dword [ebp - 4], esi
call fcn.0040faf0
test eax, eax
jge 0x40bb7d
push 0x1b
call fcn.0040ba2f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41b688], eax
call fcn.0040f9ce
mov dword [0x419e10], eax
call fcn.0040f92c
test eax, eax
jge 0x40bba3
push 8
call fcn.0040ba2f
pop ecx
call fcn.0040f6f9
test eax, eax
jge 0x40bbb4
push 9
call fcn.0040ba2f
pop ecx
call fcn.0040f0d3
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40bbc7
push eax
call fcn.0040ba2f
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040f690
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40bbe8
movzx eax, word [ebp - 0x34]
jmp 0x40bbeb
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004055ad
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40bc09
push edi
call fcn.0040f20b
call fcn.0040f22d
jmp 0x40bc3b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040e6f3
ret

Function at 0x40e8ee
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e90e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e716
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40e931
test byte [esp + 8], 2
je 0x40e931
call fcn.0040e704
mov dword [eax], 0xd
call fcn.0040e70d
mov dword [eax], 5
jmp 0x40e90a
xor eax, eax
ret
Function at 0x410095
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 0x41025b
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x41a540]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41025b
test cl, 0x48
je 0x4100fb
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4100fb
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 0x41014d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x410135
call fcn.0040e704
mov dword [eax], 9
call fcn.0040e70d
mov dword [eax], esi
jmp 0x410145
cmp eax, 0x6d
je 0x41025b
push eax
call fcn.0040e716
pop ecx
or eax, 0xffffffff
jmp 0x41025d
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x410256
test edx, edx
je 0x410170
cmp byte [ebx], 0xa
jne 0x410170
or al, 4
jmp 0x410172
and al, 0xfb
mov byte [ecx], al
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 0x410250
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x410240
cmp al, 0xd
je 0x4101a6
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x410232
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4101c0
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4101bb
add dword [ebp + 0x10], 2
jmp 0x410214
mov dword [ebp + 0x10], eax
jmp 0x41022e
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 0x4101e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41022e
cmp dword [ebp - 0xc], 0
je 0x41022e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x410209
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x410214
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x410231
cmp ebx, dword [ebp + 0xc]
jne 0x410219
cmp byte [ebp - 1], 0xa
jne 0x410219
mov byte [ebx], 0xa
jmp 0x410231
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411119
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x410232
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41018a
jmp 0x410250
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x410250
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41025d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4104ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x419168]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4104d6
xor eax, eax
jmp 0x410644
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x41a540]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x410509
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00412500
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4105db
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x410616
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x410564
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x410555
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x410538
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4105a4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4105ad
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x410529
jmp 0x4105af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x41063f
cmp dword [ebp - 8], edi
je 0x410616
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x410608
call fcn.0040e704
mov dword [eax], 9
call fcn.0040e70d
mov dword [eax], esi
jmp 0x410611
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4105fd
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4105af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4105af
push dword [ebp - 8]
call fcn.0040e716
pop ecx
or eax, 0xffffffff
jmp 0x410642
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41062b
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x41062b
xor eax, eax
jmp 0x410642
call fcn.0040e704
mov dword [eax], 0x1c
call fcn.0040e70d
mov dword [eax], edi
jmp 0x410611
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0040bdea
leave
ret
Function at 0x411d47
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41a1e0], ebx
push esi
push edi
jne 0x411dc7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x411e02
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4166cc
push edi
call esi
test eax, eax
mov dword [0x41a1e0], eax
je 0x411e02
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41a1e4], eax
call esi
cmp dword [0x419f84], 2
mov dword [0x41a1e8], eax
jne 0x411dc7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41a1f0], eax
je 0x411dc7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41a1ec], eax
mov eax, dword [0x41a1ec]
test eax, eax
je 0x411e0c
call eax
test eax, eax
je 0x411df3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41a1f0]
test eax, eax
je 0x411df3
test byte [ebp - 8], 1
jne 0x411e0c
cmp dword [0x419f90], 4
jb 0x411e06
or byte [ebp + 0x12], 0x20
jmp 0x411e2b
xor eax, eax
jmp 0x411e3b
or byte [ebp + 0x12], 4
jmp 0x411e2b
mov eax, dword [0x41a1e4]
test eax, eax
je 0x411e2b
call eax
mov ebx, eax
test ebx, ebx
je 0x411e2b
mov eax, dword [0x41a1e8]
test eax, eax
je 0x411e2b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41a1e0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41279b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040b900
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412830
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x419f84]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x412830
cmp eax, 1
je 0x412848
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412830
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x412805
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41282c
xor eax, eax
inc eax
jmp 0x412864
cmp esi, ebx
jae 0x412834
xor eax, eax
jmp 0x412864
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x419f84]
jmp 0x41284a
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412ef8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x412f63
push 0x3d
push dword [ebp + 8]
call fcn.004132d2
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x412f63
cmp dword [ebp + 8], esi
je 0x412f63
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x419fa4]
cmp eax, dword [0x419fa8]
jne 0x412f49
mov edi, eax
call fcn.00412e97
mov dword [0x419fa4], eax
cmp eax, ebx
jne 0x412fa2
cmp dword [ebp + 0xc], ebx
je 0x412f6b
cmp dword [0x419fac], ebx
je 0x412f6b
call fcn.0041152b
test eax, eax
je 0x412fa2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4130a6
push 4
call fcn.0040c35f
cmp eax, ebx
pop ecx
mov dword [0x419fa4], eax
je 0x412f63
mov dword [eax], ebx
cmp dword [0x419fac], ebx
jne 0x412fa2
push 4
call fcn.0040c35f
cmp eax, ebx
pop ecx
mov dword [0x419fac], eax
je 0x412f63
mov dword [eax], ebx
mov ebx, dword [0x419fa4]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00412e4a
mov edi, eax
test edi, edi
pop ecx
jl 0x412ffb
cmp dword [ebx], 0
je 0x412ffb
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040b3f8
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x412fe3
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x413031
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x412fda
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0040c097
test eax, eax
pop ecx
pop ecx
je 0x413031
jmp 0x41302c
cmp dword [ebp - 4], 0
jne 0x41309f
test edi, edi
jge 0x41300b
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0040c097
test eax, eax
pop ecx
pop ecx
je 0x412f63
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x419fa4], eax
cmp dword [ebp + 0xc], 0
je 0x413088
push dword [ebp + 8]
call fcn.0040a520
inc eax
inc eax
push eax
call fcn.0040c35f
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x413088
push dword [ebp + 8]
push esi
call fcn.0040cf90
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x413081
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0040b3f8
pop ecx
cmp dword [ebp - 4], 0
je 0x413097
push dword [ebp + 8]
call fcn.0040b3f8
pop ecx
mov eax, dword [ebp - 8]
jmp 0x412f66
push esi
call fcn.0040b3f8
pop ecx
xor eax, eax
jmp 0x412f66
Function at 0x4130ad
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040b900
mov eax, dword [0x419168]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00411119
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4131d7
push 2
push esi
push dword [ebp + 8]
call fcn.00411119
add esp, 0xc
cmp eax, ebx
je 0x4131d7
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41317a
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.0040b310
push 0x8000
push dword [ebp + 8]
call fcn.0041334d
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x413133
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004104ad
add esp, 0xc
cmp eax, 0xffffffff
je 0x413153
sub edi, eax
test edi, edi
jg 0x41312b
jmp 0x41316b
call fcn.0040e70d
cmp dword [eax], 5
jne 0x413168
call fcn.0040e704
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0041334d
pop ecx
pop ecx
jmp 0x4131c2
jge 0x4131c2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411119
push dword [ebp + 8]
call fcn.00411691
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 0x4131c2
call fcn.0040e704
mov dword [eax], 0xd
call fcn.0040e70d
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00411119
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4131d9
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0040bdea
leave
ret
Function at 0x10008870
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100089f8
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x1000889a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100088a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10008890
mov eax, 1
add ebx, ebx
jne 0x100088b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100088a8
jne 0x100088c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100088a8
xor ecx, ecx
sub eax, 3
jb 0x100088d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1000894a
mov ebp, eax
add ebx, ebx
jne 0x100088e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100088f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10008914
inc ecx
add ebx, ebx
jne 0x10008900
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100088f5
jne 0x10008911
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100088f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10008934
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10008925
jmp 0x10008896
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10008934
add edi, ecx
jmp 0x10008896
pop esi
mov edi, esi
mov ecx, 0x19
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10008952
cmp byte [edi], 0
jne 0x10008952
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 eax, ebx
loop 0x10008957
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x100089c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10008984
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8054]
or eax, eax
je 0x100089c0
mov dword [ebx], eax
add ebx, 4
jmp 0x100089a1
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 0x100089f7
cmp al, 0xef
ja 0x100089ea
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100089cc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100089d9
popal
jmp 0x100018ed