joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10031400
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1023eaa4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_ToAscii]
cmp eax, 1
jne 0x1003145f
mov al, byte [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xf4], 0
setne dl
add esi, 0xffffff46
cmp esi, 0x24
ja case.0x1003147f.193
movzx ecx, byte [esi + 0x100315dc]
jmp dword [ecx*4 + 0x100315ac]
xor dl, 1
pop esi
lea eax, [edx + 0x3a]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
ret
test dl, dl
mov eax, 0x3d
mov ecx, 0x2b
cmovne eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
ret
test dl, dl
mov eax, 0x2c
mov ecx, 0x22
cmovne eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
ret
test dl, dl
mov eax, 0x2d
mov ecx, 0x5f
cmovne eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
ret
shl dl, 4
pop esi
lea eax, [edx + 0x2e]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
ret
shl dl, 4
pop esi
lea eax, [edx + 0x2f]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
ret
test dl, dl
mov eax, 0x60
mov ecx, 0x7e
cmovne eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
ret
shl dl, 5
pop esi
lea eax, [edx + 0x5b]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
ret
shl dl, 5
pop esi
lea eax, [edx + 0x5c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
ret
shl dl, 5
pop esi
lea eax, [edx + 0x5d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
ret
test dl, dl
mov eax, 0x27
mov ecx, 0x22
cmovne eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.1005c76e
mov esp, ebp
pop ebp
ret
Function at 0x100358c0
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1023eaa4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x1030f1b8
call fcn.1003d1a0
mov ecx, 0x1030f190
call fcn.1003d1a0
mov ecx, 0x1030f1a4
call fcn.1003d1a0
mov ecx, 0x1030f17c
call fcn.1003d1a0
mov ecx, 0x1030f140
call fcn.1003d1a0
mov ecx, 0x1030f168
call fcn.1003d1a0
mov ecx, 0x1030f154
call fcn.1003d1a0
mov ecx, 0x1030f12c
call fcn.1003d1a0
call fcn.10017590
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0x20
lea ecx, [ebp - 0x30]
movaps xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0xf
call fcn.10009630
movups xmm0, xmmword [str.C:Bameware_Fonts_againts.ttf]
mov edx, eax
mov dword [ebp - 0x1c], 0x1f
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], 0x1d
movups xmmword [edx], xmm0
movq xmm0, qword [0x1011b144]
movq qword [edx + 0x10], xmm0
mov ecx, dword [0x1011b14c]
mov dword [edx + 0x18], ecx
mov al, byte [0x1011b150]
mov byte [edx + 0x1c], al
lea eax, [ebp - 0x30]
mov byte [edx + 0x1d], 0
cmp dword [ebp - 0x1c], 0x10
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x100359dc
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100359d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035a8d
push ecx
push edx
call fcn.1005c67b
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0x20
lea ecx, [ebp - 0x30]
movaps xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0xf
call fcn.10009630
movups xmm0, xmmword [str.C:Bameware_Fonts_againts.ttf]
mov edx, eax
mov dword [ebp - 0x1c], 0x1f
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], 0x1d
movups xmmword [edx], xmm0
movq xmm0, qword [0x1011b144]
movq qword [edx + 0x10], xmm0
mov ecx, dword [0x1011b14c]
mov dword [edx + 0x18], ecx
mov al, byte [0x1011b150]
mov byte [edx + 0x1c], al
lea eax, [ebp - 0x30]
mov byte [edx + 0x1d], 0
cmp dword [ebp - 0x1c], 0x10
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x10035a7c
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10035a72
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035a92
push ecx
push edx
call fcn.1005c67b
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100684ff
call fcn.100684ff
int3
Function at 0x10035ad0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
lea eax, [ebp - 8]
mov ebx, ecx
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push eax
push dword [0x1030fcdc]
call dword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [ebp - 8]
movd xmm1, dword [ebp - 4]
cvtdq2ps xmm0, xmm0
push 2
cvtdq2ps xmm1, xmm1
movss dword [ebx], xmm0
movss dword [ebx + 4], xmm1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
movsx edi, ax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
mov ecx, edi
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], edi
movups xmm0, xmmword [ebx]
pop edi
mov dword [ebx + 8], 0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10037520
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010d847
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1023eaa4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 8], 0
mov dword [ebp - 0x14], 0
je 0x100375a4
mov dword [ebx], 0x1011921c
mov dword [ebx + 0x10], 0x10119224
mov dword [ebx + 0x80], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0x78], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov eax, dword [ebx]
lea edi, [ebx + 0x18]
push 0
push edi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.1001cae0
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
mov dword [ebx + eax + 0x10], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + ebx + 0xc], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 5
mov dword [ebp + 8], edi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1005c64b
mov esi, eax
add esp, 4
test esi, esi
je 0x1003765a
push 1
mov byte [ebp - 4], 6
call fcn.1005b542
add esp, 4
mov dword [esi + 4], eax
jmp 0x1003765c
xor esi, esi
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.1001c350
mov eax, dword [ebp - 0x10]
lea ebx, [edi + 4]
mov dword [edi + 0xc], ebx
lea esi, [edi + 8]
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea ecx, [eax + 0x30]
mov byte [edi + 0x48], 0
lea edx, [eax + 0x3c]
mov byte [edi + 0x3d], 0
mov dword [edi + 0x10], esi
add edi, 0x14
mov dword [eax + 0x44], edx
mov dword [eax + 0x34], edi
mov dword [eax + 0x38], ecx
add eax, 0x40
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x48], eax
mov ebx, dword [ebp + 8]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], 0
mov eax, dword [0x102f9958]
mov ecx, dword [0x102f995c]
mov dword [edx + 0x58], eax
mov eax, edx
mov dword [edx + 0x5c], ecx
mov dword [edx + 0x50], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1003d1a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x1003d21f
cmp dword [edi + 0xc], 0
je 0x1003d21f
push esi
mov esi, dword [edi]
mov esi, dword [esi]
mov dword [ebp - 4], esi
cmp byte [esi + 0xd], 0
jne 0x1003d217
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop word [eax + eax]
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 0xc]
push 0x40
push 4
lea eax, [eax + ecx*4]
push eax
call ebx
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov dword [ecx + edx*4], eax
lea eax, [ebp - 0xc]
mov ecx, dword [esi + 0x10]
push eax
mov eax, dword [edi + 0xc]
push dword [ebp - 8]
push 4
lea eax, [eax + ecx*4]
push eax
call ebx
lea ecx, [ebp - 4]
call fcn.1003d090
mov esi, dword [ebp - 4]
cmp byte [esi + 0xd], 0
je 0x1003d1d0
pop ebx
mov ecx, edi
call fcn.1003d230
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10072320
Capabilities:
Parse pe header

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

Function at 0x1007a223
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1012a3d8
push 0x1012a3d0
push str.FlsAlloc
push 0x1f
call fcn.1007a04e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007a257
push dword [ebp + 8]
mov ecx, esi
call dword [0x10118338]
call esi
jmp 0x1007a25d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1007a2a1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1012a3e8
push 0x1012a3e0
push str.FlsGetValue
push 0x21
call fcn.1007a04e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007a2d8
push dword [ebp + 8]
mov ecx, esi
call dword [0x10118338]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1007a2e0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1012a3f0
push 0x1012a3e8
push str.FlsSetValue
push 0x22
call fcn.1007a04e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007a31a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10118338]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1007bcfd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1005c780
mov eax, dword [0x1023eaa4]
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.10078f8f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1007bd3f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1007be9b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1005d060
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 + 0x103108c8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1007ccfa
mov ecx, dword [esi*4 + 0x103108c8]
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 0x1007be94
cmp eax, dword [ecx + edi + 0x24]
jne 0x1007be94
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 0x1007be94
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1007ccfa
add esp, 0x14
test edx, edx
jl 0x1007be94
jg 0x1007be0a
test eax, eax
jb 0x1007be94
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1007be94
jl 0x1007be24
cmp dword [ebp - 0x1008], eax
ja 0x1007be94
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1007be42
test ebx, ebx
je 0x1007be7b
cmp ecx, edi
jae 0x1007be7b
mov al, byte [ecx]
cmp al, 0xd
jne 0x1007be5c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1007be68
cmp byte [ecx + 1], 0xa
jne 0x1007be68
inc ecx
jmp 0x1007be68
movzx eax, al
movsx eax, byte [eax + 0x1023ed20]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1007be42
cmp edx, ebx
jne 0x1007be42
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1007be99
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1005c76e
leave
ret
Function at 0x1007c192
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 + 0x103108c8]
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 0x1007c1d2
cmp byte [ebx], 0xa
jne 0x1007c1d2
or byte [edi + eax + 0x28], 4
jmp 0x1007c1d7
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 0x1007c2d6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1007c2b9
inc eax
cmp dl, 0xd
je 0x1007c203
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1007c229
cmp eax, ecx
jae 0x1007c237
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 0x1007c1eb
jmp 0x1007c2d6
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 0x1007c2b4
cmp dword [ebp - 0x10], 0
je 0x1007c2b4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x103108c8]
test byte [eax + edi + 0x28], 0x48
je 0x1007c28e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1007c279
mov byte [esi], dl
jmp 0x1007c28a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x103108c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1007c2d6
cmp byte [ebp - 1], 0xa
jne 0x1007c29d
cmp esi, ebx
jne 0x1007c29d
mov byte [esi], 0xa
jmp 0x1007c2d5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1007cd18
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1007c2d6
mov byte [esi], 0xd
jmp 0x1007c2d5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x103108c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1007c2d3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1007c2d6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1007c2df
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 + 0x103108c8]
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 0x1007c325
cmp word [ebx], dx
jne 0x1007c325
or byte [eax + edi + 0x28], 4
jmp 0x1007c32a
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 0x1007c48d
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 0x1007c46d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1007c36b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1007c3a1
cmp eax, edx
jae 0x1007c3af
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 0x1007c346
jmp 0x1007c48d
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 0x1007c468
cmp dword [ebp - 0x18], 0
je 0x1007c468
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x103108c8]
test byte [eax + edi + 0x28], 0x48
je 0x1007c43e
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 0x1007c402
mov word [esi], cx
jmp 0x1007c439
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x103108c8]
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 + 0x103108c8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x103108c8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1007c48d
pop eax
cmp word [ebp - 4], ax
jne 0x1007c44e
cmp esi, ebx
jne 0x1007c44e
mov word [esi], ax
jmp 0x1007c48a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1007cd18
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1007c48d
push 0xd
pop eax
jmp 0x1007c449
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x103108c8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1007c487
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1007c48d
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 0x100808a8
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 0x10080945
push ebx
push esi
call fcn.10080871
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.1007dc18
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100808f2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10080944
push edi
push eax
call fcn.10078057
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10080912
call fcn.10077d85
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10080943
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1007dc18
add esp, 0x20
test eax, eax
jne 0x10080931
push edi
call fcn.10077d85
jmp 0x10080939
push ebx
call fcn.10077d85
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 0x10080948
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10080959
pop esi
ret
push ebx
push edi
push esi
call fcn.10080871
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10078057
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10080981
push ebx
push esi
push edi
call fcn.1005e200
add esp, 0xc
push 0
call fcn.10077d85
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10080d51
Capabilities:
Set environment variable

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

Function at 0x10082fd6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10076378
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 0x10083045
cmp esi, dword [ebp - 4]
je 0x10083040
cmp dword [ebp + 0xc], 0
je 0x10083040
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1008301d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10082b28
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10083047
xor eax, eax
inc eax
jmp 0x10083047
xor eax, eax
pop edi
pop esi
leave
ret