joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101635f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023d76d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], 0xffffffff
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
cmp ecx, 0xc0000001
jg 0x10163672
je 0x1016366b
cmp ecx, 0x80000000
je 0x1016367e
cmp ecx, 0xc0000000
jne 0x101637ee
mov ebx, 2
jmp 0x10163683
mov ebx, 1
jmp 0x10163683
cmp ecx, 0xc0000002
jne 0x101637ee
mov ebx, 4
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
cmp dword [0x102f3094], 0
jne 0x101636a4
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, 4
call fcn.10158610
push 0
mov esi, eax
lea eax, [ebp - 0x28]
push 0x10
push eax
push 0
push dword [ebp - 0x58]
mov ecx, esi
call dword [0x1024852c]
call esi
test eax, eax
je 0x101636e1
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x5c]
call fcn.10156a60
push ecx
mov eax, ecx
jmp 0x101637fb
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x101637c8
mov esi, dword [ebp - 0x20]
jg 0x101636fb
test esi, esi
jb 0x101637c8
test eax, eax
ja 0x101637c8
jb 0x1016370c
cmp esi, 0xffffffff
ja 0x101637c8
push 0
push esi
push 0
push 0
push ebx
mov ebx, dword [ebp - 0x58]
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
jne 0x10163738
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x5c]
call fcn.10156a60
push ecx
mov eax, ecx
jmp 0x101637fb
push 0xffffffffffffffff
mov dword [edi], eax
mov dword [edi + 8], 0
mov dword [edi + 4], esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push 0
push 0
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x101637a8
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x18]
call fcn.10156a60
mov ecx, edi
call fcn.10157660
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x88]
call fcn.10156bb0
push 0x102e6bec
lea eax, [ebp - 0x88]
jmp 0x1016380c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x1c
push 0x12
lea ecx, [ebp - 0x5c]
call fcn.10156a40
push ecx
mov eax, ecx
lea ecx, [ebp - 0x88]
push eax
call fcn.10156bb0
push 0x102e6bec
lea eax, [ebp - 0x88]
jmp 0x1016380c
push 0x11
lea ecx, [ebp - 0x18]
call fcn.10156a40
push ecx
mov eax, ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.10156bb0
push 0x102e6bec
lea eax, [ebp - 0x54]
push eax
call fcn.101d22f5
int3
Function at 0x1016c900
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
mov dword [ebp - 4], eax
test edi, edi
je 0x1016cadc
mov esi, dword [ebp + 8]
test esi, esi
je 0x1016cadc
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1016cadc
mov ecx, eax
call fcn.1016c870
cmp dword [ebx], eax
jl 0x1016cadc
mov eax, 0x55555556
xor ebx, ebx
imul dword [ebp - 4]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x14], eax
lea ecx, [eax*4]
mov eax, 0x6bca1af3
imul ecx
xor eax, eax
sar edx, 5
mov ecx, edx
mov dword [ebp - 8], eax
shr ecx, 0x1f
add ecx, edx
mov edx, 0x13
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
test ecx, ecx
js 0x1016ca48
cmp eax, ecx
jne 0x1016c9a8
mov edx, dword [ebp - 0x14]
imul eax, ecx, 0x4c
lea ecx, [edx*4]
sub ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0x10]
cdq
and edx, 3
add edx, eax
mov eax, dword [ebp - 8]
sar edx, 2
mov dword [ebp - 0xc], edx
test edx, edx
jle 0x1016ca1e
mov dword [ebp - 0x18], edx
nop
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
add edi, 3
or ecx, eax
shl ecx, 8
mov eax, ecx
shl ecx, 6
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_k]
mov byte [esi], al
mov eax, ecx
shr eax, 0x1a
shl ecx, 6
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_k]
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x1a
shr ecx, 0x14
and ecx, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_k]
mov byte [esi + 2], al
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_k]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x1016c9b0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
lea ebx, [ebx + edx*4]
mov dword [ebp - 0x18], esi
inc eax
mov dword [ebp - 0x1c], ebx
mov word [esi], 0xa0d
add ebx, 2
add esi, 2
mov dword [ebp - 8], eax
cmp eax, ecx
jle 0x1016c983
test ebx, ebx
je 0x1016ca48
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
lea eax, [eax + eax*2]
sub ecx, eax
mov edx, ecx
mov dword [ebp - 4], ecx
neg edx
lea eax, [ecx + 1]
sbb edx, edx
and edx, eax
mov dword [ebp - 0x1c], edx
je 0x1016cacb
mov eax, dword [ebp - 4]
xor ecx, ecx
test eax, eax
jle 0x1016ca73
movzx ecx, byte [edi]
inc edi
shl ecx, 8
cmp eax, 1
jle 0x1016ca84
movzx eax, byte [edi]
or ecx, eax
mov eax, dword [ebp - 4]
inc edi
shl ecx, 8
cmp eax, 2
jle 0x1016ca91
movzx eax, byte [edi]
or ecx, eax
shl ecx, 8
test edx, edx
jle 0x1016cab1
mov eax, ecx
shl ecx, 6
shr eax, 0x1a
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_k]
mov byte [esi], al
inc esi
sub edx, 1
jne 0x1016ca98
mov edx, dword [ebp - 0x1c]
mov eax, 4
sub eax, edx
test eax, eax
jle 0x1016cac8
push eax
push 0x3d
push esi
call fcn.101d28f0
add esp, 0xc
add ebx, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10173730
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023de5b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0x101
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x101737d8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101737b6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.10010360
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
push ecx
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
push eax
push ecx
push edi
lea edx, [ebp - 0x24c]
mov ecx, esi
call fcn.10173370
add esp, 0x10
lea ecx, [ebp - 0x24c]
mov esi, eax
call fcn.1000ae90
lea ecx, [ebp - 0x234]
call fcn.1000ae90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
Function at 0x10173af0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x102e91c0]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10173b41
lea eax, [esp + 4]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x10173b52
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp]
test eax, eax
je 0x10173b3b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
Function at 0x10175580
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023e08d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
push ecx
mov dl, 1
mov dword [ebp - 4], 0
call fcn.1014f950
mov dl, 1
lea ecx, [edi + 0x18]
call fcn.1014f950
lea ecx, [edi + 0x30]
mov dl, 1
call fcn.1014f950
add esp, 4
lea ecx, [ebp - 0x2c]
push edi
call fcn.1000fe90
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1014e120
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1014e6f0
add esp, 4
lea eax, [ebp - 0x48]
mov ecx, edi
push ebx
push eax
call fcn.10175850
sub esp, 8
mov byte [ebp - 4], 2
mov edx, eax
lea ecx, [edi + 0x18]
call fcn.1014f5e0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
mov bl, al
call fcn.1000ae90
test bl, bl
je 0x10175647
mov edx, dword [ebp - 0x30]
sub esp, 8
mov ecx, edi
call fcn.1014f5e0
lea edx, [ebp + 0xc]
lea ecx, [edi + 0x30]
call fcn.1014f5e0
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.1000ae90
lea ecx, [ebp + 0xc]
call fcn.1000ae90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10176060
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023e1d5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x2c], 0
cmp edi, 1
jne 0x101761a5
cmp byte [ebp + 8], 0
je 0x101761a5
lea ecx, [ebp - 0x28]
call fcn.1018d1a0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x1017612a
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov dword [ebp - 0x44], 0
cmovae edx, dword [ebp - 0x28]
mov ecx, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101760f0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.1000aef0
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2c], 2
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1017612a
mov bl, 1
jmp 0x1017612c
xor bl, bl
test byte [ebp - 0x2c], 2
je 0x1017613a
lea ecx, [ebp - 0x44]
call fcn.1000ae90
test bl, bl
je 0x10176196
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov dword [ebp - 0x44], 0
cmovae edx, dword [ebp - 0x28]
mov ecx, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10176163
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.1000aef0
push ecx
xor dl, dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.1014f950
add esp, 4
lea ecx, [ebp - 0x44]
call fcn.1000ae90
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ae90
mov edx, edi
mov ecx, esi
call fcn.1018d4a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
Function at 0x101761d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023e215
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov edi, ecx
mov ecx, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
cmp byte [edi + 0x38], al
je 0x1017627e
mov esi, dword [ebp + 0xc]
nop dword [eax]
cmp byte [edi + 0x39], 0
je 0x1017627e
push 0
lea edx, [ebp - 0x14]
add eax, ecx
push edx
mov edx, dword [ebp - 0x18]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
cmp eax, 0x6d
je 0x10176251
test ecx, ecx
jne 0x1017625b
jmp 0x1017626a
cmp dword [ebp - 0x20], 0
je 0x1017631c
cmp ecx, esi
je 0x1017627e
add dword [ebp - 0x1c], ecx
sub esi, ecx
cmp ebx, 0x64
jg 0x1017629c
inc ebx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [edi + 0x38], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
jne 0x10176220
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
mov esi, dword [0x102eec44]
test esi, esi
je 0x101762d4
push dword [ebp - 0x18]
mov ecx, esi
push eax
push str.Number_of_retries_to_read_pipe_exhausted_with_last_errno___lu._Aborting_read_on_pipe__p
push 0x1025b044
push 0x1025b044
push str.CommBridge
push str.OOBEUtils
push 0x28
call dword [0x1024852c]
call esi
add esp, 0x20
jmp 0x10176306
mov ecx, dword [0x102eec48]
test ecx, ecx
je 0x10176306
push dword [ebp - 0x18]
mov esi, dword [ecx]
push eax
push str.Number_of_retries_to_read_pipe_exhausted_with_last_errno___lu._Aborting_read_on_pipe__p
push str.CommBridge
mov esi, dword [esi + 0x34]
push 0x1025b044
push 0x28
push ecx
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x1c
push str.Terminate_channel
lea ecx, [ebp - 0x3c]
call fcn.1000ae40
mov dword [ebp - 4], 1
jmp 0x1017639a
mov esi, dword [0x102eec44]
test esi, esi
je 0x10176354
push eax
push dword [ebp - 0x18]
mov ecx, esi
push str.Aborting_read_on_pipe__p___errno:__lu
push 0x1025b044
push 0x1025b044
push str.CommBridge
push str.OOBEUtils
push 0x28
call dword [0x1024852c]
call esi
add esp, 0x20
jmp 0x10176386
mov ecx, dword [0x102eec48]
test ecx, ecx
je 0x10176386
mov esi, dword [ecx]
push eax
push dword [ebp - 0x18]
mov esi, dword [esi + 0x34]
push str.Aborting_read_on_pipe__p___errno:__lu
push str.CommBridge
push 0x1025b044
push 0x28
push ecx
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x1c
push str.Terminate_channel
lea ecx, [ebp - 0x3c]
call fcn.1000ae40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.10177ab0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ae90
mov ecx, edi
call fcn.10177710
xor al, al
jmp 0x10176280
Function at 0x10177010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], edx
push ebx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push esi
push edx
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10177086
cmp dword [ebp - 8], esi
ja 0x10177086
jae 0x1017714a
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, dword [ebp - 8]
sub esi, dword [ebp - 8]
cmp ebx, 0xbb8
jg 0x101770dc
push 0xa
inc ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push esi
add eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10177044
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x102eec44]
mov ecx, eax
test esi, esi
je 0x1017715d
push ecx
push dword [ebp - 0xc]
mov ecx, esi
push str.Write_failed_or_else__No_of_bytes_written___data_._Aborting_write_on_pipe__p___errno:__lu
push 0x1025b044
push 0x1025b044
push str.CommBridge
push str.OOBEUtils
push 0x28
call dword [0x1024852c]
call esi
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
mov esi, dword [0x102eec44]
test esi, esi
je 0x10177126
push dword [ebp - 0xc]
mov ecx, esi
push eax
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
push 0x1025b044
push 0x1025b044
push str.CommBridge
push str.OOBEUtils
push 0x28
call dword [0x1024852c]
call esi
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x102eec48]
test ecx, ecx
je 0x1017718e
push dword [ebp - 0xc]
mov esi, dword [ecx]
push eax
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
push str.CommBridge
push 0x1025b044
push 0x28
push ecx
jmp 0x1017717e
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
mov eax, dword [0x102eec48]
test eax, eax
je 0x1017718e
mov esi, dword [eax]
push ecx
push dword [ebp - 0xc]
push str.Write_failed_or_else__No_of_bytes_written___data_._Aborting_write_on_pipe__p___errno:__lu
push str.CommBridge
push 0x1025b044
push 0x28
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x1c
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101cff65
mov esp, ebp
pop ebp
ret
Function at 0x10177820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023e345
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10177857
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10177874
test eax, 0x400
je 0x10177874
mov eax, 1
jmp 0x10177943
cmp byte [ebp + 8], 0
je 0x101778c7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10177884
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x101778c7
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x101778c7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], 1
jbe 0x101778c7
mov eax, 3
jmp 0x10177943
push esi
lea ecx, [ebp - 0x2c]
call fcn.1000fe90
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.1000fe90
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1014e120
test al, al
je 0x10177931
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp - 0x2c]
lea esi, [ebp - 0x44]
mov edx, dword [ebp - 0x34]
cmp edi, 8
cmovae eax, ebx
cmp dword [ebp - 0x30], 8
cmovae esi, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x1c]
jne 0x1017795f
test edx, edx
je 0x10177931
sub esi, eax
nop dword [eax + eax]
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x1017795f
add eax, 2
sub edx, 1
jne 0x10177920
lea ecx, [ebp - 0x44]
call fcn.1000ae90
lea ecx, [ebp - 0x2c]
call fcn.1000ae90
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
cmp edi, 8
lea eax, [ebp - 0x2c]
cmovae eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1017797b
test eax, 0x400
jne 0x101779a4
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.10010360
lea ecx, [ebp - 0x2c]
call fcn.1014e120
test al, al
jne 0x101778f0
jmp 0x10177931
lea ecx, [ebp - 0x44]
call fcn.1000ae90
lea ecx, [ebp - 0x2c]
call fcn.1000ae90
mov eax, 2
jmp 0x10177943
Function at 0x1017c740
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], edx
push ebx
push esi
mov esi, ecx
push edi
test eax, eax
jne 0x1017c76a
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.1017c6d0
test eax, eax
je 0x1017c798
mov dword [esi], eax
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
lea eax, [edi + 2]
push eax
call fcn.101dc6a1
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1017c7c2
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi], 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push edi
push 1
push ebx
call fcn.101ead90
add esp, 0x10
cmp eax, edi
je 0x1017c7fb
push ebx
call fcn.101dbd83
add esp, 4
mov dword [esi + 8], 0
mov dword [esi], 2
mov eax, esi
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, ebx
call fcn.10179f50
cmp eax, 2
je 0x1017c80e
cmp eax, 3
jne 0x1017c81a
and edi, 0xfffffffe
xor ecx, ecx
mov word [edi + ebx], cx
add edi, 2
push dword [ebp + 0x14]
push 1
push 1
push eax
mov eax, dword [ebp - 8]
mov edx, eax
push ecx
push edi
push ebx
push eax
mov ecx, esi
call fcn.1017c490
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1017e040
Capabilities:
Encode data using xor

Disassembly:
mov edx, ecx
xor eax, eax
movzx ecx, word [edx]
test cx, cx
je 0x1017e070
push esi
mov esi, ecx
nop
movzx ecx, si
lea edx, [edx + 2]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
movzx ecx, word [edx]
mov esi, ecx
test cx, cx
jne 0x1017e050
pop esi
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret
Function at 0x1018e5d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1018e5db
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.1018e5f0
Function at 0x1018ede0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023f0c1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x102e91c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov word [edi], 0
xor eax, eax
mov byte [edi + 2], 0
mov dword [edi + 4], 0x20000
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 7
mov word [edi + 8], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], 7
mov word [edi + 0x20], ax
mov dword [edi + 0x38], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 7
mov word [edi + 0x38], ax
mov dword [edi + 0x50], eax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], 7
mov word [edi + 0x50], ax
mov byte [ebp - 4], 3
lea esi, [edi + 0x84]
mov dword [edi + 0x68], 0x200000
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov word [edi + 0x80], 0x100
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.101cff73
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov byte [edi + 0x8c], 0
mov dword [edi + 0x90], 0x3c
mov word [edi + 0x94], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret