joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014940
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
mov eax, dword [ebx + 0xc]
push ebp
push esi
xor ebp, ebp
push ebp
push 0x80
push 2
push ebp
push ebp
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10014a28
mov ecx, dword [ebx + 0x10]
call fcn.10014bf0
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push ebp
push 0x8000004
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esp + 8], eax
je 0x10014a28
push edi
push ebp
push ebp
push ebp
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x10014a1c
mov ebp, dword [ebx + 0x10]
push 0x164
push 0
push edi
call fcn.1005a450
lea eax, [ebp - 0x23b4]
mov dword [edi], 0x6143574b
lea ecx, [eax + 0x164]
add esp, 0xc
mov dword [edi + 4], 0x10001
cmp dword [ebx + 0x10], ecx
jae 0x100149dd
xor ebp, ebp
jmp 0x10014a15
mov ebp, 1
mov dword [edi + 0x30], ebp
mov dword [edi + 0x2c], eax
lea edx, [eax - 0x360]
mov eax, 0xa57eb503
mul edx
mov dword [edi + 0x28], 0x164
mov dword [edi + 0x24], ebp
shr edx, 9
mov dword [edi + 0x180], 0
mov dword [edi + 0x17c], edx
add dword [edi + 0x20], ebp
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
je 0x10014a38
cmp esi, 0xffffffff
je 0x10014a38
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x10014a40
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x28
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0x10000000
call fcn.10017060
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0xc]
push ebp
push 0x80
push 3
lea ecx, [esp + 0x2c]
push ecx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10014bab
push ebp
push esi
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov edi, eax
push edi
push ebp
push 0x8000004
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, ebp
je 0x10014bab
push ebp
push ebp
push ebp
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebp
je 0x10014afd
mov edx, dword [esp + 0x3c]
cmp edi, dword [edx + 0x10]
ja 0x10014af6
push edi
mov edi, eax
call fcn.10014d80
cmp eax, ebp
mov eax, edi
je 0x10014af6
mov dword [esp + 0x1c], 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
cmp dword [esp + 0x1c], ebp
je 0x10014bb1
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
push eax
push ebp
push 0x8000004
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, ebp
je 0x10014bb1
push ebp
push ebp
push ebp
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebp
je 0x10014ba6
mov ecx, dword [eax]
cmp ecx, 0x6143574b
jne 0x10014b9f
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebp
lea edx, [eax + 0x28]
mov ebx, 0x15
lea ecx, [ecx]
mov ecx, dword [edx]
test ecx, ecx
je 0x10014b72
mov ecx, dword [edx]
add ecx, eax
mov dword [ecx], ebp
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebp
add edx, 0x10
sub ebx, 1
jne 0x10014b60
mov ecx, dword [esp + 0x3c]
push esi
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
call fcn.100171b0
push edi
call fcn.100171b0
add esp, 8
mov dword [esp + 0x14], 1
jmp 0x10014bbd
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call ebx
jmp 0x10014bb1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebp
je 0x10014bbd
cmp esi, 0xffffffff
je 0x10014bbd
push esi
call ebx
mov eax, dword [esp + 0x30]
cmp eax, ebp
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x10014bd2
push eax
call esi
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x10014bdd
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x10014bf0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x1008f3a0]
xor eax, esp
mov dword [esp + 0x404], eax
push edi
push 0x3ff
lea eax, [esp + 0xd]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x14], 0
call fcn.1005a450
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jbe 0x10014c48
mov eax, 1
pop edi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.1005574a
add esp, 0x408
ret
push ebp
push 2
push 0
push 0
push esi
sub edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
jbe 0x10014cab
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10014c70
cmp edi, 0x400
mov dword [esp + 8], 0
push 0
jbe 0x10014c93
lea ecx, [esp + 0xc]
push ecx
push 0x400
lea edx, [esp + 0x18]
push edx
jmp 0x10014c9e
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
call ebp
test eax, eax
je 0x10014cc7
sub edi, dword [esp + 8]
jne 0x10014c70
pop ebp
mov eax, 1
pop edi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.1005574a
add esp, 0x408
ret
mov ecx, dword [esp + 0x40c]
pop ebp
pop edi
xor ecx, esp
xor eax, eax
call fcn.1005574a
add esp, 0x408
ret

Function at 0x10014e20
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 8]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x10014e3a
pop esi
add esp, 0x10
ret
push edi
push 1
push esi
call fcn.10055153
mov edi, eax
add esp, 8
test edi, edi
je 0x10014ed7
mov ecx, dword [esp + 0xc]
push edi
push esi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10014ece
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
push 0x10081094
push edi
mov dword [esp + 0x18], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10014ece
cmp dword [esp + 8], 0
je 0x10014ece
push 0x10
call fcn.100551e8
mov esi, eax
add esp, 4
test esi, esi
je 0x10014ed7
mov eax, dword [esp + 8]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
mov dword [esi + 8], ecx
lea ecx, [esp + 0x14]
push ecx
lea eax, [esi + 0xc]
push eax
push 0x10081090
push edi
mov dword [esi + 4], edx
mov dword [esi], edi
mov dword [eax], 0
call sub.VERSION.dll_VerQueryValueW
pop edi
mov eax, esi
pop esi
add esp, 0x10
ret
push edi
call fcn.1005552d
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x10014f00
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x224
mov eax, dword [0x1008f3a0]
xor eax, esp
mov dword [esp + 0x220], eax
movzx eax, word [ebx + 4]
push esi
mov esi, ecx
mov cx, word [ebx + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [esp + 0x10], ax
mov word [esp + 0x12], cx
call edi
mov dx, word [ebx + 8]
mov word [esp + 0x14], ax
movzx eax, word [ebx + 4]
mov word [esp + 0x16], dx
mov word [esp + 0x18], ax
mov word [esp + 0x1a], 0x4e4
call edi
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], 0x4e4
xor edi, edi
movzx eax, word [esp + edi*2 + 0x10]
movzx ecx, word [esp + edi*2 + 0x12]
add edi, 1
push 0x100810c8
movzx ecx, cx
push ecx
movzx edx, ax
push edx
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [esp + 0x34]
push 0x104
push eax
add edi, 1
call fcn.10057095
add esp, 0x1c
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x18], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10014fc4
mov edx, dword [esp + 8]
test edx, edx
jne 0x10014fe2
cmp edi, 8
jb 0x10014f60
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1005574a
add esp, 0x224
ret
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10014fe7
sub eax, edi
sar eax, 1
push eax
push edx
call fcn.10008a30
mov ecx, dword [esp + 0x228]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.1005574a
add esp, 0x224
ret

Function at 0x10015f80
Capabilities:
Create thread

Disassembly:
push esi
push 0xc
call fcn.100551e8
mov edx, dword [esp + 0x10]
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push esi
push 0x10015f50
test edi, edi
push 0
setne cl
push 0
mov dword [esi], eax
mov byte [esi + 8], cl
mov dword [esi + 4], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10015fc7
push esi
call fcn.100549f0
add esp, 4
xor al, al
pop esi
ret
test edi, edi
je 0x10015fd1
mov dword [edi], eax
mov al, 1
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x10016150
Capabilities:
Read .ini file

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x1001615b
mov eax, dword [eax + 4]
jmp 0x1001615e
add eax, 4
push eax
mov eax, dword [esp + 8]
push 0
push eax
push str.Param
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
ret 4
Function at 0x100161b0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x100c
call fcn.1005ac60
mov eax, dword [0x1008f3a0]
xor eax, esp
mov dword [esp + 0x1008], eax
mov eax, dword [esp + 0x1010]
mov eax, dword [eax]
push esi
push edi
mov esi, edx
lea edx, [esp + 8]
push edx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
push 0
push ecx
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x1001627b
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x10016232
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10016214
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.10008a30
mov eax, edi
jmp 0x1001627b
cmp eax, 2
jne 0x10016276
push 0x400
lea edx, [esp + 0x814]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
mov dword [esp + 8], eax
je 0x1001626f
cmp eax, 0x400
ja 0x1001626f
push esi
lea edx, [esp + 0x814]
call fcn.10008970
mov eax, edi
jmp 0x1001627b
mov eax, 0xea
jmp 0x1001627b
mov eax, 0x3f4
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
xor ecx, esp
call fcn.1005574a
add esp, 0x100c
ret 4
Function at 0x100162a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10078cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008f3a0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x64]
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
jbe 0x100162d8
call fcn.10055f58
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
jbe 0x100162e5
call fcn.10055f58
push esi
push ebx
push edi
push ebx
lea eax, [esp + 0x2c]
push eax
call fcn.100166d0
mov eax, dword [esp + 0x60]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax]
xor esi, esi
push esi
lea edx, [esp + 0x20]
push edx
push esi
push str.DhcpDefaultGateway
mov edi, 7
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
call ebp
cmp eax, esi
jl 0x10016443
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x10016443
cmp dword [esp + 0x18], edi
je 0x10016346
mov eax, 0x3f4
jmp 0x10016443
shr ecx, 1
mov dword [esp + 0x1c], esi
lea ebx, [esp + 0x1c]
mov edi, ecx
lea esi, [esp + 0x24]
call fcn.10016770
xor ebx, ebx
mov dword [esp + 0x58], ebx
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x10016373
mov edx, dword [esp + 0x2c]
sub edx, esi
sar edx, 1
jne 0x10016378
call fcn.10055f58
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push ebx
push str.DhcpDefaultGateway
push edx
call ebp
mov edi, eax
cmp edi, ebx
jl 0x10016434
cmp dword [esp + 0x14], ebx
je 0x10016434
lea esi, [esp + 0x24]
call fcn.10016570
mov ecx, dword [esp + 0x14]
shr ecx, 1
lea ebp, [eax + ecx*2]
cmp eax, ebp
jae 0x10016427
cmp word [eax], bx
je 0x10016427
cmp eax, ebp
mov edi, eax
je 0x100163cf
cmp word [edi], bx
je 0x100163cf
add edi, 2
cmp edi, ebp
jne 0x100163c3
cmp eax, edi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
je 0x100163f5
mov edx, edi
sub edx, eax
sar edx, 1
push edx
push eax
lea esi, [esp + 0x3c]
call fcn.10008a30
mov esi, dword [esp + 0x64]
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x5c], 1
call fcn.100164c0
mov byte [esp + 0x58], bl
cmp dword [esp + 0x4c], 8
jb 0x10016420
mov ecx, dword [esp + 0x38]
push ecx
call fcn.100549f0
add esp, 4
lea eax, [edi + 2]
cmp eax, ebp
jb 0x100163b8
lea esi, [esp + 0x24]
call fcn.100174e0
xor eax, eax
jmp 0x10016443
cmp esi, ebx
je 0x10016441
push esi
call fcn.100549f0
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8
Function at 0x10018c70
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x258
mov eax, dword [0x1008f3a0]
xor eax, esp
mov dword [esp + 0x254], eax
test esi, esi
jne 0x10018c9f
xor al, al
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.1005574a
add esp, 0x258
ret
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10018ca4
sub eax, edx
sar eax, 1
cmp eax, 0x104
jae 0x10018c88
lea eax, [esp + 0x24]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10018cfa
mov ecx, dword [esp + 0x24]
shr ecx, 4
and cl, 1
je 0x10018cfa
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.1005574a
add esp, 0x258
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10018d1c
mov al, 1
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.1005574a
add esp, 0x258
ret
push 0x208
lea edx, [esp + 0x4e]
push 0
push edx
mov word [esp + 0x54], 0
call fcn.1005a450
push esi
lea eax, [esp + 0x58]
push 0x105
push eax
call fcn.10058ba9
xor eax, eax
add esp, 0x18
lea edx, [esp + 4]
lea ecx, [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
push edx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], ecx
mov word [esp + 0x18], 0x1494
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x16], 0
jne 0x10018c88
test eax, eax
je 0x10018dc2
cmp eax, 2
je 0x10018dc2
cmp eax, 0x402
je 0x10018dc2
xor eax, eax
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.1005574a
add esp, 0x258
ret
mov ecx, dword [esp + 0x254]
xor ecx, esp
mov eax, 1
call fcn.1005574a
add esp, 0x258
ret

Function at 0x10018de0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10004
call fcn.1005ac60
mov eax, dword [0x1008f3a0]
xor eax, esp
mov dword [esp + 0x10000], eax
mov eax, dword [esp + 0x10008]
push esi
push 0x40
push 0x10084b8c
push eax
call fcn.100570b4
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10018e2e
xor al, al
pop esi
mov ecx, dword [esp + 0x10000]
xor ecx, esp
call fcn.1005574a
add esp, 0x10004
ret
push esi
push 0x10000
lea eax, [esp + 0xc]
push 1
push eax
call fcn.10058eb1
add esp, 0x10
test eax, eax
jbe 0x10018e71
test edi, edi
je 0x10018e58
push eax
lea ecx, [esp + 8]
push ecx
mov eax, edi
call fcn.10018710
push esi
push 0x10000
lea edx, [esp + 0xc]
push 1
push edx
call fcn.10058eb1
add esp, 0x10
test eax, eax
ja 0x10018e47
push esi
call fcn.100573e0
mov ecx, dword [esp + 0x10008]
add esp, 4
pop esi
xor ecx, esp
mov al, 1
call fcn.1005574a
add esp, 0x10004
ret
Function at 0x1001d110
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x100789d6
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x1008f3a0]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008f3a0]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
xor ebx, ebx
push 0xd2
lea eax, [esp + 0x2a]
push ebx
push eax
mov esi, ecx
mov word [esp + 0x30], bx
call fcn.1005a450
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebx
jne 0x1001d17f
xor eax, eax
jmp 0x1001d2c2
cdq
and edx, 3
add eax, edx
push 0x208
lea edx, [esp + 0x102]
mov edi, eax
push ebx
push edx
sar edi, 2
mov word [esp + 0x108], bx
call fcn.1005a450
add esi, 4
mov word [esp + 0x310], bx
mov ebx, dword [esi + 8]
add esp, 0xc
cmp dword [esi + 4], ebx
lea ebp, [esp + 0x24]
jbe 0x1001d1c4
call fcn.10055f58
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0x14], eax
jbe 0x1001d1d9
call fcn.10055f58
mov eax, dword [esp + 0x14]
push ebx
push esi
push eax
push esi
lea eax, [esp + 0x24]
push eax
mov ebx, esi
call fcn.1001d970
xor ebx, ebx
cmp edi, ebx
jle 0x1001d2bd
mov dword [esp + 0x14], edi
or edi, 0xffffffff
jmp 0x1001d202
xor ebx, ebx
push 0x104
lea ecx, [esp + 0x100]
push ecx
push ebp
mov word [ebp + 4], bx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1001d2af
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x100]
call fcn.100012f0
mov dword [esp + 0x318], ebx
lea ebx, [esp + 0x1c]
call fcn.1001d860
mov dword [esp + 0x318], edi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001d269
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.100012f0
lea ebx, [esp + 0x20]
mov dword [esp + 0x318], 1
call fcn.1001d860
mov dword [esp + 0x318], edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001d2af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 8
sub dword [esp + 0x14], 1
jne 0x1001d200
mov eax, 1
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.1005574a
add esp, 0x308
ret
Function at 0x1001d320
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 0x14], 0
jne 0x1001d3af
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0x18], eax
je 0x1001d3af
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x18]
push str.EnumProcesses
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.GetModuleBaseNameW
push ecx
mov dword [esi], eax
call edi
mov edx, dword [esi + 0x18]
push str.GetModuleFileNameExW
push edx
mov dword [esi + 4], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x18]
push str.GetProcessImageFileNameW
push eax
call edi
cmp dword [esi], 0
mov dword [esi + 0x10], eax
pop edi
je 0x1001d3aa
cmp dword [esi + 4], 0
je 0x1001d3aa
cmp dword [esi + 8], 0
je 0x1001d3aa
cmp dword [esi + 0xc], 0
je 0x1001d3aa
test eax, eax
je 0x1001d3aa
mov eax, 1
mov dword [esi + 0x14], eax
ret
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
ret

Function at 0x1001d770
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10088c98
push 0x1005bc90
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x1008f3a0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x1001d81e
lea ecx, [ebp - 0x28]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x1001d81e
mov edi, 1
mov dword [ebp - 0x38], edi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x1001d81e
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.1001d841
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001e280
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x1008f3a0]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push edi
push 0x11c
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.1005a450
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call edi
test eax, eax
jne 0x1001e2db
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x114
call edi
test eax, eax
je 0x1001e3b8
mov eax, dword [esp + 0x18]
mov ecx, 1
sub eax, ecx
je 0x1001e3a5
sub eax, ecx
je 0x1001e2f7
xor esi, esi
jmp 0x1001e3b8
mov eax, dword [esp + 0xc]
cmp eax, 6
jne 0x1001e372
mov eax, dword [esp + 0x10]
cmp eax, 4
jne 0x1001e311
lea esi, [eax + 0xb]
jmp 0x1001e3b8
cmp eax, 3
jne 0x1001e32c
xor eax, eax
cmp byte [esp + 0x122], cl
setne al
add eax, 0xd
mov esi, eax
jmp 0x1001e3b8
cmp eax, 2
jne 0x1001e344
xor edx, edx
cmp byte [esp + 0x122], cl
setne dl
add edx, 0xb
mov esi, edx
jmp 0x1001e3b8
cmp eax, ecx
jne 0x1001e35b
xor eax, eax
cmp byte [esp + 0x122], cl
setne al
add eax, 9
mov esi, eax
jmp 0x1001e3b8
test eax, eax
jne 0x1001e3b8
xor edx, edx
cmp byte [esp + 0x122], cl
setne dl
add edx, 7
mov esi, edx
jmp 0x1001e3b8
cmp eax, 5
jne 0x1001e399
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x1001e385
lea esi, [eax + 3]
jmp 0x1001e3b8
cmp eax, ecx
jne 0x1001e390
mov esi, 6
jmp 0x1001e3b8
test eax, eax
jne 0x1001e3b8
lea esi, [eax + 3]
jmp 0x1001e3b8
cmp eax, 4
ja 0x1001e3b8
mov esi, 4
jmp 0x1001e3b8
mov eax, dword [esp + 0x14]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb esi, esi
add esi, 2
mov ecx, dword [esp + 0x124]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.1005574a
add esp, 0x120
ret

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

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
xor ebx, ebx
mov esi, ebp
mov dword [esp + 0xc], ebx
call fcn.10002000
mov eax, dword [esp + 0x18]
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001e8dd
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x1001e8dc
mov eax, dword [ebp]
sub eax, 0x10
mov dword [esp + 0x14], ebx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 1]
sub eax, ecx
or edx, eax
mov ebx, edi
jge 0x1001e897
mov eax, ebp
call fcn.10002060
mov ebp, dword [ebp]
mov dword [esp + 0x1c], ebp
mov edi, edi
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001e8dc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1001e8dc
sub ebx, eax
add ebp, eax
test ebx, ebx
jne 0x1001e8a0
mov edx, dword [esp + 0x1c]
mov byte [edx + edi], bl
mov edi, dword [esp + 0x20]
call fcn.1001e900
mov dword [esp + 0x10], 1
pop edi
test esi, esi
je 0x1001e8e8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 8
ret 8