joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101c8260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push edi
push eax
push 1
push 0
push str.SOFTWAREPoliciesAdobeAdobe_Acrobat11.0FeatureLockdown
xor bl, bl
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
call esi
mov edi, 1
test eax, eax
jne 0x101c82cb
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.bGoCart
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101c82cb
cmp dword [ebp - 0x14], eax
movzx ebx, bl
cmove ebx, edi
mov dword [ebp - 8], ebx
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
lea eax, [ebp - 4]
xor bl, bl
push eax
push 1
push 0
push str.SOFTWAREPoliciesAdobeAdobe_Acrobat2015FeatureLockdown
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
jne 0x101c8332
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.bGoCart
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101c8332
cmp dword [ebp - 0x18], eax
mov eax, 1
movzx ebx, bl
cmove ebx, eax
mov dword [ebp - 0xc], ebx
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
xor bl, bl
push eax
push 1
push 0
push str.SOFTWAREPoliciesAdobeAdobe_AcrobatDCFeatureLockdown
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jne 0x101c8393
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.bGoCart
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101c8393
cmp dword [ebp - 0x1c], eax
mov eax, 1
movzx ebx, bl
cmove ebx, eax
mov dword [ebp - 0x10], ebx
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
xor bl, bl
push eax
push 1
push 0
push str.SOFTWAREPoliciesAdobeAdobe_Acrobat2017FeatureLockdown
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x101c83ee
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.bGoCart
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101c83ee
cmp dword [ebp - 0x14], eax
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push dword [ebp - 4]
call edi
cmp byte [ebp - 8], 0
jne 0x101c8412
cmp byte [ebp - 0xc], 0
jne 0x101c8412
cmp byte [ebp - 0x10], 0
jne 0x101c8412
test bl, bl
jne 0x101c8412
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101c84e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
push 0
push 0x400
push 0x10259870
mov dword [ebp - 0x408], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x101c85a7
push 0x400
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.101d28f0
push 0x400
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
call fcn.101ef6b3
lea eax, [ebp - 0x404]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101c8556
sub eax, edx
mov ecx, esi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.1001bf90
push 1
push 0x1024d294
mov ecx, esi
call fcn.10030160
push 0xb
push str.AdobeGCInfo
mov ecx, eax
call fcn.10030160
push dword [ebp - 0x408]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.101cff65
mov esp, ebp
pop ebp
ret

Function at 0x101c86b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x101
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101c8788
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x101c876a
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x101c8700
cmp eax, dword [ebp - 0x10]
jne 0x101c877b
mov esi, dword [ebx]
push edi
mov edi, dword [ebp + 0x18]
mov byte [ebp - 1], 0
mov eax, dword [edi + 4]
mov ecx, eax
mov edx, dword [edi]
sub ecx, edx
mov dword [ebp - 0xc], eax
cmp esi, ecx
jae 0x101c871f
lea eax, [edx + esi]
jmp 0x101c874d
jbe 0x101c8750
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x101c8738
lea eax, [ebp - 1]
mov ecx, edi
push eax
push esi
call fcn.101c7b50
jmp 0x101c8750
sub esi, ecx
push esi
push 0
push dword [ebp - 0xc]
call fcn.101d28f0
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, esi
mov dword [edi + 4], eax
push ebx
push dword [edi]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
pop edi
test esi, esi
je 0x101c877b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101c8790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.101d0ca0
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1404]
push 0x1000
push 0
push eax
xor bl, bl
mov dword [ebp - 0x1410], 1
mov dword [ebp - 0x1408], 0
call fcn.101d28f0
add esp, 0xc
mov dword [ebp - 0x140c], 0x400
lea eax, [ebp - 0x1408]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101c88a6
lea eax, [ebp - 0x140c]
push eax
lea eax, [ebp - 0x1404]
push eax
lea eax, [ebp - 0x1410]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x1408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101c889a
mov eax, dword [ebp - 0x140c]
dec eax
cmp eax, 0x3fe
ja 0x101c889a
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.101d28f0
push 0x400
lea eax, [ebp - 0x1404]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.101ef6b3
lea edx, [ebp - 0x404]
add esp, 0x18
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x101c8880
sub edx, ecx
lea eax, [ebp - 0x404]
push edx
push eax
mov ecx, esi
call fcn.1001bf90
mov bl, 1
push dword [ebp - 0x1408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.101cff65
mov esp, ebp
pop ebp
ret
Function at 0x101c8e80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10243060
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0
push eax
push 0
push 0x400
push 0x10259850
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x101c8ed9
xor al, al
jmp 0x101c9005
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.101d28f0
push 0x400
push dword [ebp - 0x42c]
lea eax, [ebp - 0x410]
push eax
call fcn.101ef6b3
lea eax, [ebp - 0x410]
mov dword [ebp - 0x428], 0
add esp, 0x18
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101c8f30
sub eax, edx
lea ecx, [ebp - 0x428]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.10010c60
push 1
push 0x1024d294
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0
call fcn.10030160
push 5
push 0x1024d2a8
mov ecx, eax
call fcn.10030160
push 1
push 0x1024d294
lea ecx, [ebp - 0x428]
call fcn.10030160
push 0xd
push str.AdobeGCClient
mov ecx, eax
call fcn.10030160
push dword [ebp - 0x42c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
push 0
cmovae eax, dword [ebp - 0x428]
push eax
mov dword [ebp - 0x42c], 0
call fcn.101ef21d
mov ecx, dword [ebp - 0x414]
add esp, 8
test eax, eax
sete bl
cmp ecx, 0x10
jb 0x101c9003
mov edx, dword [ebp - 0x428]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101c8ff9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101c901f
push ecx
push edx
call fcn.101d02bd
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
call fcn.101dc0ba
int3
Function at 0x101c93b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102430dd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x102e91c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov ecx, dword [esi + 4]
mov esi, dword [esi]
mov dword [ebp + 0x14], ecx
cmp esi, ecx
je 0x101c944a
mov ebx, dword [ebp + 0x14]
nop
mov edi, dword [esi + 0x10]
test edi, edi
je 0x101c943a
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x101c9413
mov edx, dword [esi]
jmp 0x101c9417
mov ecx, esi
jb 0x101c9419
mov ecx, dword [esi]
push ebx
lea eax, [edx + 2]
lea eax, [eax + edi*2]
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.101c79a0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
inc edx
add edx, dword [esi + 0x10]
mov dword [ebp - 0x10], edx
add esi, 0x18
cmp esi, ecx
jne 0x101c9400
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x101c9455
xor ecx, ecx
mov word [eax], cx
jmp 0x101c9469
push 0x1024d274
push eax
lea ecx, [ebp - 0x1c]
call fcn.101c78d0
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push 0
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x101c94bf
mov eax, dword [ebp - 0x10]
lea eax, [eax*2 + 2]
push eax
push ebx
push 7
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x101c94bf
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x101c94ec
sub edi, ebx
mov eax, ebx
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x101c94e2
mov ebx, dword [eax - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101c9500
push edi
push ebx
call fcn.101d02bd
add esp, 8
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
call fcn.101dc0ba
int3
Function at 0x101c9c00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
xor ecx, ecx
push 0
mov dword [ebp + 0x14], 0
cmp byte [eax], cl
lea eax, [ebp + 0x14]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0xc]
setne cl
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x101c9c60
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x101c9c60
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x101ec135
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.101d0ca0
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.101f558e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x101ec177
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x101ec2d3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10218a60
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x102ee900]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.101f8af7
mov ecx, dword [esi*4 + 0x102ee900]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x101ec2cc
cmp eax, dword [ecx + edi + 0x24]
jne 0x101ec2cc
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101ec2cc
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101f8af7
add esp, 0x14
test edx, edx
jl 0x101ec2cc
jg 0x101ec242
test eax, eax
jb 0x101ec2cc
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x101ec2cc
jl 0x101ec25c
cmp dword [ebp - 0x1008], eax
ja 0x101ec2cc
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x101ec27a
test ebx, ebx
je 0x101ec2b3
cmp ecx, edi
jae 0x101ec2b3
mov al, byte [ecx]
cmp al, 0xd
jne 0x101ec294
lea eax, [edi - 1]
cmp ecx, eax
jae 0x101ec2a0
cmp byte [ecx + 1], 0xa
jne 0x101ec2a0
inc ecx
jmp 0x101ec2a0
movzx eax, al
movsx eax, byte [eax + 0x102e9600]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x101ec27a
cmp edx, ebx
jne 0x101ec27a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x101ec2d1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.101cff65
leave
ret
Function at 0x101f0af9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x101f0b38
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101f0b38
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101f0b38
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x101f0b38
cmp dword [ecx + 0x74], 0xe
jbe 0x101f0b38
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x101f3a9a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x102522b8
push 0x102522b0
push str.FlsAlloc
push 0x1f
call fcn.101f38c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101f3ace
push dword [ebp + 8]
mov ecx, esi
call dword [0x1024852c]
call esi
jmp 0x101f3ad4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x101f3b18
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x102522c8
push 0x102522c0
push str.FlsGetValue
push 0x21
call fcn.101f38c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101f3b4f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1024852c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101f3b57
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x102522d0
push 0x102522c8
push str.FlsSetValue
push 0x22
call fcn.101f38c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101f3b91
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1024852c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x101f7f8f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x102ee900]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x101f7fcf
cmp byte [ebx], 0xa
jne 0x101f7fcf
or byte [edi + eax + 0x28], 4
jmp 0x101f7fd4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x101f80d3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x101f80b6
inc eax
cmp dl, 0xd
je 0x101f8000
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x101f8026
cmp eax, ecx
jae 0x101f8034
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x101f7fe8
jmp 0x101f80d3
push 0
lea eax, [ebp - 0x10]
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 0x101f80b1
cmp dword [ebp - 0x10], 0
je 0x101f80b1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x102ee900]
test byte [eax + edi + 0x28], 0x48
je 0x101f808b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x101f8076
mov byte [esi], dl
jmp 0x101f8087
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x102ee900]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x101f80d3
cmp byte [ebp - 1], 0xa
jne 0x101f809a
cmp esi, ebx
jne 0x101f809a
mov byte [esi], 0xa
jmp 0x101f80d2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101f8b15
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x101f80d3
mov byte [esi], 0xd
jmp 0x101f80d2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x102ee900]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x101f80d0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x101f80d3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101f80dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x102ee900]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x101f8122
cmp word [ebx], dx
jne 0x101f8122
or byte [eax + edi + 0x28], 4
jmp 0x101f8127
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x101f828a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x101f826a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x101f8168
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x101f819e
cmp eax, edx
jae 0x101f81ac
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x101f8143
jmp 0x101f828a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101f8265
cmp dword [ebp - 0x18], 0
je 0x101f8265
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x102ee900]
test byte [eax + edi + 0x28], 0x48
je 0x101f823b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x101f81ff
mov word [esi], cx
jmp 0x101f8236
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x102ee900]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x102ee900]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x102ee900]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x101f828a
pop eax
cmp word [ebp - 4], ax
jne 0x101f824b
cmp esi, ebx
jne 0x101f824b
mov word [esi], ax
jmp 0x101f8287
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101f8b15
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x101f828a
push 0xd
pop eax
jmp 0x101f8246
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x102ee900]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x101f8284
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x101f828a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101fd920
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 0x101fd9bd
push ebx
push esi
call fcn.101fd8e9
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.101fad09
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101fd96a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101fd9bc
push edi
push eax
call fcn.101f3fa7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101fd98a
call fcn.101f185e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101fd9bb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101fad09
add esp, 0x20
test eax, eax
jne 0x101fd9a9
push edi
call fcn.101f185e
jmp 0x101fd9b1
push ebx
call fcn.101f185e
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 0x101fd9c0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x101fd9d1
pop esi
ret
push ebx
push edi
push esi
call fcn.101fd8e9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.101f3fa7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x101fd9f9
push ebx
push esi
push edi
call fcn.101d2370
add esp, 0xc
push 0
call fcn.101f185e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101fddc9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101fda0e

Function at 0x101ffeff
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.101f1c05
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101fff6e
cmp esi, dword [ebp - 4]
je 0x101fff69
cmp dword [ebp + 0xc], 0
je 0x101fff69
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x101fff46
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.101ffa3c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x101fff70
xor eax, eax
inc eax
jmp 0x101fff70
xor eax, eax
pop edi
pop esi
leave
ret