joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006bfc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c47a8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100f4c44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push 0x1a
push eax
call fcn.1006ccf0
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x1006c027
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006c0a5
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov ecx, esi
push 1
push eax
call fcn.1006ccf0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x1006c06b
mov ecx, eax
call fcn.10009de0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x1006c0a5
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1006c09b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006c1ad
push edx
push ecx
call fcn.10046d13
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x1006c0d0
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
push 0x100c7540
mov word [edi], ax
call fcn.1000e170
jmp 0x1006c186
call fcn.1000b0b0
mov ecx, eax
test ecx, ecx
je 0x1006c1b2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10011ac0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1006c2d0
mov edx, dword [ebp - 0x48]
add esp, 8
mov byte [ebp - 4], 1
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006c137
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x44]
xor eax, eax
mov ecx, esi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006c152
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.1000e170
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1006c186
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.10009de0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100470a0
mov esp, ebp
pop ebp
ret 8
call fcn.100902aa
push 0x80004005
call fcn.1000add0
int3
Function at 0x1006f2c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c4da2
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x100f4c44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x81c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x818], 0
mov word [esi], dx
mov dword [ebp - 4], edx
mov dword [ebp - 0x81c], 1
test ecx, ecx
je 0x1006f3f0
test eax, eax
je 0x1006f3f0
test ebx, ebx
je 0x1006f3f0
lea edx, [ebp - 0x818]
push edx
push 0x20219
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006f3df
cmp dword [ebp - 0x818], eax
je 0x1006f3f0
push 0x802
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.1008cc60
add esp, 0xc
mov dword [ebp - 0x820], 0x800
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
push 0xffff
push ebx
push 0
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1006f3df
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006f3c1
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.1000e170
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x1006f3f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100470a0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10073cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c5581
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100f4c44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.1000b0b0
mov ecx, eax
test ecx, ecx
je 0x10073e44
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10073e05
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10073df7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10073e05
add eax, 0x10
push 0x100d1612
push eax
mov dword [ebp - 0x20], eax
call fcn.10047cd7
mov esi, eax
add esp, 8
test esi, esi
je 0x10073e05
push dword [ebp - 0x20]
push 0
push esi
call fcn.1008cc60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10073dba
push esi
call fcn.10046d2a
add esp, 4
jmp 0x10073e05
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10073dc0
sub ecx, edx
sar ecx, 1
je 0x10073dee
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10073dd6
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.10015780
push esi
call fcn.10046d2a
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10073e05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10073e24
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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 - 0x10]
xor ecx, ebp
call fcn.100470a0
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.1000add0
int3
Function at 0x10073e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100f4c44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10073e74
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x10073ed6
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x10073ed6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10073ef1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100470a0
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10074380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
test ecx, ecx
je 0x1007438f
pop ebp
jmp fcn.10075280
xor eax, eax
pop ebp
ret 0xc
Function at 0x10075580
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c5813
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x100f4c44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x10075625
cmp word [esi], di
je 0x10075625
test eax, eax
je 0x100755e1
cmp word [eax], di
je 0x100755e1
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x10075625
jmp 0x10075620
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1008cc60
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x10075625
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1007569c
mov eax, dword [ebx + 0x24]
test eax, eax
js 0x10075687
lea esi, [ebx + 0x34]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x10075655
mov eax, dword [esi]
push esi
call dword [eax]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
test eax, eax
js 0x10075676
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x100756bc
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 2
test esi, esi
je 0x10075687
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1007569c
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100470a0
mov esp, ebp
pop ebp
ret 0x30
call fcn.100392d1
int3

Function at 0x10076210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10076225
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10076230
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10077cdd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x1009ee56
Capabilities:
Parse pe header

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

Function at 0x100a99c6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d7ec0
push 0x100d7eb8
push str.FlsAlloc
push 0x1f
call fcn.100a97f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a99fa
push dword [ebp + 8]
mov ecx, esi
call dword [0x100c740c]
call esi
jmp 0x100a9a00
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100a9a44
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d7ed0
push 0x100d7ec8
push str.FlsGetValue
push 0x21
call fcn.100a97f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a9a7b
push dword [ebp + 8]
mov ecx, esi
call dword [0x100c740c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100a9a83
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d7ed8
push 0x100d7ed0
push str.FlsSetValue
push 0x22
call fcn.100a97f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a9abd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100c740c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100ad63e
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100ad5ba
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100ad7ad
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100ad7ad
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100ad762
jg 0x100ad69a
test eax, eax
je 0x100ad758
push 1
push 0x1000
call fcn.100a7bd5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100ad6bd
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100ad74f
push 0x8000
push ebx
call fcn.100ad0b7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100ad6e6
jg 0x100ad6e1
cmp ecx, 0x1000
jb 0x100ad6e6
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1009dd90
add esp, 0x10
cmp eax, 0xffffffff
je 0x100ad72b
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 0x100ad6e1
jl 0x100ad712
test ecx, ecx
jne 0x100ad6d3
push dword [ebp - 0xc]
push ebx
call fcn.100ad0b7
push esi
call fcn.100a7c32
add esp, 0xc
xor ebx, ebx
jmp 0x100ad7bb
cmp byte [edi + 0x24], 0
je 0x100ad742
cmp dword [edi + 0x20], 5
jne 0x100ad742
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100ad74d
mov ebx, dword [edi + 0x18]
jmp 0x100ad74f
xor ebx, ebx
push esi
call fcn.100a7c32
pop ecx
jmp 0x100ad7bb
test ecx, ecx
jg 0x100ad724
jl 0x100ad762
test eax, eax
jae 0x100ad724
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009d448
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100ad782
cmp byte [edi + 0x1c], 0
je 0x100ad724
jmp 0x100ad7b3
push ebx
call fcn.100ad550
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100ad724
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100ad7bb
cmp byte [edi + 0x1c], 0
je 0x100ad7b8
mov ebx, dword [edi + 0x18]
jmp 0x100ad7bb
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1009d448
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100ad7d5
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 + 0x100fdcc8]
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 0x100ad815
cmp byte [ebx], 0xa
jne 0x100ad815
or byte [edi + eax + 0x28], 4
jmp 0x100ad81a
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 0x100ad919
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100ad8fc
inc eax
cmp dl, 0xd
je 0x100ad846
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100ad86c
cmp eax, ecx
jae 0x100ad87a
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 0x100ad82e
jmp 0x100ad919
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 0x100ad8f7
cmp dword [ebp - 0x10], 0
je 0x100ad8f7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100fdcc8]
test byte [eax + edi + 0x28], 0x48
je 0x100ad8d1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100ad8bc
mov byte [esi], dl
jmp 0x100ad8cd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100fdcc8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100ad919
cmp byte [ebp - 1], 0xa
jne 0x100ad8e0
cmp esi, ebx
jne 0x100ad8e0
mov byte [esi], 0xa
jmp 0x100ad918
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1009d448
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100ad919
mov byte [esi], 0xd
jmp 0x100ad918
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100fdcc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100ad916
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100ad919
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100ad922
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 + 0x100fdcc8]
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 0x100ad968
cmp word [ebx], dx
jne 0x100ad968
or byte [eax + edi + 0x28], 4
jmp 0x100ad96d
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 0x100adad0
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 0x100adab0
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100ad9ae
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100ad9e4
cmp eax, edx
jae 0x100ad9f2
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 0x100ad989
jmp 0x100adad0
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 0x100adaab
cmp dword [ebp - 0x18], 0
je 0x100adaab
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100fdcc8]
test byte [eax + edi + 0x28], 0x48
je 0x100ada81
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 0x100ada45
mov word [esi], cx
jmp 0x100ada7c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100fdcc8]
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 + 0x100fdcc8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100fdcc8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100adad0
pop eax
cmp word [ebp - 4], ax
jne 0x100ada91
cmp esi, ebx
jne 0x100ada91
mov word [esi], ax
jmp 0x100adacd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1009d448
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100adad0
push 0xd
pop eax
jmp 0x100ada8c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100fdcc8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100adaca
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100adad0
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 0x100b0045
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 0x100b00e2
push ebx
push esi
call fcn.100b000e
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.100ac59d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100b008f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100b00e1
push edi
push eax
call fcn.100a7e5c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100b00af
call fcn.100a7c32
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100b00e0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100ac59d
add esp, 0x20
test eax, eax
jne 0x100b00ce
push edi
call fcn.100a7c32
jmp 0x100b00d6
push ebx
call fcn.100a7c32
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 0x100b00e5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100b00f6
pop esi
ret
push ebx
push edi
push esi
call fcn.100b000e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100a7e5c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100b011e
push ebx
push esi
push edi
call fcn.1008c160
add esp, 0xc
push 0
call fcn.100a7c32
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100b04ee
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b0133

Function at 0x100b2f45
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100a6225
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 0x100b2fb4
cmp esi, dword [ebp - 4]
je 0x100b2faf
cmp dword [ebp + 0xc], 0
je 0x100b2faf
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100b2f8c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100b2a97
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100b2fb6
xor eax, eax
inc eax
jmp 0x100b2fb6
xor eax, eax
pop edi
pop esi
leave
ret