joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10087c40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
movzx eax, byte [edi + 4]
mov byte [esi + 4], al
movzx eax, byte [edi + 5]
mov byte [esi + 5], al
movzx eax, byte [edi + 6]
mov byte [esi + 6], al
movzx eax, byte [edi + 7]
mov byte [esi + 7], al
movzx eax, byte [edi + 8]
mov byte [esi + 8], al
movzx eax, byte [edi + 9]
mov byte [esi + 9], al
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
lea ecx, [esi + 0x2c]
movzx eax, byte [edi + 0x28]
mov byte [esi + 0x28], al
movzx eax, byte [edi + 0x29]
mov byte [esi + 0x29], al
movzx eax, byte [edi + 0x2a]
mov byte [esi + 0x2a], al
lea eax, [edi + 0x2c]
push eax
call fcn.10087980
lea eax, [edi + 0x38]
push eax
lea ecx, [esi + 0x38]
call fcn.10087ae0
lea eax, [edi + 0x44]
lea ecx, [esi + 0x44]
cmp ecx, eax
je 0x10087ce5
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x10087cde
mov eax, dword [eax]
push edx
push eax
call fcn.1000de30
lea eax, [edi + 0x5c]
lea ecx, [esi + 0x5c]
cmp ecx, eax
je 0x10087d01
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x10087cfa
mov eax, dword [eax]
push edx
push eax
call fcn.1000de30
mov eax, dword [edi + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [edi + 0x78]
mov dword [esi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebp
ret 4

Function at 0x1008a120
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
pop ebp
ret 4
Function at 0x1008d000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
mov edi, ecx
mov eax, dword [esi]
mov dword [edi], eax
movzx eax, byte [esi + 4]
mov byte [edi + 4], al
movzx eax, byte [esi + 5]
mov byte [edi + 5], al
movzx eax, byte [esi + 6]
mov byte [edi + 6], al
movzx eax, byte [esi + 7]
mov byte [edi + 7], al
movzx eax, byte [esi + 8]
mov byte [edi + 8], al
movzx eax, byte [esi + 9]
mov byte [edi + 9], al
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
movzx eax, byte [esi + 0x28]
mov byte [edi + 0x28], al
movzx eax, byte [esi + 0x29]
mov byte [edi + 0x29], al
movzx eax, byte [esi + 0x2a]
mov byte [edi + 0x2a], al
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], edx
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x40], edx
movups xmmword [edi + 0x44], xmm0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
movups xmm0, xmmword [esi + 0x44]
movups xmmword [edi + 0x44], xmm0
movq xmm0, qword [esi + 0x54]
movq qword [edi + 0x54], xmm0
xorps xmm0, xmm0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0xf
mov byte [esi + 0x44], 0
movups xmmword [edi + 0x5c], xmm0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
movups xmm0, xmmword [esi + 0x5c]
movups xmmword [edi + 0x5c], xmm0
movq xmm0, qword [esi + 0x6c]
movq qword [edi + 0x6c], xmm0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0xf
mov byte [esi + 0x5c], 0
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 0x78], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x10092440
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov cl, byte [edi + 0xc]
lea eax, [edi + 0xc]
lea edx, [esi + 0x430]
test cl, 3
je 0x10092481
movzx eax, cl
lea ebx, [edi + 0xc]
and eax, 3
mov ecx, dword [eax*8 + 0x10142e70]
mov eax, dword [eax*8 + 0x10142e74]
or dword [edx], ecx
or dword [edx + 4], eax
lea eax, [edi + 0xc]
jmp 0x10092483
mov ebx, eax
mov cl, byte [eax]
test cl, 0xc
je 0x100924ba
movzx ecx, cl
shr ecx, 2
and ecx, 3
mov eax, dword [ecx*8 + 0x10142e90]
or dword [edx], eax
mov eax, dword [ecx*8 + 0x10142e94]
lea ecx, [edi + 0xc]
or dword [edx + 4], eax
lea eax, [esi + 0x430]
mov dword [ebp + 0xc], eax
lea eax, [edi + 0xc]
mov dword [ebp - 4], ecx
jmp 0x100924c0
mov dword [ebp + 0xc], edx
mov dword [ebp - 4], ebx
mov al, byte [eax]
test al, 0x30
je 0x100924ea
movzx ecx, al
shr ecx, 4
and ecx, 3
mov eax, dword [ecx*8 + 0x10142eb0]
or dword [edx], eax
mov eax, dword [ecx*8 + 0x10142eb4]
or dword [edx + 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
jmp 0x100924ec
mov ecx, ebx
mov eax, dword [esi + 0xc]
jmp dword [eax*4 + 0x100929e8]

Function at 0x100bc0df
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.10100d73
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x100bc11e
sub eax, 1
je 0x100bc119
sub eax, 1
je 0x100bc115
xor eax, eax
leave
ret
push 3
jmp 0x100bc120
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x100faecb
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101def00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x101b5f68
push esi
call fcn.10111d54
pop ecx
pop ecx
test eax, eax
jne 0x100faef9
xor al, al
jmp 0x100faf76
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.100fab0d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x100faf33
push dword [ebp - 0x210]
call fcn.100e7df3
xor al, al
jmp 0x100faf74
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100faf39
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x100faf59
push edx
call fcn.100fae02
pop ecx
test al, al
je 0x100faf24
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x100faf67
mov bl, 1
push dword [ebp - 0x210]
call fcn.100e7df3
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100bcd6c
leave
ret
Function at 0x100fba36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100beb30
mov eax, dword [0x101def00]
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.1010b4da
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100fba78
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100fbbd4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100bd280
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 + 0x101e8908]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10110049
mov ecx, dword [esi*4 + 0x101e8908]
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 0x100fbbcd
cmp eax, dword [ecx + edi + 0x24]
jne 0x100fbbcd
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 0x100fbbcd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10110049
add esp, 0x14
test edx, edx
jl 0x100fbbcd
jg 0x100fbb43
test eax, eax
jb 0x100fbbcd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100fbbcd
jl 0x100fbb5d
cmp dword [ebp - 0x1008], eax
ja 0x100fbbcd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100fbb7b
test ebx, ebx
je 0x100fbbb4
cmp ecx, edi
jae 0x100fbbb4
mov al, byte [ecx]
cmp al, 0xd
jne 0x100fbb95
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100fbba1
cmp byte [ecx + 1], 0xa
jne 0x100fbba1
inc ecx
jmp 0x100fbba1
movzx eax, al
movsx eax, byte [eax + 0x101df1e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100fbb7b
cmp edx, ebx
jne 0x100fbb7b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100fbbd2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100bcd6c
leave
ret

Function at 0x10104eb0
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101b802c
push 0x101b8024
push str.FlsAlloc
push 0x1f
call fcn.1010c577
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010c8dd
push dword [ebp + 8]
mov ecx, esi
call dword [0x101302ec]
call esi
jmp 0x1010c8e3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1010c927
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101b803c
push 0x101b8034
push str.FlsGetValue
push 0x21
call fcn.1010c577
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010c95e
push dword [ebp + 8]
mov ecx, esi
call dword [0x101302ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1010c966
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101b8044
push 0x101b803c
push str.FlsSetValue
push 0x22
call fcn.1010c577
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010c9a0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101302ec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1010f1c3
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 + 0x101e8908]
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 0x1010f203
cmp byte [ebx], 0xa
jne 0x1010f203
or byte [edi + eax + 0x28], 4
jmp 0x1010f208
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 0x1010f307
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1010f2ea
inc eax
cmp dl, 0xd
je 0x1010f234
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1010f25a
cmp eax, ecx
jae 0x1010f268
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 0x1010f21c
jmp 0x1010f307
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 0x1010f2e5
cmp dword [ebp - 0x10], 0
je 0x1010f2e5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101e8908]
test byte [eax + edi + 0x28], 0x48
je 0x1010f2bf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1010f2aa
mov byte [esi], dl
jmp 0x1010f2bb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101e8908]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1010f307
cmp byte [ebp - 1], 0xa
jne 0x1010f2ce
cmp esi, ebx
jne 0x1010f2ce
mov byte [esi], 0xa
jmp 0x1010f306
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10110067
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1010f307
mov byte [esi], 0xd
jmp 0x1010f306
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101e8908]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1010f304
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1010f307
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1010f310
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 + 0x101e8908]
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 0x1010f356
cmp word [ebx], dx
jne 0x1010f356
or byte [eax + edi + 0x28], 4
jmp 0x1010f35b
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 0x1010f4be
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 0x1010f49e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1010f39c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1010f3d2
cmp eax, edx
jae 0x1010f3e0
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 0x1010f377
jmp 0x1010f4be
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 0x1010f499
cmp dword [ebp - 0x18], 0
je 0x1010f499
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101e8908]
test byte [eax + edi + 0x28], 0x48
je 0x1010f46f
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 0x1010f433
mov word [esi], cx
jmp 0x1010f46a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101e8908]
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 + 0x101e8908]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101e8908]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1010f4be
pop eax
cmp word [ebp - 4], ax
jne 0x1010f47f
cmp esi, ebx
jne 0x1010f47f
mov word [esi], ax
jmp 0x1010f4bb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10110067
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1010f4be
push 0xd
pop eax
jmp 0x1010f47a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101e8908]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1010f4b8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1010f4be
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 0x10116662
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x101def00]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x101166ad
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.10116a34
test al, al
jne 0x101166a7
sub edx, 2
cmp edx, edi
jne 0x1011668d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x101166cf
lea eax, [edi + 2]
cmp edx, eax
je 0x101166cf
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.10116329
add esp, 0x10
jmp 0x101167c9
push esi
lea ecx, [ebp - 0x255]
call fcn.10116a34
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10116712
push dword [ebp - 0x25c]
jmp 0x101166bf
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1011674f
cmp word [ebp - 0x226], 0
je 0x10116770
cmp word [ebp - 0x226], ax
jne 0x1011674f
cmp word [ebp - 0x224], 0
je 0x10116770
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.10116329
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x101167bc
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x10116729
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x101167a4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x101167c9
push 0x10115e48
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.100fbe10
add esp, 0x10
jmp 0x10116799
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bcd6c
leave
ret
Function at 0x10117ba4
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 0x10117c41
push ebx
push esi
call fcn.10117b60
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.101151ef
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10117bee
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10117c40
push edi
push eax
call fcn.1010a3f4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10117c0e
call fcn.1010a3ba
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10117c3f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101151ef
add esp, 0x20
test eax, eax
jne 0x10117c2d
push edi
call fcn.1010a3ba
jmp 0x10117c35
push ebx
call fcn.1010a3ba
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 0x10117c44
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10117c55
pop esi
ret
push ebx
push edi
push esi
call fcn.10117b60
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1010a3f4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10117c7d
push ebx
push esi
push edi
call fcn.100bf410
add esp, 0xc
push 0
call fcn.1010a3ba
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1011856c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10117ef2

Function at 0x1011aaf4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.101079a6
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 0x1011ab63
cmp esi, dword [ebp - 4]
je 0x1011ab5e
cmp dword [ebp + 0xc], 0
je 0x1011ab5e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1011ab3b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1011a646
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1011ab65
xor eax, eax
inc eax
jmp 0x1011ab65
xor eax, eax
pop edi
pop esi
leave
ret