joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407215
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [ebp - 0x4d0]
add edx, 1
mov dword [ebp - 0x4d0], edx
cmp dword [ebp - 0xc10], 0
jle 0x4071e4
push eax
push eax
add esp, 4
or eax, 0x941f
sub eax, 0x15d28
pop eax
push edi
sub edi, 0xf9f0
xor edi, 0xf86d
or edi, 0xea79
pop edi
push edx
push edx
add esp, 4
and edx, 0x1856b
pop edx
mov edx, dword [ebp - 0xa60]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x9f0]
movzx edx, byte [ecx]
cmp eax, edx
je 0x407180
push edx
add edx, 0xcbbe
xor edx, 0x364a
and edx, 0x91e5
pop edx
push ebx
sub ebx, 0x3f03
xor ebx, 0x17b59
call 0x407142
add byte [edi + 0x47], al
dec ebp
inc eax
inc edx
inc esi
dec ebx
add esp, 4
pop ebx
mov eax, dword [ebp - 0xa60]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x9f0]
movzx eax, byte [edx]
cmp ecx, eax
jle 0x407168
mov dword [ebp - 0x14cc], 1
jmp 0x407172
mov dword [ebp - 0x14cc], 0xffffffff
mov ecx, dword [ebp - 0x14cc]
mov dword [ebp - 0xc14], ecx
jmp 0x4071e4
push esi
push ecx
add esp, 4
or esi, 0xf92a
pop esi
push esi
or esi, 0x10f38
pop esi
push edi
push ebx
add esp, 4
add edi, 0x1722
pop edi
push ebx
push esi
add esp, 4
sub ebx, 0x3fe5
sub ebx, 0x14b0f
pop ebx
mov edx, dword [ebp - 0xc10]
sub edx, 1
mov dword [ebp - 0xc10], edx
mov eax, dword [ebp - 0xa60]
add eax, 1
mov dword [ebp - 0xa60], eax
mov ecx, dword [ebp - 0x9f0]
add ecx, 1
mov dword [ebp - 0x9f0], ecx
jmp 0x4070bf
mov edx, dword [ebp - 0xc14]
mov dword [ebp - 0x14d0], edx
cmp dword [ebp - 0x14d0], 0
jne 0x407239
push esi
and esi, 0x3922
xor esi, 0x4879
call 0x407215
add byte [edi + 0x36], cl
xor ecx, dword [edx + edi + 0x36]
inc eax
inc eax
inc esp
add esp, 4
sub esi, 0x4526
pop esi
push ecx
push esi
add esp, 4
and ecx, 0xb952
pop ecx
mov eax, dword [ebp - 0x4d0]
mov dword [ebp - 0xa5c], eax
jmp 0x40727a
jmp 0x406f87
push ecx
push edx
add esp, 4
sub ecx, 0x1754
pop ecx
push edi
add edi, 0x3b5f
add edi, 0xe225
or edi, 0x18460
sub edi, 0xf2b4
pop edi
Function at 0x407ab4
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop ebx
movzx eax, word [ebp - 0x104]
test eax, eax
jne 0x407adb
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
sub ecx, edx
mov dword [ebp - 0x14e4], ecx
jmp 0x407b3e
movzx eax, word [ebp - 0x1fc]
movzx ecx, word [ebp - 0x104]
cmp eax, ecx
je 0x4079fa
movzx edx, word [ebp - 0x1fc]
xor edx, 0x20
movzx eax, word [ebp - 0x104]
cmp edx, eax
je 0x4079fa
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
cmp ecx, edx
jge 0x407b28
mov dword [ebp - 0x14e0], 0xffffffff
jmp 0x407b32
mov dword [ebp - 0x14e0], 1
mov eax, dword [ebp - 0x14e0]
mov dword [ebp - 0x14e4], eax
cmp dword [ebp - 0x14e4], 0
jne 0x407b87
push eax
and eax, 0x16c48
sub eax, 0x13a99
xor eax, 0x150b8
pop eax
push edi
call 0x407b69
add byte [esi + 0x45], cl
dec esi
cmp ecx, dword [edx + 0x34]
inc ecx
add esp, 4
pop edi
push eax
push edx
add esp, 4
xor eax, 0x763c
pop eax
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x6ec], ecx
jmp 0x407bef
push ecx
call 0x407b96
add byte [edi + 0x48], al
cmp eax, 0x4f4c4b34
inc edx
add esp, 4
jmp 0x407ba2
pop ecx
push esi
or esi, 0x9982
pop esi
push edx
add edx, 0x1015a
add edx, 0x17dfd
pop edx
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx]
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
cmp ecx, dword [ebp - 0xc2c]
je 0x407be5
mov edx, dword [ebp - 0x4d8]
cmp dword [edx + 0x30], 0
jne 0x40799b
mov dword [ebp - 0x6ec], 0

Function at 0x407b69
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop ebx
movzx eax, word [ebp - 0x104]
test eax, eax
jne 0x407adb
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
sub ecx, edx
mov dword [ebp - 0x14e4], ecx
jmp 0x407b3e
movzx eax, word [ebp - 0x1fc]
movzx ecx, word [ebp - 0x104]
cmp eax, ecx
je 0x4079fa
movzx edx, word [ebp - 0x1fc]
xor edx, 0x20
movzx eax, word [ebp - 0x104]
cmp edx, eax
je 0x4079fa
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
cmp ecx, edx
jge 0x407b28
mov dword [ebp - 0x14e0], 0xffffffff
jmp 0x407b32
mov dword [ebp - 0x14e0], 1
mov eax, dword [ebp - 0x14e0]
mov dword [ebp - 0x14e4], eax
cmp dword [ebp - 0x14e4], 0
jne 0x407b87
push eax
and eax, 0x16c48
sub eax, 0x13a99
xor eax, 0x150b8
pop eax
push edi
call 0x407b69
add byte [esi + 0x45], cl
dec esi
cmp ecx, dword [edx + 0x34]
inc ecx
add esp, 4
pop edi
push eax
push edx
add esp, 4
xor eax, 0x763c
pop eax
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x6ec], ecx
jmp 0x407bef
push ecx
call 0x407b96
add byte [edi + 0x48], al
cmp eax, 0x4f4c4b34
inc edx
add esp, 4
jmp 0x407ba2
pop ecx
push esi
or esi, 0x9982
pop esi
push edx
add edx, 0x1015a
add edx, 0x17dfd
pop edx
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx]
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
cmp ecx, dword [ebp - 0xc2c]
je 0x407be5
mov edx, dword [ebp - 0x4d8]
cmp dword [edx + 0x30], 0
jne 0x40799b
mov dword [ebp - 0x6ec], 0
Function at 0x407b96
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop ebx
movzx eax, word [ebp - 0x104]
test eax, eax
jne 0x407adb
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
sub ecx, edx
mov dword [ebp - 0x14e4], ecx
jmp 0x407b3e
movzx eax, word [ebp - 0x1fc]
movzx ecx, word [ebp - 0x104]
cmp eax, ecx
je 0x4079fa
movzx edx, word [ebp - 0x1fc]
xor edx, 0x20
movzx eax, word [ebp - 0x104]
cmp edx, eax
je 0x4079fa
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
cmp ecx, edx
jge 0x407b28
mov dword [ebp - 0x14e0], 0xffffffff
jmp 0x407b32
mov dword [ebp - 0x14e0], 1
mov eax, dword [ebp - 0x14e0]
mov dword [ebp - 0x14e4], eax
cmp dword [ebp - 0x14e4], 0
jne 0x407b87
push eax
and eax, 0x16c48
sub eax, 0x13a99
xor eax, 0x150b8
pop eax
push edi
call 0x407b69
add byte [esi + 0x45], cl
dec esi
cmp ecx, dword [edx + 0x34]
inc ecx
add esp, 4
pop edi
push eax
push edx
add esp, 4
xor eax, 0x763c
pop eax
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x6ec], ecx
jmp 0x407bef
push ecx
call 0x407b96
add byte [edi + 0x48], al
cmp eax, 0x4f4c4b34
inc edx
add esp, 4
jmp 0x407ba2
pop ecx
push esi
or esi, 0x9982
pop esi
push edx
add edx, 0x1015a
add edx, 0x17dfd
pop edx
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx]
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
cmp ecx, dword [ebp - 0xc2c]
je 0x407be5
mov edx, dword [ebp - 0x4d8]
cmp dword [edx + 0x30], 0
jne 0x40799b
mov dword [ebp - 0x6ec], 0
Function at 0x408046
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop edx
mov ecx, dword [ebp - 0x18b0]
mov dword [ebp - 0x18b4], ecx
lea edx, [ebp - 0x1628]
push edx
call dword [ebp - 0x18b4]
test eax, eax
jne 0x4080a8
push eax
sub eax, 0x10779
sub eax, 0x16f52
jmp 0x40807c
pop eax
push eax
xor eax, 0x15ab9
add eax, 0xb65b
jmp 0x408090
pop eax
push eax
sub eax, 0x101de
pop eax
mov dword [ebp - 0x738], 0
jmp 0x408792
Function at 0x3503bf2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x350a846]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.03502b49
and dword [ebp - 0x14], 0
cmp dword [0x350b972], 0
mov dword [ebp - 0x18], eax
jne 0x3503ca5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x3503d4d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x3503d4d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x350b972], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x350b976], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x350b97a], eax
call edi
push eax
call esi
mov dword [0x350b982], eax
test eax, eax
je 0x3503ca5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x350b97e], eax
mov eax, dword [0x350b97e]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x3503cfe
cmp dword [0x350b982], ecx
je 0x3503cfe
push eax
call esi
push dword [0x350b982]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x3503cfe
test ebx, ebx
je 0x3503cfe
call edi
test eax, eax
je 0x3503cf5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x3503cf5
test byte [ebp - 8], 1
jne 0x3503cfe
or dword [ebp + 0x10], 0x200000
jmp 0x3503d31
mov eax, dword [0x350b976]
cmp eax, dword [ebp - 0x18]
je 0x3503d31
push eax
call esi
test eax, eax
je 0x3503d31
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x3503d31
mov eax, dword [0x350b97a]
cmp eax, dword [ebp - 0x18]
je 0x3503d31
push eax
call esi
test eax, eax
je 0x3503d31
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x350b972]
call esi
test eax, eax
je 0x3503d4d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x3503d4f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.03503f5d
leave
ret

Function at 0x3503f5d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x350a846]
jne 0x3503f67
repz ret
jmp fcn.035051cd

Function at 0x10054ea0
Capabilities:
Encode data using xor

Disassembly:
sbb dh, byte [ebx - 0x50]
or al, 0x4d
imul dword [ebx]
sbb dword [edx + 0x68115d87], edi
mov edx, 0x68115d87
and ebp, edi
cmp al, 0xaa
jp 0x10054e78
xchg ecx, eax
push cs
and word [ecx], dx
mov ebp, 0xde0321e0
out 0xfc, al
adc byte [edi - 0x1b80f677], dh
or byte [esp + eax - 0x3d], cl
pop edi
scasb al, byte es:[edi]
mov al, byte [0xf2cb8c68]
mov ebx, cs
bnd jle 0x10054e9b
Function at 0x407164
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409b58
test esi, esi
jne 0x40719a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409ce0
jmp 0x4071b8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004070a8
mov edi, eax
test esi, esi
je 0x4071b8
cmp dword [ebx], 0
je 0x4071b8
dec esi
jmp 0x4071a1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408770
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408bfc
mov byte [esp], al
cmp byte [esp], 0
jne 0x4088f9
test edi, edi
je 0x4088f9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408839
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408814
cmp edi, 0xffffffff
je 0x4087d5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4087d5
mov byte [esp], 0
jmp 0x4088f9
cmp dword [esi], 1
jg 0x408814
cmp dword [esi], 0
jne 0x408806
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408806
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4088f9
lea eax, [esp + 0xc]
call fcn.0040842c
dec ebp
test ebp, ebp
jg 0x4087ba
cmp edi, 0xffffffff
je 0x408839
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408837
mov byte [esp], 0
jmp 0x4088f9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40877e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408839
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408968
mov edx, eax
mov ebx, dword [0x4d98f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40889d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40889b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40889d
xor edi, edi
cmp byte [esp], 0
je 0x4088c3
mov ebx, dword [esi]
test bl, 1
jne 0x4088d9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4088a3
mov byte [esp + 1], 1
jmp 0x4088d9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4088c3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408850
cmp byte [esp], 0
je 0x4088f9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40953c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4dbb98
cmp dword [ebp + 0xc], 2
jl 0x409550
mov ebx, 0x4dbbc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409588
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4050cc
mov dword [0x4d901c], eax
mov eax, 0x4050d4
mov dword [0x4d9020], eax
mov eax, ebx
call fcn.00409420
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x4095bd
cmp al, 3
jge 0x4095bd
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4095ce
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4095d9
call dword [ecx + eax*4]
cmp dword [0x4d9040], 0
jne 0x4095ef
mov byte [0x4d9048], 1
fnstcw word [0x4d5024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409888
call fcn.004094d0
ret 4

Function at 0x4097f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d9058], 0
je 0x409857
cmp word [0x4d9344], 0xd7b2
jne 0x409819
cmp dword [0x4d934c], 0
jbe 0x409819
mov eax, 0x4d9340
call dword [0x4d935c]
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
mov eax, 0x409884
call fcn.0040a2dc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d502e], 0
jne 0x409873
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409a18
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4d5030], 0
je 0x409a43
mov edx, edi
mov eax, esi
call dword [0x4d5030]
mov ebx, eax
jmp 0x409a54
mov eax, 8
call fcn.00406e04
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d9059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4099e0
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409a84
mov eax, ebx
call fcn.00406e20
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c4e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40c645
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409b58
cmp si, word [0x4d5a00]
jb 0x40c578
cmp si, word [0x4d5c00]
ja 0x40c578
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c578
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d5a00]
jae 0x40c552
mov edi, ebx
dec edi
jmp 0x40c573
cmp si, word [ebx*8 + 0x4d5a00]
jbe 0x40c562
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c573
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d5a04]
call fcn.0040c400
jmp 0x40c578
cmp edi, dword [ebp - 8]
jae 0x40c53c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c627
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c627
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a67c
push dword [ebp - 0x160]
push 0x40c660
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a67c
push dword [ebp - 0x164]
push 0x40c670
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a67c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a8b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c64c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409bb8
ret
Function at 0x40c7f8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c8fc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4dbc10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4dbc28]
jne 0x40c844
mov eax, esi
mov edx, 0x4dbc2a
mov ecx, 0x55
call fcn.0040a67c
push 0x4dbc10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c8e6
push 0x4dbc10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409b58
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c8b3
cmp byte [0x4dbc0c], 0
je 0x40c878
mov edx, esi
mov eax, ebx
call fcn.0040c6dc
jmp 0x40c8b3
mov edx, esi
mov eax, ebx
call fcn.0040c4e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c8b3
cmp dword [esi], 0
je 0x40c89c
mov eax, esi
mov edx, 0x40c914
call fcn.0040a7d4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c4e0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a7d4
push 0x4dbc10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4dbc28], bx
mov eax, dword [esi]
call fcn.0040a5d8
mov ecx, eax
mov eax, 0x4dbc2a
mov edx, 0xaa
call fcn.0040c360
push 0x4dbc10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c903
lea eax, [ebp - 4]
call fcn.00409b58
ret
Function at 0x40cb2c
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.00409c3c
xor eax, eax
push ebp
push 0x40cd51
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cb6c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cb86
mov eax, dword [ebp - 4]
call fcn.0040a5d8
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c360
cmp word [ebp - 0x21a], 0
je 0x40cd3b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cdd0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ce04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cd3b
xor eax, eax
push ebp
push 0x40cd34
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c93c
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 0x40ccc4
mov eax, dword [ebp - 0x10]
call fcn.00406e04
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.0040a640
jmp 0x40cd0f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40ce44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cd0f
mov eax, dword [ebp - 0x10]
call fcn.00406e04
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40ce44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a640
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd3b
cmp dword [ebp - 8], 0
je 0x40cd2a
mov eax, dword [ebp - 8]
call fcn.00406e20
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 0x40cd58
lea eax, [ebp - 4]
call fcn.00409b58
ret
Function at 0x40d040
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409c3c
xor eax, eax
push ebp
push 0x40d100
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a67c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a82c
mov eax, dword [ebx]
call fcn.0040cf08
test al, al
jne 0x40d0dd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a67c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a82c
mov eax, dword [ebx]
call fcn.0040cf08
test al, al
jne 0x40d0dd
mov eax, ebx
call fcn.00409b58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d107
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409bb8
lea eax, [ebp - 4]
call fcn.00409b58
ret

Function at 0x40ed58
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