joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12eab8d6
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
call fcn.12f9c530
test eax, eax
je 0x12eab93f
mov edx, dword [esp + 0x210]
test edx, edx
je 0x12eab93f
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
pop edi
jbe 0x12eab93f
cmp eax, 0x104
jae 0x12eab93f
mov ecx, dword [esp + 0x214]
lea edx, [esp + 4]
push ecx
push edx
mov ecx, esi
call fcn.12eab7a0
pop esi
add esp, 0x208
ret 8
xor eax, eax
pop esi
add esp, 0x208
ret 8

Function at 0x12eaba96
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
call fcn.12f9c530
test eax, eax
je 0x12eabb07
mov edx, dword [esp + 0x210]
test edx, edx
je 0x12eabb07
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
pop edi
jbe 0x12eabb07
cmp eax, 0x104
jae 0x12eabb07
mov ecx, dword [esp + 0x218]
mov edx, dword [esp + 0x214]
push ecx
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.12eab950
pop esi
add esp, 0x208
ret 0xc
xor eax, eax
pop esi
add esp, 0x208
ret 0xc

Function at 0x12eaf250
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x131befa8]
sub esp, 0x154
test eax, eax
push esi
push edi
jne 0x12eaf340
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0xcc]
mov dword [esp + 0x2c], eax
rep stosd dword es:[edi], eax
mov ecx, 0x26
lea edi, [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc8]
mov dword [0x131befa8], 1
push eax
mov dword [esp + 0xcc], 0x94
call esi
cmp dword [esp + 0xd8], 2
jne 0x12eaf340
lea ecx, [esp + 0x2c]
push ebx
push ecx
mov dword [esp + 0x34], 0x9c
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x13136f68
push esi
call ebx
push 0x13136f58
push esi
mov edi, eax
call ebx
test edi, edi
pop ebx
je 0x12eaf305
lea edx, [esp + 8]
push edx
call edi
jmp 0x12eaf310
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x30]
cmp eax, 6
jae 0x12eaf325
cmp eax, 5
jne 0x12eaf340
cmp dword [esp + 0x34], 2
jb 0x12eaf340
cmp word [esp + 8], 9
jne 0x12eaf340
mov eax, 1
pop edi
mov dword [0x131befa4], eax
pop esi
add esp, 0x154
ret
mov eax, dword [0x131befa4]
pop edi
pop esi
add esp, 0x154
ret
Function at 0x12eb0620
Capabilities:
Get file size
Print debug messages
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x12eb0637
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x12eb068b
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x12eb068b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x20]
jae 0x12eb068b
mov eax, dword [esi + 0x18]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x18], 0
not ecx
dec ecx
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x12eb06be
lea eax, [esp + 0x10]
push 0
push eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
push ecx
push ebx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
pop edi
pop esi
pop ebx
ret 4

Function at 0x12eb06d0
Capabilities:
Get file size
Print debug messages
Write file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 8]
test eax, eax
je 0x12eb06e6
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x12eb0739
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x12eb0739
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x20]
jae 0x12eb0739
mov eax, dword [esi + 0x18]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
mov dword [esp + 0x18], 0
call fcn.12f5c44d
mov edx, dword [esi + 0x18]
add esp, 4
shl eax, 1
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x12eb076b
lea eax, [esp + 0xc]
push 0
push eax
push edi
mov dword [esp + 0x18], 0
call fcn.12f5c44d
add esp, 4
shl eax, 1
push eax
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
pop edi
pop esi
ret 4
Function at 0x12eb13e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x130645e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x10]
call fcn.12f55b70
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call fcn.12f4cba0
mov eax, dword [0x1307d25c]
mov byte [esp + 0x14], 1
mov dword [esi + 0x40], eax
push edi
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 2
call fcn.12eb0bc0
lea ecx, [esi + 0x70]
mov byte [esp + 0x14], 3
call fcn.12eb0e70
lea ecx, [esi + 0x74]
mov byte [esp + 0x14], 4
call fcn.12eb0f30
push edi
lea ecx, [esi + 0x84]
mov byte [esp + 0x18], 5
call fcn.12eb1060
mov ecx, dword [esp + 0xc]
or eax, 0xffffffff
mov byte [esp + 0x14], 6
mov dword [esi], 0x1307afb0
mov dword [esi + 4], edi
mov dword [esi + 8], 2
mov dword [esi + 0xc], eax
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esp + 0x14], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x12eb1660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x130646bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebp
mov ebp, ecx
push esi
push 1
lea eax, [ebp + 0x10]
lea ecx, [esp + 0xc]
push eax
call fcn.12f560a0
xor esi, esi
add ebp, 0x30
push 0xffffffffffffffff
push esi
mov ecx, ebp
mov dword [esp + 0x22c], esi
call fcn.12f4cc10
mov edx, dword [esp + 0x22c]
cmp edx, esi
jne 0x12eb16c8
lea ecx, [esp + 8]
mov dword [esp + 0x224], 0xffffffff
call fcn.12f56100
jmp 0x12eb1763
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3b
push edx
mov edi, edx
call fcn.12f5cfc9
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x12eb173b
mov esi, ebx
sub esi, edi
sar esi, 1
je 0x12eb1727
cmp esi, 0x103
jae 0x12eb1727
push esi
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.12f5c4ab
mov eax, dword [ebp + 4]
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, ebp
push edx
push eax
mov word [esp + esi*2 + 0x24], 0
call fcn.12f4d0c0
lea edi, [ebx + 2]
push 0x3b
push edi
call fcn.12f5cfc9
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x12eb16f1
cmp word [edi], 0
je 0x12eb174d
mov eax, dword [ebp + 4]
push edi
push eax
mov ecx, ebp
call fcn.12f4d0c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call fcn.12f56100
pop edi
pop ebx
mov ecx, dword [esp + 0x21c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x220
ret 4
Function at 0x12eb25f0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x131bf350]
push edi
xor edi, edi
cmp eax, edi
je 0x12eb2603
mov eax, 1
pop edi
ret
push 0x13137648
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x131bf354], eax
je 0x12eb2836
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x13137638
push eax
call esi
mov dword [0x131bf314], eax
mov eax, dword [0x131bf354]
push 0x13137628
push eax
call esi
mov ecx, dword [0x131bf354]
push 0x13137618
push ecx
mov dword [0x131bf318], eax
call esi
mov edx, dword [0x131bf354]
push 0x1313760c
push edx
mov dword [0x131bf31c], eax
call esi
mov dword [0x131bf320], eax
mov eax, dword [0x131bf354]
push 0x131375f8
push eax
call esi
mov ecx, dword [0x131bf354]
push 0x131375e8
push ecx
mov dword [0x131bf324], eax
call esi
mov edx, dword [0x131bf354]
push 0x131375d8
push edx
mov dword [0x131bf328], eax
call esi
mov dword [0x131bf32c], eax
mov eax, dword [0x131bf354]
push 0x131375c8
push eax
call esi
mov ecx, dword [0x131bf354]
push 0x131375b8
push ecx
mov dword [0x131bf330], eax
call esi
mov edx, dword [0x131bf354]
push 0x131375a4
push edx
mov dword [0x131bf334], eax
call esi
mov dword [0x131bf338], eax
mov eax, dword [0x131bf354]
push 0x13137598
push eax
call esi
mov ecx, dword [0x131bf354]
push 0x13137588
push ecx
mov dword [0x131bf33c], eax
call esi
mov edx, dword [0x131bf354]
push 0x13137570
push edx
mov dword [0x131bf340], eax
call esi
mov dword [0x131bf344], eax
mov eax, dword [0x131bf354]
push 0x13137558
push eax
call esi
mov ecx, dword [0x131bf354]
push 0x1313753c
push ecx
mov dword [0x131bf348], eax
call esi
mov ecx, dword [0x131bf314]
mov dword [0x131bf34c], eax
cmp ecx, edi
pop esi
je 0x12eb27bc
cmp dword [0x131bf318], edi
je 0x12eb27bc
cmp dword [0x131bf31c], edi
je 0x12eb27bc
cmp dword [0x131bf320], edi
je 0x12eb27bc
cmp dword [0x131bf324], edi
je 0x12eb27bc
cmp dword [0x131bf328], edi
je 0x12eb27bc
cmp dword [0x131bf32c], edi
je 0x12eb27bc
cmp dword [0x131bf330], edi
je 0x12eb27bc
cmp dword [0x131bf334], edi
je 0x12eb27bc
cmp dword [0x131bf338], edi
je 0x12eb27bc
cmp dword [0x131bf33c], edi
je 0x12eb27bc
cmp dword [0x131bf340], edi
je 0x12eb27bc
cmp dword [0x131bf344], edi
je 0x12eb27bc
cmp dword [0x131bf348], edi
je 0x12eb27bc
cmp eax, edi
je 0x12eb27bc
mov dword [0x131bf350], 1
mov eax, dword [0x131bf350]
pop edi
ret
mov edx, dword [0x131bf354]
mov dword [0x131bf350], edi
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x131bf350]
mov dword [0x131bf354], edi
mov dword [0x131bf314], edi
mov dword [0x131bf318], edi
mov dword [0x131bf31c], edi
mov dword [0x131bf320], edi
mov dword [0x131bf324], edi
mov dword [0x131bf328], edi
mov dword [0x131bf32c], edi
mov dword [0x131bf330], edi
mov dword [0x131bf334], edi
mov dword [0x131bf338], edi
mov dword [0x131bf33c], edi
mov dword [0x131bf340], edi
mov dword [0x131bf344], edi
mov dword [0x131bf348], edi
mov dword [0x131bf34c], edi
pop edi
ret
cmp dword [0x13198f68], edi
je 0x12eb2852
push 0x1313745c
push 0x13137440
push 4
call fcn.12dad750
add esp, 0xc
mov dword [0x131bf350], edi
xor eax, eax
pop edi
ret
Function at 0x12eb51c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x13064d08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
push 1
push esi
lea ecx, [esp + 0x18]
call fcn.12f560a0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x30], ebx
push eax
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.12eb5660
mov edi, eax
cmp edi, ebx
je 0x12eb52f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
je 0x12eb52df
cmp eax, ecx
jb 0x12eb523b
add ecx, 0x493e0
cmp eax, ecx
jbe 0x12eb52df
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
jne 0x12eb524d
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
jmp 0x12eb5254
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
cmp eax, dword [esi + 0x24]
jne 0x12eb5261
mov edx, dword [eax + 4]
mov dword [esi + 0x24], edx
jmp 0x12eb5269
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
cmp ecx, edx
jge 0x12eb5280
mov edx, dword [esi + 0x28]
mov dword [eax], edx
mov dword [esi + 0x28], eax
inc dword [esi + 0x30]
jmp 0x12eb5289
push eax
call fcn.12f5bf80
add esp, 4
mov eax, dword [esi + 0x2c]
dec eax
mov dword [esi + 0x2c], eax
jne 0x12eb52f0
mov eax, dword [esi + 0x20]
mov ecx, eax
cmp ecx, ebx
je 0x12eb52a1
mov ecx, dword [ecx]
cmp ecx, ebx
jne 0x12eb529b
cmp eax, ebx
je 0x12eb52b6
mov edi, dword [eax]
push eax
call fcn.12f5bf80
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x12eb52a5
mov eax, dword [esi + 0x28]
mov dword [esi + 0x2c], ebx
cmp eax, ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
je 0x12eb52d7
mov edi, dword [eax]
push eax
call fcn.12f5bf80
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x12eb52c6
mov dword [esi + 0x30], ebx
mov dword [esi + 0x28], ebx
jmp 0x12eb52f0
mov edx, dword [esp + 0x38]
mov ecx, dword [edi + 0xc]
mov ebx, 1
mov dword [edx], ecx
mov dword [edi + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.12f56100
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x12eb5500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x13064d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push 1
push esi
lea ecx, [esp + 0x14]
call fcn.12f560a0
mov eax, dword [esi + 0x20]
xor ebx, ebx
mov ecx, eax
mov dword [esp + 0x20], ebx
cmp ecx, ebx
je 0x12eb553e
mov ecx, dword [ecx]
cmp ecx, ebx
jne 0x12eb5538
cmp eax, ebx
je 0x12eb5553
mov edi, dword [eax]
push eax
call fcn.12f5bf80
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x12eb5542
mov eax, dword [esi + 0x28]
mov dword [esi + 0x2c], ebx
cmp eax, ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
je 0x12eb5574
mov edi, dword [eax]
push eax
call fcn.12f5bf80
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x12eb5563
mov dword [esi + 0x30], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.12f56100
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x12eb7976
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x131bfd20
jmp 0x12eb7960
push 0xffffffffffffffff
push 0x1306504b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x10]
call fcn.12f55b70
mov ecx, dword [esp + 8]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esi], 0x1307b140
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x240], eax
mov dword [esp + 0x10], 0xffffffff
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x12eb8636
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x131bff68
jmp 0x12eb8620
push 0xffffffffffffffff
push 0x130650eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x10]
call fcn.12f55b70
mov ecx, dword [esp + 8]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esi], 0x1307b144
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x240], eax
mov dword [esi + 0x244], eax
mov dword [esi + 0x248], eax
mov dword [esp + 0x10], 0xffffffff
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x12ec1840
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x48]
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x12ec186d
pop esi
xor eax, eax
pop ebx
add esp, 0x44
ret
push ebp
push edi
push ebx
push esi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0x40
jbe 0x12ec1932
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x58]
push ebx
push ecx
lea edx, [esp + 0x1c]
push 0x40
push edx
push esi
mov dword [esp + 0x6c], ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12ec1932
cmp word [esp + 0x14], 0x5a4d
jne 0x12ec1932
mov eax, dword [esp + 0x50]
lea ebx, [eax + 0x108]
cmp ebp, ebx
jbe 0x12ec1932
mov edi, dword [esp + 0x5c]
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.12f925c0
mov ecx, edi
call fcn.12f92cd0
push 0
push 0
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x58]
push 0
push ecx
push ebx
push edi
push esi
mov dword [esp + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12ec1932
mov edx, dword [esp + 0x60]
mov dword [esp + 0x10], 1
mov dword [edx], edi
mov eax, dword [edi + 0x3c]
mov edx, dword [esp + 0x64]
add eax, edi
lea ecx, [eax + 4]
add eax, 0x18
mov dword [edx], ecx
mov ecx, dword [esp + 0x68]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x12ec3530
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x13065c42
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x838
push ebx
push esi
push edi
xor ebx, ebx
push 0x131911a8
lea ecx, [esp + 0x10]
mov dword [esp + 0x844], ebx
call fcn.12f46a80
mov esi, dword [esp + 0x858]
mov edi, 1
cmp esi, ebx
mov dword [esp + 0x84c], edi
je 0x12ec3749
push esi
call fcn.12f5c44d
add esp, 4
test eax, eax
je 0x12ec3749
mov ecx, 0x104
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
push ebp
push 0x208
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push esi
push eax
call fcn.12f5c4ab
mov ecx, 0x104
xor eax, eax
lea edi, [esp + 0x43e]
push 0x17
mov word [esp + 0x440], bx
push 0x13121500
rep stosd dword es:[edi], eax
push esi
call fcn.12f5e2b3
add esp, 0x18
test eax, eax
jne 0x12ec36f8
push 0x13121500
call fcn.12f5c44d
push esi
mov ebp, eax
call fcn.12f5c44d
mov ecx, 0x11
add esp, 8
sub ecx, ebp
add eax, ecx
cmp eax, 0x208
ja 0x12ec3636
mov ecx, 0x104
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esi + ebp*2 + 2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
push edx
mov ax, word [esi + ebp*2]
lea ecx, [esp + 0x20]
push eax
push 0x13142a28
push ecx
call fcn.12f5ceef
add esp, 0x10
push esi
call fcn.12f5c44d
add esp, 4
cmp eax, 0x19
jbe 0x12ec36f8
mov ax, word [esi + ebp*2 + 2]
lea ebx, [esi + ebp*2 + 2]
cmp ax, 0x5c
je 0x12ec3661
cmp ax, 0x2f
jne 0x12ec36f8
mov ax, word [0x130e0f14]
mov edx, dword [0x130e0f10]
mov word [esp + 0x18], ax
mov ax, word [esi + ebp*2]
mov dword [esp + 0x14], edx
cmp ax, 0x43
mov word [esp + 0x14], ax
jb 0x12ec368b
cmp ax, 0x5a
jbe 0x12ec3697
cmp ax, 0x63
jb 0x12ec36f8
cmp ax, 0x7a
ja 0x12ec36f8
lea ecx, [esp + 0x430]
push 0x208
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x12ec36f8
cmp eax, 0x208
jae 0x12ec36f8
lea eax, [esp + 0x430]
push 0x18
push eax
push esi
call fcn.12f5e2b3
add esp, 0xc
test eax, eax
jne 0x12ec36f8
mov ecx, 0x104
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
xor ecx, ecx
push ebx
stosw word es:[edi], ax
mov cx, word [esi + ebp*2]
lea edx, [esp + 0x20]
push ecx
push 0x131214f4
push edx
call fcn.12f5ceef
add esp, 0x10
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.12f474a0
mov eax, dword [0x13198f68]
pop ebp
test eax, eax
je 0x12ec3729
mov ecx, dword [esp + 0xc]
push ecx
push 0x131429cc
push str.procidentifytype
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov esi, dword [esp + 0x854]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.12f46820
mov dword [esp + 0x840], 1
jmp 0x12ec3763
mov esi, dword [esp + 0x854]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.12f46820
mov dword [esp + 0x840], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x84c], 0
call fcn.12f47220
mov ecx, dword [esp + 0x844]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x844
ret 8
Function at 0x12ecaa40
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x65c]
test eax, eax
jne 0x12ecaaa4
call fcn.12f9c450
test eax, eax
jne 0x12ecaaa4
push 0xffffffffffffffff
call sym.winahdcore32.dll_GetSCDTDesktopMode
cmp eax, 2
je 0x12ecaaa4
call fcn.12f9c7b0
test eax, eax
je 0x12ecaaa4
mov ecx, esi
call fcn.12ec0920
test eax, eax
je 0x12ecaaa4
call fcn.12d91a00
test eax, eax
je 0x12ecaaa4
mov eax, dword [esi + 0x65c]
test eax, eax
jne 0x12ecaaa4
push 0
push 0
push 0
push 0x12ecaab0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x65c], eax
pop esi
ret

Function at 0x12ecd240
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.12e30bc0
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 4
cmp eax, 0xffffffff
je 0x12ecd26f
test al, 0x10
jne 0x12ecd28e
test al, 1
je 0x12ecd268
and al, 0xfe
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.13005d20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x12ecd285
pop edi
pop esi
ret 8
push esi
call fcn.12e30bc0
add esp, 4
mov ecx, dword [esp + 0x10]
mov edx, ecx
or edx, 0x10
cmp eax, edx
je 0x12ecd29f
push ecx
push esi
call edi
pop edi
mov eax, 1
pop esi
ret 8
Function at 0x12ed2e77
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x131c12e0
jmp 0x12ed2e60
push 0xffffffffffffffff
push 0x13066cde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 4]
call fcn.12f55b70
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], 0x11
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], 0xa
mov byte [esp + 0x18], 1
mov dword [esi + 0x3c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
lea ecx, [esi + 0x4c]
mov byte [esp + 0x18], 2
call fcn.12f55b70
mov eax, dword [0x1307d25c]
lea ebp, [esi + 0x6c]
mov byte [esp + 0x18], 3
mov dword [ebp], eax
lea ecx, [esi + 0x74]
mov byte [esp + 0x18], 4
call fcn.12f55b70
lea ecx, [esi + 0x94]
mov byte [esp + 0x18], 5
call fcn.12f545a0
lea ecx, [esi + 0xa8]
mov byte [esp + 0x18], 6
call fcn.12f55b70
lea ecx, [esi + 0xc8]
mov byte [esp + 0x18], 7
call fcn.12f545a0
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 8
call fcn.12f55b70
mov byte [esp + 0x18], 9
mov dword [esi + 0x100], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x104], edi
lea ecx, [esi + 0x114]
mov byte [esp + 0x18], 0xa
call fcn.12f55b70
lea ecx, [esi + 0x134]
mov byte [esp + 0x18], 0xb
call fcn.12f4cba0
lea ecx, [esi + 0x144]
mov byte [esp + 0x18], 0xc
call fcn.12f4cba0
lea ecx, [esi + 0x154]
mov byte [esp + 0x18], 0xd
call fcn.12f4cba0
lea ecx, [esi + 0x164]
mov byte [esp + 0x18], 0xe
call fcn.12f4cba0
mov byte [esp + 0x18], 0xf
mov dword [esi], 0x1307bca8
push 0x131911a8
mov ecx, ebp
call fcn.12f474a0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xa4], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x70], 1
mov dword [esi + 0xdc], 1
mov eax, esi
pop edi
mov dword [esp + 0x14], 0xffffffff
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret