joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10036720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x10036740
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x10036772
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x1003676f
inc esi
cmp esi, edx
jb 0x10036760
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x1003689c
cmp ecx, 3
jbe 0x100367b2
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x100367f0
cmp cl, 0xff
je 0x100367f0
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x10036754
dec ecx
shl eax, cl
and eax, 7
je 0x1003678a
movzx ecx, byte [eax + 0x101819b4]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x101819ac], 0
mov cl, byte [edx + 4]
je 0x100367da
test cl, cl
je 0x100367da
cmp cl, 0xff
jne 0x1003678a
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x10036754
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x1003681e
lea edx, [edi + ebx]
add edx, esi
jmp 0x10036824
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x10036862
movzx edi, byte [eax + 0x101819b4]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x1003684e
cmp cl, 0xff
jne 0x10036862
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x10036811
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x10036754
pop edi
pop esi
cmp ecx, 3
jbe 0x100368b1
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100387e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017cc43
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101df028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x101ea71c
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x101ea71c
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x1017f639
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.1003c350
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003e588
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
xor esi, esi
inc esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
jne 0x1003e5bb
xor eax, eax
jmp 0x1003e629
call fcn.1003c9c4
test al, al
je 0x1003e5d7
push esi
push edi
push ebx
pop eax
push edi
pop ebp
push esp
push eax
pop ecx
pop edi
push ecx
pop edx
push esp
pop ebx
push esp
pop edx
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push 0
push eax
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1003ca4e
test al, al
je 0x1003e61a
push esp
push esp
push ebp
push edi
push ecx
pop ebx
pop esi
pop esp
push eax
pop ebp
pop ebp
pop ecx
push ebp
push eax
pop edi
pop eax
pop ebp
push esp
mov edi, dword [ebp + 0x10]
xor esi, esi
inc esi
cmp dword [ebp - 8], 0
je 0x1003e625
cmp edi, dword [ebp - 4]
je 0x1003e627
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004168f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1004170e
push ebx
push edi
xor edi, edi
push str.c335b80a32136330ebfa2439bf4cbfcb
mov dword [ebp + 8], edi
call fcn.10064970
mov ebx, dword [ebp + 0xc]
mov edx, edi
pop ecx
test ebx, ebx
je 0x100416cb
mov cl, byte [edi + str.c335b80a32136330ebfa2439bf4cbfcb]
xor byte [edx + esi], cl
inc edi
xor ecx, ecx
cmp edi, eax
cmovge edi, ecx
inc edx
cmp edx, ebx
jb 0x100416b5
cmp ebx, 1
jle 0x10041702
cmp byte [esi], 0x37
jne 0x10041702
mov al, byte [esi + 1]
cmp al, 0x7a
je 0x100416e0
cmp al, 0x5a
jne 0x10041702
lea eax, [ebp + 8]
push eax
push ebx
push esi
call fcn.10032b40
test eax, eax
je 0x10041702
mov edx, dword [ebp + 8]
test edx, edx
je 0x10041702
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
jmp 0x1004170c
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x10041923
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101df028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10056120
push 0x1017fa08
lea eax, [ebp - 0x20c]
push str.C:log_s.log
push eax
call fcn.10029df0
add esp, 0x18
call fcn.1003c757
test al, al
je 0x10041988
push ebx
pop edx
push ebp
push ecx
push esp
push esp
pop esi
pop ebx
pop edx
pop edx
pop ebx
push esi
push eax
push esp
push esp
pop eax
pop ebx
pop eax
pop esi
pop eax
pop ebp
pop edi
push ebx
push edi
pop ebx
pop edx
call fcn.1003c8f5
test al, al
je 0x100419ad
push esi
pop esp
push eax
push esi
push ebx
push esi
pop esp
push edi
pop ebp
push edi
push edx
pop edi
pop esp
push ecx
push ecx
pop eax
push ecx
pop ebp
push ebp
push ebx
pop esi
pop edi
pop ebx
push eax
pop ebp
push esp
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
neg eax
pop ebx
call fcn.10032035
mov esp, ebp
pop ebp
ret
Function at 0x10041cd2
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.10032080
mov eax, dword [0x101df028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
mov dword [ebp - 0x1008], eax
call fcn.10059d4c
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1010], edx
call fcn.10065992
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi + 0x10]
push edi
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
inc ecx
push dword [esi + 4]
add eax, 0x76c
push dword [esi + 8]
push dword [esi + 0xc]
push ecx
push eax
lea eax, [ebp - 0x1004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.10041799
add esp, 0x28
call fcn.1003c574
test al, al
je 0x10041d6c
push ebp
push ebp
pop esi
push ecx
pop edi
push edi
push eax
push edi
pop ebx
pop ebx
push esi
push ebp
push esi
push edx
push ebx
push esp
xor ebx, ebx
push dword [ebp - 0x1008]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edi, edi
inc edi
test eax, eax
cmovne ebx, edi
mov dword [ebp - 0x100c], ebx
call fcn.1003c688
test al, al
je 0x10041db4
push eax
push eax
pop edi
push eax
pop ebp
pop ebx
pop ebx
pop edx
pop ecx
pop edi
pop edx
push eax
pop eax
push ecx
push esp
pop ebp
push ebp
pop esi
pop ecx
push esp
pop ebp
pop esp
push esi
push ebx
push edx
pop edi
push edx
push esi
mov ebx, dword [ebp - 0x100c]
xor edi, edi
inc edi
push 0x1018272c
push dword [ebp - 0x1008]
call fcn.100637fb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10041e67
test ebx, ebx
jne 0x10041df1
push esi
push 2
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0xfeff
push edi
push eax
call fcn.1006502b
add esp, 0x10
call fcn.1003c9c4
test al, al
je 0x10041e0a
push esi
push edi
push ebx
pop eax
push edi
pop ebp
push esp
push eax
pop ecx
pop edi
push ecx
pop edx
push esp
pop ebx
push esp
pop edx
lea eax, [ebp - 0x1004]
push eax
call fcn.100649fb
push esi
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.1006502b
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xd
push 1
push eax
call fcn.1006502b
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xa
push 1
push eax
call fcn.1006502b
push esi
call fcn.100635f9
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032035
mov esp, ebp
pop ebp
ret
Function at 0x100424db
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.100649fb
mov dword [ebp - 8], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10032069
push dword [ebp + 8]
mov esi, eax
push esi
mov dword [ebp - 4], esi
call fcn.10064b58
add esp, 0x10
call fcn.1003c688
test al, al
je 0x1004253d
push eax
push eax
pop edi
push eax
pop ebp
pop ebx
pop ebx
pop edx
pop ecx
pop edi
pop edx
push eax
pop eax
push ecx
push esp
pop ebp
push ebp
pop esi
pop ecx
push esp
pop ebp
pop esp
push esi
push ebx
push edx
pop edi
push edx
push esi
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ebx, ebx
xor edi, edi
inc ebx
mov dword [ebp - 0xc], edi
test eax, eax
js 0x100425e1
cmp word [esi + edi*2], 0x5c
jne 0x100425d2
call fcn.1003c7e1
test al, al
je 0x10042580
push ebp
push ecx
push edi
pop esi
pop ecx
pop eax
pop esp
push ebx
push edi
pop ecx
push ecx
pop esp
push ecx
push eax
push ebx
push edi
push ebp
push esp
push eax
push ebx
pop esp
push eax
pop ebx
pop esi
pop eax
push ebp
push esi
push ecx
push edx
mov esi, dword [ebp - 4]
call fcn.1003ca4e
test al, al
je 0x100425aa
push esp
pop edx
push ebx
pop ebp
pop eax
pop ebp
push ecx
pop eax
push eax
push ecx
pop ebx
push edx
pop esi
push edx
pop esp
pop esp
push ebp
pop edx
pop ecx
push ebp
push eax
push edi
push esp
pop edi
push esi
push ecx
pop edi
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
movzx ebx, word [esi + edi*2]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100425cb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100425f1
mov eax, dword [ebp - 8]
mov word [esi + edi*2], bx
inc edi
mov dword [ebp - 0xc], edi
cmp edi, eax
jle 0x10042550
xor ebx, ebx
inc ebx
push esi
call fcn.10032072
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
jmp 0x100425e1
Function at 0x100425f5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101df028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x214], eax
xor eax, eax
push eax
push 0x1a
push ecx
push eax
mov dword [ebp - 0x210], edi
call fcn.10043323
lea eax, [ebp - 0x20c]
push eax
call fcn.100649fb
add esp, 0x14
mov ebx, eax
call fcn.1003c712
test al, al
je 0x1004265a
pop ecx
push ecx
push eax
push ebp
pop edx
push ecx
pop ecx
pop edx
push ecx
pop ebp
pop esi
pop eax
pop ebp
push edi
push edi
push esp
push esi
call fcn.1003c757
test al, al
je 0x10042678
push ecx
pop ecx
pop ebp
pop edx
push ebx
push eax
push esp
push eax
pop esi
pop edx
push ebp
push ecx
push ebx
push ebp
push ebp
pop ebp
push ebx
pop esp
push ecx
push ebx
pop edx
call fcn.1003cb1d
test al, al
je 0x10042697
pop edi
pop esi
pop edx
push ecx
pop edi
pop esi
pop ecx
pop edx
pop eax
pop esp
pop esi
pop esi
pop ecx
push esp
push ebx
push ecx
mov edi, dword [ebp - 0x210]
test ebx, ebx
je 0x100427ab
mov esi, 0x101d749c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10065400
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10065400
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10065400
add esp, 0x18
call fcn.1003c826
test al, al
je 0x100426f1
push ebx
push ebp
pop ebp
pop ebp
push esi
pop edi
pop esi
pop edx
pop edx
push ebp
push ebp
pop esp
push ebp
push ebp
push esi
push edx
push esp
pop ebp
pop ebx
push edi
pop esp
pop edx
push ecx
pop edi
pop eax
pop edi
call fcn.1003c93a
test al, al
je 0x10042713
push esi
pop esp
push esp
pop ebx
push edi
pop ecx
push ebx
push esi
pop ebx
pop esi
push ecx
push eax
pop edi
pop eax
pop esi
push esi
pop esi
pop ecx
push ebx
pop edi
pop ebp
push edi
pop eax
pop ebx
pop eax
call fcn.1003c86b
test al, al
je 0x10042738
pop eax
push esi
pop ebp
pop edx
push edi
pop eax
push ecx
push edx
pop esp
pop edi
pop ebx
push esi
push ebx
pop eax
push ebx
pop eax
push esi
pop ebp
pop ebp
push edx
push edi
pop ebx
pop edi
pop esi
push ebp
pop ebp
pop ebp
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10042756
lea eax, [ebp - 0x20c]
push eax
call fcn.100424db
pop ecx
call fcn.1003ca09
test al, al
je 0x1004277d
pop ebx
push esi
push esp
pop eax
pop ebp
pop eax
push ebx
push ebx
push ebp
pop esi
pop esi
push ecx
pop ecx
push edi
pop esp
push edx
push edi
pop edx
pop edx
pop esp
push edx
push edx
pop ebp
pop edx
push esp
pop edx
pop edi
pop esp
push edi
pop esp
cmp word [ebp - 0x20c], 0
jne 0x1004278b
xor eax, eax
jmp 0x10042798
lea eax, [ebp - 0x20c]
push eax
call fcn.100649fb
pop ecx
mov ecx, dword [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1001fe10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032035
mov esp, ebp
pop ebp
ret
Function at 0x10042962
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101df028]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x101eaa14], 0
push ebx
push esi
push edi
je 0x100429b1
call fcn.1003ca09
test al, al
je 0x10042aab
pop ebx
push esi
push esp
pop eax
pop ebp
pop eax
push ebx
push ebx
push ebp
pop esi
pop esi
push ecx
pop ecx
push edi
pop esp
push edx
push edi
pop edx
pop edx
pop esp
push edx
push edx
pop ebp
pop edx
push esp
pop edx
pop edi
pop esp
push edi
pop esp
jmp 0x10042aab
call fcn.1003c757
test al, al
je 0x100429d1
pop ebx
pop eax
pop ecx
pop ebp
push edi
push eax
push edx
pop esp
push ebx
push edi
push esp
pop edi
pop ecx
push esp
pop esp
push eax
push ebx
pop ebp
push ebx
pop edx
pop eax
push ecx
push esp
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10056120
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10042a41
lea eax, [ebp - 0x20c]
push eax
call fcn.10064d23
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.10057fab
pop ecx
pop ecx
test eax, eax
jne 0x10042a3a
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.10057fab
pop ecx
pop ecx
test eax, eax
je 0x10042a41
mov byte [0x101eaa14], 1
call fcn.1003c4ea
test al, al
je 0x10042a64
pop esi
push edx
pop esp
pop ebx
pop esp
pop ebx
push ebp
push eax
push edx
pop edx
pop esi
pop ecx
pop ecx
pop edx
pop eax
push edi
pop ecx
push ecx
push ebx
push eax
push esp
push edi
push ebp
pop esp
pop esi
push ebp
call fcn.1003cb1d
test al, al
je 0x10042a8a
push edx
push ecx
pop ecx
pop esp
push ecx
push ebx
push esp
pop esp
push esp
push edi
pop edx
push ebx
pop edi
push eax
pop edi
pop esp
pop eax
pop esi
push ecx
push ecx
pop esp
pop edi
pop ebp
push edx
pop esp
push ecx
push ebx
push ebp
pop edx
call fcn.1003c688
test al, al
je 0x10042aab
push ebp
push esp
push ebx
push edi
push ecx
pop ecx
pop ebp
pop edx
push ebp
push edi
push edx
pop edi
pop esp
push edx
pop ecx
pop eax
push ebp
pop esp
pop ebx
pop ebx
pop esi
pop esi
push eax
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [0x101eaa14]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10032035
mov esp, ebp
pop ebp
ret
Function at 0x10044064
Capabilities:
Get mac address on windows

Disassembly:
push 0x58
mov eax, 0x1017d7c5
call fcn.10077939
mov esi, dword [ebp + 8]
and dword [ebp - 0x64], 0
push 0x288
mov dword [ebp - 0x54], 4
call fcn.1006349b
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x100440a0
push 0x1017f639
mov ecx, esi
call fcn.10028060
jmp 0x10044208
lea eax, [ebp - 0x54]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x100440c5
push ebx
call fcn.10061ef4
push dword [ebp - 0x54]
call fcn.1006349b
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1004408f
xor eax, eax
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x38], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x100441dd
mov byte [ebp - 0x20], al
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x60], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 1
mov edi, ebx
test ebx, ebx
je 0x100441b6
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
lea eax, [ebp - 0x20]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.1002adf0
lea eax, [edi + 0x10c]
push eax
call fcn.10175cc5
push 0x10182a68
push eax
call fcn.100582e0
add esp, 0x2c
test eax, eax
jne 0x10044212
cmp dword [edi + 0x1a0], 0x47
je 0x10044212
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x50]
call fcn.10028060
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x60]
call fcn.1003d5a0
push 0
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.1003cca1
mov edi, dword [edi]
test edi, edi
jne 0x1004410d
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
sub eax, ecx
push 0x18
cdq
pop edi
idiv edi
test eax, eax
je 0x100441d5
lea eax, [ebp - 0x38]
cmp eax, ecx
je 0x100441d5
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.10027c00
lea ecx, [ebp - 0x60]
call fcn.1003d464
push ebx
call fcn.10061ef4
pop ecx
xor ebx, ebx
mov dword [esi + 0x14], 0xf
lea eax, [ebp - 0x38]
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.1002ad80
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.1003cca1
mov eax, esi
call fcn.100778f4
ret 4
cmp byte [ebp - 0x20], 0
jne 0x1004421c
xor eax, eax
jmp 0x10044226
lea eax, [ebp - 0x20]
push eax
call fcn.10064970
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.10027d30
jmp 0x100441d5
Function at 0x10044252
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a4
mov eax, dword [0x101df028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, dword [ebp + 8]
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
and dword [ebp - 0x6a4], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x284]
mov edi, 0x208
push edi
push 0
push eax
call fcn.10056120
add esp, 0xc
lea eax, [ebp - 0x284]
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x101d74a0
call fcn.100649fb
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1006239c
push edi
lea eax, [ebp - 0x694]
push 0
push eax
call fcn.10056120
push edi
xor edi, edi
lea eax, [ebp - 0x48c]
push edi
push eax
call fcn.10056120
push 0x64
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x698], edi
push edi
push eax
mov dword [ebp - 0x6a0], edi
mov dword [ebp - 0x69c], edi
call fcn.10056120
add esp, 0x34
lea eax, [ebp - 0x48c]
push ebx
push eax
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x698]
push eax
push ebx
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10044350
push dword [ebp - 0x698]
lea eax, [ebp - 0x7c]
push str._08X
push eax
call fcn.1002adf0
add esp, 0xc
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.10028060
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032035
mov esp, ebp
pop ebp
ret 4
Function at 0x1004b83d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x1017e43e
call fcn.10077905
xor esi, esi
mov dword [ebp - 0x18], 0x104
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.10053f64
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.10053f98
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x1004b87d
mov edi, 0xf003f
push edi
push esi
push 0x10183c60
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004b8dd
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1004b8b8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004b8dd
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.10053f77
call fcn.100778df
ret 0xc
Function at 0x1004bd65
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x1017e4d9
call fcn.10077939
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor esi, esi
mov dword [ebp - 0x24c], edi
push esi
push eax
call fcn.10056120
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x19
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call esi
test eax, eax
je 0x1004be5c
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x1004bde1
lea eax, [ebp - 0x218]
push eax
call fcn.100649fb
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.1001fe10
and dword [ebp - 4], 0
push 0x101d749c
call fcn.100649fb
pop ecx
push eax
push 0x101d749c
lea ecx, [ebp - 0x230]
call fcn.10021a60
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.1004b9c8
mov edi, eax
lea ecx, [ebp - 0x230]
push 0
push 1
test edi, edi
je 0x1004be4d
call fcn.1001fd50
mov eax, edi
jmp 0x1004bf0e
or dword [ebp - 4], 0xffffffff
call fcn.1001fd50
mov edi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
test eax, eax
je 0x1004bf0c
and dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
je 0x1004bea3
lea eax, [ebp - 0x218]
push eax
call fcn.100649fb
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.1001fe10
mov esi, 0x101d749c
mov dword [ebp - 4], 1
push esi
call fcn.100649fb
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.10021a60
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.1004b9c8
push 0
lea ecx, [ebp - 0x248]
mov esi, eax
push 1
call fcn.1001fd50
test esi, esi
je 0x1004bf0c
mov eax, esi
jmp 0x1004bf0e
xor eax, eax
call fcn.100778f4
ret 4