joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011a80
Capabilities:
Create thread
Get session user name

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c8bb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4d0
mov eax, dword [0x1004f054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x400
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edx, 0x12
xor eax, eax
nop
mov cl, byte [eax + str.zv:QrlLin3yG]
xor cl, dl
inc edx
mov byte [ebp + eax - 0x428], cl
and edx, 0x800000ff
jns 0x10011b10
dec edx
or edx, 0xffffff00
inc edx
inc eax
cmp eax, 0xf
jl 0x10011af0
mov byte [ebp - 0x419], 0
sub esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x428]
lea ecx, [ebp - 0x4e0]
push eax
call fcn.1000f7a0
xorps xmm0, xmm0
mov byte [ebp - 4], 2
mov edx, str.SN_t_t_t_t_t_t
lea ecx, [ebp - 0x4e0]
movups xmmword [ebp - 0x428], xmm0
call fcn.10005a80
lea edx, [ebp - 0x418]
lea ecx, [ebp - 0x4e0]
call fcn.10005a80
mov edx, 0x10048cf8
lea ecx, [ebp - 0x4e0]
call fcn.10005a80
push eax
call fcn.10005d20
add esp, 4
lea ecx, [ebp - 0x4dc]
call fcn.100053b0
test eax, eax
jne 0x10011bbb
mov eax, dword [ebp - 0x4e0]
lea ecx, [ebp - 0x4e0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10003840
mov eax, dword [ebp - 0x4e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x4e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x4e4], eax
lea ecx, [ebp - 0x4dc]
call fcn.10004770
mov eax, dword [ebp - 0x4e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x4e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x4e4], eax
lea eax, [ebp - 0x478]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10016142
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x10011600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10017373
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10013fa0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
xor esi, esi
mov edx, dword [eax + 0x3c]
add edx, eax
movzx ecx, word [edx + 0x14]
lea eax, [edx + 0x18]
movzx ebx, word [edx + 6]
add eax, ecx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10014009
mov edi, eax
mov eax, edi
mov ecx, str..text
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10013ff8
test dl, dl
je 0x10013ff4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10013ff8
add ecx, 2
add eax, 2
test dl, dl
jne 0x10013fd8
xor eax, eax
jmp 0x10013ffd
sbb eax, eax
or eax, 1
test eax, eax
je 0x10014032
inc esi
add edi, 0x28
cmp esi, ebx
jl 0x10013fd1
xor eax, eax
cmp byte [0x10051315], al
push 0
setne al
push eax
push 0
push str._nText_section_size_can_not_detected__Size_created_as_manual:__p_IsPacked_result:__d_Base:__p
call fcn.1000f6a0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
lea eax, [esi + esi*4]
mov esi, dword [edi + eax*8 + 0xc]
mov edi, dword [edi + eax*8 + 0x10]
xor eax, eax
add esi, dword [ebp - 8]
cmp byte [0x10051315], al
push esi
setne al
push eax
push edi
push str._nText_section_size_can_not_detected__Size_created_as_manual:__p_IsPacked_result:__d_Base:__p
call fcn.1000f6a0
add esp, 0x10
test esi, esi
jne 0x1001408b
xor ebx, ebx
cmp byte [0x10051315], bl
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
setne bl
call esi
push ebx
push eax
push str._nText_section_base_address_is_null__Base_wrapped_as_module_base:__p_IsPacked_result:__d
call fcn.1000f6a0
add esp, 0xc
push 0
call esi
mov esi, eax
test edi, edi
jne 0x100140af
xor ecx, ecx
mov edi, 0x100000
cmp byte [0x10051315], cl
push esi
setne cl
push ecx
push edi
push str._nText_section_size_can_not_detected__Size_created_as_manual:__p_IsPacked_result:__d_Base:__p
call fcn.1000f6a0
add esp, 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x100140c7
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, esi
call fcn.10013e70
pop edi
test eax, eax
mov ecx, 5
pop esi
cmove eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10014820
Capabilities:
Create thread

Disassembly:
call fcn.10011e50
call fcn.10011a80
push 0
push 0
push 0
push 0x100147c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp fcn.1000a1e0

Function at 0x10014850
Capabilities:
Create thread

Disassembly:
call fcn.10012010
call fcn.10011a80
push 0
push 0
push 0
push 0x100147e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp fcn.1000a1e0

Function at 0x10014880
Capabilities:
Create thread

Disassembly:
call fcn.100121d0
call fcn.10011a80
push 0
push 0
push 0
push 0x10014800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp fcn.1000a1e0

Function at 0x10014a50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x100079f0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10014610
push 0
push 0
call esi
test eax, eax
je 0x10014af2
mov ebx, dword [ebp + 8]
mov edx, 1
mov ecx, ebx
xor esi, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10014a98
sub ecx, edi
je 0x10014ac9
or ecx, 0xffffffff
movsx eax, byte [esi + ebx]
imul eax, edx
xor edx, edx
div ecx
mov eax, ebx
inc esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10014ab7
sub eax, edi
mov ecx, 0xffffffff
cmp esi, eax
jb 0x10014aa6
mov eax, dword [ebp + 0x14]
xor edx, 0x1e685788
add edx, 0x105cc26b
or edx, 0x55088
xor edx, 0x82e6135f
pop edi
shr edx, 3
pop esi
mov dword [eax], edx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1000a1e0
int3
Function at 0x10015520
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x1004f054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
push edi
mov edi, dword [0x10051b28]
push edi
call ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, 1
jae 0x100157af
mov edi, dword [0x10051b24]
push edi
call ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, 1
jae 0x100157af
mov edi, dword [0x10051b40]
push edi
call ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, 1
jae 0x100157af
mov edi, dword [0x10051b3c]
push edi
call ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, 1
jae 0x100157af
mov edi, dword [0x10051b34]
push edi
call ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, 1
jae 0x100157af
mov edi, dword [0x10051b30]
push edi
call ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, 1
jae 0x100157af
push 0x100
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
call fcn.10019c10
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa], ax
mov dword [ebp - 8], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
xor ecx, ecx
push edx
push eax
push 0x23
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], 6
push eax
mov dword [ebp - 0x118], 3
mov word [ebp - 0xc], cx
call edi
test eax, eax
je 0x10015787
push 0x100
lea eax, [ebp - 0x228]
mov dword [ebp - 0x23c], 0x11c
push 0
push eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
call fcn.10019c10
add esp, 0xc
xor eax, eax
mov word [ebp - 0x126], ax
mov dword [ebp - 0x124], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x238], 6
mov ecx, 1
mov dword [ebp - 0x234], 1
push eax
mov word [ebp - 0x128], cx
call edi
test eax, eax
je 0x10015787
push 0x100
lea eax, [ebp - 0x344]
mov dword [ebp - 0x358], 0x11c
push 0
push eax
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x348], 0
call fcn.10019c10
add esp, 0xc
xor eax, eax
mov word [ebp - 0x242], ax
mov dword [ebp - 0x240], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [ebp - 0x358]
mov dword [ebp - 0x354], 6
xor ecx, ecx
mov dword [ebp - 0x350], 1
push eax
mov word [ebp - 0x244], cx
call edi
test eax, eax
jne 0x1001579e
mov edi, dword [0x10051b2c]
push edi
call ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, 1
jae 0x100157af
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017373
mov esp, ebp
pop ebp
ret
call fcn.1000e8d0
int3
Function at 0x1001f691
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10041824
push 0x1004181c
push str.FlsAlloc
push 0x1f
call fcn.1002d442
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d60b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003d314]
call esi
jmp 0x1002d611
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002d655
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10041834
push 0x1004182c
push str.FlsGetValue
push 0x21
call fcn.1002d442
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d68c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003d314]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002d694
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004183c
push 0x10041834
push str.FlsSetValue
push 0x22
call fcn.1002d442
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d6ce
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1003d314]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1002de01
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10018410
mov eax, dword [0x1004f054]
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.1002b9de
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1002de43
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1002df9f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1003af40
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 + 0x10050ee0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1002ec02
mov ecx, dword [esi*4 + 0x10050ee0]
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 0x1002df98
cmp eax, dword [ecx + edi + 0x24]
jne 0x1002df98
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 0x1002df98
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1002ec02
add esp, 0x14
test edx, edx
jl 0x1002df98
jg 0x1002df0e
test eax, eax
jb 0x1002df98
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1002df98
jl 0x1002df28
cmp dword [ebp - 0x1008], eax
ja 0x1002df98
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1002df46
test ebx, ebx
je 0x1002df7f
cmp ecx, edi
jae 0x1002df7f
mov al, byte [ecx]
cmp al, 0xd
jne 0x1002df60
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1002df6c
cmp byte [ecx + 1], 0xa
jne 0x1002df6c
inc ecx
jmp 0x1002df6c
movzx eax, al
movsx eax, byte [eax + 0x1004f2f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1002df46
cmp edx, ebx
jne 0x1002df46
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1002df9d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10017373
leave
ret
Function at 0x1002e09a
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 + 0x10050ee0]
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 0x1002e0da
cmp byte [ebx], 0xa
jne 0x1002e0da
or byte [edi + eax + 0x28], 4
jmp 0x1002e0df
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 0x1002e1de
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1002e1c1
inc eax
cmp dl, 0xd
je 0x1002e10b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1002e131
cmp eax, ecx
jae 0x1002e13f
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 0x1002e0f3
jmp 0x1002e1de
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 0x1002e1bc
cmp dword [ebp - 0x10], 0
je 0x1002e1bc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10050ee0]
test byte [eax + edi + 0x28], 0x48
je 0x1002e196
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1002e181
mov byte [esi], dl
jmp 0x1002e192
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10050ee0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002e1de
cmp byte [ebp - 1], 0xa
jne 0x1002e1a5
cmp esi, ebx
jne 0x1002e1a5
mov byte [esi], 0xa
jmp 0x1002e1dd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1002ec20
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002e1de
mov byte [esi], 0xd
jmp 0x1002e1dd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10050ee0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002e1db
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002e1de
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002e1e7
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 + 0x10050ee0]
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 0x1002e22d
cmp word [ebx], dx
jne 0x1002e22d
or byte [eax + edi + 0x28], 4
jmp 0x1002e232
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 0x1002e395
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 0x1002e375
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1002e273
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002e2a9
cmp eax, edx
jae 0x1002e2b7
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 0x1002e24e
jmp 0x1002e395
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 0x1002e370
cmp dword [ebp - 0x18], 0
je 0x1002e370
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10050ee0]
test byte [eax + edi + 0x28], 0x48
je 0x1002e346
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 0x1002e30a
mov word [esi], cx
jmp 0x1002e341
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10050ee0]
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 + 0x10050ee0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10050ee0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1002e395
pop eax
cmp word [ebp - 4], ax
jne 0x1002e356
cmp esi, ebx
jne 0x1002e356
mov word [esi], ax
jmp 0x1002e392
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1002ec20
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1002e395
push 0xd
pop eax
jmp 0x1002e351
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10050ee0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1002e38f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1002e395
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 0x10033366
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 0x10033403
push ebx
push esi
call fcn.1003332f
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.100323af
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100333b0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10033402
push edi
push eax
call fcn.1002ab62
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100333d0
call fcn.1002ab28
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10033401
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100323af
add esp, 0x20
test eax, eax
jne 0x100333ef
push edi
call fcn.1002ab28
jmp 0x100333f7
push ebx
call fcn.1002ab28
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 0x1003583b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10028e84
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 0x100358aa
cmp esi, dword [ebp - 4]
je 0x100358a5
cmp dword [ebp + 0xc], 0
je 0x100358a5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10035882
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1003538d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100358ac
xor eax, eax
inc eax
jmp 0x100358ac
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10035911
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1004f054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10028e84
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10028e84
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10035988
cmp word [ecx], dx
je 0x10035988
mov eax, dword [0x10042054]
push edi
dec eax
push eax
push 0x10041f40
call fcn.100358b0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100359fb
cmp word [eax], dx
je 0x100359fb
mov eax, dword [edi]
test eax, eax
je 0x100359ac
cmp word [eax], dx
je 0x100359ac
lea eax, [ebp - 0x10]
push eax
call fcn.10035293
jmp 0x100359b5
lea eax, [ebp - 0x10]
push eax
call fcn.1003532e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10035a25
mov eax, dword [0x10041f3c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10041c30
call fcn.100358b0
add esp, 0xc
test al, al
je 0x10035a25
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100359f0
cmp word [eax], di
je 0x100359f0
lea eax, [ebp - 0x10]
push eax
call fcn.10035293
pop ecx
jmp 0x10035a27
lea eax, [ebp - 0x10]
push eax
call fcn.1003532e
jmp 0x100359ed
mov eax, dword [edi]
test eax, eax
je 0x10035a12
cmp word [eax], dx
je 0x10035a12
lea eax, [ebp - 0x10]
push eax
call fcn.10035248
pop ecx
jmp 0x10035a25
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10035af0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10035735
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10035af0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10035af0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10035af0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10035a7d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1002d7d4
test ebx, ebx
je 0x10035aeb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1002d7d4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10035af0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10035af0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1002fcd0
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10035af2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017373
leave
ret