joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cb7b0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1012cc08]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100cb7f0
cmp byte [ebx], 0xa
jne 0x100cb7f0
or byte [eax + edi + 0x28], 4
jmp 0x100cb7f5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100cb8f3
mov al, byte [edx]
cmp al, 0x1a
je 0x100cb8d5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100cb824
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100cb849
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100cb853
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100cb806
jmp 0x100cb8f3
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100cb8d0
cmp dword [ebp - 0xc], 0
je 0x100cb8d0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1012cc08]
test byte [eax + edi + 0x28], 0x48
je 0x100cb8aa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100cb895
mov byte [esi], dl
jmp 0x100cb8a6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1012cc08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100cb8f3
cmp byte [ebp - 1], 0xa
jne 0x100cb8b9
cmp esi, ebx
jne 0x100cb8b9
mov byte [esi], 0xa
jmp 0x100cb8f2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100cb752
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100cb8f3
mov byte [esi], 0xd
jmp 0x100cb8f2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1012cc08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100cb8ef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100cb8f3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100cb8fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1012cc08]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100cb93f
cmp word [esi], dx
jne 0x100cb93f
or byte [edi + eax + 0x28], 4
jmp 0x100cb944
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100cba97
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100cba77
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100cb986
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100cb9bc
cmp eax, edx
jae 0x100cb9c8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100cb95e
jmp 0x100cba97
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100cba73
cmp dword [ebp - 0x14], 0
je 0x100cba73
mov eax, dword [ebx*4 + 0x1012cc08]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100cba4b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100cba14
mov word [esi], cx
jmp 0x100cba47
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1012cc08]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1012cc08]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1012cc08]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100cba97
pop ebx
cmp word [ebp - 4], bx
jne 0x100cba5c
cmp esi, dword [ebp + 0xc]
jne 0x100cba5c
mov word [esi], bx
jmp 0x100cba94
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100cb752
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100cba97
push 0xd
jmp 0x100cba90
mov ecx, dword [ebx*4 + 0x1012cc08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100cba8e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100cba97
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100cc611
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100eaa2c
push 0x100eaa24
push str.FlsAlloc
push 0x1e
call fcn.100cc3fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100cc645
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e52c0]
call esi
jmp 0x100cc64b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100cc68f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100eaa3c
push 0x100eaa34
push str.FlsGetValue
push 0x20
call fcn.100cc3fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100cc6c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e52c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100d0ebc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100d0f59
push ebx
push esi
call fcn.100d0e85
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100cf6cc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100d0f06
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d0f58
push edi
push eax
call fcn.100c7b0a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100d0f26
call fcn.100c7ad0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d0f57
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100cf6cc
add esp, 0x20
test eax, eax
jne 0x100d0f45
push edi
call fcn.100c7ad0
jmp 0x100d0f4d
push ebx
call fcn.100c7ad0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100d0f5c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100d0f6d
pop esi
ret
push ebx
push edi
push esi
call fcn.100d0e85
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100c7b0a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100d0f95
push ebx
push esi
push edi
call fcn.100b0fd0
add esp, 0xc
push 0
call fcn.100c7ad0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100d1359
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d0faa
Function at 0x100d77e1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100d775d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100d7959
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100d7959
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100d7908
jg 0x100d783a
test eax, eax
je 0x100d78fe
push 1
push 0x1000
call fcn.100ca1b0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100d7860
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100d78f5
push 0x8000
push ebx
call fcn.100d768e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100d788c
jg 0x100d7887
cmp ecx, 0x1000
jb 0x100d788c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100cb30b
add esp, 0x10
cmp eax, 0xffffffff
je 0x100d78d1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100d7887
jl 0x100d78b8
test ecx, ecx
jne 0x100d7879
push dword [ebp - 0xc]
push ebx
call fcn.100d768e
push esi
call fcn.100c7ad0
add esp, 0xc
xor edi, edi
jmp 0x100d796a
cmp byte [edi + 0x24], 0
je 0x100d78e8
cmp dword [edi + 0x20], 5
jne 0x100d78e8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100d78f3
mov edi, dword [edi + 0x18]
jmp 0x100d78f5
xor edi, edi
push esi
call fcn.100c7ad0
pop ecx
jmp 0x100d796a
test ecx, ecx
jg 0x100d78ca
jl 0x100d7908
test eax, eax
jae 0x100d78ca
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100cb752
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100d792b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100d78ca
jmp 0x100d7962
push ebx
call fcn.100d547a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100d78ca
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100d796a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100d7967
mov edi, dword [edi + 0x18]
jmp 0x100d796a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100cb752
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000d363
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1000d3b9
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1000d395
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1000d393
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jmp 0x1000d3b7
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x1000d3b7
push 0x1b0b
push 0
push 1
push 0x194c
call fcn.1000cb43
add esp, 0x10
jmp 0x1000d401
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
push 0x2c56
push 0x5e41
push 0x67cf
push 0x39af
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x10]
push 0x4b23
push 0x5e90
push 0x5615
push dword [ebp - 0x14]
call fcn.1000cffd
add esp, 0x2c
mov esp, ebp
pop ebp
ret
Function at 0x10012db7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10012dff
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x6971
push dword [ebp - 0x10]
push 0x3140
call fcn.10012e2e
add esp, 0x1c
jmp 0x10012e2a
lea eax, [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x10012e19
push 0
call dword [sym.imp.USER32.dll_GetMenuItemCount]
jmp 0x10012e2a
push 0x2366
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret
Function at 0x1001394f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10013a51
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x100139a5
push 0x2366
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x10013a4f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100139f7
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xfffffff6
jg 0x10013a4f
mov dword [ebp - 0x40], 0x418eb0ba
mov dword [ebp - 0x38], 0x2bfeed1b
push 0x1294
push dword [ebp - 0x34]
push 1
push 0
push 0
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x3c]
push 0x69de
push 0x7f79
lea eax, [ebp - 0x40]
push eax
push 0x6dd2
push 0x32fb
push dword [ebp - 0x44]
push 0x1e3d
push dword [ebp - 0x48]
call fcn.1001a2da
add esp, 0x3c
jmp 0x100139ec
jmp 0x10013a6e
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
push 0x6d69
push 0x4122
push 1
call fcn.100105a7
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x10015919
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001594f
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
push 0x72dd
push 1
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x1ef4
call fcn.100159c9
add esp, 0x14
jmp 0x100159c5
lea eax, [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x100159b8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10015999
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x100159b6
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.10025d6c
mov dword [eax], 1
jmp 0x1001598e
jmp 0x100159c5
push 0x14a0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esp, ebp
pop ebp
ret
Function at 0x1001b48c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1001b5d9
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x1001b58f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
push 0
mov ecx, dword [ebp - 0x10]
call fcn.10025d6c
mov dword [eax], 2
jmp 0x1001b50c
push 0
mov ecx, dword [ebp - 0x10]
call fcn.10025d6c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
push 0
mov ecx, dword [ebp - 0x10]
call fcn.10025d6c
cmp dword [eax], 0
jl 0x1001b58d
mov dword [ebp - 0x48], 0x5a1fa147
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0x1e6e2bfb
mov dword [ebp - 0x5c], 0xf7b6fe6d
mov dword [ebp - 0x60], 0xf1fdbd01
mov dword [ebp - 0xc], 0
jmp 0x1001b55c
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jge 0x1001b56f
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x6c], 5
jmp 0x1001b555
push 1
push dword [ebp - 0x2c]
push 1
push 0x18e9
push 0x348b
call fcn.100178cd
add esp, 0x14
jmp 0x1001b4f4
jmp 0x1001b5d7
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1001b5bd
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jge 0x1001b5d7
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x40]
call fcn.10025d6c
and dword [eax], 0
jmp 0x1001b5b2
jmp 0x1001b613
lea eax, [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1001b608
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001b606
push 0x2366
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1001b613
push 0x2548
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esp, ebp
pop ebp
ret
Function at 0x1002300f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10023063
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc], eax
push 0x482b
push 0x117b
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.100230ea
add esp, 0x20
jmp 0x100230e6
lea eax, [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x100230c4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx]
add ecx, dword [eax]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [eax], ecx
jmp 0x100230e6
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x100230e6
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esp, ebp
pop ebp
ret
Function at 0x100234f9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100235c0
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x100235aa
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x10023578
mov dword [ebp - 0xc], 1
jmp 0x1002357c
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 0xa0b2b040
jb 0x10023590
mov dword [ebp - 0x10], 1
jmp 0x10023594
and dword [ebp - 0x10], 0
push 0
mov ecx, dword [ebp - 0x40]
call fcn.10025d6c
mov eax, dword [eax]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
jmp 0x100235bb
push 0x2366
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1002364b
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x1002363e
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1002360a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xfffffffc
jl 0x1002363c
mov eax, dword [ebp - 8]
mov dword [eax], 0x1d
jmp 0x10023628
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0xffffffec
je 0x1002363a
push 0
call fcn.10012d9b
pop ecx
jmp 0x1002361d
jmp 0x100235ff
jmp 0x1002364b
push 0
push 0x111
call dword [sym.imp.GDI32.dll_SetLayout]
mov esp, ebp
pop ebp
ret