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

Disassembly:
push 4
mov eax, 0x44bac7
call fcn.00435532
mov esi, dword [ebp + 8]
cmp esi, dword [0x46f934]
jne 0x446f63
xor al, al
jmp 0x44703c
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x446f74
xor ecx, ecx
cmp dword [0x46f928], ecx
jmp 0x446f7f
mov eax, esi
call fcn.004477fa
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x446f5c
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.0044781c
mov dword [ebp - 4], edi
movzx edi, bl
neg edi
sbb edi, edi
and edi, 2
xor ebx, ebx
jmp 0x446ffd
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x446fb3
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.00447044
test eax, eax
je 0x447022
push 0x1c04c2
xor ebx, ebx
push ebx
call fcn.00414059
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp + 8]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x46f938
mov dword [eax + 0x45d338], ebx
call fcn.00446b61
mov dword [ebp + 8], ebx
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
push ebx
or eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call fcn.0044712a
mov ebx, eax
test ebx, ebx
je 0x446fa7
jmp 0x44702f
push dword [ebp + 8]
mov ecx, 0x46f938
call fcn.00446ac5
lea ecx, [ebp + 0xf]
call fcn.0044783d
test ebx, ebx
sete al
call fcn.0043560a
ret 8

Function at 0x44774e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x447760
mov ecx, dword [edi]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push 0xffff
push dword [ebp + 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [ebp - 4], 2
mov esi, eax
jae 0x447791
cmp dword [ebp + 0xc], 1
je 0x44778e
cmp dword [ebp + 0xc], 2
jne 0x447791
push 2
pop esi
mov eax, esi
call fcn.00447044
test eax, eax
je 0x4477b5
push 0x1c0491
push 0
call fcn.00414059
push edi
mov ecx, 0x46f938
call fcn.00446b61
jmp 0x4477f2
test esi, esi
jne 0x4477e7
mov ecx, dword [ebp + 0xc]
cmp ecx, 2
je 0x4477c6
cmp ecx, 1
jne 0x4477d5
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x10]
push eax
push ecx
call fcn.00446f1b
test eax, eax
jne 0x4477e7
push 2
pop esi
push edi
mov ecx, 0x46f938
call fcn.00446ac5
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x44785e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x44bb1d
call fcn.00435532
mov esi, dword [ebp + 8]
cmp esi, dword [0x46f934]
jne 0x44787c
xor eax, eax
jmp 0x4479e1
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x44789f
cmp dword [0x46f928], ebx
je 0x4479a1
push 2
pop edi
jmp 0x4478b9
cmp ebx, 1
jne 0x4479a1
mov eax, esi
call fcn.004477fa
test al, al
je 0x4479a1
xor edi, edi
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x20], edi
call fcn.0044781c
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
push eax
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, edi
jmp 0x447964
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4478ed
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], 2
mov edi, eax
jae 0x447919
cmp dword [ebp - 0x1c], 1
je 0x447916
cmp dword [ebp - 0x1c], 2
jne 0x447919
push 2
pop edi
mov eax, edi
call fcn.00447044
test eax, eax
je 0x447981
push 0x1c0496
xor edi, edi
push edi
call fcn.00414059
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x46f938
mov dword [eax + 0x45d338], edi
call fcn.00446b61
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call fcn.0044712a
mov edi, eax
test edi, edi
je 0x4478e1
jmp 0x447992
push dword [ebp - 0x10]
mov ecx, 0x46f938
call fcn.00446ac5
test edi, edi
je 0x4479ad
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.0044783d
mov ecx, dword [ebp - 0x18]
inc ebx
cmp ebx, 2
jl 0x447887
jmp 0x4479bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.0044783d
mov ecx, dword [ebp - 0x18]
test edi, edi
jne 0x4479d7
cmp dword [ebp - 0x1c], 2
je 0x4479cf
mov al, byte [esi + 0xc]
and al, 0xf
cmp al, 2
jne 0x4479df
push ecx
call fcn.0044664e
jmp 0x4479dd
push esi
call fcn.00446040
mov ecx, eax
mov eax, ecx
call fcn.0043560a
ret 4
Function at 0x447efb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x40aa1c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
call fcn.00448061
test eax, eax
je 0x44801c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor edi, edi
push edi
push 0x40c948
push 0x80000002
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], edi
call esi
test eax, eax
jne 0x447fee
lea eax, [ebp - 0x218]
push eax
push 0x20119
push edi
push 0x40c948
push 0x80000002
call esi
test eax, eax
jne 0x447fee
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x40c9ac
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x447fee
cmp dword [ebp - 0x220], 1
jne 0x447fee
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x40c9ac
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x447fee
cmp dword [ebp - 0x220], 1
jne 0x447fee
inc bl
mov eax, dword [ebp - 0x218]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x448007
push eax
mov dword [ebp - 0x218], edi
call esi
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x44801a
push ecx
mov dword [ebp - 0x214], edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00434878
leave
ret
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x10002240
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a430
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10038040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xc], 0
call fcn.1000b929
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000cc9d
mov dword [esi + 4], eax
add esp, 8
mov dword [edi + 0x30], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005380
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a430
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10038040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1000b929
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000cc9d
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10005320
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10005450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a69d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10038040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xc], 0
call fcn.1000b929
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000cc9d
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.10005640
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], 0xffffffff
mov bl, al
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10005545
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x10005545
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], bl
jne 0x1000555e
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.10002160
cmp byte [ebp + 0xc], 0
je 0x1000556d
push edi
call fcn.1000cee4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10016dcd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10016e0c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10016e0c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10016e0c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10016e0c
cmp dword [ecx + 0x74], 0xe
jbe 0x10016e0c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001e810
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002f230
push 0x1002f228
push str.FlsAlloc
push 0x1f
call fcn.1001e6d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e844
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002b194]
call esi
jmp 0x1001e84a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001e88e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002f240
push 0x1002f238
push str.FlsGetValue
push 0x21
call fcn.1001e6d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e8c5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002b194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001e8cd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002f248
push 0x1002f240
push str.FlsSetValue
push 0x22
call fcn.1001e6d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e907
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002b194]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001f00c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10029fa0
mov eax, dword [0x10038040]
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.1001ab4d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001f04e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001f1aa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10029e30
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 + 0x10039c20]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100207fa
mov ecx, dword [esi*4 + 0x10039c20]
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 0x1001f1a3
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001f1a3
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 0x1001f1a3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100207fa
add esp, 0x14
test edx, edx
jl 0x1001f1a3
jg 0x1001f119
test eax, eax
jb 0x1001f1a3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001f1a3
jl 0x1001f133
cmp dword [ebp - 0x1008], eax
ja 0x1001f1a3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001f151
test ebx, ebx
je 0x1001f18a
cmp ecx, edi
jae 0x1001f18a
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001f16b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001f177
cmp byte [ecx + 1], 0xa
jne 0x1001f177
inc ecx
jmp 0x1001f177
movzx eax, al
movsx eax, byte [eax + 0x10038300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001f151
cmp edx, ebx
jne 0x1001f151
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001f1a8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000b916
leave
ret
Function at 0x1001fc92
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 + 0x10039c20]
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 0x1001fcd2
cmp byte [ebx], 0xa
jne 0x1001fcd2
or byte [edi + eax + 0x28], 4
jmp 0x1001fcd7
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 0x1001fdd6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001fdb9
inc eax
cmp dl, 0xd
je 0x1001fd03
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001fd29
cmp eax, ecx
jae 0x1001fd37
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 0x1001fceb
jmp 0x1001fdd6
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 0x1001fdb4
cmp dword [ebp - 0x10], 0
je 0x1001fdb4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10039c20]
test byte [eax + edi + 0x28], 0x48
je 0x1001fd8e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001fd79
mov byte [esi], dl
jmp 0x1001fd8a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10039c20]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001fdd6
cmp byte [ebp - 1], 0xa
jne 0x1001fd9d
cmp esi, ebx
jne 0x1001fd9d
mov byte [esi], 0xa
jmp 0x1001fdd5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10020818
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001fdd6
mov byte [esi], 0xd
jmp 0x1001fdd5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10039c20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001fdd3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001fdd6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001fddf
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 + 0x10039c20]
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 0x1001fe25
cmp word [ebx], dx
jne 0x1001fe25
or byte [eax + edi + 0x28], 4
jmp 0x1001fe2a
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 0x1001ff8d
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 0x1001ff6d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001fe6b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001fea1
cmp eax, edx
jae 0x1001feaf
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 0x1001fe46
jmp 0x1001ff8d
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 0x1001ff68
cmp dword [ebp - 0x18], 0
je 0x1001ff68
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10039c20]
test byte [eax + edi + 0x28], 0x48
je 0x1001ff3e
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 0x1001ff02
mov word [esi], cx
jmp 0x1001ff39
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10039c20]
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 + 0x10039c20]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10039c20]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001ff8d
pop eax
cmp word [ebp - 4], ax
jne 0x1001ff4e
cmp esi, ebx
jne 0x1001ff4e
mov word [esi], ax
jmp 0x1001ff8a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10020818
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001ff8d
push 0xd
pop eax
jmp 0x1001ff49
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10039c20]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001ff87
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001ff8d
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 0x10021efa
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 0x10021f97
push ebx
push esi
call fcn.10021ec3
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.10021e57
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10021f44
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10021f96
push edi
push eax
call fcn.10019bdc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10021f64
call fcn.10019ba2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10021f95
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10021e57
add esp, 0x20
test eax, eax
jne 0x10021f83
push edi
call fcn.10019ba2
jmp 0x10021f8b
push ebx
call fcn.10019ba2
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 0x100268cc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001b01a
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 0x1002693b
cmp esi, dword [ebp - 4]
je 0x10026936
cmp dword [ebp + 0xc], 0
je 0x10026936
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10026913
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002641e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1002693d
xor eax, eax
inc eax
jmp 0x1002693d
xor eax, eax
pop edi
pop esi
leave
ret