joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44de26
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ae2c0]
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.004478c2
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.004478c2
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 0x44de9d
cmp word [ecx], dx
je 0x44de9d
mov eax, dword [0x4a7e7c]
push edi
dec eax
push eax
push 0x4a7d68
call fcn.0044ddc5
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x44df10
cmp word [eax], dx
je 0x44df10
mov eax, dword [edi]
test eax, eax
je 0x44dec1
cmp word [eax], dx
je 0x44dec1
lea eax, [ebp - 0x10]
push eax
call fcn.0044d7a8
jmp 0x44deca
lea eax, [ebp - 0x10]
push eax
call fcn.0044d843
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x44df3a
mov eax, dword [0x4a7d64]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4a7a58
call fcn.0044ddc5
add esp, 0xc
test al, al
je 0x44df3a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x44df05
cmp word [eax], di
je 0x44df05
lea eax, [ebp - 0x10]
push eax
call fcn.0044d7a8
pop ecx
jmp 0x44df3c
lea eax, [ebp - 0x10]
push eax
call fcn.0044d843
jmp 0x44df02
mov eax, dword [edi]
test eax, eax
je 0x44df27
cmp word [eax], dx
je 0x44df27
lea eax, [ebp - 0x10]
push eax
call fcn.0044d75d
pop ecx
jmp 0x44df3a
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 0x44e005
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0044dc4a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44e005
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x44e005
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x44e005
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44df92
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0044742b
test ebx, ebx
je 0x44e000
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0044742b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44e005
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 0x44e005
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00453e0a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44e007
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438710
leave
ret
Function at 0x44f9b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00438720
mov eax, dword [0x4ae2c0]
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.00449abd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44f9f9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44fb55
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00455ec0
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 + 0x4afa60]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004509b4
mov ecx, dword [esi*4 + 0x4afa60]
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 0x44fb4e
cmp eax, dword [ecx + edi + 0x24]
jne 0x44fb4e
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 0x44fb4e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004509b4
add esp, 0x14
test edx, edx
jl 0x44fb4e
jg 0x44fac4
test eax, eax
jb 0x44fb4e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44fb4e
jl 0x44fade
cmp dword [ebp - 0x1008], eax
ja 0x44fb4e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44fafc
test ebx, ebx
je 0x44fb35
cmp ecx, edi
jae 0x44fb35
mov al, byte [ecx]
cmp al, 0xd
jne 0x44fb16
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44fb22
cmp byte [ecx + 1], 0xa
jne 0x44fb22
inc ecx
jmp 0x44fb22
movzx eax, al
movsx eax, byte [eax + 0x4aeab8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44fafc
cmp edx, ebx
jne 0x44fafc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44fb53
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00438710
leave
ret
Function at 0x44fe4c
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 + 0x4afa60]
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 0x44fe8c
cmp byte [ebx], 0xa
jne 0x44fe8c
or byte [edi + eax + 0x28], 4
jmp 0x44fe91
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 0x44ff90
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44ff73
inc eax
cmp dl, 0xd
je 0x44febd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44fee3
cmp eax, ecx
jae 0x44fef1
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 0x44fea5
jmp 0x44ff90
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 0x44ff6e
cmp dword [ebp - 0x10], 0
je 0x44ff6e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4afa60]
test byte [eax + edi + 0x28], 0x48
je 0x44ff48
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44ff33
mov byte [esi], dl
jmp 0x44ff44
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4afa60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44ff90
cmp byte [ebp - 1], 0xa
jne 0x44ff57
cmp esi, ebx
jne 0x44ff57
mov byte [esi], 0xa
jmp 0x44ff8f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004509d2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44ff90
mov byte [esi], 0xd
jmp 0x44ff8f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4afa60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44ff8d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44ff90
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44ff99
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 + 0x4afa60]
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 0x44ffdf
cmp word [ebx], dx
jne 0x44ffdf
or byte [eax + edi + 0x28], 4
jmp 0x44ffe4
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 0x450147
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 0x450127
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x450025
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45005b
cmp eax, edx
jae 0x450069
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 0x450000
jmp 0x450147
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 0x450122
cmp dword [ebp - 0x18], 0
je 0x450122
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4afa60]
test byte [eax + edi + 0x28], 0x48
je 0x4500f8
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 0x4500bc
mov word [esi], cx
jmp 0x4500f3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4afa60]
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 + 0x4afa60]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4afa60]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x450147
pop eax
cmp word [ebp - 4], ax
jne 0x450108
cmp esi, ebx
jne 0x450108
mov word [esi], ax
jmp 0x450144
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004509d2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x450147
push 0xd
pop eax
jmp 0x450103
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4afa60]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x450141
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x450147
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 0x455e80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x455ead
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x455ead
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4019f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0x114], str._system32777.dll
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x401a5f
cmp dword [ebp - 0x118], 0
je 0x401a5f
jmp 0x401ac3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x401ac3
mov dword [ebp - 0x11c], 0x15f
mov edx, dword [ebp + 8]
add edx, 8
mov dword [0x438274], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [0x438290], ecx
mov dword [ebp - 0x11c], 0x15f
mov dword [ebp - 0x11c], 0x15f
call fcn.004011b0
mov edx, dword [ebp + 8]
mov dword [0x43828c], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
call fcn.004013b0
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x401a5f
mov esp, ebp
pop ebp
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x6e9936ba
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x4ac876a2
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x405960
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42b050], 0
je 0x4059c1
cmp word [0x42b32c], 0xd7b2
jne 0x405989
cmp dword [0x42b334], 0
jbe 0x405989
mov eax, 0x42b328
call dword [0x42b344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4059ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42902c], 0
jne 0x4059dd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407704
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40786b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406368
cmp si, word [0x4297c0]
jb 0x40779e
cmp si, word [0x4299c0]
ja 0x40779e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40779e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4297c0]
jae 0x407778
mov edi, ebx
dec edi
jmp 0x407799
cmp si, word [ebx*8 + 0x4297c0]
jbe 0x407788
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x407799
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4297c4]
call fcn.00407614
jmp 0x40779e
cmp edi, dword [ebp - 0xc]
jae 0x407762
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40784d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40784d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406550
push dword [ebp - 0x164]
push 0x407888
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406550
push dword [ebp - 0x168]
push 0x407898
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406550
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040683c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407872
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406360
ret
Function at 0x40789c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x407a82
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x42db58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x42db70]
cmp ax, word [ebp - 2]
jne 0x4078f4
mov eax, dword [ebp - 6]
mov edx, 0x42db74
mov ecx, 0x55
call fcn.00406550
push 0x42db58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x407a6c
push 0x42db58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406368
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407a34
cmp byte [0x42db54], 0
je 0x4079ea
call dword [0x42db4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x42db50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4079e3
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x42db48]
test al, al
je 0x4079bc
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404304
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x42db48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4079b1
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4079ad
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x40799a
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406514
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a34
movzx eax, word [ebp - 0x16]
push eax
call dword [0x42db50]
cmp dword [ebp - 0x10], 0
je 0x4079e2
mov eax, dword [ebp - 0x10]
call fcn.00404320
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00407704
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x407a34
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x407a19
mov eax, dword [ebp - 6]
mov edx, 0x407a9c
call fcn.00406698
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00407704
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406698
mov eax, dword [ebp - 6]
push 0x42db58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x42db70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004063f4
push eax
push 0x42db74
call sub.kernel32.dll_lstrcpynW
push 0x42db58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a89
lea eax, [ebp - 0x1c]
call fcn.00406358
ret
Function at 0x407cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406350
xor eax, eax
push ebp
push 0x407ea5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407d00
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x407d1a
push 0x105
mov eax, dword [ebp - 4]
call fcn.004063f4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x407e8f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407eb4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407da9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407eb4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407da9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407ee8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407da9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407f1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x407e8f
xor eax, eax
push ebp
push 0x407e88
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407ac4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407e18
mov eax, dword [ebp - 0x10]
call fcn.00404304
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406514
jmp 0x407e63
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x407f5c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407e63
mov eax, dword [ebp - 0x10]
call fcn.00404304
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x407f5c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406514
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e8f
cmp dword [ebp - 8], 0
je 0x407e7e
mov eax, dword [ebp - 8]
call fcn.00404320
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407eac
lea eax, [ebp - 4]
call fcn.00406358
ret
Function at 0x408170
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406350
mov eax, dword [ebp - 0x21c]
call fcn.00406350
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40830f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406368
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004063f4
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x408210
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x408222
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40820d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4082db
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40824b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00407cc0
cmp dword [ebp - 0x220], 0
je 0x408283
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408064
pop ecx
mov ebx, eax
jmp 0x4082db
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040789c
mov eax, dword [ebp - 0x224]
call fcn.00408064
pop ecx
mov ebx, eax
test bl, bl
jne 0x4082ce
cmp byte [0x42db54], 0
jne 0x4082ce
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040789c
mov eax, dword [ebp - 0x228]
call fcn.00408064
pop ecx
mov ebx, eax
test bl, bl
jne 0x4082db
push ebp
call fcn.00408114
pop ecx
mov ebx, eax
test bl, bl
je 0x4082f1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408316
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406360
ret

Function at 0x408740
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40fe3c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40fe75
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004064a4
jmp 0x40fe7e
mov eax, ebx
mov edx, esi
call fcn.00406368
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40fe88
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40feaa
movzx eax, word [esp]
jmp 0x40feac
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret