joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100710d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1014c040]
xor eax, ebp
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x1014c900]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1007111e
mov eax, dword [ebp - 0x10]
sub eax, 5
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 8]
push edx
push 0x40
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10071140
mov eax, 0xa
jmp 0x1007122b
cmp dword [ebp + 0xc], 0
je 0x1007118c
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 0x10]
add ecx, 5
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 0x14]
and al, 1
movzx ecx, al
test ecx, ecx
je 0x1007118a
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], 0xeb
mov edx, dword [ebp - 0x1c]
mov byte [edx + 1], 0xf9
jmp 0x100711cc
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x100711b9
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax]
mov dword [ecx], edx
mov dx, word [eax + 4]
mov word [ecx + 4], dx
mov al, byte [eax + 6]
mov byte [ecx + 6], al
jmp 0x100711cc
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov dword [edx], eax
mov cl, byte [ecx + 4]
mov byte [edx + 4], cl
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 1
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 0xfd
or cl, dl
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x14], cl
mov al, byte [ebp + 0xc]
and al, 1
shl al, 2
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 0x14]
and dl, 0xfb
or dl, al
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x14], dl
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012d179
mov esp, ebp
pop ebp
ret
Function at 0x10071720
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x10071769
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x10071769
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x10071769
xor eax, eax
jmp 0x100717aa
mov dword [ebp - 4], 1
jmp 0x1007177b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100717a5
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x100717a3
xor eax, eax
jmp 0x100717aa
jmp 0x10071772
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10072cd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x1014c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x10072d04
xor al, al
jmp 0x10072e67
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc]
add edx, 0x14
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
jmp 0x10072d22
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x2c]
je 0x10072e23
mov edx, dword [ebp - 0x1c]
sub edx, 8
mov dword [ebp - 0x24], edx
jne 0x10072d3b
jmp 0x10072d1a
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x48], ecx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x34], 0
je 0x10072d6c
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
jmp 0x10072d73
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10072d93
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10072d9f
mov byte [ebp - 0xe], 0
mov al, byte [ebp - 0xe]
mov byte [ebp - 0xd], al
jmp 0x10072dda
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x20], edx
je 0x10072db8
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x4550
je 0x10072dc4
mov byte [ebp - 0xf], 0
mov cl, byte [ebp - 0xf]
mov byte [ebp - 0xd], cl
jmp 0x10072dda
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov byte [ebp - 0x10], 1
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0xd], cl
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0x11], dl
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x10072ded
jmp 0x10072d1a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x68]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10080f60
nop
jmp 0x10072d1a
mov edx, dword [ebp + 8]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [eax]
cmp edx, dword [ecx + 4]
jne 0x10072e3f
mov dword [ebp - 0x40], 1
jmp 0x10072e46
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov byte [ebp - 0x12], al
movzx ecx, byte [ebp - 0x12]
test ecx, ecx
jne 0x10072e5d
mov dword [ebp - 0x44], 1
jmp 0x10072e64
mov dword [ebp - 0x44], 0
mov al, byte [ebp - 0x44]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012d179
mov esp, ebp
pop ebp
ret
Function at 0x10074700
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 0x10]
call fcn.10028a10
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0x811c9dc5
mov dword [ebp - 4], 0
jmp 0x10074740
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x14]
jae 0x1007475f
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, dword [ebp - 8]
imul ecx, eax, 0x1000193
mov dword [ebp - 8], ecx
jmp 0x10074737
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10073800
add esp, 0xc
mov ecx, dword [ebp - 0xc]
or ecx, 1
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x100c2b10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1014c040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
jne 0x100c2bb0
push 0
push 0
push 0
push 0x100508b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x100c2b4c
xor eax, eax
jmp 0x100c2bb2
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x12], al
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [edx], ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov dword [eax + 4], edx
mov dword [ebp - 0x34], 1
lea ecx, [ebp - 0xc]
call fcn.100c2bd0
mov eax, dword [ebp - 0x34]
jmp 0x100c2bb2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012d179
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100e0a90
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10136384
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1014c040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
push str.body
mov ecx, dword [ebp - 0x24]
call fcn.10028b00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov dword [ebp - 0x28], ecx
push str.head
mov ecx, dword [ebp - 0x28]
call fcn.10028b00
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 0x30
mov dword [ebp - 0x2c], edx
push str.chest
mov ecx, dword [ebp - 0x2c]
call fcn.10028b00
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0x48
mov dword [ebp - 0x30], eax
push str.stomach
mov ecx, dword [ebp - 0x30]
call fcn.10028b00
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
mov dword [ebp - 0x34], ecx
push str.left_arm
mov ecx, dword [ebp - 0x34]
call fcn.10028b00
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10]
add edx, 0x78
mov dword [ebp - 0x38], edx
push str.right_arm
mov ecx, dword [ebp - 0x38]
call fcn.10028b00
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
add eax, 0x90
mov dword [ebp - 0x3c], eax
push str.left_leg
mov ecx, dword [ebp - 0x3c]
call fcn.10028b00
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xa8
mov dword [ebp - 0x40], ecx
push str.right_leg
mov ecx, dword [ebp - 0x40]
call fcn.10028b00
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xc0
call fcn.10056c60
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x10]
add edx, 0xd4
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0xe0
call fcn.10056c60
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.10056c60
mov eax, dword [ebp - 0x10]
add eax, 0x108
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x18]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x100f6b10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101366ad
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1014c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov eax, dword [0x101b5bec]
cmp dword [eax + 0x174], 0
jle 0x100f6b52
mov dword [ebp - 0x20], 1
jmp 0x100f6b59
mov dword [ebp - 0x20], 0
mov cl, byte [ebp - 0x20]
mov byte [ebp - 0x15], cl
cmp dword [0x101b0814], 4
jne 0x100f6c09
mov edx, dword [0x101b5bec]
mov eax, dword [edx + 0x4cb4]
mov dword [ebp - 0x48], eax
mov ecx, dword [0x101b5bec]
mov edx, dword [ecx + 0x4cac]
mov eax, dword [0x101b5bec]
add edx, dword [eax + 0x4cb0]
mov dword [ebp - 0x44], edx
mov ecx, dword [0x101b5bec]
mov edx, dword [ecx + 0x174]
mov dword [ebp - 0x4c], edx
mov eax, dword [0x101b5b8c]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov edx, 3
shl edx, 2
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x48]
push eax
movzx ecx, byte [ebp - 0x15]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov ecx, dword [ebp - 0x28]
call dword [ebp - 0x50]
nop
movzx eax, byte [0x101c69ac]
test eax, eax
jne 0x100f6ca2
push str.B8_________3B_F0_0F_4F_F0_89_5D_FC
lea ecx, [ebp - 0x7c]
call fcn.10028b00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7c]
push ecx
push 0x101b5b30
lea edx, [ebp - 0x64]
push edx
call fcn.10022de0
add esp, 0xc
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.10029670
nop
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x3e
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [0x101c69ac], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1012d179
mov esp, ebp
pop ebp
ret
Function at 0x10107950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012ec60
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1014c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x3c]
and ecx, 1
je 0x10107a56
mov edx, dword [ebp - 0x1c]
add edx, 0x40
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x101079c2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x30]
mov edx, dword [eax]
mov eax, dword [ecx]
lea ecx, [eax + edx*2]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], edx
jmp 0x101079de
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x2c]
mov edx, dword [eax]
mov eax, dword [ecx]
lea ecx, [eax + edx*2]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x30]
sar eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
shl ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x1000
jb 0x10107a3f
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.10022660
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.1012d5f4
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov dword [edx], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
mov dword [ecx], 0
xor edx, edx
sar edx, 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
mov dword [edx], 0
xor eax, eax
sar eax, 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x30]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x3c]
and edx, 0xfffffffe
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x3c], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1012d179
mov esp, ebp
pop ebp
ret
Function at 0x1012cbde
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1012cc05
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1012cc08
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1012cbba
pop esi
leave
ret 8
Function at 0x421630
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d32f7
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x6b8c10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x134]
call fcn.004182e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1bc]
call fcn.004182e0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x134]
call fcn.0041a470
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1bc]
call fcn.0041a470
push 0x5c
push 0x2f
lea ecx, [ebp - 0x134]
call fcn.0041ada0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x1bc]
call fcn.0041ada0
mov byte [ebp - 0x1bd], 0
lea ecx, [ebp - 0xac]
call fcn.0044de70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.0044def0
movzx edx, al
test edx, edx
je 0x42170e
lea ecx, [ebp - 0x1bc]
call fcn.004196f0
push eax
lea ecx, [ebp - 0x134]
call fcn.004196f0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
setne al
mov byte [ebp - 0x1bd], al
jmp 0x4217ec
lea ecx, [ebp - 0x134]
call fcn.00418470
test eax, eax
jg 0x421730
lea ecx, [ebp - 0x1bc]
call fcn.00418470
test eax, eax
jle 0x4217c3
lea ecx, [ebp - 0x24c]
call fcn.004182e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2d4]
call fcn.004182e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x134]
push edx
call fcn.00421860
add esp, 8
lea eax, [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.00421860
add esp, 8
lea ecx, [ebp - 0x2d4]
call fcn.00418d80
push eax
lea ecx, [ebp - 0x24c]
call fcn.00418d80
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dl
mov byte [ebp - 0x1bd], dl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2d4]
call fcn.004183f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.004183f0
jmp 0x4217ec
lea ecx, [ebp - 0x1bc]
call fcn.00418d80
push eax
lea ecx, [ebp - 0x134]
call fcn.00418d80
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
mov byte [ebp - 0x1bd], al
movzx ecx, byte [ebp - 0x1bd]
test ecx, ecx
jne 0x421805
cmp dword [ebp + 0x10], 0
je 0x421805
mov ecx, dword [ebp + 0x10]
call fcn.00435950
mov dl, byte [ebp - 0x1bd]
mov byte [ebp - 0x2d5], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.0044ded0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1bc]
call fcn.004183f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.004183f0
mov al, byte [ebp - 0x2d5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b2af3
mov esp, ebp
pop ebp
ret
Function at 0x421990
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d337c
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x6b8c10]
xor eax, ebp
mov dword [ebp - 0x98], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x94]
call fcn.004182e0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.0041a470
push 0x5c
push 0x2f
lea ecx, [ebp - 0x94]
call fcn.0041ada0
lea ecx, [ebp - 0x134]
call fcn.0044de70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x134]
call fcn.0044def0
movzx ecx, al
test ecx, ecx
je 0x421a58
lea ecx, [ebp - 0x94]
call fcn.004196f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne dl
mov byte [ebp - 0x255], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0044ded0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004183f0
mov al, byte [ebp - 0x255]
jmp 0x421c2b
lea ecx, [ebp - 0x94]
call fcn.00418470
cmp eax, 0x104
jle 0x421b5e
lea ecx, [ebp - 0x1bc]
call fcn.004182e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x94]
push ecx
call fcn.004212c0
add esp, 8
lea ecx, [ebp - 0x24c]
call fcn.004182e0
mov byte [ebp - 4], 3
push 0x62061c
lea ecx, [ebp - 0x24c]
call fcn.00419f30
lea ecx, [ebp - 0x1bc]
call fcn.0041a150
push eax
lea ecx, [ebp - 0x24c]
call fcn.00419f30
lea ecx, [ebp - 0x24c]
call fcn.00418d80
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jne 0x421aff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x421aff
mov dword [ebp - 0x1c0], 1
cmp dword [ebp - 0x1c0], 0
setne dl
mov byte [ebp - 0x256], dl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.004183f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1bc]
call fcn.004183f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0044ded0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004183f0
mov al, byte [ebp - 0x256]
jmp 0x421c2b
lea ecx, [ebp - 0x94]
call fcn.00418d80
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jne 0x421bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
cmp dword [ebp + 0xc], 0
je 0x421bbe
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004359f0
lea ecx, [ebp - 0x94]
call fcn.0041a150
push eax
push str.failedToDeleteFilepath
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x2c]
call eax
cmp dword [ebp - 0x254], 2
jne 0x421bd1
mov dword [ebp - 0x250], 1
cmp dword [ebp - 0x250], 0
setne cl
mov byte [ebp - 0x257], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0044ded0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004183f0
mov al, byte [ebp - 0x257]
jmp 0x421c2b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x98]
xor ecx, ebp
call fcn.005b2af3
mov esp, ebp
pop ebp
ret