joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406af0
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x406c07
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
movzx ecx, di
shr edi, 0x10
test ebp, ebp
je 0x406bfc
push ebx
mov edx, 0x15b0
cmp ebp, edx
cmovb edx, ebp
sub ebp, edx
cmp edx, 0x10
jb 0x406bbe
mov ebx, edx
shr ebx, 4
movzx eax, byte [esi]
sub edx, 0x10
add ecx, eax
movzx eax, byte [esi + 1]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 2]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 3]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 4]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 5]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 6]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 7]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 8]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 9]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xa]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xb]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xc]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xd]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xe]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xf]
add edi, ecx
add esi, 0x10
add ecx, eax
add edi, ecx
sub ebx, 1
jne 0x406b30
test edx, edx
je 0x406bcf
movzx eax, byte [esi]
inc esi
add ecx, eax
add edi, ecx
sub edx, 1
jne 0x406bc2
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebp, ebp
jne 0x406b16
pop ebx
shl edi, 0x10
or edi, ecx
mov eax, edi
pop edi
pop ebp
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x407540
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [esi + 0xc]
push dword [esi + 0x10]
call edi
test eax, eax
je 0x407577
cmp eax, dword [esi + 0xc]
jb 0x40757e
push 0
add eax, eax
mov ecx, esi
push eax
call fcn.00403220
test al, al
je 0x407577
push dword [esi + 0xc]
push dword [esi + 0x10]
call edi
test eax, eax
jne 0x407556
pop edi
xor al, al
pop esi
ret 4
mov eax, dword [esp + 0xc]
push ebx
push ebp
test eax, eax
je 0x40761c
movzx ecx, word [eax]
test cx, cx
je 0x40761c
cmp ecx, 0x5c
lea edi, [eax + 2]
mov ecx, esi
cmovne edi, eax
call fcn.00406e30
test al, al
je 0x407625
push dword [esi + 0x10]
call fcn.0040a700
add esp, 4
mov ebp, eax
test edi, edi
je 0x4075ca
push edi
call fcn.0040a700
add esp, 4
mov ebx, eax
jmp 0x4075cc
xor ebx, ebx
lea eax, [ebp + 1]
mov dword [esi + 4], ebp
add eax, ebx
cmp eax, dword [esi + 0xc]
jbe 0x4075fe
push dword [esi + 0x10]
call fcn.0040a5f0
add esp, 4
mov dword [esi + 4], eax
call fcn.00411aa0
push eax
lea eax, [ebp + 1]
mov ecx, esi
add eax, ebx
push eax
call fcn.004034d0
test al, al
je 0x407625
mov eax, dword [esi + 0x10]
lea esi, [eax + ebp*2]
test edi, edi
je 0x407616
lea eax, [ebx + ebx]
push eax
push edi
push esi
call fcn.0041fc70
add esp, 0xc
xor eax, eax
mov word [esi + ebx*2], ax
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
ret 4
pop ebp
pop ebx
pop edi
xor al, al
pop esi
ret 4
Function at 0x4077a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x228
mov eax, dword [0x45cdfc]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push edi
push 0
push 0x108
push 2
lea eax, [esp + 0x28]
mov edi, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00403170
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov word [eax], cx
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x407870
mov ebx, dword [esp + 0x18]
push esi
push dword [edi + 0xc]
push dword [edi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x40784d
test ebx, ebx
je 0x407842
push ebx
call fcn.0040a700
mov esi, eax
add esp, 4
test esi, esi
je 0x407842
push 0
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.00403220
test al, al
je 0x40784d
add esi, esi
push esi
push ebx
push dword [edi + 0x10]
call fcn.0041fc70
mov eax, dword [edi + 0x10]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x40784d
mov eax, dword [edi + 0x10]
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 4], ecx
mov esi, dword [edi + 0x10]
push esi
call fcn.0040a700
add esp, 4
test eax, eax
je 0x40785e
dec eax
cmp word [esi + eax*2], 0x5c
jne 0x40786b
xor ecx, ecx
mov word [esi + eax*2], cx
mov bl, 1
pop esi
jmp 0x407872
xor bl, bl
lea ecx, [esp + 8]
call fcn.00403200
mov ecx, dword [esp + 0x22c]
mov al, bl
pop edi
pop ebx
xor ecx, esp
call fcn.0041e5aa
add esp, 0x228
ret

Function at 0x4078a0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0xc]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4078be
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], ecx
mov eax, dword [esp + 8]
test eax, eax
je 0x4078d6
push eax
mov ecx, esi
call fcn.00406d70
test al, al
jne 0x4078d6
pop esi
ret 4
mov al, 1
pop esi
ret 4
Function at 0x4081c0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push str.ROOTCIMV2
mov dword [esp + 0x18], ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x4082f0
mov ecx, dword [ebx + 0xc]
lea edi, [ebx + 0xc]
test ecx, ecx
je 0x4081f2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
push 0x442564
push 1
push 0
push 0x44b8c4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x10], eax
test eax, eax
jns 0x408275
push str.WbemLocator
push str.Failed_to_instantiate_COM_object
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x442970
push str._s__Message:___s_
push eax
mov dword [esp + 0x2c], 0
call fcn.0040b9e0
add esp, 0x10
test al, al
je 0x408262
push 0
lea ecx, [esp + 0x1c]
call fcn.0040baf0
push eax
push dword [esp + 0x18]
mov ecx, ebp
call fcn.00404f00
test al, al
je 0x408262
mov bl, 1
jmp 0x408264
xor bl, bl
lea ecx, [esp + 0x18]
call fcn.0040b370
test bl, bl
je 0x4082f0
mov ebx, dword [esp + 0x14]
mov edx, dword [edi]
lea edi, [ebx + 0x14]
mov ecx, dword [edi]
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x40828e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [esp + 0x24]
push edi
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [edi], 0
mov eax, dword [edx]
push esi
push edx
call dword [eax + 0xc]
test eax, eax
jns 0x4082bf
push 0
push 0x442038
push eax
mov ecx, ebp
call fcn.00404f00
test al, al
je 0x4082f0
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [edi]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x4082ec
push 0
push 0x442038
push eax
mov ecx, ebp
call fcn.00404f00
test al, al
je 0x4082f0
mov bl, 1
jmp 0x4082f2
xor bl, bl
test esi, esi
je 0x4082fd
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 4

Function at 0x408560
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x45cdfc]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.004201f0
add esp, 0xc
mov dword [esp], 0x114
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jb 0x4085be
cmp dword [esp + 8], 2
jb 0x4085be
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041e5aa
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.0041e5aa
add esp, 0x118
ret
Function at 0x4092e0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov ebx, dword [esi + 0xc]
lea eax, [esi + 4]
mov ecx, eax
mov dword [esp + 0xc], eax
or ebx, 0xf003f
call fcn.0040baf0
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
mov dword [esp + 8], eax
test ecx, ecx
je 0x40932f
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
mov dword [esp + 0x10], 0
cmp esi, 0x80000004
je 0x409369
cmp esi, 0x80000050
je 0x409369
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40936d
mov ecx, dword [esp + 0x20]
push 0
push dword [esp + 0xc]
push eax
call fcn.00404f00
test al, al
je 0x40939b
jmp 0x40936d
mov dword [esp + 0x10], esi
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x40939f
mov ecx, dword [esp + 0xc]
push 0
call fcn.0040baf0
mov ecx, dword [esp + 0x24]
push eax
push esi
call fcn.00404f00
test al, al
jne 0x40939f
xor bl, bl
jmp 0x4093a1
mov bl, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4093b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
add esp, 0x10
ret 8

Function at 0x4094f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov ebx, dword [esi + 0xc]
lea eax, [esi + 4]
mov ecx, eax
mov dword [esp + 0xc], eax
or ebx, 0x20019
call fcn.0040baf0
mov ecx, dword [esp + 0x10]
mov ebp, eax
mov esi, dword [esi]
test ecx, ecx
je 0x40953a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
cmp esi, 0x80000004
je 0x409579
cmp esi, 0x80000050
je 0x409579
lea eax, [esp + 0x10]
push eax
push ebx
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409573
mov ecx, dword [esp + 0x28]
push 0
push ebp
push eax
call fcn.00404f00
test al, al
jne 0x409573
xor bl, bl
jmp 0x4095c6
mov esi, dword [esp + 0x10]
jmp 0x40957d
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push 0
push dword [esp + 0x2c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4095c4
mov ecx, dword [esp + 0xc]
push 0
call fcn.0040baf0
mov ecx, dword [esp + 0x2c]
push eax
push esi
call fcn.00404f00
test al, al
jne 0x4095c4
xor bl, bl
jmp 0x4095c6
mov bl, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4095d5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xc
ret 0x10
Function at 0x40a230
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
or eax, 0x20006
mov dword [esp + 8], eax
call fcn.0040baf0
mov esi, dword [esi]
mov ebx, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a276
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
cmp esi, 0x80000004
je 0x40a2b0
cmp esi, 0x80000050
je 0x40a2b0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a2b4
mov ecx, dword [esp + 0x24]
push 0
push ebx
push eax
call fcn.00404f00
test al, al
je 0x40a2e6
jmp 0x40a2b4
mov dword [esp + 0xc], esi
push dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x20]
push dword [esp + 0x30]
push 0
push esi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40a2ea
mov ecx, dword [esp + 0x24]
push 0
push esi
push eax
call fcn.00404f00
test al, al
jne 0x40a2ea
xor bl, bl
jmp 0x40a2ec
mov bl, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a2fb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret 0x14

Function at 0x40a340
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebx, ecx
mov eax, dword [edi + 0x20]
cmp eax, 1
je 0x40a410
cmp eax, 2
je 0x40a410
cmp eax, 7
jne 0x40a3f3
push ebp
push 1
lea ecx, [esp + 0x14]
call fcn.00403140
push dword [edi + 0x28]
call fcn.0040a730
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
push 0
push ebp
call fcn.00403220
test al, al
je 0x40a3dc
mov esi, dword [esp + 0x20]
push ebp
push dword [edi + 0x28]
push esi
call fcn.0041fc70
push 0
push 0xa
push esi
call fcn.0040b2a0
add esp, 0x18
mov ecx, ebx
push dword [esp + 0x30]
push dword [esp + 0x18]
push esi
push dword [edi + 0x20]
push dword [esp + 0x38]
call fcn.0040a1f0
lea ecx, [esp + 0x10]
mov bl, al
call fcn.00403200
pop ebp
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc
lea ecx, [esp + 0x10]
xor bl, bl
call fcn.00403200
pop ebp
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc
push dword [esp + 0x2c]
push dword [edi + 0x1c]
push dword [edi + 0x28]
push eax
push dword [esp + 0x34]
call fcn.0040a1f0
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
mov esi, dword [edi + 0x28]
push esi
call fcn.0040a730
add esp, 4
push eax
push esi
push dword [edi + 0x20]
mov esi, dword [esp + 0x30]
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40a44e
mov ecx, dword [esp + 0x2c]
push 0
push esi
push eax
call fcn.00404f00
test al, al
jne 0x40a44e
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x14
ret 0xc
Function at 0x40eec0
Capabilities:
Get file size
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
je 0x40eedf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x294], 0xffffffff
mov eax, dword [esi + 0x298]
cmp eax, 0xffffffff
je 0x40eefb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x298], 0xffffffff
mov ecx, esi
pop esi
jmp fcn.00413880
Function at 0x40f800
Capabilities:
Get disk size

Disassembly:
sub esp, 0x54
mov eax, dword [0x45cdfc]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [esp + 0x6c]
mov eax, ebx
push ebp
mov ebp, dword [esp + 0x60]
and eax, 0x7fffeff
push esi
push edi
or eax, 0xe0000000
mov edi, ecx
mov esi, dword [edi + 8]
lea ecx, [edi + 8]
push eax
mov eax, dword [esp + 0x70]
mov edx, eax
push dword [esp + 0x78]
or edx, 0x80000000
mov byte [edi + 0x20], 1
push dword [esp + 0x78]
test eax, eax
cmovs edx, eax
mov eax, dword [esi + 0x30]
or edx, 0x40000000
push edx
push ebp
call eax
shr ebx, 0x1c
lea esi, [edi + 0x18]
not bl
mov byte [esp + 0x13], al
and bl, 1
movzx ecx, bl
push ecx
push dword [esp + 0x80]
push dword [edi + 0xc]
push esi
call fcn.0041c950
mov ecx, eax
call fcn.0041c600
mov bl, byte [esp + 0x13]
test bl, bl
je 0x40f8c4
push 0x34
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004201f0
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x40f8c4
mov ecx, dword [esi]
push 0
push 0
push dword [esp + 0x4c]
add ecx, 0x18
push dword [esp + 0x54]
call fcn.0041cc00
push 2
push ebp
lea eax, [esp + 0x60]
push 3
push eax
call fcn.0040a570
xor eax, eax
add esp, 0x10
mov word [esp + 0x5c], ax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x40f907
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1c], eax
mov ecx, dword [esp + 0x60]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e5aa
add esp, 0x54
ret 0x18
Function at 0x4106e0
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2f4]
test ecx, ecx
je 0x4107b6
mov ecx, dword [ecx + 0x364]
or eax, 0xffffffff
test ecx, ecx
je 0x410720
mov ecx, dword [ecx + 0x29c]
test ecx, ecx
je 0x410720
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x410720
or eax, 0xffffffff
or ecx, 0xffffffff
mov dword [esp + 4], vtable.HandleClass.0
test eax, eax
cmovne ecx, eax
mov dword [esp + 8], ecx
cmp ecx, 0xffffffff
je 0x410742
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [esi + 0x2f4]
mov eax, dword [edi + 0x1c4]
lea ecx, [edi + 0x1c4]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x410771
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x7c]
mov eax, dword [edi]
mov ecx, edi
push 0xffffffffffffffff
call dword [eax + 0x88]
mov ecx, dword [esi + 0x2f4]
pop edi
test ecx, ecx
je 0x410782
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esp + 4]
mov dword [esi + 0x2f4], 0
mov dword [esp + 4], vtable.HandleClass.0
call fcn.00412520
test al, al
je 0x4107b6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
lea ecx, [esp + 4]
call dword [eax + 0x1c]
mov al, 1
pop esi
add esp, 8
ret
Function at 0x4113a7
Capabilities:
Create process on windows

Disassembly:
cmp dword [0x45e90c], 0
push esi
mov esi, ecx
je 0x4114a3
mov eax, dword [esi + 0x14]
shr eax, 0x19
test al, 1
je 0x4113db
mov eax, dword [esi + 0x36c]
test eax, eax
je 0x4114a3
push eax
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
test eax, eax
jne 0x41146e
mov al, 1
pop esi
ret
mov eax, dword [esi + 0x364]
test eax, eax
je 0x4114a3
or dword [eax + 0x268], 3
mov ecx, dword [esi + 0x364]
push ebx
lea eax, [ecx + 0x294]
push eax
lea eax, [ecx + 0x2b0]
push eax
push dword [ecx + 0x260]
push 0
push dword [ecx + 0x268]
push 1
push 0
push 0
push dword [ecx + 0x4c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
cmp byte [0x4e02f8], 0
je 0x41145d
cmp byte [0x4e0340], 0
je 0x41145d
mov eax, dword [esi + 0x364]
push dword [eax + 0x294]
push str.CreateProcess:_Info.hProcess__p
push 0
push 8
push 0x4602a0
call fcn.004166b0
add esp, 0x14
push dword [esi + 0x358]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test bl, bl
pop ebx
je 0x4114a3
movzx eax, byte [esi + 0x370]
push eax
call dword [0x45e90c]
mov ecx, esi
call fcn.00410980
mov ecx, dword [esi + 0x36c]
test ecx, ecx
je 0x4114a3
mov eax, dword [0x45e908]
test eax, eax
je 0x411499
push ecx
call eax
mov dword [esi + 0x36c], 0
mov al, 1
pop esi
ret

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

Disassembly:
sub esp, 0x228
mov eax, dword [0x45cdfc]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [esp + 0x230]
test esi, esi
je 0x411545
cmp word [esi], 0
je 0x411545
push 0
push 0x108
push 2
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.00403170
mov eax, dword [esp + 0x14]
xor ecx, ecx
push 0x45ef0c
push esi
mov word [eax], cx
lea ecx, [esp + 0xc]
call fcn.00407d60
test al, al
je 0x41153c
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [esp + 8]
setne bl
call fcn.00403200
mov al, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0041e5aa
add esp, 0x228
ret
lea ecx, [esp + 4]
call fcn.00403200
mov ecx, dword [esp + 0x228]
xor al, al
pop esi
xor ecx, esp
call fcn.0041e5aa
add esp, 0x228
ret

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

Disassembly:
sub esp, 0x228
mov eax, dword [0x45cdfc]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
mov esi, dword [esp + 0x234]
lea eax, [esp + 0x1c]
push 0
push 0x108
push 2
push eax
lea ecx, [esp + 0x18]
call fcn.00403170
mov eax, dword [esp + 0x18]
xor ecx, ecx
push 0x45ef0c
push esi
mov word [eax], cx
lea ecx, [esp + 0x10]
call fcn.00407d60
test al, al
je 0x4124f7
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4124f7
test al, 1
je 0x4124f7
mov bl, 1
jmp 0x4124f9
xor bl, bl
lea ecx, [esp + 8]
call fcn.00403200
mov ecx, dword [esp + 0x22c]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.0041e5aa
add esp, 0x228
ret

Function at 0x412d50
Capabilities:
Get geographical location

Disassembly:
call fcn.004087e0
jmp fcn.004048a0
Function at 0x412fd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
push ebx
movups xmmword [esp + 4], xmm0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
push esi
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x18], 0
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
sete bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x413050
cmp eax, 0x3e5
jne 0x413050
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
test bl, bl
jne 0x413062
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0x14
test bl, bl
jne 0x413046
test eax, eax
jne 0x413046
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, dword [esp + 8]
test eax, eax
je 0x413075
cmp eax, 0x103
je 0x413075
test ecx, ecx
je 0x413046
pop esi
mov al, 1
pop ebx
add esp, 0x14
ret 0x14

Function at 0x413880
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi + 0x284]
lea ecx, [esi + 0x284]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x413967
push 0
push dword [esi + 0x288]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 4], eax
test eax, eax
je 0x413967
push ebx
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0x442970
mov dword [esp + 0x14], 0
call fcn.00403140
push 0
push dword [esp + 0xc]
lea ecx, [esp + 0x1c]
call fcn.00403220
test al, al
je 0x41394b
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push dword [esp + 0x30]
push dword [esi + 0x288]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41390e
mov eax, dword [esp + 0x24]
mov byte [eax], 0
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
inc eax
push eax
call fcn.0040b800
test eax, eax
je 0x41394b
mov ecx, dword [esp + 8]
push ecx
push dword [esp + 0x28]
inc ecx
push ecx
push eax
call fcn.0040a7d0
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.0040baf0
push eax
lea ecx, [esi + 0x34]
call fcn.0040b420
mov bl, al
jmp 0x41394d
xor bl, bl
lea ecx, [esp + 0x14]
call fcn.00403200
lea ecx, [esp + 0xc]
call fcn.0040b370
mov al, bl
pop ebx
pop esi
add esp, 0x20
ret
mov al, 1
pop esi
add esp, 0x20
ret
Function at 0x413b10
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x228
mov eax, dword [0x45cdfc]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, dword [esp + 0x234]
push esi
mov esi, dword [esp + 0x234]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x413be7
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x413b61
sub eax, 2
je 0x413bd0
sub eax, 0xc9
jne 0x413c0a
push 0
push 0x108
push 2
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403170
mov eax, dword [esp + 0x1c]
xor ecx, ecx
push ebx
push esi
mov word [eax], cx
lea ecx, [esp + 0x14]
call fcn.00407d60
test al, al
je 0x413c01
push 0x80
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x413c01
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x413c01
lea ecx, [esp + 0xc]
call fcn.00403200
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0041e5aa
add esp, 0x228
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x413c0a
push esi
call edi
test eax, eax
je 0x413c0a
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0041e5aa
add esp, 0x228
ret
lea ecx, [esp + 0xc]
call fcn.00403200
push esi
mov ecx, ebx
call fcn.00404b00
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041e5aa
add esp, 0x228
ret

Function at 0x414680
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c4]
lea ecx, [esi + 0x1c4]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x4146a6
push 0
push dword [esi + 0x1c8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
ret