joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e44
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 8]
movzx ecx, byte [eax]
mov cl, byte [ecx + 0x46249b]
mov byte [eax], cl
movzx ecx, byte [eax + 1]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 1], cl
movzx ecx, byte [eax + 2]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 2], cl
movzx ecx, byte [eax + 3]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 3], cl
movzx ecx, byte [eax + 4]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 4], cl
movzx ecx, byte [eax + 5]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 5], cl
movzx ecx, byte [eax + 6]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 6], cl
movzx ecx, byte [eax + 7]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 7], cl
movzx ecx, byte [eax + 8]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 8], cl
movzx ecx, byte [eax + 9]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 9], cl
movzx ecx, byte [eax + 0xa]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 0xa], cl
movzx ecx, byte [eax + 0xb]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 0xb], cl
movzx ecx, byte [eax + 0xc]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 0xc], cl
movzx ecx, byte [eax + 0xd]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 0xd], cl
movzx ecx, byte [eax + 0xe]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 0xe], cl
movzx ecx, byte [eax + 0xf]
mov cl, byte [ecx + 0x46249b]
mov byte [eax + 0xf], cl
ret
Function at 0x41b350
Capabilities:
Get file attributes

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 0xf
ja 0x41b362
add eax, 4
jmp 0x41b365
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
test al, 0x10
sete al
add esp, 0xc
ret
Function at 0x41b608
Capabilities:
Get file size

Disassembly:
push edi
push esi
push eax
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 0xf
ja 0x41b61a
add eax, 4
jmp 0x41b61d
mov eax, dword [eax + 4]
sub esp, 4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.KERNEL32.DLL_CreateFileA
add esp, 4
mov esi, eax
cmp esi, 0xffffffff
je 0x41b66b
sub esp, 8
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
add esp, 8
mov edi, eax
sub esp, 0xc
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
cmp edi, 0xffffffff
je 0x41b66b
mov eax, edi
add esp, 4
pop esi
pop edi
ret
add esp, 4
pop esi
pop edi
jmp sub.KERNEL32.DLL_GetLastError

Function at 0x41de90
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x27c
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x274]
mov dword [esp], edi
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0
call fcn.0044d15b
mov dword [ebp - 0x20], 0xff
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.DLL_GetComputerNameW
sub esp, 8
mov esi, eax
mov dword [ebp - 0x58], 0x45e02c
mov dword [ebp - 0x54], 0x4644c0
mov dword [ebp - 0x50], ebp
mov dword [ebp - 0x48], esp
mov dword [ebp - 0x50], 0x41e04e
lea eax, [ebp - 0x74]
call fcn.0045ec95
test esi, esi
je 0x41df27
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], 0
cmp word [ebp - 0x274], 0
je 0x41df5d
mov dword [esp], edi
call fcn.0044ce1c
jmp 0x41df5f
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], 0
mov byte [ebx + 4], 0
mov dword [ebp - 0x6c], 0xffffffff
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4642ba
call fcn.004041b8
jmp 0x41e036
xor eax, eax
mov dword [ebp - 0x6c], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], edi
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.0041b87c
cmp dword [ebp - 0x24], 7
mov ecx, dword [ebp - 0x28]
ja 0x41df87
lea edx, [ebp - 0x38]
jmp 0x41df8a
mov edx, dword [ebp - 0x38]
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], 0
mov byte [ebx + 4], 0
mov eax, ecx
and eax, 0x7fffffff
cmp eax, 0xf
je 0x41dff0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
lea eax, [ecx + ecx]
sar eax, 1
mov dword [ebp - 0x6c], 1
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], 1
call fcn.004024ec
test al, al
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
je 0x41dff0
lea eax, [ebx + 4]
cmp dword [ebx + 0x18], 0x10
jb 0x41dfe6
mov eax, dword [eax]
mov dword [ebx + 0x14], 0
mov byte [eax], 0
lea eax, [edx + ecx*2]
mov dword [ebp - 0x6c], 2
mov cl, byte [ebp - 0x10]
mov byte [esp + 0xc], cl
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041337c
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
mov ebx, dword [ebp + 8]
jb 0x41e036
mov eax, dword [ebp - 0x38]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x41e02e
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.00440ea4
lea eax, [ebp - 0x74]
mov dword [esp], eax
call fcn.0045ecb6
mov eax, ebx
add esp, 0x27c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x435b48
Capabilities:
Terminate process

Disassembly:
push esi
sub esp, 8
call sub.KERNEL32.DLL_GetCurrentProcessId
sub esp, 4
push eax
push 0
push 0x100001
call sub.KERNEL32.DLL_OpenProcess
add esp, 4
mov esi, eax
sub esp, 8
push 0
push esi
call sub.KERNEL32.DLL_TerminateProcess
add esp, 8
sub esp, 0xc
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0x14
pop esi
ret
Function at 0x436718
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xdc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x58], 0x45e02c
mov dword [ebp - 0x54], 0x4657bc
mov dword [ebp - 0x50], ebp
mov dword [ebp - 0x48], esp
mov dword [ebp - 0x50], 0x436938
mov dword [ebp - 0x6c], 1
lea eax, [ebp - 0x74]
call fcn.0045ec95
lea eax, [ebp - 0x28]
push eax
push 0x4371e4
push 0
push 0
call sub.USER32.DLL_EnumDisplayMonitors
mov ecx, dword [ebp + 0xc]
xor esi, esi
test ecx, ecx
js 0x4368e4
test eax, eax
je 0x4368e4
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
sub edx, eax
sar edx, 2
xor esi, esi
cmp edx, ecx
jbe 0x4368e7
mov edx, dword [eax + ecx*4]
lea edi, [ebp - 0xdc]
xor eax, eax
mov ecx, 0x19
rep stosd dword es:[edi], eax
mov dword [ebp - 0xe0], 0x68
mov dword [ebp - 0x6c], 2
sub esp, 8
lea eax, [ebp - 0xe0]
push eax
push edx
call sub.USER32.DLL_GetMonitorInfoW
add esp, 8
test eax, eax
je 0x4368e1
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xd0]
sub eax, dword [ebp - 0xdc]
mov dword [ebp - 0x30], eax
sub ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x6c], 3
push 0
push 0
push 0
push str.DISPLAY
call sub.GDI32.DLL_CreateDCW
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x6c], 4
sub esp, 0xc
push dword [ebp - 0x14]
call sub.GDI32.DLL_CreateCompatibleDC
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x6c], 5
sub esp, 4
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x14]
call sub.GDI32.DLL_CreateCompatibleBitmap
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x6c], 6
sub esp, 8
push dword [ebp - 0x34]
push dword [ebp - 0x10]
call sub.GDI32.DLL_SelectObject
add esp, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x6c], 7
sub esp, 0xc
push 0xcc0020
push ecx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0
push 0
push dword [ebp - 0x10]
call sub.GDI32.DLL_BitBlt
add esp, 0xc
mov dword [ebp - 0x6c], 8
sub esp, 8
push dword [ebp - 0x38]
push dword [ebp - 0x10]
call sub.GDI32.DLL_SelectObject
add esp, 8
mov dword [ebp - 0x6c], 9
sub esp, 0xc
push dword [ebp - 0x10]
call sub.GDI32.DLL_DeleteDC
add esp, 0xc
mov dword [ebp - 0x6c], 0xa
sub esp, 8
push dword [ebp - 0x14]
push 0
call sub.USER32.DLL_ReleaseDC
add esp, 8
jmp 0x4368e1
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x43691c
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
cmp ecx, 0x1000
jb 0x4368fb
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.00440ea4
add esp, 0x10
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
sub esp, 0xc
lea eax, [ebp - 0x74]
push eax
call fcn.0045ecb6
add esp, 0x10
mov eax, esi
add esp, 0xdc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4402b4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x13dc
call fcn.0044a81c
sub esp, 0x13dc
mov dword [ebp - 0x13c0], 0xf
mov dword [ebp - 0x13c4], 0
mov byte [ebp - 0x13d4], 0
lea eax, [ebp - 0x13d8]
mov dword [esp], eax
mov dword [esp + 4], 0x466670
call fcn.0040237c
mov dword [ebp - 0x34], 0x45e02c
mov dword [ebp - 0x30], 0x466760
mov dword [ebp - 0x2c], ebp
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x2c], 0x4403e3
mov dword [ebp - 0x48], 1
lea eax, [ebp - 0x50]
call fcn.0045ec95
call fcn.004494c8
mov ecx, dword [ebp - 0x13c0]
cmp ecx, 0x10
jb 0x44034f
mov eax, dword [ebp - 0x13d4]
inc ecx
cmp ecx, 0x1000
jb 0x440347
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.00440ea4
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x48], 0xffffffff
call fcn.004494c8
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x13d4], eax
mov ecx, 2
nop
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [ecx + eax - 1]
mov dword [ebp + ecx*4 - 0x13d8], eax
inc ecx
cmp ecx, 0x271
jne 0x440374
mov dword [ebp - 0x13d8], 0x270
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
lea eax, [ebp - 0x13d8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call fcn.00440b10
mov esi, eax
lea eax, [ebp - 0x50]
mov dword [esp], eax
call fcn.0045ecb6
mov eax, esi
add esp, 0x13dc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x447338
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov al, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov byte [ebp - 5], al
mov al, byte [edx]
mov bl, al
xor bl, byte [ebp + 0xc]
lock cmpxchg byte [edx], bl
jne 0x44734d
mov byte [ebp + 0xc], al
mov al, byte [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
movzx eax, al
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x4478c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov ax, word [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov word [ebp - 6], ax
mov ax, word [edx]
mov bx, ax
xor bx, word [ebp + 0xc]
lock cmpxchg word [edx], bx
jne 0x4478e0
mov word [ebp + 0xc], ax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov word [ebp - 0xe], ax
mov ax, word [ebp - 0xe]
movzx eax, ax
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x447e28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edx]
mov ebx, eax
xor ebx, dword [ebp + 0xc]
lock cmpxchg dword [edx], ebx
jne 0x447e3d
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x4490e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, edx
mov ebx, eax
xor ebx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x14]
lock cmpxchg8b qword [edi]
jne 0x449111
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44a200
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x20]
test edi, edi
je 0x44a332
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x44a332
cmp dword [esp + 0x28], 0
je 0x44a332
mov dword [esp], str.borlndmm
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov esi, eax
test esi, esi
je 0x44a332
mov ebp, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysGetMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [edi], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysFreeMem_qqrpv
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysReallocMem_qqrpvi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysAllocMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebp], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysRegisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [esp], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], str._Borlndmm_SysUnregisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [esi], eax
mov eax, dword [edi]
mov dword [0x47fde4], eax
cmp dword [ebp], 0
jne 0x44a2e6
mov dword [ebp], 0x44a1d0
mov eax, dword [esp + 0x30]
cmp dword [eax], 0
jne 0x44a2f5
mov dword [eax], 0x44a1c0
mov ecx, dword [esi]
test ecx, ecx
je 0x44a322
cmp dword [edi], 0
je 0x44a332
cmp dword [ebx], 0
je 0x44a332
mov esi, dword [esp + 0x28]
cmp dword [esi], 0
je 0x44a332
cmp dword [ebp], 0
je 0x44a332
cmp dword [eax], 0
je 0x44a332
xor eax, eax
test ecx, ecx
setne al
jmp 0x44a334
mov dword [esi], 0x44a1c0
mov ecx, 0x44a1c0
cmp dword [edi], 0
jne 0x44a300
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44b8f0
Capabilities:
Read file via mapping

Disassembly:
push edi
push esi
push eax
call sub.KERNEL32.DLL_GetCurrentProcessId
mov ecx, eax
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x468676], cl
mov ecx, eax
shr ecx, 4
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x468675], cl
mov ecx, eax
shr ecx, 8
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x468674], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x468673], cl
mov ecx, eax
shr ecx, 0x10
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x468672], cl
mov ecx, eax
shr ecx, 0x14
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x468671], cl
mov ecx, eax
shr ecx, 0x18
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x468670], cl
shr eax, 0x1c
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [0x46866f], al
sub esp, 4
push str.LocalFastMM_PID________
push 0
push 4
call sub.KERNEL32.DLL_OpenFileMappingA
add esp, 4
mov esi, eax
test esi, esi
je 0x44b9d3
sub esp, 0xc
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.DLL_MapViewOfFile
add esp, 0xc
mov edi, dword [eax]
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
jmp 0x44b9d5
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
ret

Function at 0x44b9e0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0xc
xor eax, eax
cmp dword [0x467f0c], 0x44c2b6
jne 0x44ba44
cmp dword [0x467f10], fcn.0044c63a
jne 0x44ba44
cmp dword [0x467f14], fcn.0044c832
jne 0x44ba44
cmp dword [0x467f18], fcn.0044cb4c
jne 0x44ba44
cmp dword [0x467f1c], 0x44a980
jne 0x44ba44
cmp dword [0x467f20], 0x44a990
jne 0x44ba44
mov ecx, dword [0x47fe48]
test ecx, ecx
jne 0x44ba44
call fcn.0044b8f0
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x44ba48
add esp, 0xc
ret
sub esp, 8
push str.LocalFastMM_PID________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
add esp, 8
mov dword [0x47fe48], eax
sub esp, 0xc
push 0
push 0
push 0
push 2
push eax
call sub.KERNEL32.DLL_MapViewOfFile
add esp, 0xc
mov dword [eax], fcn.0044c2b6
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
add esp, 0xc
mov eax, 1
add esp, 0xc
ret
Function at 0x44dbcc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
call fcn.0044eb90
test bh, 0xc0
jne 0x44dbef
mov eax, dword [0x468d40]
mov ecx, 0xc000
and ecx, dword [eax]
or ebx, ecx
mov eax, ebx
and eax, 0x700
add eax, 0xffffff00
mov ecx, eax
shr ecx, 8
mov esi, 3
cmp ecx, 6
ja 0x44dc13
sar eax, 6
mov esi, dword [eax + 0x4686d4]
mov edi, dword [esp + 0x40]
test bh, 1
je 0x44dc3c
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
mov al, byte [0x4686f4]
and al, byte [esp + 0x48]
mov eax, 0x80
mov ecx, 1
cmovs ecx, eax
jmp 0x44dc4f
mov dword [esp], edi
call sub.KERNEL32.DLL_GetFileAttributesW
sub esp, 4
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ebx
and al, 3
je 0x44dc68
cmp al, 2
je 0x44dc6f
cmp al, 1
jne 0x44dd67
mov eax, 0x40000000
jmp 0x44dc74
mov eax, 0x80000000
jmp 0x44dc74
mov eax, 0xc0000000
mov edx, ebx
and edx, 0x70
add edx, 0xfffffff0
shr edx, 4
cmp edx, 3
mov ebp, 3
cmovb ebp, edx
xor edx, edx
cmp eax, 0x80000000
sete dl
test bl, 4
cmove edx, ebp
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov ebp, ebx
shr ebp, 7
not ebp
and ebp, 1
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_CreateFileW
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x44dd44
mov edi, ebx
shr edi, 1
not edi
and edi, 0x4000
or edi, ebx
mov dword [esp], esi
call fcn.0044d790
mov ecx, edi
or ecx, 0x2000
test eax, eax
cmove ecx, edi
and ecx, 0xfffff8ff
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.0044ed50
mov edi, eax
cmp edi, 0xffffffff
jne 0x44dd75
mov dword [esp], 4
call fcn.0044f12c
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov edi, 0xffffffff
jmp 0x44dd75
call sub.KERNEL32.DLL_GetLastError
movzx eax, ax
test bh, 1
mov ecx, 0x50
mov edx, 2
cmovne edx, ecx
cmp eax, 0x6e
cmovne edx, eax
mov dword [esp], edx
jmp 0x44dd6e
mov dword [esp], 1
call fcn.0044f12c
mov edi, eax
call fcn.0044ebe0
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x44e114
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x468c70], eax
jbe 0x44e151
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x4820f0]
call sub.KERNEL32.DLL_ReadFile
add esp, 0xc
cmp eax, 1
jne 0x44e158
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
jmp 0x44e16e
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
jne 0x44e16a
add esp, 0xc
ret
sub esp, 0xc
push ecx
call fcn.0044f12c
add esp, 0x10
add esp, 0xc
ret
Function at 0x44e18c
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x468c70], eax
jbe 0x44e1c9
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x4820f0]
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
cmp eax, 1
jne 0x44e1da
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
call fcn.0044f12c
add esp, 0x10
add esp, 0xc
ret
call fcn.0044f1cc
add esp, 0xc
ret

Function at 0x45014c
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
cmp eax, 1
jne 0x450169
xor eax, eax
add esp, 0xc
ret
add esp, 0xc
jmp fcn.0044f1cc
Function at 0x4540e8
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov dword [esp + 0x18], edx
mov esi, ecx
mov eax, dword [esi + 4]
lea ebp, [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 4], 0x1001
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.0044d2c0
mov word [esp + eax + 0x1c], 0x5f
mov edi, dword [esi + 4]
mov dword [esp], ebp
call fcn.0044d2c0
lea ecx, [esp + eax + 0x1c]
mov edx, pe_nt_image_headers32
sub edx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], 0x1002
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.0044d2c0
mov word [esp + eax + 0x1c], 0x2e
mov edi, dword [esi]
mov dword [esp], ebp
call fcn.0044d2c0
lea eax, [esp + eax + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 0xa
call fcn.00457660
mov edi, dword [esi + 0x24]
test edi, edi
je 0x4541dc
mov dword [esp], edi
call fcn.0044d2c0
mov ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.0044d2c0
mov ecx, ebp
mov ebp, eax
mov dword [esp], ecx
call fcn.0044d2c0
add ebp, ebx
lea eax, [eax + ebp + 3]
lea ebp, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0044a5cc
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
jne 0x454231
jmp 0x454279
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.0044d2c0
mov ebx, eax
mov edi, ebp
mov dword [esp], ebp
call fcn.0044d2c0
mov ebp, eax
lea eax, [ebx + ebp + 3]
mov dword [esp], eax
call fcn.0044a5b4
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
je 0x454279
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.0044d2c0
lea eax, [ebp + eax + 3]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.0044d15b
mov ebp, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0044d174
mov edi, dword [esi + 0x24]
mov dword [esp], edi
call fcn.0044d2c0
mov word [edi + eax], 0x3d
mov eax, dword [esi + 0x24]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.0044d174
mov esi, dword [esi + 0x24]
mov dword [esp], esi
call fcn.0044d2c0
mov word [esi + eax], 0xa
mov eax, 1
jmp 0x45427b
xor eax, eax
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret