joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494244
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d74
xor eax, eax
push ebp
push 0x49434d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.00495ab0
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x494313
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409c20
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00494afc
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409b04
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00494b70
jmp 0x494325
xor edx, edx
mov eax, ebx
call fcn.00494afc
xor edx, edx
mov eax, ebx
call fcn.00494b70
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494354
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048e8
ret

Function at 0x495d0c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d74
xor eax, eax
push ebp
push 0x495d6a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.00495de8
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x495d52
lea eax, [ebp - 4]
call fcn.00495de8
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x495d54
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495d71
lea eax, [ebp - 4]
call fcn.004048c4
ret

Function at 0x495d78
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d74
xor eax, eax
push ebp
push 0x495ddc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.00495de8
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.00409fe8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495de3
lea eax, [ebp - 4]
call fcn.004048c4
ret
Function at 0x49b1ec
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.0049b420
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.0049b420
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x49b260
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x49b285
inc esi
mov eax, edi
call fcn.0049b244
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.0049b1ec
inc ebx
dec esi
jne 0x49b26f
pop edi
pop esi
pop ebx
ret

Function at 0x49b314
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404d74
xor eax, eax
push ebp
push 0x49b389
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0049b28c
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.0049b244
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.0049b1ec
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x49b354
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b390
lea eax, [ebp - 4]
call fcn.004048c4
ret
Function at 0x49bf4c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49c130
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x49c0ec
mov eax, dword [ebp - 4]
call fcn.0049d8c8
cmp ebx, eax
jge 0x49c0ec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.00492854
mov edx, dword [0x493bdc]
call fcn.00403ca0
mov esi, eax
mov eax, esi
call fcn.00494a90
test al, al
je 0x49c0e2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x49c0d6
xor eax, eax
push ebp
push 0x49c0cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049c504
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041bd58
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00404f10
mov eax, dword [ebp - 8]
call fcn.00404ddc
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov al, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049c2c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c11a
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x49c0ce
mov eax, dword [ebp - 4]
call fcn.0049c588
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00409fe8
jmp 0x49c11a
mov eax, dword [ebp - 8]
call fcn.004048c4
jmp 0x49c11a
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040954c
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x416c14]
call fcn.0040cfa4
call fcn.0040427c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c137
lea eax, [ebp - 0x54]
call fcn.004048c4
ret
Function at 0x4a4258
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4a4286
mov eax, ebx
call fcn.004a4d0c
cmp dword [ebx + 0x40], 0
je 0x4a427f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4a42f7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4a42e9
cmp dword [ebx + 8], 0
je 0x4a42a8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4a42ba
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4a42e9
cmp dword [ebx + 8], 0
je 0x4a429b
cmp eax, 3
je 0x4a42cd
dec eax
jne 0x4a429b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4a429b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4a429b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4a4315
cmp dword [ebx + 0x14], 0xcc
je 0x4a4315
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004a4320
pop ebx
ret
Function at 0x4bd3d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4bd441
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x50dd28]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4bd42b
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004bd3c0
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4bd1c8]
call fcn.004bd468
mov dword [0x50dd8c], eax
mov eax, dword [ebp - 4]
call fcn.004bd370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd448
lea eax, [ebp - 8]
call fcn.004063f4
ret
Function at 0x4c0790
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c084a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404fd0
mov eax, dword [0x50e784]
cmp dword [eax], 2
jne 0x4c07ff
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405248
mov eax, dword [ebx]
call fcn.0040516c
push eax
mov eax, dword [ebx]
call fcn.0040515c
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.0040516c
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405248
jmp 0x4c0831
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409fe8
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.0040514c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0851
lea eax, [ebp - 0x3f0]
call fcn.004048c4
ret
Function at 0x4e7780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [ebp + 8]
add ebx, 0xffffffc4
mov esi, dword [ebp + 8]
add esi, 0xffffffbc
xor eax, eax
push ebp
push 0x4e7933
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428edc
mov eax, dword [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x70]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x48]
call fcn.00458e84
call fcn.004becac
mov edx, dword [ebp + 8]
mov dword [edx - 0x4c], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x4c], 0
je 0x4e7804
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
mov eax, dword [eax + 0x68]
call fcn.0042397c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428edc
mov eax, dword [eax + 0xc]
pop edx
call fcn.00423984
mov eax, dword [ebp + 8]
mov dword [eax - 0x50], ebx
lea edx, [ebp - 4]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423864
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x1c]
call fcn.00409e94
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x50]
push eax
push 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428edc
call fcn.00424a4c
push eax
call sub.gdi32.dll_GetObjectA
mov dword [ebx + 8], edi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004238d8
mov dword [ebx], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423914
test al, 8
setne al
mov byte [ebx + 0x16], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423914
test al, 2
setne al
mov byte [ebx + 0x14], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423914
test al, 4
setne al
mov byte [ebx + 0x15], al
mov dword [ebx + 0x10], 0x190
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.0042397c
mov byte [ebx + 0x17], al
xor eax, eax
mov dword [ebx + 4], eax
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x19], 0
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x1b], 0
mov byte [ebx + 0x1a], 0
push ebx
call sub.gdi32.dll_CreateFontIndirectA
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428edc
mov eax, dword [eax + 0xc]
pop edx
call fcn.00423810
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428edc
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 0x54], 0x13
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x90]
mov edx, dword [ecx + edx*8 + 0x10]
call fcn.00423654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e793a
lea eax, [ebp - 4]
call fcn.004048c4
ret
Function at 0x4f6a5c
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.004096e4
test al, al
je 0x4f6ae3
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.0040333c
or esi, 0x100
test esi, esi
jns 0x4f6a97
call fcn.00403a30
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.00404d84
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4f6ae3
mov dl, 1
mov eax, dword [0x4227ec]
call fcn.0042a588
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.0042a958
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x4f6ae3
mov eax, esp
call fcn.0040ec3c
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x50048c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404d74
xor eax, eax
push ebp
push 0x50055d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004048c4
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00404b84
mov esi, eax
sar esi, 1
jns 0x5004d1
adc esi, 0
test esi, esi
jle 0x50053a
mov dword [ebp - 8], 1
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
add edx, edx
dec edx
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.00404de4
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x500574
call fcn.00404bd0
mov eax, dword [ebp - 0x10]
call fcn.00409234
mov edx, eax
mov al, byte [ebx + 0x50dec8]
xor dl, al
lea eax, [ebp - 0xc]
call fcn.00404aac
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00404b8c
lea eax, [ebx + 1]
mov ecx, 0xa
cdq
idiv ecx
mov ebx, edx
inc dword [ebp - 8]
dec esi
jne 0x5004dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500564
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004048e8
lea eax, [ebp - 4]
call fcn.004048c4
ret

Function at 0x500b30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x500baf
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x41
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404aac
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x500bc4
call fcn.00404bd0
mov eax, dword [ebp - 4]
call fcn.00404d84
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
je 0x500b8e
cmp eax, 1
je 0x500b8e
cmp eax, 3
jne 0x500b8e
mov eax, dword [esi]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x5b
jne 0x500b4e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500bb6
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048e8
ret
Function at 0x501678
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d74
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x5017f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004814cc
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004814ec
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x5017be
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404b34
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409c20
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408c40
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408c40
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404cd0
je 0x501798
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404b34
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408c40
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408c40
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404cd0
jne 0x5017af
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.0048150c
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5016f9
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5017f9
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004048e8
lea eax, [ebp - 4]
call fcn.004048c4
ret
Function at 0x10016850
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10016a14
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x1001687a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10016881
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10016870
mov eax, 1
add ebx, ebx
jne 0x10016893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10016888
jne 0x100168a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10016888
xor ecx, ecx
sub eax, 3
jb 0x100168b8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1001692a
mov ebp, eax
add ebx, ebx
jne 0x100168c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100168d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100168f4
inc ecx
add ebx, ebx
jne 0x100168e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100168d5
jne 0x100168f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100168d5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10016914
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10016905
jmp 0x10016876
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10016914
add edi, ecx
jmp 0x10016876
pop esi
mov edi, esi
mov ecx, 0x24
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10016932
cmp byte [edi], 1
jne 0x10016932
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 0x10016937
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x100169a6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18a1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18a58]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10016964
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18a5c]
or eax, eax
je 0x100169a0
mov dword [ebx], eax
add ebx, 4
jmp 0x10016981
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 0x100169d7
cmp al, 0xef
ja 0x100169ca
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100169ac
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100169b9
mov ebp, dword [esi + 0x18a60]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x10016a0b
sub esp, 0xffffff80
jmp 0x10001385
Function at 0x40ab60
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp sym.___write_memory.part.0