joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10104b1c
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 + 0x1014c240]
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 0x10104b5c
cmp byte [ebx], 0xa
jne 0x10104b5c
or byte [edi + eax + 0x28], 4
jmp 0x10104b61
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 0x10104c60
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10104c43
inc eax
cmp dl, 0xd
je 0x10104b8d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10104bb3
cmp eax, ecx
jae 0x10104bc1
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 0x10104b75
jmp 0x10104c60
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 0x10104c3e
cmp dword [ebp - 0x10], 0
je 0x10104c3e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1014c240]
test byte [eax + edi + 0x28], 0x48
je 0x10104c18
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10104c03
mov byte [esi], dl
jmp 0x10104c14
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1014c240]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10104c60
cmp byte [ebp - 1], 0xa
jne 0x10104c27
cmp esi, ebx
jne 0x10104c27
mov byte [esi], 0xa
jmp 0x10104c5f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10108fd6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10104c60
mov byte [esi], 0xd
jmp 0x10104c5f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1014c240]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10104c5d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10104c60
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10104c69
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 + 0x1014c240]
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 0x10104caf
cmp word [ebx], dx
jne 0x10104caf
or byte [eax + edi + 0x28], 4
jmp 0x10104cb4
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 0x10104e17
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 0x10104df7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10104cf5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10104d2b
cmp eax, edx
jae 0x10104d39
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 0x10104cd0
jmp 0x10104e17
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 0x10104df2
cmp dword [ebp - 0x18], 0
je 0x10104df2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1014c240]
test byte [eax + edi + 0x28], 0x48
je 0x10104dc8
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 0x10104d8c
mov word [esi], cx
jmp 0x10104dc3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1014c240]
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 + 0x1014c240]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1014c240]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10104e17
pop eax
cmp word [ebp - 4], ax
jne 0x10104dd8
cmp esi, ebx
jne 0x10104dd8
mov word [esi], ax
jmp 0x10104e14
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10108fd6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10104e17
push 0xd
pop eax
jmp 0x10104dd3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1014c240]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10104e11
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10104e17
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 0x1010789b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10127530
push 0x10127528
push str.FlsAlloc
push 0x1f
call fcn.10107706
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101078cf
push dword [ebp + 8]
mov ecx, esi
call dword [0x1011e2dc]
call esi
jmp 0x101078d5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10107919
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10127540
push 0x10127538
push str.FlsGetValue
push 0x21
call fcn.10107706
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10107950
push dword [ebp + 8]
mov ecx, esi
call dword [0x1011e2dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10107958
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10127548
push 0x10127540
push str.FlsSetValue
push 0x22
call fcn.10107706
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10107992
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1011e2dc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x10107a30
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x1012741c
push str.GetTempPath2W
push 5
call fcn.10107706
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10107a6a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1011e2dc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x1010d759
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 0x1010d7f6
push ebx
push esi
call fcn.1010d722
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.1010bb21
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1010d7a3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1010d7f5
push edi
push eax
call fcn.10102adf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1010d7c3
call fcn.10102b2d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1010d7f4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1010bb21
add esp, 0x20
test eax, eax
jne 0x1010d7e2
push edi
call fcn.10102b2d
jmp 0x1010d7ea
push ebx
call fcn.10102b2d
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 0x1010d7f9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1010d80a
pop esi
ret
push ebx
push edi
push esi
call fcn.1010d722
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10102adf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1010d832
push ebx
push esi
push edi
call fcn.100d9400
add esp, 0xc
push 0
call fcn.10102b2d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1010df8c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1010daa7
Function at 0x101131e0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1010316c
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 0x1011324f
cmp esi, dword [ebp - 4]
je 0x1011324a
cmp dword [ebp + 0xc], 0
je 0x1011324a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10113227
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10112d32
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10113251
xor eax, eax
inc eax
jmp 0x10113251
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x101132b6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1013c018]
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.1010316c
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.1010316c
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 0x1011332d
cmp word [ecx], dx
je 0x1011332d
mov eax, dword [0x101282f4]
push edi
dec eax
push eax
push 0x101281e0
call fcn.10113255
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x101133a0
cmp word [eax], dx
je 0x101133a0
mov eax, dword [edi]
test eax, eax
je 0x10113351
cmp word [eax], dx
je 0x10113351
lea eax, [ebp - 0x10]
push eax
call fcn.10112c38
jmp 0x1011335a
lea eax, [ebp - 0x10]
push eax
call fcn.10112cd3
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x101133ca
mov eax, dword [0x101281dc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10127ed0
call fcn.10113255
add esp, 0xc
test al, al
je 0x101133ca
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10113395
cmp word [eax], di
je 0x10113395
lea eax, [ebp - 0x10]
push eax
call fcn.10112c38
pop ecx
jmp 0x101133cc
lea eax, [ebp - 0x10]
push eax
call fcn.10112cd3
jmp 0x10113392
mov eax, dword [edi]
test eax, eax
je 0x101133b7
cmp word [eax], dx
je 0x101133b7
lea eax, [ebp - 0x10]
push eax
call fcn.10112bed
pop ecx
jmp 0x101133ca
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 0x10113495
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.101130da
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10113495
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10113495
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10113495
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10113422
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10107b76
test ebx, ebx
je 0x10113490
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10107b76
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10113495
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 0x10113495
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100eea6d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10113497
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008b7da
leave
ret
Function at 0x10116076
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10115ff2
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x101161e5
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101161e5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1011619a
jg 0x101160d2
test eax, eax
je 0x10116190
push 1
push 0x1000
call fcn.10106e3c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x101160f5
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10116187
push 0x8000
push ebx
call fcn.10115f23
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1011611e
jg 0x10116119
cmp ecx, 0x1000
jb 0x1011611e
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10108783
add esp, 0x10
cmp eax, 0xffffffff
je 0x10116163
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10116119
jl 0x1011614a
test ecx, ecx
jne 0x1011610b
push dword [ebp - 0xc]
push ebx
call fcn.10115f23
push esi
call fcn.10102b2d
add esp, 0xc
xor ebx, ebx
jmp 0x101161f3
cmp byte [edi + 0x24], 0
je 0x1011617a
cmp dword [edi + 0x20], 5
jne 0x1011617a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10116185
mov ebx, dword [edi + 0x18]
jmp 0x10116187
xor ebx, ebx
push esi
call fcn.10102b2d
pop ecx
jmp 0x101161f3
test ecx, ecx
jg 0x1011615c
jl 0x1011619a
test eax, eax
jae 0x1011615c
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10108fd6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101161ba
cmp byte [edi + 0x1c], 0
je 0x1011615c
jmp 0x101161eb
push ebx
call fcn.101110ee
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1011615c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101161f3
cmp byte [edi + 0x1c], 0
je 0x101161f0
mov ebx, dword [edi + 0x18]
jmp 0x101161f3
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10108fd6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a820
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f26e
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x56e910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x57a650]
mov dword [ebp - 0xac], 0
test al, 1
jne 0x40a9be
or eax, 1
mov dword [0x57a650], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0x12
push eax
xorps xmm0, xmm0
mov dword [ebp - 0xa4], str.ko_KR
push ecx
movq qword [0x57a654], xmm0
mov dword [ebp - 0xa0], 9
mov dword [ebp - 0x9c], str.en_US
mov dword [ebp - 0x98], 0x2a
mov dword [ebp - 0x94], str.vi_VN
mov dword [ebp - 0x90], 0x1e
mov dword [ebp - 0x8c], str.th_TH
mov dword [ebp - 0x88], 0x19
mov dword [ebp - 0x84], str.ru_RU
mov dword [ebp - 0x80], 0x22
mov dword [ebp - 0x7c], str.uk_UA
mov dword [ebp - 0x78], 0x16
mov dword [ebp - 0x74], str.pt_PT
mov dword [ebp - 0x70], 0x1f
mov dword [ebp - 0x6c], str.tr_TR
mov dword [ebp - 0x68], 0xa
mov dword [ebp - 0x64], str.es_ES
mov dword [ebp - 0x60], 0xc
mov dword [ebp - 0x5c], str.fr_FR
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x54], str.de_DE
mov dword [ebp - 0x50], 0x11
mov dword [ebp - 0x4c], str.ja_JP
mov dword [ebp - 0x48], 0x21
mov dword [ebp - 0x44], str.in_ID
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], str.ar_IL
mov dword [ebp - 0x38], 0x29
mov dword [ebp - 0x34], str.fa_IR
mov dword [ebp - 0x30], 0x39
mov dword [ebp - 0x2c], str.hi_IN
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], str.it_IT
mov dword [ebp - 0x20], 0x3e
mov dword [ebp - 0x1c], str.ms_MY
call fcn.00403d80
push 0x5295d0
call fcn.004e4f43
add esp, 4
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, 4
jne 0x40aa27
mov ecx, 0xc04
cmp ax, cx
je 0x40aa04
mov ecx, 0x1404
cmp ax, cx
je 0x40aa04
mov ecx, 0x404
cmp ax, cx
je 0x40aa04
mov ecx, 0x7c04
cmp ax, cx
je 0x40aa04
push str.zh_TW
jmp 0x40aa76
push 5
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push str.zh_TW
mov word [esi], ax
call fcn.00405200
jmp 0x40aa7d
mov edi, dword [0x57a654]
mov edx, ecx
mov ecx, edi
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x40aa60
lea ebx, [ebx]
cmp dword [eax + 0x10], edx
jge 0x40aa4a
mov eax, dword [eax + 8]
jmp 0x40aa4e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x40aa40
cmp ecx, edi
je 0x40aa60
mov dword [ebp - 0x14], ecx
cmp edx, dword [ecx + 0x10]
jge 0x40aa63
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
mov eax, dword [eax]
cmp eax, edi
je 0x40aa71
push dword [eax + 0x14]
jmp 0x40aa76
push str.en_US
mov ecx, esi
call fcn.00405330
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4694
mov esp, ebp
pop ebp
ret
Function at 0x40c120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x56e910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x814], 0
push 0x7fe
push eax
mov word [ebp - 0x804], ax
mov edi, edx
lea eax, [ebp - 0x802]
mov esi, ecx
push eax
call fcn.004ef530
add esp, 0xc
mov dword [ebp - 0x810], 0
cmp dword [edi + 0x14], 8
jb 0x40c173
mov edi, dword [edi]
lea eax, [ebp - 0x810]
push eax
push edi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40c1ce
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x80c], 0x800
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push str.InstallDir
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x804], ax
jne 0x40c1ee
xor ecx, ecx
jmp 0x40c206
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c1f7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.00405200
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004e4694
mov esp, ebp
pop ebp
ret

Function at 0x410f10
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x56e910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x268], 0
push 0x256
push eax
mov word [ebp - 0x25c], ax
mov esi, edx
lea eax, [ebp - 0x25a]
mov edi, ecx
push eax
call fcn.004ef530
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x410fa0
lea eax, [ebp - 0x260]
push eax
push 4
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x410f99
push 0x104
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x264]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x25c], ax
jne 0x410fc0
xor ecx, ecx
jmp 0x410fdf
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410fd0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x25c]
mov ecx, edi
push eax
call fcn.00405200
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004e4694
mov esp, ebp
pop ebp
ret
Function at 0x4117b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51fc21
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x56e910]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x134]
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
mov dword [ebp - 0x134], 0x11c
call edi
test eax, eax
jne 0x411813
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 0x114
push eax
call edi
cmp dword [ebp - 0x130], 6
jb 0x411900
cmp dword [ebp - 0x12c], 2
jb 0x411900
push str.runPlayer_no_amdin
push 0x572
push str.DownloaderModel::runPlayer
call fcn.0043de00
add esp, 0xc
lea edx, [ebx + 0x244]
lea ecx, [ebp - 0x14c]
push 0x54ea58
call fcn.00415ce0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x41186e
mov edx, dword [esi]
jmp 0x411870
mov edx, esi
sub esp, 8
mov ecx, eax
call fcn.004113f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x138], 8
mov edi, eax
jb 0x41189d
push dword [ebp - 0x14c]
call fcn.00488de0
add esp, 4
cmp edi, 0xffffffff
jne 0x411945
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.runPlayer_no_amdin_error__d
push 0x576
push str.DownloaderModel::runPlayer
call fcn.0043de00
push 0x54ea58
lea edx, [ebx + 0x244]
lea ecx, [ebp - 0x14c]
call fcn.00415ce0
add esp, 0x14
push 0
push 1
push esi
push eax
mov dword [ebp - 4], 1
call fcn.00446770
add esp, 0x10
cmp dword [ebp - 0x138], 8
jb 0x411945
push dword [ebp - 0x14c]
jmp 0x41193d
push 0x54ea58
lea edx, [ebx + 0x244]
lea ecx, [ebp - 0x164]
call fcn.00415ce0
add esp, 4
push 0
push 1
push esi
push eax
mov dword [ebp - 4], 2
call fcn.00446770
add esp, 0x10
cmp dword [ebp - 0x150], 8
jb 0x411945
push dword [ebp - 0x164]
call fcn.00488de0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e4694
mov esp, ebp
pop ebp
ret 4