joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b290
Capabilities:
Accept command line arguments

Disassembly:
push ecx
cmp dword [eax + 0x14], 8
push esi
push edi
mov edi, ecx
jb 0x1000b29d
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [edi + 4], eax
test eax, eax
je 0x1000b2d8
cmp dword [edi], 0
jle 0x1000b2d8
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x1000b2c0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x1000b2c0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [edi + 8]
call fcn.10003430
mov eax, dword [edi + 4]
test eax, eax
je 0x1000b330
mov ecx, dword [edi]
cmp ecx, 1
jle 0x1000b330
push ebp
lea ebp, [eax + ecx*4]
mov ecx, dword [edi + 0x24]
add eax, 4
lea esi, [edi + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
cmp ecx, eax
je 0x1000b31b
mov edx, dword [esp + 0xc]
push ebx
push edx
push eax
call fcn.10008eb0
mov edi, dword [esi + 4]
add esp, 8
mov ebx, eax
call fcn.10003370
mov dword [esi + 4], ebx
pop ebx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov eax, dword [esi]
push ecx
push ebp
push edx
push eax
push esi
call fcn.1000b340
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x1000be80
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
xor eax, eax
push esi
mov esi, edx
mov word [esp + 8], ax
push eax
or eax, 0xffffffff
lea edx, [esp + 0xc]
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
call fcn.10003280
cmp dword [esi + 0x14], 8
jb 0x1000bebe
mov esi, dword [esi]
cmp dword [esp + 0x1c], 8
mov eax, dword [esp + 8]
jae 0x1000becd
lea eax, [esp + 8]
push esi
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
sete bl
cmp dword [esp + 0x1c], 8
jb 0x1000beef
mov ecx, dword [esp + 8]
push ecx
call fcn.1004076b
add esp, 4
mov ecx, dword [esp + 0x24]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.10040061
add esp, 0x20
ret
Function at 0x1000c500
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x100583bb
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x824], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0x83c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x84c]
xor edi, edi
mov dword [esp + 0x18], edi
xor eax, eax
mov esi, edx
mov word [esp + 0x1c], ax
mov ebp, 7
push edi
or eax, 0xffffffff
lea edx, [esp + 0x20]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], edi
call fcn.10003280
mov dword [esp + 0x844], edi
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0x800
jae 0x1000c589
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 1
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000c5b4
xor edx, edx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x10], edi
mov word [esi], dx
push edi
mov eax, 0x10064464
jmp 0x1000c614
cmp dword [ebx + 0x14], 8
jb 0x1000c5bc
mov ebx, dword [ebx]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
push edi
push edi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x14]
push ecx
test eax, eax
je 0x1000c5e5
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000c5a1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x10], edi
lea eax, [esp + 0x38]
mov word [esi], dx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000c600
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3c]
call fcn.10003430
cmp dword [esp + 0x30], 8
jb 0x1000c62d
mov eax, dword [esp + 0x1c]
push eax
call fcn.1004076b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x83c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x824]
xor ecx, esp
call fcn.10040061
add esp, 0x834
ret
Function at 0x1000c660
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10058e6b
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.1004f580
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x1028], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0x1040]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1050]
mov ebx, dword [esp + 0x1054]
xor edi, edi
mov dword [esp + 0x18], edi
xor eax, eax
mov esi, edx
mov word [esp + 0x20], ax
push edi
or eax, 0xffffffff
lea edx, [esp + 0x24]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], edi
call fcn.10003280
mov dword [esp + 0x1048], edi
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0x1000
jae 0x1000c6f3
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 1
push edi
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000c733
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
push edi
mov eax, 0x10064464
mov word [esi], dx
call fcn.10003430
cmp dword [esp + 0x34], 8
jb 0x1000c7b5
mov eax, dword [esp + 0x20]
push eax
jmp 0x1000c7ad
mov ebp, 8
cmp dword [ebx + 0x14], ebp
jb 0x1000c73f
mov ebx, dword [ebx]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x14]
push edx
test eax, eax
je 0x1000c786
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
push edi
mov eax, 0x10064464
call fcn.10003430
jmp 0x1000c7a2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push esi
lea edx, [esp + 0x44]
call fcn.1000c7e0
add esp, 8
cmp dword [esp + 0x34], ebp
jb 0x1000c7b5
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1004076b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1040]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1028]
xor ecx, esp
call fcn.10040061
add esp, 0x1038
ret
Function at 0x1000d400
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10059ea8
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push esi
push edi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
lea eax, [esp + 0xa8]
push 0x10069b2c
mov ebx, ecx
push eax
mov esi, edx
call fcn.1000cfc0
push eax
mov eax, 0x10069b3c
lea ecx, [esp + 0x98]
mov dword [esp + 0xdc], 0
call fcn.10003910
add esp, 0xc
mov ecx, eax
mov eax, esi
lea ebx, [esp + 0x70]
mov byte [esp + 0xd0], 1
call fcn.1000d0c0
mov ebx, 8
cmp dword [esp + 0xa0], ebx
jb 0x1000d4a3
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.1004076b
add esp, 4
mov esi, 7
xor edx, edx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], dx
mov byte [esp + 0xd0], 4
cmp dword [esp + 0xbc], ebx
jb 0x1000d4e5
mov eax, dword [esp + 0xa8]
push eax
call fcn.1004076b
add esp, 4
mov edx, dword [esp + 0x70]
xor ecx, ecx
mov word [esp + 0xa8], cx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], 0
mov eax, edx
cmp ecx, ebx
jae 0x1000d516
lea eax, [esp + 0x70]
mov esi, dword [esp + 0x80]
cmp ecx, ebx
lea eax, [eax + esi*2]
mov ecx, edx
jae 0x1000d52a
lea ecx, [esp + 0x70]
test eax, eax
je 0x1000d532
sub eax, ecx
sar eax, 1
mov edi, eax
lea esi, [esp + 0x70]
call fcn.1000d960
push 0x44
lea edx, [esp + 0x28]
push 0
push edx
call fcn.1004acf0
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov dword [esp + 0x24], 0x44
cmp dword [esp + 0x84], ebx
jae 0x1000d565
mov eax, esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1000d5a2
cmp dword [esp + 0x84], ebx
jb 0x1000d59e
mov eax, dword [esp + 0x70]
push eax
call fcn.1004076b
add esp, 4
xor al, al
jmp 0x1000d5ce
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
cmp dword [esp + 0x84], ebx
jb 0x1000d5cc
mov eax, dword [esp + 0x70]
push eax
call fcn.1004076b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10040061
add esp, 0xc4
ret
Function at 0x1000d600
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x1005834b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
xor eax, eax
mov word [esp + 0x18], ax
push eax
or eax, 0xffffffff
lea edx, [esp + 0x1c]
mov byte [esp + 0x1b], 0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
call fcn.10003280
mov eax, dword [esp + 0x18]
mov ebx, 8
cmp dword [esp + 0x2c], ebx
jae 0x1000d677
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x1000d6a9
cmp dword [esp + 0x2c], ebx
jb 0x1000d6a2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1004076b
add esp, 4
xor al, al
jmp 0x1000d79f
lea edx, [esp + 0x34]
push edx
push ebp
mov dword [esp + 0x3c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1000d781
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea eax, [esp + 0x58]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000d6d7
mov edi, dword [esp + 0x28]
sub eax, edx
sar eax, 1
mov esi, edi
cmp edi, eax
jb 0x1000d6f2
mov esi, eax
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebx
jae 0x1000d700
lea edx, [esp + 0x18]
lea ecx, [esp + 0x58]
test esi, esi
je 0x1000d723
mov bx, word [edx]
cmp bx, word [ecx]
jne 0x1000d71b
add edx, 2
add ecx, 2
dec esi
jne 0x1000d708
jmp 0x1000d723
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jne 0x1000d72e
cmp edi, eax
jb 0x1000d768
xor ecx, ecx
cmp edi, eax
setne cl
test ecx, ecx
jne 0x1000d768
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1000d768
push eax
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000d768
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1000d768
mov byte [esp + 0x17], 1
lea eax, [esp + 0x34]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ebx, 8
test eax, eax
jne 0x1000d6c5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x2c], ebx
jb 0x1000d79b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1004076b
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.10040061
add esp, 0x25c
ret
Function at 0x1000d7d0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x1005834b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
xor eax, eax
xor esi, esi
mov word [esp + 0x18], ax
push esi
or eax, 0xffffffff
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
call fcn.10003280
mov eax, dword [esp + 0x18]
mov edi, 8
cmp dword [esp + 0x2c], edi
jae 0x1000d844
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000d875
cmp dword [esp + 0x2c], edi
jb 0x1000d86e
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1004076b
add esp, 4
xor eax, eax
jmp 0x1000d936
lea edx, [esp + 0x34]
push edx
push ebx
mov dword [esp + 0x3c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1000d919
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea eax, [esp + 0x58]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000d8a3
mov edi, dword [esp + 0x28]
sub eax, edx
sar eax, 1
mov esi, edi
cmp edi, eax
jb 0x1000d8be
mov esi, eax
cmp dword [esp + 0x2c], 8
mov edx, dword [esp + 0x18]
jae 0x1000d8cd
lea edx, [esp + 0x18]
lea ecx, [esp + 0x58]
test esi, esi
je 0x1000d8f0
mov bp, word [edx]
cmp bp, word [ecx]
jne 0x1000d8e8
add edx, 2
add ecx, 2
dec esi
jne 0x1000d8d5
jmp 0x1000d8f0
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jne 0x1000d8fb
cmp edi, eax
jb 0x1000d8ff
xor ecx, ecx
cmp edi, eax
setne cl
test ecx, ecx
je 0x1000d915
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1000d891
mov esi, dword [esp + 0x14]
jmp 0x1000d919
mov esi, dword [esp + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x2c], 8
jb 0x1000d934
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1004076b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.10040061
add esp, 0x25c
ret
Function at 0x1000e570
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 8
push esi
push edi
mov edi, eax
call fcn.1000e400
mov esi, eax
test esi, esi
je 0x1000e5c8
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x8003
push esi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1000e5c8
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x1000e5a8
mov eax, dword [edi]
jmp 0x1000e5aa
mov eax, edi
push 0
push ecx
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1000e5d0
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
xor al, al
pop esi
add esp, 8
ret
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0
push ecx
push 0x6801
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1000e5bd
call fcn.1000e4c0
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
cmp byte [esp + 0x18], 0
jne 0x1000e621
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
jmp 0x1000e638
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ebx
push 0
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov edx, dword [esp + 0xc]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test edi, edi
pop edi
setne al
pop esi
add esp, 8
ret

Function at 0x1000e670
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 8
call fcn.1000e400
test eax, eax
je 0x1000e6b8
mov edx, dword [esp + 0x14]
lea ecx, [esp]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1000e6b8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1000e6be
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor al, al
add esp, 8
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc]
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1000e6f3
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor al, al
add esp, 8
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, 1
add esp, 8
ret
Function at 0x1000ed60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x10058318
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
mov esi, edx
xor edi, edi
xor edx, edx
mov dword [esp + 0x14], eax
mov word [esp + 0x1c], dx
push edi
or eax, 0xffffffff
lea edx, [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
call fcn.10003280
mov eax, esi
mov dword [esp + 0x44], edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000edd0
sub eax, edx
sar eax, 1
push esi
lea ecx, [esp + 0x20]
mov ebx, eax
push ecx
xor eax, eax
call fcn.10005640
cmp eax, 0xffffffff
jne 0x1000ee1c
mov dword [ebp + 0x10], edi
xor edx, edx
mov dword [ebp + 0x14], 7
lea edi, [esp + 0x1c]
mov esi, ebp
mov word [ebp], dx
call fcn.10003210
cmp dword [esp + 0x30], 8
jb 0x1000ee6c
mov eax, dword [esp + 0x1c]
push eax
jmp 0x1000ee64
mov ecx, esi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x1000ee21
mov edx, dword [esp + 0x14]
sub ecx, esi
sar ecx, 1
push edx
push ecx
lea esi, [esp + 0x24]
call fcn.1000f590
mov dword [ebp + 0x10], edi
xor eax, eax
mov edi, esi
mov dword [ebp + 0x14], 7
mov esi, ebp
mov word [ebp], ax
call fcn.10003210
cmp dword [esp + 0x30], 8
jb 0x1000ee6c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.1004076b
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10040061
add esp, 0x34
ret

Function at 0x1000fae0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000fb28
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1000fb39
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10040061
add esp, 0x24
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1000fb90
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10040061
add esp, 0x24
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
xor ecx, esp
mov al, 1
call fcn.10040061
add esp, 0x24
ret
Function at 0x10011a90
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100576a1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x44]
xor edi, edi
push 0x10
mov dword [esp + 0x18], edi
call fcn.100407c7
add esp, 4
cmp eax, edi
je 0x10011adb
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x10011add
xor eax, eax
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.1000e840
mov ebp, 1
mov dword [esp + 0x3c], ebp
cmp dword [esi + 0x14], 8
jb 0x10011b02
mov eax, dword [esi]
jmp 0x10011b04
mov eax, esi
push edi
push 0x80
push 3
push edi
push ebp
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10011b39
mov eax, dword [esp + 0x1c]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov edi, dword [esp + 0x20]
push eax
call fcn.1000e760
jmp 0x10011c00
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10011be6
mov eax, dword [esp + 0x28]
cmp eax, edi
jl 0x10011be6
mov ebp, dword [esp + 0x24]
jg 0x10011b63
test ebp, ebp
jb 0x10011bdf
test eax, eax
jg 0x10011bdf
jl 0x10011b6e
cmp ebp, 0xffffffff
ja 0x10011bdf
cmp ebp, 0xffffffff
je 0x10011bdf
mov ecx, ebp
lea eax, [esp + 0x1c]
call fcn.10011a00
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
push 0
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x10011bd7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x1c]
call fcn.100119d0
push edi
mov edi, dword [esp + 0x24]
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.1000e760
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 1
mov byte [esp + 0x3c], 0
call fcn.1000da80
jmp 0x10011c36
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10011ba8
mov ebp, 1
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov edi, dword [esp + 0x20]
push eax
call fcn.1000e760
mov byte [esp + 0x3c], 0
mov dword [esp + 0x14], ebp
test edi, edi
je 0x10011c36
or edx, 0xffffffff
lea ecx, [edi + 4]
lock xadd dword [ecx], edx
jne 0x10011c36
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
or ecx, 0xffffffff
lea eax, [edi + 8]
lock xadd dword [eax], ecx
jne 0x10011c36
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov eax, ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x10011d90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov ecx, esi
call fcn.10012c60
cmp dword [esi + 0x14], 8
jb 0x10011da3
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10011de6
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x10011deb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ecx
ret

Function at 0x10011ff0
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 8
push esi
jb 0x10011ffd
mov eax, dword [ebx]
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x10012013
pop esi
pop ebx
pop ecx
ret
push edi
push esi
call fcn.1003f6f0
mov edi, eax
add esp, 4
test edi, edi
je 0x10012043
cmp dword [ebx + 0x14], 8
jb 0x1001202b
mov ebx, dword [ebx]
push edi
push esi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1001204a
push edi
call fcn.10040a88
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret