joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014010
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10073360], eax
je 0x1001402e
mov eax, 0x10dd
jmp 0x1001410f
mov eax, dword [0x10073370]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100140ac
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1001408a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1001408a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100130c0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.100162a0
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10014036
mov dword [0x10073370], 0
call fcn.100139a0
mov ecx, dword [0x1007336c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x100140f9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100162a0
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x100140c4
mov dword [0x1007336c], 0
mov dword [0x10073360], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100145f0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10073364], 0
je 0x10014609
mov eax, dword [0x10073364]
jmp 0x100146a9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1001461b
xor eax, eax
jmp 0x100146a9
push 8
call fcn.100152c0
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10014671
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1001465a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100162a0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10073364], eax
mov dword [0x10073368], 0
mov eax, dword [ebp - 8]
jmp 0x100146a9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1001468b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1001463b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1007336c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1007336c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1001bc70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.1001b880
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001bca2
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1005a184]
call dword [ebp - 8]
jmp 0x1001bcac
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x1003ae90
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.1003a710
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003aec4
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1005a184]
call dword [ebp - 8]
jmp 0x1003aeca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x1003af20
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.1003a750
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003af54
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1005a184]
call dword [ebp - 8]
jmp 0x1003af5e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x1003af70
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.1003a770
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003afa8
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x1005a184]
call dword [ebp - 8]
jmp 0x1003afb6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8

Function at 0x1003afc0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.1003a7f0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003b000
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1005a184]
call dword [ebp - 8]
jmp 0x1003b01e
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.1003b210
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1003b6d0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1003b6f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100259c0
add esp, 4
or eax, 0xffffffff
jmp 0x1003b6f9
xor eax, eax
pop ebp
ret
Function at 0x1003d9a0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.10015ac0
mov eax, dword [0x100720c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x10073b88]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x1003db78
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x1003dac7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x1003dac7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x1003daa5
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x1003da29
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1003db31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x1003db98
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x1003db73
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x1003db98
jmp 0x1003da02
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015400
mov esp, ebp
pop ebp
ret
Function at 0x1003dbb0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.10015ac0
mov eax, dword [0x100720c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x10073b88]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x1003dd9b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x1003dce6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x1003dce6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x1003dcc2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x1003dc39
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1003dd54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x1003ddbb
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x1003dd96
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x1003ddbb
jmp 0x1003dc12
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015400
mov esp, ebp
pop ebp
ret
Function at 0x1004b270
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.1001c910
lea ecx, [ebp - 4]
call fcn.1004b240
movzx eax, al
test eax, eax
jne 0x1004b2ad
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.1004b180
mov eax, dword [ebp - 0x18]
jmp 0x1004b3d5
lea ecx, [ebp - 4]
call fcn.1001c200
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1004b200
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.1001c200
push eax
push 0
push 0
call fcn.10048c10
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1004b313
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.1004b180
mov eax, dword [ebp - 0x20]
jmp 0x1004b3d5
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100206e0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.10012420
lea ecx, [ebp - 8]
call fcn.10012910
movzx edx, al
test edx, edx
jne 0x1004b35c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.100128f0
lea ecx, [ebp - 4]
call fcn.1004b180
mov eax, dword [ebp - 0x24]
jmp 0x1004b3d5
lea ecx, [ebp - 8]
call fcn.10012490
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.1001c200
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.10048c10
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1004b3b7
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.100128f0
lea ecx, [ebp - 4]
call fcn.1004b180
mov eax, dword [ebp - 0x34]
jmp 0x1004b3d5
lea ecx, [ebp - 8]
call fcn.10020a20
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.100128f0
lea ecx, [ebp - 4]
call fcn.1004b180
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x402620
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax]
mov edi, ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x38], edi
test ebx, ebx
jne 0x40266e
push ebx
push 0x42e35b
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
call fcn.00413cf0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00414cec
mov esp, ebp
pop ebp
ret
mov eax, ebx
xor esi, esi
and eax, 3
jne 0x402685
cmp byte [ebx + edx - 1], 0x3d
je 0x402685
xor ecx, ecx
mov dword [ebp - 0x24], ecx
jmp 0x40269f
mov ecx, 1
mov dword [ebp - 0x24], ecx
cmp eax, 2
ja 0x40269d
cmp byte [ebx + edx - 2], 0x3d
jne 0x40269d
xor eax, eax
jmp 0x40269f
mov eax, ecx
sub ebx, ecx
mov dword [ebp - 0x30], eax
and ebx, 0xfffffffc
mov dword [ebp - 0x10], esi
mov ecx, ebx
mov dword [ebp - 0x3c], ebx
shr ecx, 2
push 0
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
lea eax, [eax + ecx*2]
add eax, ecx
lea ecx, [ebp - 0x20]
add eax, dword [ebp - 0x24]
push eax
call fcn.00413bb0
cmp dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x40275b
mov edx, dword [ebp - 0x28]
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0x2c]
add edx, 2
shr eax, 2
inc eax
mov dword [ebp - 0x34], eax
mov edi, eax
nop word [eax + eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov ecx, dword [eax*4 + 0x42ef50]
movzx eax, byte [edx - 5]
shl ecx, 6
or ecx, dword [eax*4 + 0x42ef50]
movzx eax, byte [edx - 4]
shl ecx, 6
or ecx, dword [eax*4 + 0x42ef50]
movzx eax, byte [edx - 3]
shl ecx, 6
or ecx, dword [eax*4 + 0x42ef50]
mov eax, ecx
sar eax, 0x10
mov byte [ebx + esi], al
mov eax, ecx
sar eax, 8
mov byte [ebx + esi + 1], al
mov byte [ebx + esi + 2], cl
add esi, 3
sub edi, 1
jne 0x402700
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x3c]
cmp dword [ebp - 0x24], 0
je 0x4027aa
add ebx, dword [ebp - 0x28]
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
mov edx, dword [eax*4 + 0x42ef50]
shl edx, 6
or edx, dword [ecx*4 + 0x42ef50]
mov ecx, dword [ebp - 0x2c]
shl edx, 0xc
mov eax, edx
sar eax, 0x10
cmp dword [ebp - 0x30], 0
mov byte [ecx + esi], al
je 0x4027aa
movzx eax, byte [ebx + 2]
sar edx, 8
mov eax, dword [eax*4 + 0x42ef50]
shl eax, 6
sar eax, 8
or al, dl
mov byte [ecx + esi + 1], al
movups xmm0, xmmword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov eax, edi
xor ecx, ebp
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x10]
movq qword [edi + 0x10], xmm0
pop edi
pop esi
pop ebx
call fcn.00414cec
mov esp, ebp
pop ebp
ret
Function at 0x405140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
mov esi, ecx
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x128], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405190
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00413cf0
sub esp, 0x18
mov ecx, esp
push str.YA
call fcn.00413990
lea ecx, [ebp - 0x140]
call fcn.004029f0
push eax
lea edx, [ebp - 0x128]
mov ecx, esi
call fcn.00413e40
mov edx, dword [ebp - 0x114]
add esp, 0x1c
cmp edx, 0x10
jb 0x40520d
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405203
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40526f
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp edx, 0x10
jb 0x40525e
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405254
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40526f
push edx
push ecx
call fcn.0041535e
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414cec
mov esp, ebp
pop ebp
ret
call fcn.004187ac
int3

Function at 0x405280
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
mov esi, ecx
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x128], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4052d0
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00413cf0
sub esp, 0x18
mov ecx, esp
push str.YA
call fcn.00413990
lea ecx, [ebp - 0x140]
call fcn.004029f0
push eax
lea edx, [ebp - 0x128]
mov ecx, esi
call fcn.00413e40
mov edx, dword [ebp - 0x114]
add esp, 0x1c
cmp edx, 0x10
jb 0x40534d
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405343
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053af
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp edx, 0x10
jb 0x40539e
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405394
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053af
push edx
push ecx
call fcn.0041535e
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414cec
mov esp, ebp
pop ebp
ret
call fcn.004187ac
int3
Function at 0x4053c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x128], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405410
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00413cf0
sub esp, 0x18
mov ecx, esp
push str.YA
call fcn.00413990
lea ecx, [ebp - 0x140]
call fcn.004029f0
push eax
lea edx, [ebp - 0x128]
mov ecx, esi
call fcn.00413e40
mov edx, dword [ebp - 0x114]
add esp, 0x1c
cmp edx, 0x10
jb 0x40548d
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405483
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054ef
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp edx, 0x10
jb 0x4054de
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4054d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054ef
push edx
push ecx
call fcn.0041535e
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414cec
mov esp, ebp
pop ebp
ret
call fcn.004187ac
int3
Function at 0x402554
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x21c
mov eax, 0x4215e3
call fcn.00420b4a
mov edi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
mov byte [edi + 0x14], cl
lea ecx, [ebp - 0x224]
push eax
call fcn.00401fdd
push ecx
push ecx
xor ebx, ebx
mov edx, esp
mov dword [ebp - 4], ebx
mov eax, dword [eax]
mov ecx, dword [eax + 8]
add eax, 0xc
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x220]
mov dword [edx], eax
call fcn.0040557a
pop ecx
pop ecx
mov byte [ebp - 4], 2
xor dl, dl
mov ecx, dword [ebp - 0x224]
call fcn.004018e2
mov cl, byte [edi + 0x14]
xor eax, eax
mov edx, dword [ebp - 0x220]
or dword [edi + 4], 0xffffffff
add edx, 0xc
or dword [edi + 8], 0xffffffff
test cl, cl
push ebx
push 0x80
setne al
mov dword [edi + 0xc], ebx
add eax, 2
test cl, cl
push eax
push ebx
push 3
pop eax
push 1
pop esi
cmovne eax, esi
mov esi, 0x80000000
push eax
mov eax, 0xc0000000
cmovne eax, esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x4026f2
cmp byte [0x43ac7c], bl
jne 0x402611
call fcn.00402924
mov esi, dword [0x43ac70]
test esi, esi
je 0x40266f
push 0x208
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.0040a910
add esp, 0xc
cmp byte [0x43ac7c], 0
jne 0x402644
call fcn.00402924
mov esi, dword [0x43ac70]
push ebx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 4]
call esi
push ecx
push ecx
lea edx, [ebp - 0x214]
mov ecx, esp
call fcn.00401d5b
lea ecx, [edi + 0x18]
call fcn.0040205d
jmp 0x40267e
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x18]
call fcn.00402c01
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov cl, byte [edi + 0x14]
xor edx, edx
push ebx
mov dword [edi + 0x10], eax
test cl, cl
mov eax, 0x10000000
cmovne eax, edx
push eax
push ebx
push 4
pop eax
push 2
pop esi
cmovne eax, esi
push eax
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp dword [edi + 4], 0xffffffff
mov dword [edi + 8], eax
je 0x4026c7
test eax, eax
jne 0x4026cb
mov ecx, edi
call fcn.00402709
jmp 0x4026f2
test eax, eax
je 0x4026e3
cmp byte [edi + 0x14], 0
push ebx
push ebx
push ebx
push 4
pop ecx
cmovne esi, ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0xc], eax
cmp dword [edi + 0xc], ebx
jne 0x4026ef
mov ecx, edi
call fcn.00402709
mov ebx, dword [edi + 0xc]
mov ecx, dword [ebp - 0x220]
xor dl, dl
call fcn.004018e2
mov eax, ebx
call fcn.00420b08
ret 8