joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10055112
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1005505b
add ebx, 0
push ecx
call 0x10055070
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x73246076
sub ebx, dword [0x732658b5]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x732658a5
call fcn.10050b3a
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.10050048
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100551ce
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100551ce
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x10055185
mov eax, 1
lock xchg dword [0x732658b1], eax
push 0x3dd1fc71
call 0x10055112
push esi
add esp, 8
cmp eax, 0
jne 0x100550fb
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10055121
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x10055136
cmp ecx, edx
cmp eax, 0
je 0x1005515b
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x10055145
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.10055174
dec eax
loope 0x10055177
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x732658b1], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x100551ab
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x100551c0
jmp 0x100551cb
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100550b9
Function at 0x1005c233
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1005c509
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x73252529
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x732494ef
push 0xffffffffffffffff
call fcn.10053433
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1005c29d
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1005c2b5
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1005c4fd
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1005c4d1
Function at 0x1006bd03
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1006bd25
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1006bd25
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1006bd25
ret
cmp word [ebx + 4], 0x14c
jne 0x1006bd25
test word [ebx + 0x16], 2
je 0x1006bd25
test word [ebx + 0x16], 0x100
je 0x1006bd25
cmp word [ebx + 0x18], 0x10b
jne 0x1006bd25
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1006bd25
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1006bdb1
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1006bd45
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10052c90
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1006bd25
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1006bdb1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1006bd25
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1006bd25
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1006bd25
ret
cmp word [ebx + 4], 0x14c
jne 0x1006bd25
test word [ebx + 0x16], 2
je 0x1006bd25
test word [ebx + 0x16], 0x100
je 0x1006bd25
cmp word [ebx + 0x18], 0x10b
jne 0x1006bd25
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1006bd25
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1006bdb1
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1006bd45
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10052c90
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1006bd25
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1006be68
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1006bec1
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1006be68
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1006be77
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10471b1a
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1006bec8
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10052d3e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1006bf67
add edi, 4
add eax, 2
dec ecx
jne 0x1006bead
call 0x1006bf14
loope 0x1006bf0a
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1006bf64
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1006bf75
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1006bf28
cmp eax, ecx
ja 0x1006bf28
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1006bfb2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1006bfa8
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1005321d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1006be77
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1006bec1
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1006be68
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1006be77
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10471b1a
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1006bec8
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10052d3e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1006bf67
add edi, 4
add eax, 2
dec ecx
jne 0x1006bead
call 0x1006bf14
loope 0x1006bf0a
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1006bf64
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1006bf75
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1006bf28
cmp eax, ecx
ja 0x1006bf28
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1006bfb2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1006bfa8
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1005321d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1000fa05
Capabilities:
Get disk information

Disassembly:
push 0xa4
mov eax, 0x1008b793
call fcn.10061d7a
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x64], eax
push esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x68], esi
push eax
mov dword [ebp - 0x60], ebx
call fcn.1002df57
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, esi
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x64]
jne 0x1000fa4c
sub ecx, edi
sar ecx, 1
push 3
pop edi
cmp ecx, 4
jb 0x1000fb13
cmp edx, 4
je 0x1000fb13
cmp edx, 5
je 0x1000fb13
test byte [ebp + 0xc], 2
je 0x1000fb13
test dword [ebp + 0xc], 0x20000000
jne 0x1000fb13
push esi
lea ecx, [ebp - 0x98]
call fcn.1000891f
xor ebx, ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x98]
inc ebx
push eax
mov dword [ebp - 0x60], ebx
call fcn.1002e4ae
test al, al
jne 0x1000fb13
push esi
lea ecx, [ebp - 0x80]
call fcn.1000891f
lea eax, [ebp - 0x80]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x60], edi
push eax
call fcn.1002dfd0
mov dword [ebp - 4], edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x60], 7
jb 0x1000fae9
mov eax, dword [eax]
xor ecx, ecx
push ecx
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.1002db4a
push 0xf
pop ebx
push 0x100af4c8
mov ecx, eax
call fcn.1000b139
test al, al
jne 0x1000fb13
xor eax, eax
mov byte [ebp - 0x59], al
jmp 0x1000fb17
mov byte [ebp - 0x59], 1
test bl, 8
je 0x1000fb2a
lea ecx, [ebp - 0xb0]
and ebx, 0xfffffff7
call fcn.10009725
test bl, 4
je 0x1000fb3a
lea ecx, [ebp - 0x4c]
and ebx, 0xfffffffb
call fcn.10009725
test bl, 2
je 0x1000fb4a
lea ecx, [ebp - 0x80]
and ebx, 0xfffffffd
call fcn.10009725
xor eax, eax
mov dword [ebp - 4], eax
test bl, 1
je 0x1000fb5f
lea ecx, [ebp - 0x98]
call fcn.10009725
mov bl, byte [ebp - 0x59]
test bl, bl
jne 0x1000fbf8
push 9
xor eax, eax
lea edi, [ebp - 0x58]
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [vtable.SkyDriveProxyWrapper.0]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov esi, dword [eax + 0x30]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call dword [0x10096750]
mov ecx, 0x100c71e0
call esi
mov byte [ebp - 4], 4
xor ebx, ebx
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
mov esi, dword [eax + 0x168]
lea eax, [ebp - 0x58]
push eax
push ebx
push dword [ebp - 0x68]
mov ecx, esi
call dword [0x10096750]
mov ecx, edi
call esi
test eax, eax
je 0x1000fbe5
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
or ecx, dword [ebp - 0x38]
or eax, ebx
cmp eax, 3
ja 0x1000fbe5
jb 0x1000fbd9
cmp ecx, 0xc0000000
ja 0x1000fbe5
test dword [ebp - 0x58], 0x417
mov byte [ebp - 0x59], bl
je 0x1000fbe9
mov byte [ebp - 0x59], 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1000fbf5
call fcn.1000ac39
mov bl, byte [ebp - 0x59]
lea ecx, [ebp - 0x34]
call fcn.10009725
mov al, bl
call fcn.10061d29
ret 8

Function at 0x1001e462
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteW]
Function at 0x1001e472
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x1001e482
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x100c6700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push 0x80
push 0
push eax
call fcn.10063660
add esp, 0xc
mov dword [ebp - 0x88], 0x40
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov esi, eax
test esi, esi
je 0x1001e4f2
mov eax, 0x4c00
cmp word [ebp - 0x84], ax
je 0x1001e4f2
lea eax, [ebp - 0x84]
mov ecx, edi
push eax
call fcn.1000b08e
xor ecx, ecx
mov eax, 0x80004005
test esi, esi
pop edi
cmovne eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1006100c
leave
ret 4

Function at 0x1001e512
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x100c6700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x204]
push 0x200
push 0
push eax
call fcn.10063660
add esp, 0xc
mov dword [ebp - 0x208], 0x100
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, eax
test esi, esi
je 0x1001e580
mov eax, 0x4c00
cmp word [ebp - 0x204], ax
je 0x1001e580
lea eax, [ebp - 0x204]
mov ecx, edi
push eax
call fcn.1000b08e
xor ecx, ecx
mov eax, 0x80004005
test esi, esi
pop edi
cmovne eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1006100c
leave
ret 4

Function at 0x1001e6f2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret 0x2c

Function at 0x1001e812
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ebp
ret 8

Function at 0x1001e842
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]

Function at 0x1001eaa2
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.WININET.dll_InternetGetConnectedState]

Function at 0x1001ece2
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.USER32.dll_GetClipboardData]
Function at 0x10022ac8
Capabilities:
Delete file

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x100c6700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
xor edi, edi
cmp dword [esi + 0x14], 8
jb 0x10022aec
mov eax, dword [esi]
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10022b2d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x10022b0e
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10022b2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1006100c
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x10022ac6

Function at 0x1002328e
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x228
mov eax, 0x1008d990
call fcn.10061d7a
mov eax, dword [ebp + 0x14]
mov ecx, eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
call fcn.10016932
xor ecx, ecx
mov eax, 0x200
cmp dword [ebp + 0x10], 1
mov edx, 0x100
cmove ecx, eax
xor eax, eax
cmp dword [ebp + 0x10], 2
cmove eax, edx
and dword [ebp - 0x230], 0
or ecx, eax
or ecx, 0x20019
cmp dword [esi + 0x14], 8
jb 0x100232e6
mov esi, dword [esi]
lea eax, [ebp - 0x230]
push eax
push ecx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x100233a4
xor ebx, ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x1002337b
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x22c]
call fcn.1000891f
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x22c]
and dword [ebp - 4], edi
push eax
call fcn.100117b9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.10009725
jmp 0x10023383
cmp edi, 0x103
jne 0x1002338a
inc ebx
test edi, edi
je 0x10023310
jmp 0x10023398
movzx esi, di
or esi, 0x80070000
test edi, edi
cmovle esi, edi
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.10061d29
ret 0x10
Function at 0x1002471e
Capabilities:
Get common file path

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100c6700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
xor esi, esi
mov dword [ebp - 0x210], 0x104
push esi
push eax
call fcn.10063660
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x1002477f
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.1000b08e
jmp 0x10024793
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1006100c
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x1002471c

Function at 0x10024fa9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x180
mov eax, 0x1008df02
call fcn.10061d7a
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x188], ebx
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], ebx
mov edi, ebx
mov dword [ebp - 0x188], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push ebx
push 0x55
lea ecx, [ebp - 0x168]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
jne 0x10025018
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
lea eax, [ebp - 0x168]
mov ecx, esi
push eax
call fcn.1000b08e
test edi, edi
jns 0x100250e7
mov edi, 0xaa
lea eax, [ebp - 0xbc]
push edi
push ebx
push eax
call fcn.10063660
add esp, 0xc
lea ecx, [ebp - 0x184]
push 0x100ae2c8
call fcn.1000891f
push edi
lea eax, [ebp - 0xbc]
mov dword [ebp - 4], 2
push eax
push ebx
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x16c], edi
push eax
lea eax, [ebp - 0xbc]
push eax
push ebx
push str.UserLanguage
push str.SoftwareMicrosoftOneDrive
call sub.SHLWAPI.dll_SHRegGetUSValueW
test eax, eax
jne 0x100250d9
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x184]
call fcn.1000b08e
cmp dword [ebp - 0x174], 0
je 0x100250d9
push 0x1009b874
lea ecx, [ebp - 0x184]
call fcn.1000b139
test al, al
je 0x100250cb
push str.en_US
lea ecx, [ebp - 0x184]
call fcn.1000b08e
lea eax, [ebp - 0x184]
mov ecx, esi
push eax
call fcn.10008887
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], bl
call fcn.10009725
mov edi, 0x100afcc8
jmp 0x100250fd
push 0x100afd1c
push 1
push eax
mov ecx, esi
call 0x1002ceb5
push ebx
push edi
mov ecx, esi
call fcn.10017b63
cmp eax, 0xffffffff
jne 0x100250ee
mov eax, esi
call fcn.10061d29
ret 4
Function at 0x10025117
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x100c6700]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20019
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x1002514d
mov ecx, dword [ecx]
lea esi, [ebp - 0x830]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x82c], 0x820
test eax, eax
cmovle esi, eax
and dword [ebp - 0x828], 0
test esi, esi
js 0x100251f5
cmp dword [edi + 0x14], 8
jb 0x1002518a
mov edi, dword [edi]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
push edi
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x100251e9
cmp dword [ebp - 0x828], 1
je 0x100251d9
cmp dword [ebp - 0x828], 2
je 0x100251d9
mov esi, 0x8007065d
jmp 0x100251e9
lea eax, [ebp - 0x824]
mov ecx, ebx
push eax
xor esi, esi
call fcn.1000b08e
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006100c
leave
ret 0x14
push ebp
mov ebp, esp
pop ebp
jmp 0x10025115

Function at 0x10025be6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100c6700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
push 0x208
push 0
push eax
mov dword [ebp - 0x214], esi
call fcn.10063660
add esp, 0xc
mov dword [ebp - 0x210], 0x104
lea eax, [ebp - 0x210]
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push ebx
call fcn.10025adb
mov esi, eax
test esi, esi
js 0x10025c5f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10025ca2
push 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x214]
push ebx
call fcn.10025adb
mov esi, eax
test esi, esi
js 0x10025cba
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10025cba
test edi, edi
je 0x10025cbf
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x1c]
push edi
call fcn.1001659e
mov esi, eax
jmp 0x10025cbf
mov esi, 0x80070490
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006100c
leave
ret 0x18