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

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1003b1e0
push 0xffffffffffffffff
push 0x1006b4c2
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100be114]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x100c]
xor ebx, ebx
mov dword [ebp - 0x18], edi
push 0x1000
lea eax, [ebp]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.1003d660
mov eax, dword [ebp + 0x1010]
add esp, 0xc
test eax, eax
je 0x10038ee6
mov esi, dword [eax]
jmp 0x10038ee8
mov esi, ebx
movzx eax, word [esi]
mov ecx, ebx
mov edx, ebx
mov ebx, eax
test ax, ax
je 0x1003903b
cmp ax, 0x2e
jne 0x10038f06
inc ecx
cmp ecx, 1
jg 0x10038f19
inc edx
movzx eax, word [esi + edx*2]
test ax, ax
jne 0x10038efa
cmp ecx, 1
jle 0x1003903b
push 0x100a3d04
push esi
call fcn.1004d20a
pop ecx
pop ecx
test eax, eax
js 0x1003903b
push esi
call fcn.100389a5
pop ecx
test al, al
je 0x1003903b
push 0x100a3d20
lea ecx, [ebp - 0x14]
call fcn.1000154d
push 0x100a3d1c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.100127e8
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10038f7b
call fcn.100016dc
push esi
lea ecx, [ebp - 0x10]
call fcn.1000154d
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10038fa4
call fcn.100016dc
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x10038faf
mov eax, dword [esi]
jmp 0x10038fb1
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10038ff9
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1000
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x100a3d78
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10038ff9
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
mov ecx, edi
push eax
call fcn.1000154d
test esi, esi
je 0x1003900f
mov ecx, esi
call fcn.100016dc
mov esi, dword [ebp + 0x1010]
test esi, esi
je 0x1003906a
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x1003906a
test esi, esi
je 0x1003906a
mov ecx, esi
call fcn.10001703
push 0xc
push esi
call fcn.1003b0f2
pop ecx
pop ecx
jmp 0x1003906a
push str.1.3.1
push esi
call fcn.1004d20a
push esi
call fcn.100389a5
add esp, 0xc
mov ecx, edi
push 0x100a3657
call fcn.100127e8
mov ecx, dword [ebp + 0x1010]
test ecx, ecx
je 0x1003906a
call fcn.100016dc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1003b105
add ebp, 0x1004
leave
ret
Function at 0x100390d6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10039155
lea eax, [ebp + 8]
xor esi, esi
push eax
push 0x20019
push esi
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10039155
mov ebx, dword [ebp + 0xc]
lea eax, [ebx + ebx]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push str.SearchList
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10039155
cmp dword [ebp - 8], 1
jne 0x10039155
mov edx, dword [ebp - 4]
lea ecx, [ebx - 1]
shr edx, 1
mov al, 1
cmp edx, ebx
cmovae edx, ecx
xor ecx, ecx
mov word [edi + edx*2], cx
jmp 0x10039157
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100393df
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push 0x14
mov eax, 0x1006b562
call fcn.1003b136
xor esi, esi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
and dword [ebp - 4], esi
lea ecx, [ebp - 0x14]
call fcn.1000154d
mov edi, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
test edi, edi
je 0x10039414
xor eax, eax
cmp dword [edi], eax
sete al
jmp 0x10039416
mov eax, ebx
test al, al
je 0x10039421
push 0x100a3652
jmp 0x10039451
test edi, edi
je 0x10039429
mov eax, dword [edi]
jmp 0x1003942b
xor eax, eax
push eax
call fcn.10039381
pop ecx
test eax, eax
jne 0x1003948f
test edi, edi
je 0x1003944e
cmp dword [edi + 4], eax
jne 0x10039449
push dword [edi]
call fcn.1003ca80
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
jmp 0x10039450
xor eax, eax
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x10039512
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x18]
call fcn.100127e8
push eax
lea ecx, [ebp - 0x10]
call fcn.100015ab
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003948a
call fcn.100016dc
mov esi, dword [ebp - 0x10]
jmp 0x100394a0
cmp eax, ebx
jne 0x10039512
mov esi, edi
mov dword [ebp - 0x10], esi
test edi, edi
je 0x100394b9
lock inc dword [edi + 8]
test esi, esi
je 0x100394b9
cmp dword [esi + 4], 0
jne 0x100394b4
push dword [esi]
call fcn.1003ca80
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x100394bb
xor eax, eax
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 4
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyaddr]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10039512
mov edx, dword [eax]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100394e4
sub ecx, dword [ebp - 0x18]
push ecx
push edx
call fcn.10050745
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
push dword [eax]
call fcn.100127e8
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x10039514
call fcn.100016dc
jmp 0x10039514
xor bl, bl
test edi, edi
je 0x1003951f
mov ecx, edi
call fcn.100016dc
test esi, esi
je 0x1003953f
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x1003953f
mov ecx, esi
call fcn.10001703
push 0xc
push esi
call fcn.1003b0f2
pop ecx
pop ecx
mov al, bl
call fcn.1003b113
ret
Function at 0x10039547
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0x3c
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.1003d660
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
sub eax, edi
je 0x10039584
sub eax, 1
je 0x10039576
xor al, al
jmp 0x100395bd
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
jmp 0x10039590
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10039596
lea eax, [ebp - 0x3c]
sub ecx, edx
push eax
push 0x10000000
sar ecx, 1
push ecx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
setne al
pop edi
leave
ret
Function at 0x1004bb97
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100be114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x100a6a40
push esi
call fcn.10058f0e
pop ecx
pop ecx
test eax, eax
jne 0x1004bbc5
xor al, al
jmp 0x1004bc42
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.1004b8d8
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1004bbff
push dword [ebp - 0x210]
call fcn.100411f4
xor al, al
jmp 0x1004bc40
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1004bc05
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1004bc25
push edx
call fcn.1004bace
pop ecx
test al, al
je 0x1004bbf0
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1004bc33
mov bl, 1
push dword [ebp - 0x210]
call fcn.100411f4
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1003b105
leave
ret

Function at 0x10051c12
Capabilities:
Parse pe header

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

Function at 0x1005769a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a83f0
push 0x100a83e8
push str.FlsAlloc
push 0x1f
call fcn.100574c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100576ce
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006c56c]
call esi
jmp 0x100576d4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10057718
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a8400
push 0x100a83f8
push str.FlsGetValue
push 0x21
call fcn.100574c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005774f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006c56c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10057757
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a8408
push 0x100a8400
push str.FlsSetValue
push 0x22
call fcn.100574c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10057791
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1006c56c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005a8d6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1003b1e0
mov eax, dword [0x100be114]
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.10055fa1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1005a918
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1005aa74
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1003bb40
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 + 0x100c1678]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1005b67b
mov ecx, dword [esi*4 + 0x100c1678]
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 0x1005aa6d
cmp eax, dword [ecx + edi + 0x24]
jne 0x1005aa6d
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 0x1005aa6d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005b67b
add esp, 0x14
test edx, edx
jl 0x1005aa6d
jg 0x1005a9e3
test eax, eax
jb 0x1005aa6d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1005aa6d
jl 0x1005a9fd
cmp dword [ebp - 0x1008], eax
ja 0x1005aa6d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1005aa1b
test ebx, ebx
je 0x1005aa54
cmp ecx, edi
jae 0x1005aa54
mov al, byte [ecx]
cmp al, 0xd
jne 0x1005aa35
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1005aa41
cmp byte [ecx + 1], 0xa
jne 0x1005aa41
inc ecx
jmp 0x1005aa41
movzx eax, al
movsx eax, byte [eax + 0x100be550]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1005aa1b
cmp edx, ebx
jne 0x1005aa1b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1005aa72
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003b105
leave
ret
Function at 0x1005ab13
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 + 0x100c1678]
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 0x1005ab53
cmp byte [ebx], 0xa
jne 0x1005ab53
or byte [edi + eax + 0x28], 4
jmp 0x1005ab58
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 0x1005ac57
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1005ac3a
inc eax
cmp dl, 0xd
je 0x1005ab84
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1005abaa
cmp eax, ecx
jae 0x1005abb8
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 0x1005ab6c
jmp 0x1005ac57
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 0x1005ac35
cmp dword [ebp - 0x10], 0
je 0x1005ac35
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100c1678]
test byte [eax + edi + 0x28], 0x48
je 0x1005ac0f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1005abfa
mov byte [esi], dl
jmp 0x1005ac0b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c1678]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1005ac57
cmp byte [ebp - 1], 0xa
jne 0x1005ac1e
cmp esi, ebx
jne 0x1005ac1e
mov byte [esi], 0xa
jmp 0x1005ac56
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1005b699
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1005ac57
mov byte [esi], 0xd
jmp 0x1005ac56
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100c1678]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1005ac54
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005ac57
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005ac60
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 + 0x100c1678]
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 0x1005aca6
cmp word [ebx], dx
jne 0x1005aca6
or byte [eax + edi + 0x28], 4
jmp 0x1005acab
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 0x1005ae0e
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 0x1005adee
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1005acec
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1005ad22
cmp eax, edx
jae 0x1005ad30
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 0x1005acc7
jmp 0x1005ae0e
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 0x1005ade9
cmp dword [ebp - 0x18], 0
je 0x1005ade9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100c1678]
test byte [eax + edi + 0x28], 0x48
je 0x1005adbf
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 0x1005ad83
mov word [esi], cx
jmp 0x1005adba
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100c1678]
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 + 0x100c1678]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100c1678]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1005ae0e
pop eax
cmp word [ebp - 4], ax
jne 0x1005adcf
cmp esi, ebx
jne 0x1005adcf
mov word [esi], ax
jmp 0x1005ae0b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1005b699
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1005ae0e
push 0xd
pop eax
jmp 0x1005adca
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100c1678]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1005ae08
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1005ae0e
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 0x1005c3a2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005bebd
Function at 0x1005f80c
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 0x1005f8a9
push ebx
push esi
call fcn.1005f7d5
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.1005bb89
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005f856
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005f8a8
push edi
push eax
call fcn.100550ec
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005f876
call fcn.10054f22
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005f8a7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005bb89
add esp, 0x20
test eax, eax
jne 0x1005f895
push edi
call fcn.10054f22
jmp 0x1005f89d
push ebx
call fcn.10054f22
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 0x1005f8ac
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1005f8bd
pop esi
ret
push ebx
push edi
push esi
call fcn.1005f7d5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100550ec
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005f8e5
push ebx
push esi
push edi
call fcn.1003d0e0
add esp, 0xc
push 0
call fcn.10054f22
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10061971
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10053572
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 0x100619e0
cmp esi, dword [ebp - 4]
je 0x100619db
cmp dword [ebp + 0xc], 0
je 0x100619db
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100619b8
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100614c3
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100619e2
xor eax, eax
inc eax
jmp 0x100619e2
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10061a47
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100be114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10053572
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10053572
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10061abe
cmp word [ecx], dx
je 0x10061abe
mov eax, dword [0x100a8a7c]
push edi
dec eax
push eax
push 0x100a8968
call fcn.100619e6
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10061b31
cmp word [eax], dx
je 0x10061b31
mov eax, dword [edi]
test eax, eax
je 0x10061ae2
cmp word [eax], dx
je 0x10061ae2
lea eax, [ebp - 0x10]
push eax
call fcn.100613c9
jmp 0x10061aeb
lea eax, [ebp - 0x10]
push eax
call fcn.10061464
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10061b5b
mov eax, dword [0x100a8964]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100a8658
call fcn.100619e6
add esp, 0xc
test al, al
je 0x10061b5b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10061b26
cmp word [eax], di
je 0x10061b26
lea eax, [ebp - 0x10]
push eax
call fcn.100613c9
pop ecx
jmp 0x10061b5d
lea eax, [ebp - 0x10]
push eax
call fcn.10061464
jmp 0x10061b23
mov eax, dword [edi]
test eax, eax
je 0x10061b48
cmp word [eax], dx
je 0x10061b48
lea eax, [ebp - 0x10]
push eax
call fcn.1006137e
pop ecx
jmp 0x10061b5b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10061c26
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1006186b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10061c26
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10061c26
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10061c26
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10061bb3
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10057972
test ebx, ebx
je 0x10061c21
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10057972
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10061c26
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10061c26
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10065641
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10061c28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b105
leave
ret
Function at 0x10064c1c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100be114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x10064c5f
call fcn.100411ce
mov dword [eax], 0xf
call fcn.100411e1
mov dword [eax], 0xd
call fcn.100410e3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b105
leave
ret
test eax, eax
jne 0x10064c66
inc eax
jmp 0x10064c53
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x10064c51
xor eax, eax
cmp ecx, 1
setne al
jmp 0x10064c53