joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042ab0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x10042b0d
test esi, esi
je 0x10042b0d
test ebx, ebx
je 0x10042b0d
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x614]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 0
lea eax, [ebp - 0x618]
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10042b20
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052d76
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x10042bb0
push 0x600
lea eax, [ebp - 0x604]
mov dword [ebp - 0x614], 0x600
push 0
push eax
call fcn.10056430
add esp, 0xc
lea eax, [ebp - 0x614]
push 0
push eax
push 0x600
lea eax, [ebp - 0x604]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10042b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052d76
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x614]
test eax, eax
je 0x10042ba7
push eax
lea eax, [ebp - 0x604]
push eax
push edi
call fcn.10055eb0
add esp, 0xc
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052d76
mov esp, ebp
pop ebp
ret

Function at 0x100437b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
mov ebx, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100437e3
sub edx, ecx
sar edx, 1
lea edi, [edx + 1]
cmp edi, 0x3fffffff
jg 0x10043830
add edi, edi
mov eax, edi
call fcn.100835e0
mov esi, esp
test esi, esi
je 0x10043830
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov byte [esi], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb edx, edx
and edx, esi
jmp 0x10043832
xor edx, edx
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10043837
sub ecx, esi
push ecx
push edx
push 0x104
push ebx
call fcn.100654b2
add esp, 0x10
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052d76
mov esp, ebp
pop ebp
ret
Function at 0x10045010
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085d6f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100a94c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 0
lea ecx, [ebx + 0x70]
mov dword [ebx], 0x1009f098
call fcn.1003fd00
mov dword [ebp - 4], 0
lea esi, [ebx + 0x10]
mov eax, dword [ebx]
push 0
push esi
mov dword [ebp - 0x18], 1
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], esi
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.1003fe40
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], esi
lea eax, [ecx - 0x70]
mov dword [ecx + ebx - 4], eax
mov ecx, esi
call fcn.1003fd70
lea eax, [ebx + 0x10]
lea ebx, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov byte [eax + 0x48], 0
lea esi, [eax + 8]
mov byte [eax + 0x3d], 0
lea edi, [eax + 0x14]
mov dword [eax + 0x10], esi
lea edx, [eax + 0x24]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x1c]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp - 0x14]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [0x100ae178]
mov ecx, dword [0x100ae17c]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x38], 0
mov byte [ebp - 4], 3
cmp dword [ebx + 0x4c], 0
jne 0x100451c7
push 0x40
push 0x21
push str.dllconfig.json
call fcn.10054cb8
add esp, 0xc
test eax, eax
je 0x100451c7
push 1
push eax
mov ecx, ebx
call fcn.10045570
mov eax, dword [ebx + 0x34]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
call fcn.10045760
add esp, 4
mov ecx, ebx
push eax
call fcn.10045410
test esi, esi
je 0x100451b0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x100451b0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x10]
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, esi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10028a30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1004cd3f
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov edx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
inc eax
push edi
xor edi, edi
mov dword [ebp - 8], edx
inc edi
mov dword [ebp - 4], eax
lea ebx, [ecx + 0xc]
cmp dword [ecx + 8], edi
jle 0x1004cdbb
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1004cd80
mov eax, dword [edx + 0x10]
cmp dword [eax + edi*8 + 4], esi
je 0x1004cd80
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x1004cdae
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x1004cdb1
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1004cda8
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x100874e0]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
and dword [eax + edi*4], 0
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 8]
jl 0x1004cd64
test eax, eax
je 0x1004ce02
lea esi, [edx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add ecx, 0x14
push edi
call fcn.1004d033
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x100874e0]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1004d085
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x100861a3
call fcn.1005395c
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x1004d17c
cmp edi, dword [ebx + 0xc]
jge 0x1004d17c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1004d0dc
cmp edi, dword [esi + 8]
jl 0x1004d16a
cmp dword [ebp + 0xc], 0
je 0x1004d16a
xor edi, edi
jmp 0x1004d10e
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.1004cad1
mov esi, eax
test esi, esi
je 0x1004d0f6
mov dword [esi], vtable.CThreadData.0
jmp 0x1004d0f8
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.1004607a
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x1004d12a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1004d136
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x1004d1a3
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.10056430
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1004d17c
cmp edi, dword [esi + 8]
jge 0x1004d17c
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.100538c1
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1004650d
int3

Function at 0x1006c6ec
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1008d730
push esi
call fcn.1006f427
pop ecx
pop ecx
test eax, eax
jne 0x1006c71a
xor al, al
jmp 0x1006c797
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.1006c42d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1006c754
push dword [ebp - 0x210]
call fcn.100654bd
xor al, al
jmp 0x1006c795
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1006c75a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1006c77a
push edx
call fcn.1006c623
pop ecx
test al, al
je 0x1006c745
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1006c788
mov bl, 1
push dword [ebp - 0x210]
call fcn.100654bd
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10052d76
leave
ret
Function at 0x1006e0f2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10053bb0
mov eax, dword [0x100a94c0]
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.1007262c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1006e134
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1006e290
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10053a70
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 + 0x100adc80]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100764ae
mov ecx, dword [esi*4 + 0x100adc80]
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 0x1006e289
cmp eax, dword [ecx + edi + 0x24]
jne 0x1006e289
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 0x1006e289
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100764ae
add esp, 0x14
test edx, edx
jl 0x1006e289
jg 0x1006e1ff
test eax, eax
jb 0x1006e289
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1006e289
jl 0x1006e219
cmp dword [ebp - 0x1008], eax
ja 0x1006e289
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1006e237
test ebx, ebx
je 0x1006e270
cmp ecx, edi
jae 0x1006e270
mov al, byte [ecx]
cmp al, 0xd
jne 0x1006e251
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1006e25d
cmp byte [ecx + 1], 0xa
jne 0x1006e25d
inc ecx
jmp 0x1006e25d
movzx eax, al
movsx eax, byte [eax + 0x100a9830]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1006e237
cmp edx, ebx
jne 0x1006e237
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1006e28e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10052d76
leave
ret

Function at 0x1006f7f3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1006f832
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006f832
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006f832
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1006f832
cmp dword [ecx + 0x74], 0xe
jbe 0x1006f832
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100757ac
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 + 0x100adc80]
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 0x100757ec
cmp byte [ebx], 0xa
jne 0x100757ec
or byte [edi + eax + 0x28], 4
jmp 0x100757f1
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 0x100758f0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100758d3
inc eax
cmp dl, 0xd
je 0x1007581d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10075843
cmp eax, ecx
jae 0x10075851
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 0x10075805
jmp 0x100758f0
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 0x100758ce
cmp dword [ebp - 0x10], 0
je 0x100758ce
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100adc80]
test byte [eax + edi + 0x28], 0x48
je 0x100758a8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10075893
mov byte [esi], dl
jmp 0x100758a4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100adc80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100758f0
cmp byte [ebp - 1], 0xa
jne 0x100758b7
cmp esi, ebx
jne 0x100758b7
mov byte [esi], 0xa
jmp 0x100758ef
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100764cc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100758f0
mov byte [esi], 0xd
jmp 0x100758ef
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100adc80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100758ed
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100758f0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100758f9
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 + 0x100adc80]
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 0x1007593f
cmp word [ebx], dx
jne 0x1007593f
or byte [eax + edi + 0x28], 4
jmp 0x10075944
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 0x10075aa7
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 0x10075a87
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10075985
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100759bb
cmp eax, edx
jae 0x100759c9
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 0x10075960
jmp 0x10075aa7
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 0x10075a82
cmp dword [ebp - 0x18], 0
je 0x10075a82
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100adc80]
test byte [eax + edi + 0x28], 0x48
je 0x10075a58
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 0x10075a1c
mov word [esi], cx
jmp 0x10075a53
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100adc80]
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 + 0x100adc80]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100adc80]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10075aa7
pop eax
cmp word [ebp - 4], ax
jne 0x10075a68
cmp esi, ebx
jne 0x10075a68
mov word [esi], ax
jmp 0x10075aa4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100764cc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10075aa7
push 0xd
pop eax
jmp 0x10075a63
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100adc80]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10075aa1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10075aa7
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 0x10076db1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008f04c
push 0x1008f044
push str.FlsAlloc
push 0x1f
call fcn.10076bdc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10076de5
push dword [ebp + 8]
mov ecx, esi
call dword [0x100874e0]
call esi
jmp 0x10076deb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10076e2f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008f05c
push 0x1008f054
push str.FlsGetValue
push 0x21
call fcn.10076bdc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10076e66
push dword [ebp + 8]
mov ecx, esi
call dword [0x100874e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10076e6e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008f064
push 0x1008f05c
push str.FlsSetValue
push 0x22
call fcn.10076bdc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10076ea8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100874e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1007aa7d
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 0x1007ab1a
push ebx
push esi
call fcn.1007aa46
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.1007a9da
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1007aac7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007ab19
push edi
push eax
call fcn.100716f4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1007aae7
call fcn.100716ba
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007ab18
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1007a9da
add esp, 0x20
test eax, eax
jne 0x1007ab06
push edi
call fcn.100716ba
jmp 0x1007ab0e
push ebx
call fcn.100716ba
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 0x1007ab1d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1007ab2e
pop esi
ret
push ebx
push edi
push esi
call fcn.1007aa46
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100716f4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1007ab56
push ebx
push esi
push edi
call fcn.10055eb0
add esp, 0xc
push 0
call fcn.100716ba
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1007af26
Capabilities:
Set environment variable

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

Function at 0x1007f6ff
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100713cf
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 0x1007f76e
cmp esi, dword [ebp - 4]
je 0x1007f769
cmp dword [ebp + 0xc], 0
je 0x1007f769
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1007f746
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1007f251
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1007f770
xor eax, eax
inc eax
jmp 0x1007f770
xor eax, eax
pop edi
pop esi
leave
ret