joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032b9
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xe8
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp + 0x60], edi
call fcn.01002ab2
test eax, eax
lea eax, [ebp + 0x70]
push eax
push 0xf003f
push edi
je 0x1003384
push 0x1001514
push dword [ebp + 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003464
push 0x64
pop esi
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp + 0x70]
mov dword [ebp + 0x7c], edi
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x68], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, 0x103
jmp 0x100337b
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x10]
push 0x10014b0
push eax
call fcn.0100434d
mov eax, dword [ebp + 0x64]
shr eax, 0x10
add esp, 0xc
test ah, 0xe0
je 0x1003354
cmp word [ebp + 0x64], 0x412
je 0x1003454
inc dword [ebp + 0x7c]
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x7c]
mov dword [ebp + 0x6c], esi
push dword [ebp + 0x70]
mov dword [ebp + 0x68], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x1003328
jmp 0x100345b
push 0x100152c
push dword [ebp + 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003464
push 0x64
pop esi
lea eax, [ebp + 0x54]
push eax
push edi
push edi
push edi
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp + 0x70]
mov dword [ebp + 0x7c], edi
mov dword [ebp + 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, 0x103
jmp 0x100344a
lea eax, [ebp + 0x5c]
push eax
push 0xf003f
push edi
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x10014f6
push dword [ebp + 0x5c]
mov dword [ebp + 0x68], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x10]
push 0x10014b0
push eax
call fcn.0100434d
mov eax, dword [ebp + 0x64]
shr eax, 0x10
add esp, 0xc
test ah, 0xe0
je 0x1003429
cmp word [ebp + 0x64], 0x412
je 0x1003454
inc dword [ebp + 0x7c]
lea eax, [ebp + 0x54]
push eax
push edi
push edi
push edi
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x7c]
mov dword [ebp + 0x6c], esi
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x10033c6
jmp 0x100345b
mov dword [ebp + 0x60], 1
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x60]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x100394c
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xf4
push ebx
push esi
push edi
push dword [ebp + 0x7c]
lea eax, [ebp + 0x44]
push 0x10014b0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call fcn.01002ab2
xor edi, edi
test eax, eax
lea eax, [ebp + 0x7c]
push eax
push 0xf003f
push edi
je 0x1003a2a
push 0x1001514
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003af9
push 0x64
pop esi
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x84]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp + 0x7c]
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x64], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, 0x103
jmp 0x1003a0f
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1003a18
inc dword [ebp + 0x6c]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x84]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x68], esi
push dword [ebp + 0x7c]
mov dword [ebp + 0x64], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x10039d0
jmp 0x1003af0
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x1003af0
push 0x100152c
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003af9
push 0x64
pop esi
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push edi
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp + 0x7c]
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x68], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, 0x103
jmp 0x1003add
lea eax, [ebp + 0x60]
push eax
push 0xf003f
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x84]
push eax
push edi
push edi
push 0x10014f6
push dword [ebp + 0x60]
mov dword [ebp + 0x64], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1003ae3
inc dword [ebp + 0x6c]
lea eax, [ebp + 0x58]
push eax
push edi
push edi
push edi
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x68], esi
push dword [ebp + 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x1003a69
jmp 0x1003af0
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp + 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x78]
call fcn.01003522
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x1004044
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x1001588
call fcn.01004f8c
mov edi, 0x94
mov eax, edi
call fcn.01004fe0
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 [0x100bcb8], ecx
mov eax, dword [esi + 4]
mov dword [0x100bcc4], eax
mov edx, dword [esi + 8]
mov dword [0x100bcc8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100bcbc], esi
cmp ecx, 2
je 0x10040a4
or esi, 0x8000
mov dword [0x100bcbc], esi
shl eax, 8
add eax, edx
mov dword [0x100bcc0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10040df
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10040df
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10040f7
cmp eax, 0x20b
je 0x10040e4
mov dword [ebp - 0x1c], esi
jmp 0x100410b
cmp dword [ecx + 0x84], 0xe
jbe 0x10040df
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x1004105
cmp dword [ecx + 0x74], 0xe
jbe 0x10040df
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.01004f3b
pop ecx
test eax, eax
jne 0x1004137
cmp dword [0x100bc9c], 1
jne 0x1004124
call fcn.0100474f
push 0x1c
call fcn.01004586
push 0xff
call fcn.01004407
pop ecx
pop ecx
mov dword [ebp - 4], esi
call fcn.01004d76
test eax, eax
jge 0x100414b
push 0x1b
call fcn.0100401f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100d250], eax
call fcn.01004c50
mov dword [0x100bc94], eax
call fcn.01004bae
test eax, eax
jge 0x1004171
push 8
call fcn.0100401f
pop ecx
call fcn.01004962
test eax, eax
jge 0x1004182
push 9
call fcn.0100401f
pop ecx
call fcn.01004437
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x1004195
push eax
call fcn.0100401f
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.010048f9
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x10041b6
movzx eax, word [ebp - 0x34]
jmp 0x10041b9
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.01002e32
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x10041d7
push edi
call fcn.01004546
call fcn.01004568
jmp 0x1004209
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.01004fc5
ret
Function at 0x1004586
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x100b0a0]
je 0x10045a6
inc eax
cmp eax, 0x12
jb 0x1004597
shl eax, 3
cmp edx, dword [eax + 0x100b0a0]
mov dword [ebp + 8], eax
jne 0x1004744
mov ecx, dword [0x100bc9c]
cmp ecx, 1
je 0x1004719
test ecx, ecx
jne 0x10045d8
cmp dword [0x100b084], 1
je 0x1004719
cmp edx, 0xfc
je 0x1004744
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004613
push 5
pop ecx
mov esi, 0x10018fc
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004622
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100465a
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100463a
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10018f8
push ebx
call fcn.010065f0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100465f
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100b0a4]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004676
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01004fe0
mov edx, esp
push 6
pop ecx
mov esi, 0x10018dc
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10046a2
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10046ae
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10046c7
mov eax, dword [ebp + 8]
mov esi, 0x10018d8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100b0a4]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10046e2
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10046ee
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10018b0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.010064f4
add esp, 0xc
jmp 0x1004744
mov ecx, dword [eax + 0x100b0a4]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004724
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10064f4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100be64], ebx
push esi
push edi
jne 0x1006574
push 0x1001dd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10065af
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001dc4
push edi
call esi
test eax, eax
mov dword [0x100be64], eax
je 0x10065af
push 0x1001db4
push edi
call esi
push 0x1001da0
push edi
mov dword [0x100be68], eax
call esi
cmp dword [0x100bcb8], 2
mov dword [0x100be6c], eax
jne 0x1006574
push 0x1001d84
push edi
call esi
test eax, eax
mov dword [0x100be74], eax
je 0x1006574
push 0x1001d6c
push edi
call esi
mov dword [0x100be70], eax
mov eax, dword [0x100be70]
test eax, eax
je 0x10065b9
call eax
test eax, eax
je 0x10065a0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100be74]
test eax, eax
je 0x10065a0
test byte [ebp - 8], 1
jne 0x10065b9
cmp dword [0x100bcc4], 4
jb 0x10065b3
or byte [ebp + 0x12], 0x20
jmp 0x10065d8
xor eax, eax
jmp 0x10065e8
or byte [ebp + 0x12], 4
jmp 0x10065d8
mov eax, dword [0x100be68]
test eax, eax
je 0x10065d8
call eax
mov ebx, eax
test ebx, ebx
je 0x10065d8
mov eax, dword [0x100be6c]
test eax, eax
je 0x10065d8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100be64]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10088fc
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.01004fe0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1008991
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 [0x100bcb8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x1008991
cmp eax, 1
je 0x10089a9
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 0x1008991
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1008966
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x100898d
xor eax, eax
inc eax
jmp 0x10089c5
cmp esi, ebx
jae 0x1008995
xor eax, eax
jmp 0x10089c5
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100bcb8]
jmp 0x10089ab
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 0x10094dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x100d128]
push edi
jae 0x10096a4
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x100d140]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x10096a4
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x1009583
test dl, 2
jne 0x1009583
test dl, 0x48
je 0x100954d
mov al, byte [eax + 5]
cmp al, 0xa
je 0x100954d
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1009596
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x100957e
mov dword [0x100bcb0], ecx
jmp 0x10096ab
cmp eax, 0x6d
jne 0x100958a
xor eax, eax
jmp 0x10096b8
push eax
call fcn.0100978d
pop ecx
jmp 0x10096b5
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x100969f
test edx, edx
je 0x10095b9
cmp byte [edi], 0xa
jne 0x10095b9
or al, 4
jmp 0x10095bb
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x1009699
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x1009689
cmp al, 0xd
je 0x10095ef
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x100967b
dec ecx
cmp dword [ebp - 8], ecx
jae 0x1009609
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x1009604
add dword [ebp - 8], 2
jmp 0x100965d
mov dword [ebp - 8], eax
jmp 0x1009677
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1009631
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009677
cmp dword [ebp - 0x10], 0
je 0x1009677
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x1009652
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x100965d
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x100967a
cmp edi, dword [ebp + 0xc]
jne 0x1009662
cmp byte [ebp - 1], 0xa
jne 0x1009662
mov byte [edi], 0xa
jmp 0x100967a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01009701
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x100967b
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x10095d3
jmp 0x1009699
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x1009699
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x10096b8
and dword [0x100bcb0], 0
mov dword [0x100bcac], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1009b18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x100d128]
push ebx
push esi
push edi
jae 0x1009c9d
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x100d140]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x14], ebx
je 0x1009c9d
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x1009b6c
xor eax, eax
jmp 0x1009cb1
test al, 0x20
je 0x1009b7d
push 2
push edi
push edi
push ecx
call fcn.01009deb
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1009c39
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x1009c71
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x1009bd3
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1009bc4
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x1009ba9
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1009c13
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x1009c1c
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x1009b9d
jmp 0x1009c1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x1009c98
cmp dword [ebp + 8], edi
je 0x1009c71
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x1009c66
mov dword [0x100bcb0], eax
jmp 0x1009ca4
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1009c5b
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x1009c1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x1009c1e
push dword [ebp + 8]
call fcn.0100978d
pop ecx
jmp 0x1009cae
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1009c86
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x1009b65
mov dword [0x100bcac], 0x1c
mov dword [0x100bcb0], edi
jmp 0x1009cae
sub eax, dword [ebp - 0x10]
jmp 0x1009cb1
and dword [0x100bcb0], 0
mov dword [0x100bcac], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4aca30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x56000]
push edi
or ebp, 0xffffffff
jmp 0x4aca52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4aca59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aca48
mov eax, 1
add ebx, ebx
jne 0x4aca6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4aca7c
jne 0x4aca8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aca8c
dec eax
add ebx, ebx
jne 0x4aca88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4aca60
xor ecx, ecx
sub eax, 3
jb 0x4acaa4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4acb16
sar eax, 1
mov ebp, eax
jmp 0x4acaaf
add ebx, ebx
jne 0x4acaaf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4acabc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4acae0
inc ecx
add ebx, ebx
jne 0x4acacc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4acac1
jne 0x4acadd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4acac1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4acb00
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4acaf1
jmp 0x4aca4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4acb00
add edi, ecx
jmp 0x4aca4e
pop esi
mov edi, esi
mov ecx, 0x102f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4acb1e
cmp byte [edi], 0xa
jne 0x4acb1e
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 0x4acb23
lea edi, [esi + 0xaa000]
mov eax, dword [edi]
or eax, eax
je 0x4acb92
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xacf78]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xad018]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4acb50
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xad01c]
or eax, eax
je 0x4acb8c
mov dword [ebx], eax
add ebx, 4
jmp 0x4acb6d
call dword [esi + 0xad020]
popal
jmp 0x41ddd0
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x223b7acb
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x46847aad
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219