joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d1f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.1000d9d0
cmp dword [ebp + 8], 0
je 0x1000d23e
push edi
lea edi, [esi + 0x100]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xac], 0
je 0x1000d236
add esi, 0x9c
cmp dword [esi + 0x14], 8
jb 0x1000d226
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000d236
call fcn.1000c4a0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x14

Function at 0x1000d260
Capabilities:
Check http status code
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
mov esi, ecx
push 0
push 0x20000013
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1000d2a2
call fcn.1000c4a0
test eax, eax
js 0x1000d348
mov eax, dword [ebp - 4]
cmp eax, 0x197
jne 0x1000d2ba
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0x191
jne 0x1000d2cf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0xc8
je 0x1000d301
cmp eax, 0xce
je 0x1000d301
push 0x2f79
mov dword [esi + 0x11c], 1
mov dword [esi + 0x118], eax
call fcn.1000c4c0
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov dword [esi + 0x118], eax
mov ecx, esi
lea eax, [esi + 0x120]
mov dword [esi + 0x11c], 1
push eax
call fcn.1000d7b0
push 0
push dword [esi + 0xd4]
push dword [esi + 0xd0]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1000d346
call fcn.1000c4a0
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000d410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058bf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100764f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x100]
xor ebx, ebx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
mov ecx, dword [ebp + 0xc]
add dword [esi + 0x138], ecx
mov eax, dword [esi + 0xd8]
adc dword [esi + 0x13c], ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x1000d48d
push ebx
lea edx, [ebp + 0xc]
push edx
push ecx
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000d489
call fcn.1000c4a0
mov ebx, eax
jmp 0x1000d4ef
xor ebx, ebx
jmp 0x1000d4ef
mov eax, dword [esi + 0xb8]
lea edi, [esi + 0xb4]
mov edx, dword [edi]
sub eax, edx
jne 0x1000d4d5
mov ecx, dword [esi + 0x120]
mov eax, ecx
and eax, dword [esi + 0x124]
cmp eax, 0xffffffff
mov eax, dword [edi + 8]
je 0x1000d4c5
sub eax, edx
cmp ecx, eax
jbe 0x1000d4d5
cmp ecx, 0x7fffffff
ja 0x1000d519
jmp 0x1000d4cd
mov ecx, dword [esi + 0xd4]
jmp 0x1000d4b5
push ecx
mov ecx, edi
call fcn.1000e7b0
push dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
push ecx
push dword [esi + 0xb8]
mov ecx, edi
call fcn.1000bc60
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
lea eax, [esi + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.100065c0
int3
Function at 0x1000d650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x100]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x1000d70a
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push dword [esi + 0xe4]
push dword [esi + 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000d6a7
call fcn.1000c4a0
mov edi, eax
test edi, edi
js 0x1000d73a
push 0
push dword [ebp - 4]
push dword [esi + 0xe0]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x1000d6ca
call fcn.1000c4a0
mov edi, eax
test edi, edi
js 0x1000d73a
mov eax, dword [ebp - 4]
add dword [esi + 0xf8], eax
mov ecx, dword [esi + 0xf8]
adc dword [esi + 0xfc], 0
mov eax, dword [esi + 0xfc]
cmp eax, dword [esi + 0xf4]
jb 0x1000d6f8
ja 0x1000d735
cmp ecx, dword [esi + 0xf0]
jae 0x1000d735
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x1000d735
push 0
push eax
push dword [esi + 0xc0]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x1000d735
call fcn.1000c4a0
mov edi, eax
test edi, edi
js 0x1000d73a
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d7b0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058c28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100764f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
call fcn.1000cae0
mov ecx, eax
test ecx, ecx
je 0x1000d8d7
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov dword [ebp - 0x10], 0x20
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x20
or eax, ecx
mov dword [ebp - 4], 0
jge 0x1000d82f
push 0x20
lea ecx, [ebp + 8]
call fcn.1000d750
mov esi, dword [ebp + 8]
cmp dword [esi - 8], 0x20
jl 0x1000d8cd
xor eax, eax
mov dword [esi - 0xc], 0x20
push eax
mov word [esi + 0x40], ax
lea eax, [ebp - 0x10]
push eax
push esi
push 0
push 5
push dword [ebx + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1000d866
call fcn.1000c4a0
mov ebx, eax
jmp 0x1000d868
xor ebx, ebx
push dword [esi - 8]
push esi
call fcn.1003f0ab
add esp, 8
test eax, eax
js 0x1000d8cd
cmp eax, dword [esi - 8]
jg 0x1000d8cd
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
js 0x1000d898
push esi
call fcn.1003ef64
add esp, 4
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000d8b7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.1000c4e0
push 0x80004005
call fcn.1000c4e0
int3
Function at 0x1000ec40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100764f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000ec74
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000ec74
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x1000ed6c
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x1000ec93
cmp dx, 0x5c
jne 0x1000ec95
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x1000ec87
cmp edi, ebx
je 0x1000ece3
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.10036570
add esp, 0xc
cmp edi, 0x208
jae 0x1000ed7c
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.1000ec40
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x1000ed10
lea ecx, [ebp - 0x20c]
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x1000ed00
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1000ed12
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1000ed30
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x1000ed6c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10034676
mov esp, ebp
pop ebp
ret
call fcn.100351e8
int3
Function at 0x1000f4a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x1000f64c
cmp dword [ebx + 4], 0xffffffff
jne 0x1000f64c
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000f4d7
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x1000f513
cmp eax, 0x2f
je 0x1000f513
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x1000f500
mov eax, dword [0x1005c4a0]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x1000f53e
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000f559
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x1000f556
cmp edi, 3
je 0x1000f556
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x1000f59f
cmp edi, 2
jne 0x1000f5bb
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000f599
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x1000f5a5
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.1003462a
add esp, 4
mov esi, eax
cmp edi, 1
je 0x1000f5f6
cmp edi, 2
je 0x1000f5f6
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x1000f627
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x1000f627
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.100126a0
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop esi
cmove ecx, edx
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000fda0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x1005e2b0]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1005e2b0]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x10012260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
imul ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x1001229e
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10012292
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp + 8]
call fcn.10036570
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100122d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x100122de
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x1001239d
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005e2b0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005e2b0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005e2b0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005e2b0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005e2b0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005e2b0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005e2b0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005e2b0]
sub edi, 1
jne 0x100122f6
pop edi
test esi, esi
je 0x100123bb
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005e2b0]
sub esi, 1
jne 0x100123a1
not eax
pop esi
pop ebp
ret
Function at 0x10013190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 1
cmp byte [esi], 0
je 0x100131c4
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xb]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100131bf
mov byte [esi + 8], 1
mov edi, dword [ebp - 4]
jmp 0x100131f0
mov ecx, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x100131d6
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp + 0xb]
push eax
call fcn.10036570
add esp, 0xc
lea eax, [ebx + edi]
mov dword [esi + 0x1c], eax
pop ebx
cmp edi, 1
jne 0x10013206
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0xb]
mov dword [eax], ecx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x100131fe
cmp byte [esi + 8], 0
je 0x100131fe
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10013f80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
nop word [eax + eax]
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jb 0x10013f90
xor bh, bh
mov word [esi + 0x100], 0
xor edi, edi
mov eax, edi
mov bl, byte [edi + esi]
xor edx, edx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
add al, bl
add bh, al
movzx ecx, bh
movzx eax, byte [ecx + esi]
mov byte [edi + esi], al
inc edi
mov byte [ecx + esi], bl
cmp edi, 0x100
jb 0x10013fa8
pop edi
mov byte [esi + 0x102], 1
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10014a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x100764f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10014a9a
shr eax, 4
not eax
and eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10034676
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10014aed
cmp eax, 3
je 0x10014aed
cmp eax, 0x7b
je 0x10014aed
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10014aed
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x254]
shr eax, 4
not eax
and eax, 1
je 0x10014aed
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10034676
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10034676
mov esp, ebp
pop ebp
ret
Function at 0x10015100
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058fe6
mov eax, dword fs:[0]
push eax
mov eax, 0x29b8
call fcn.100346b0
mov eax, dword [0x100764f8]
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, dword [ebp + 8]
mov dword [ebp - 0x29c4], edi
mov dword [ebp - 0x2998], 0
mov dword [ebp - 0x2994], 0xf
mov byte [ebp - 0x29a8], 0
lea eax, [ebp - 0x29c4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2990]
mov dword [ebp - 0x29c4], 0x2880
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x10015253
lea esi, [ebp - 0x2990]
nop word [eax + eax]
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02x_02x_02x_02x_02x_02x
lea eax, [ebp - 0x110]
push 0x100
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x29c0]
push 0x1005ecb8
push eax
call fcn.10014eb0
add esp, 0x30
cmp dword [eax + 0x14], 0x10
mov ecx, eax
mov byte [ebp - 4], 1
jb 0x10015200
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x29a8]
call fcn.10006b80
mov edx, dword [ebp - 0x29ac]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x10015249
mov ecx, dword [ebp - 0x29c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001523f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015295
push edx
push ecx
call fcn.1003465a
add esp, 8
mov esi, dword [esi]
test esi, esi
jne 0x10015190
movups xmm0, xmmword [ebp - 0x29a8]
mov dword [edi + 0x10], 0
mov eax, edi
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x2998]
movq qword [edi + 0x10], xmm0
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.10034676
mov esp, ebp
pop ebp
ret
call fcn.10039dac
int3
Function at 0x100152a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059026
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x100764f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
push 0
push eax
mov dword [ebp - 0x1b4], esi
call fcn.10037070
add esp, 0xc
mov dword [ebp - 0x1b4], 0x104
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x12c]
push eax
call fcn.10015100
add esp, 4
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x10015327
mov eax, dword [eax]
lea ecx, [ebp - 0x114]
push ecx
push eax
lea eax, [ebp - 0x144]
push str._s_s
push eax
call fcn.10014eb0
add esp, 0x10
mov edx, dword [ebp - 0x118]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x10015381
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10015377
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001540c
push edx
push ecx
call fcn.1003465a
add esp, 8
lea eax, [ebp - 0x144]
mov dword [ebp - 0x11c], 0
push eax
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.10009cb0
push esi
lea ecx, [ebp - 0x1b0]
call fcn.1000adf0
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x100153f0
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100153e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015411
push edx
push ecx
call fcn.1003465a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10034676
mov esp, ebp
pop ebp
ret
call fcn.10039dac
call fcn.10039dac
int3
Function at 0x10015960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100590e9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100764f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x100159ac
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10015a82
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x14], 1
cmp eax, ecx
ja 0x10015a02
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x100159fa
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x10015a0e
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10017560
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10015a18
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x10015a20
mov edi, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10015a3e
push eax
push str.Cannot_get_string_value:_RegGetValue_failed.
jmp 0x10015a88
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 0x10]
shr eax, 1
dec eax
cmp eax, ecx
ja 0x10015a60
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x10015a58
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x10015a6c
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10017560
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
push str.Cannot_get_size_of_string_value:_RegGetValue_failed.
lea ecx, [ebp - 0x24]
call fcn.10014030
push 0x10072448
lea eax, [ebp - 0x24]
push eax
call fcn.10035fb1
int3

Function at 0x10015de0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100764f8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10015e45
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10015e4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10015e59
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034676
mov esp, ebp
pop ebp
ret