joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101eef60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x101eef71
test eax, eax
jne 0x101eefc1
test eax, eax
jne 0x101eef87
mov ecx, dword [0x1044455c]
test ecx, ecx
je 0x101eef87
call dword [section..00cfg]
call ecx
cmp dword [0x10444554], 0
je 0x101eefc1
mov esi, dword [0x10444558]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x101eefc7
test esi, esi
je 0x101eefc1
mov ecx, dword [0x10444554]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x101eefaf
jmp 0x101eefc1
Function at 0x101eff20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x1043db14]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x101eff9c
mov eax, dword [ebp + 8]
cmp dword [0x10444584], eax
jg 0x101eff9c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
mov dword [ebp - 0x1c], esi
add esi, ebx
nop dword [eax]
cmp ebx, esi
jae 0x101eff8b
mov dword [ebp - 0x18], 0
mov eax, esi
sub eax, ebx
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101eff8b
mov eax, dword [ebp - 0x18]
add ebx, eax
test eax, eax
jne 0x101eff60
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
mov eax, dword [ebp + 0xc]
je 0x101eff9c
cmp byte [ecx + eax - 1], 0xa
jne 0x101effb4
cmp dword [ebp + 8], 3
je 0x101f0001
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102377e8
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0x102893f0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea ebx, [ebp - 0x14]
nop word cs:[eax + eax]
cmp edi, 0x102893f1
jae 0x101eff9c
mov dword [ebp - 0x14], 0
mov eax, 0x102893f1
sub eax, edi
push 0
push ebx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101eff9c
mov eax, dword [ebp - 0x14]
add edi, eax
test eax, eax
jne 0x101effd0
jmp 0x101eff9c
int3
Function at 0x101f8197
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov esi, ecx
mov edi, dword [ecx + edx*4 + 0x48]
test edi, edi
jne 0x101f81ca
mov eax, dword [esi]
mov dword [eax + 0x14], 0x34
mov eax, dword [esi]
mov dword [eax + 0x18], ebx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
pxor xmm0, xmm0
xor eax, eax
movdqa xmm1, xmmword [0x103c0340]
movdqa xmm2, xmmword [0x103fceb0]
movdqa xmm3, xmmword [0x10286d30]
movq xmm4, qword [edi + eax*2]
pxor xmm4, xmm1
pcmpgtw xmm4, xmm2
punpcklwd xmm4, xmm4
psrad xmm4, 0x10
movdqa xmm5, xmm4
pandn xmm5, xmm0
pand xmm4, xmm3
movdqa xmm0, xmm4
por xmm0, xmm5
add eax, 4
cmp eax, 0x40
jne 0x101f81e8
pxor xmm1, xmm1
pcmpeqd xmm0, xmm1
movmskps ecx, xmm0
xor ecx, 0xf
cmp dword [edi + 0x80], 0
jne 0x101f82d2
mov dword [ebp - 0x18], ebx
xor ebx, ebx
mov dword [ebp - 0x10], ecx
test cl, cl
setne bl
mov ecx, esi
mov edx, 0xff
call fcn.101f814f
mov ecx, esi
mov edx, 0xdb
call fcn.101f814f
mov eax, ebx
shl eax, 6
add eax, 0x43
mov dword [ebp - 0x14], eax
mov ecx, esi
xor edx, edx
call fcn.101f814f
mov ecx, esi
mov edx, dword [ebp - 0x14]
call fcn.101f814f
shl ebx, 4
add ebx, dword [ebp - 0x18]
mov ecx, esi
mov edx, ebx
call fcn.101f814f
mov ebx, 0xffffff00
mov dword [ebp - 0x1c], edi
mov eax, dword [ebx + 0x103fcd64]
movzx eax, word [edi + eax*2]
cmp byte [ebp - 0x10], 0
je 0x101f82b6
mov edi, esi
mov esi, eax
mov edx, eax
shr edx, 8
mov ecx, edi
call fcn.101f814f
mov eax, esi
mov esi, edi
mov edi, dword [ebp - 0x1c]
movzx edx, al
mov ecx, esi
call fcn.101f814f
add ebx, 4
jne 0x101f828f
mov dword [edi + 0x80], 1
mov ecx, dword [ebp - 0x10]
xor eax, eax
test cl, cl
setne al
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102295c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10229742
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10229742
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov edi, dword [edi]
push eax
push edi
push esi
mov esi, dword [esi]
mov edi, dword [edi]
test eax, 0x1f
je 0x102295f8
mov dl, byte [esi + eax - 1]
mov byte [esi + eax], dl
vpxor ymm0, ymm0, ymm0
vpcmpeqb xmm7, xmm7, xmm7
vpsrldq xmm7, xmm7, 0xf
vpand ymm7, ymm7, ymmword [esi]
add eax, 0x1f
and eax, 0xffffffe0
cmp eax, 0x20
ja 0x10229630
vpcmpeqb xmm6, xmm6, xmm6
vpslldq xmm6, xmm6, 0xf
vperm2i128 ymm6, ymm6, ymm6, 1
vpand ymm6, ymm6, ymmword [esi]
jmp 0x10229640
vmovdqu ymm6, ymmword [esi + 0x20]
vperm2i128 ymm6, ymm0, ymm6, 0x20
vpslldq ymm6, ymm6, 0xf
vmovdqu ymm1, ymmword [esi]
vperm2i128 ymm2, ymm0, ymm1, 0x20
vpalignr ymm2, ymm1, ymm2, 0xf
vperm2i128 ymm4, ymm0, ymm1, 3
vpalignr ymm3, ymm4, ymm1, 1
vpor ymm2, ymm2, ymm7
vpor ymm3, ymm3, ymm6
vpsrldq ymm7, ymm4, 0xf
vpunpckhbw ymm4, ymm1, ymm0
vpunpcklbw ymm5, ymm1, ymm0
vperm2i128 ymm1, ymm5, ymm4, 0x20
vperm2i128 ymm4, ymm5, ymm4, 0x31
vpunpckhbw ymm5, ymm2, ymm0
vpunpcklbw ymm6, ymm2, ymm0
vperm2i128 ymm2, ymm6, ymm5, 0x20
vperm2i128 ymm5, ymm6, ymm5, 0x31
vpunpckhbw ymm6, ymm3, ymm0
vpunpcklbw ymm0, ymm3, ymm0
vperm2i128 ymm3, ymm0, ymm6, 0x20
vperm2i128 ymm6, ymm0, ymm6, 0x31
vpxor ymm0, ymm0, ymm0
vpmullw ymm1, ymm1, ymmword [0x103fe780]
vpmullw ymm4, ymm4, ymmword [0x103fe780]
vpaddw ymm2, ymm2, ymmword [0x103fe740]
vpaddw ymm5, ymm5, ymmword [0x103fe740]
vpaddw ymm3, ymm3, ymmword [0x103fe760]
vpaddw ymm6, ymm6, ymmword [0x103fe760]
vpaddw ymm2, ymm2, ymm1
vpaddw ymm5, ymm5, ymm4
vpsrlw ymm2, ymm2, 2
vpsrlw ymm5, ymm5, 2
vpaddw ymm3, ymm3, ymm1
vpaddw ymm6, ymm6, ymm4
vpsrlw ymm3, ymm3, 2
vpsrlw ymm6, ymm6, 2
vpsllw ymm3, ymm3, 8
vpsllw ymm6, ymm6, 8
vpor ymm2, ymm2, ymm3
vpor ymm5, ymm5, ymm6
vmovdqu ymmword [edi], ymm2
vmovdqu ymmword [edi + 0x20], ymm5
sub eax, 0x20
add esi, 0x20
add edi, 0x40
cmp eax, 0x20
ja 0x10229630
test eax, eax
jne 0x10229614
pop esi
pop edi
pop eax
add esi, 4
add edi, 4
dec ecx
jg 0x102295e3
vzeroupper
pop edi
pop esi
pop ebp
ret
Function at 0x1022e840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ah, 2
mov al, 4
movq mm2, qword [esi]
movq mm3, qword [esi + 8]
movq mm0, mm2
movq mm1, mm3
psraw mm2, 0xf
psraw mm3, 0xf
pxor mm0, mm2
pxor mm1, mm3
psubw mm0, mm2
psubw mm1, mm3
paddw mm0, qword [edx + 0x80]
paddw mm1, qword [edx + 0x88]
movq mm4, mm0
movq mm5, mm1
pmulhw mm0, qword [edx]
pmulhw mm1, qword [edx + 8]
paddw mm0, mm4
paddw mm1, mm5
movq mm6, qword [edx + 0x100]
movq mm7, qword [edx + 0x108]
movq mm4, mm0
movq mm5, mm1
pmulhw mm0, mm6
pmulhw mm1, mm7
psraw mm6, 0xf
psraw mm7, 0xf
pand mm6, mm4
pand mm7, mm5
paddw mm0, mm6
paddw mm1, mm7
psraw mm4, 0xf
psraw mm5, 0xf
pand mm4, qword [edx + 0x100]
pand mm5, qword [edx + 0x108]
paddw mm0, mm4
paddw mm1, mm5
pxor mm0, mm2
pxor mm1, mm3
psubw mm0, mm2
psubw mm1, mm3
movq qword [edi], mm0
movq qword [edi + 8], mm1
add esi, 0x10
add edx, 0x10
add edi, 0x10
dec al
jne 0x1022e852
dec ah
jne 0x1022e850
emms
pop edi
pop esi
pop ebp
ret

Function at 0x1022eb40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, 2
movdqa xmm4, xmmword [esi]
movdqa xmm5, xmmword [esi + 0x10]
movdqa xmm6, xmmword [esi + 0x20]
movdqa xmm7, xmmword [esi + 0x30]
movdqa xmm0, xmm4
movdqa xmm1, xmm5
movdqa xmm2, xmm6
movdqa xmm3, xmm7
psraw xmm4, 0xf
psraw xmm5, 0xf
psraw xmm6, 0xf
psraw xmm7, 0xf
pxor xmm0, xmm4
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
psubw xmm0, xmm4
psubw xmm1, xmm5
psubw xmm2, xmm6
psubw xmm3, xmm7
paddw xmm0, xmmword [edx + 0x80]
paddw xmm1, xmmword [edx + 0x90]
paddw xmm2, xmmword [edx + 0xa0]
paddw xmm3, xmmword [edx + 0xb0]
pmulhuw xmm0, xmmword [edx]
pmulhuw xmm1, xmmword [edx + 0x10]
pmulhuw xmm2, xmmword [edx + 0x20]
pmulhuw xmm3, xmmword [edx + 0x30]
pmulhuw xmm0, xmmword [edx + 0x100]
pmulhuw xmm1, xmmword [edx + 0x110]
pmulhuw xmm2, xmmword [edx + 0x120]
pmulhuw xmm3, xmmword [edx + 0x130]
pxor xmm0, xmm4
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
psubw xmm0, xmm4
psubw xmm1, xmm5
psubw xmm2, xmm6
psubw xmm3, xmm7
movdqa xmmword [edi], xmm0
movdqa xmmword [edi + 0x10], xmm1
movdqa xmmword [edi + 0x20], xmm2
movdqa xmmword [edi + 0x30], xmm3
add esi, 0x40
add edx, 0x40
add edi, 0x40
dec eax
jne 0x1022eb53
pop edi
pop esi
pop ebp
ret
Function at 0x102376d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x1043db14]
xor ecx, ebp
mov dword [ebp - 8], ecx
test eax, eax
je 0x1023771c
push eax
push dword [ebp + 8]
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x1023771c
lea esi, [ebp - 0xc]
push str.success
push 0x20
push str..._base_allocatorpartition_allocatorpartition_alloc_base_rand_util_win.cc
push esi
call fcn.101ec9f0
add esp, 0x10
mov ecx, esi
call fcn.1002c000
mov ecx, esi
call fcn.101eca60
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.102377e8
add esp, 8
pop esi
pop ebp
ret

Function at 0x10244e38
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10244e77
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10244e77
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10244e77
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10244e77
cmp dword [ecx + 0x74], 0xe
jbe 0x10244e77
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10247c13
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10237cf0
mov eax, dword [0x1043db14]
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.10256069
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10247c55
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10247db1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10237a90
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 + 0x10446e40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1025986e
mov ecx, dword [esi*4 + 0x10446e40]
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 0x10247daa
cmp eax, dword [ecx + edi + 0x24]
jne 0x10247daa
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 0x10247daa
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1025986e
add esp, 0x14
test edx, edx
jl 0x10247daa
jg 0x10247d20
test eax, eax
jb 0x10247daa
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10247daa
jl 0x10247d3a
cmp dword [ebp - 0x1008], eax
ja 0x10247daa
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10247d58
test ebx, ebx
je 0x10247d91
cmp ecx, edi
jae 0x10247d91
mov al, byte [ecx]
cmp al, 0xd
jne 0x10247d72
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10247d7e
cmp byte [ecx + 1], 0xa
jne 0x10247d7e
inc ecx
jmp 0x10247d7e
movzx eax, al
movsx eax, byte [eax + 0x1043f468]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10247d58
cmp edx, ebx
jne 0x10247d58
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10247daf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.102377e8
leave
ret
Function at 0x10253be6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x104227f4
push str.FlsAlloc
push 0x1f
call fcn.10254099
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10253c1a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10253c20
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10253c64
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x10422818
push str.FlsGetValue
push 0x21
call fcn.10254099
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10253c9b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10253ca3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x1042282c
push str.FlsSetValue
push 0x22
call fcn.10254099
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10253cdd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10257df7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1043db14]
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.102533ea
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.102533ea
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 0x10257e6e
cmp word [ecx], dx
je 0x10257e6e
mov eax, dword [0x104231ec]
push edi
dec eax
push eax
push 0x104230d8
call fcn.10257fe7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10257ee1
cmp word [eax], dx
je 0x10257ee1
mov eax, dword [edi]
test eax, eax
je 0x10257e92
cmp word [eax], dx
je 0x10257e92
lea eax, [ebp - 0x10]
push eax
call fcn.10258048
jmp 0x10257e9b
lea eax, [ebp - 0x10]
push eax
call fcn.10258343
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10257f0b
mov eax, dword [0x104230d4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10422dc8
call fcn.10257fe7
add esp, 0xc
test al, al
je 0x10257f0b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10257ed6
cmp word [eax], di
je 0x10257ed6
lea eax, [ebp - 0x10]
push eax
call fcn.10258048
pop ecx
jmp 0x10257f0d
lea eax, [ebp - 0x10]
push eax
call fcn.10258343
jmp 0x10257ed3
mov eax, dword [edi]
test eax, eax
je 0x10257ef8
cmp word [eax], dx
je 0x10257ef8
lea eax, [ebp - 0x10]
push eax
call fcn.10258485
pop ecx
jmp 0x10257f0b
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 0x10257fd6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10258577
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10257fd6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10257fd6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10257fd6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10257f63
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10253edc
test ebx, ebx
je 0x10257fd1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10253edc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10257fd6
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 0x10257fd6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10248b22
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10257fd8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.102377e8
leave
ret
Function at 0x1025867d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.102533ea
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 0x102586ec
cmp esi, dword [ebp - 4]
je 0x102586e7
cmp dword [ebp + 0xc], 0
je 0x102586e7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x102586c4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10258746
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x102586ee
xor eax, eax
inc eax
jmp 0x102586ee
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1025a0ad
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 + 0x10446e40]
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 0x1025a0ed
cmp byte [ebx], 0xa
jne 0x1025a0ed
or byte [edi + eax + 0x28], 4
jmp 0x1025a0f2
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 0x1025a1f1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1025a1d4
inc eax
cmp dl, 0xd
je 0x1025a11e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1025a144
cmp eax, ecx
jae 0x1025a152
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 0x1025a106
jmp 0x1025a1f1
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 0x1025a1cf
cmp dword [ebp - 0x10], 0
je 0x1025a1cf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10446e40]
test byte [eax + edi + 0x28], 0x48
je 0x1025a1a9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1025a194
mov byte [esi], dl
jmp 0x1025a1a5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10446e40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1025a1f1
cmp byte [ebp - 1], 0xa
jne 0x1025a1b8
cmp esi, ebx
jne 0x1025a1b8
mov byte [esi], 0xa
jmp 0x1025a1f0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10259810
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1025a1f1
mov byte [esi], 0xd
jmp 0x1025a1f0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10446e40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1025a1ee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1025a1f1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1025a1fa
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 + 0x10446e40]
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 0x1025a240
cmp word [ebx], dx
jne 0x1025a240
or byte [eax + edi + 0x28], 4
jmp 0x1025a245
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 0x1025a3a8
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 0x1025a388
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1025a286
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1025a2bc
cmp eax, edx
jae 0x1025a2ca
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 0x1025a261
jmp 0x1025a3a8
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 0x1025a383
cmp dword [ebp - 0x18], 0
je 0x1025a383
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10446e40]
test byte [eax + edi + 0x28], 0x48
je 0x1025a359
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 0x1025a31d
mov word [esi], cx
jmp 0x1025a354
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10446e40]
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 + 0x10446e40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10446e40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1025a3a8
pop eax
cmp word [ebp - 4], ax
jne 0x1025a369
cmp esi, ebx
jne 0x1025a369
mov word [esi], ax
jmp 0x1025a3a5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10259810
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1025a3a8
push 0xd
pop eax
jmp 0x1025a364
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10446e40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1025a3a2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1025a3a8
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret