joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54448c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
xor edx, edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
xor eax, eax
push ebp
push 0x544548
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x140]
push eax
mov eax, dword [0x5628f0]
push dword [eax]
push 0x54455c
push 0x544568
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.00404a90
mov eax, dword [ebp - 0x144]
call fcn.00404bd0
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x54452a
lea eax, [ebp - 0x148]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404980
mov eax, dword [ebp - 0x148]
call fcn.00409be4
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x5444f2
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54454f
lea eax, [ebp - 0x148]
mov edx, 2
call fcn.00404724
ret

Function at 0x544754
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push esp
push 7
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.0040a5a4
add esp, 0x10c
pop ebx
ret

Function at 0x54478c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push esp
push 5
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.0040a5a4
add esp, 0x10c
pop ebx
ret

Function at 0x54c2a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x54c38a
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.0040a5a4
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 4]
call fcn.0040e354
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x124], eax
mov byte [ebp - 0x120], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x11c], eax
mov byte [ebp - 0x118], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x110], 0xb
lea edx, [ebp - 0x124]
mov ecx, 2
mov eax, 0x54c3a0
call fcn.0040aabc
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 4]
call fcn.00404798
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, 0x54c3c4
call fcn.0040a118
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54c391
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00404724
lea eax, [ebp - 4]
call fcn.00404700
ret
Function at 0x54caa0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
xor eax, eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
xor eax, eax
push ebp
push 0x54cba9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x158], 0x80
push 0x111
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
lea eax, [ebp - 0x164]
mov edx, 0x54cbc0
call fcn.00404a1c
mov eax, dword [ebp - 0x164]
call fcn.00404bd0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x21c]
mov edx, dword [ebp - 0x160]
call fcn.0054c598
push 0x110
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
lea eax, [ebp - 0x168]
mov edx, 0x54cbc0
call fcn.00404a1c
mov eax, dword [ebp - 0x168]
call fcn.00404bd0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x218]
mov edx, dword [ebp - 0x160]
call fcn.0054c598
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x38c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54cbb0
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.00404724
ret

Function at 0x551490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x551501
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x5623f0]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x5514eb
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00551480
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x54ea3c]
call fcn.00552350
mov dword [0x562458], eax
mov eax, dword [ebp - 4]
call fcn.0055130c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x551508
lea eax, [ebp - 8]
call fcn.004064e4
ret

Function at 0x5515a0
Capabilities:
Get file system object information

Disassembly:
push esi
add esp, 0xfffffea0
mov esi, 0x4008
test cl, cl
je 0x5515b3
or esi, 2
test dl, dl
je 0x5515bc
or esi, 0
jmp 0x5515bf
or esi, 1
push esi
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop esi
ret
Function at 0x5521dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404bc0
xor eax, eax
push ebp
push 0x552334
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov edx, dword [ebx]
mov eax, dword [0x54e824]
call fcn.00416a84
test eax, eax
jl 0x552243
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00551584
and eax, 0x7f
mov eax, dword [eax*4 + 0x5623f0]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov esi, eax
jmp 0x5522a6
mov eax, dword [ebx]
call fcn.004049d0
test eax, eax
jle 0x5522a6
mov eax, dword [ebx]
call fcn.004049d0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x3a
jne 0x55226a
mov eax, ebx
mov edx, 0x55234c
call fcn.004049d8
mov eax, dword [ebx]
call fcn.004049d0
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
call fcn.004057e8
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x18]
call fcn.00551480
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x5522f1
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0x5624d0]
call fcn.004069a8
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
pop eax
call fcn.0040aabc
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404754
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x40818c]
call fcn.0040d640
call fcn.00404070
mov eax, dword [ebp - 8]
call fcn.00552154
mov ebx, eax
test edi, edi
je 0x552306
mov eax, edi
call fcn.00403890
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55233b
lea eax, [ebp - 0x1c]
call fcn.00404700
lea eax, [ebp - 0x18]
call fcn.004064e4
lea eax, [ebp - 0x14]
call fcn.00404700
lea eax, [ebp - 4]
call fcn.00404700
ret

Function at 0x552f18
Capabilities:
Create process on windows

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x3c
call fcn.00403284
mov dword [esp], 0x3c
mov eax, dword [0x56281c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xc
mov eax, dword [ebx + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 5
push esp
call sub.shell32.dll_ShellExecuteExA
add esp, 0x3c
pop ebx
ret
Function at 0x553a34
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x553b9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x562a1c]
mov eax, dword [eax]
mov ax, word [eax + 0x44]
mov word [ebp - 0x16], ax
mov eax, dword [0x562a1c]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0047fba8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.00447460
xor edx, edx
push ebp
push 0x553b81
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x553af1
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
call fcn.004064e4
push eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x344]
call fcn.00551b9c
push eax
mov eax, dword [0x56281c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x553ae7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.0040411c
jmp 0x553b88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x553b2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.0044702c
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.005538c4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x553b09
push 0
mov edx, 0x55385c
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00446be4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x553b88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.004474ac
mov eax, dword [0x562a1c]
mov eax, dword [eax]
mov dx, word [ebp - 0x16]
call fcn.0047fba8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x553ba5
lea eax, [ebp - 0x10]
call fcn.004064e4
ret
Function at 0x4070b4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4070f6
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407116
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040bdcc
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x407310
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.0040b19c
test esi, esi
jne 0x407346
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.0040b324
jmp 0x407364
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407254
mov edi, eax
test esi, esi
je 0x407364
cmp dword [ebx], 0
je 0x407364
dec esi
jmp 0x40734d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x409d6c
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.0040a22c
mov byte [esp], al
cmp byte [esp], 0
jne 0x409ef5
test edi, edi
je 0x409ef5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409e35
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409e10
cmp edi, 0xffffffff
je 0x409dd1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409dd1
mov byte [esp], 0
jmp 0x409ef5
cmp dword [esi], 1
jg 0x409e10
cmp dword [esi], 0
jne 0x409e02
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x409e02
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409ef5
lea eax, [esp + 0xc]
call fcn.00409a28
dec ebp
test ebp, ebp
jg 0x409db6
cmp edi, 0xffffffff
je 0x409e35
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409e33
mov byte [esp], 0
jmp 0x409ef5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409d7a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409e35
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409f70
mov edx, eax
mov ebx, dword [0x64c8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409e99
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409e97
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409e99
xor edi, edi
cmp byte [esp], 0
je 0x409ebf
mov ebx, dword [esi]
test bl, 1
jne 0x409ed5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409e9f
mov byte [esp + 1], 1
jmp 0x409ed5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409ebf
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409e4c
cmp byte [esp], 0
je 0x409ef5
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 0x40ab80
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x64eb9c
cmp dword [ebp + 0xc], 2
jl 0x40ab94
mov ebx, 0x64ebcc
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 0x40abcc
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x405190
mov dword [0x64c01c], eax
mov eax, 0x405198
mov dword [0x64c020], eax
mov eax, ebx
call fcn.0040aa64
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 0x40ac01
cmp al, 3
jge 0x40ac01
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40ac12
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x40ac1d
call dword [ecx + eax*4]
cmp dword [0x64c040], 0
jne 0x40ac33
mov byte [0x64c048], 1
fnstcw word [0x646028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.0040aecc
call fcn.0040ab14
ret 4

Function at 0x40ae34
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x64c05c], 0
je 0x40ae9b
cmp word [0x64c348], 0xd7b2
jne 0x40ae5d
cmp dword [0x64c350], 0
jbe 0x40ae5d
mov eax, 0x64c344
call dword [0x64c360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x6469f1
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, 0x40aec8
call fcn.0040ba68
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x646032], 0
jne 0x40aeb7
push 0
push 0x6469eb
push 0x6469f1
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40b05c
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 [0x646034], 0
je 0x40b087
mov edx, edi
mov eax, esi
call dword [0x646034]
mov ebx, eax
jmp 0x40b098
mov eax, 8
call fcn.00406f04
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x64c05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40b024
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 0x40b0c8
mov eax, ebx
call fcn.00406f20
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40e89c
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 0x40ea01
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b19c
cmp si, word [0x646a28]
jb 0x40e934
cmp si, word [0x646c28]
ja 0x40e934
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e934
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x646a28]
jae 0x40e90e
mov edi, ebx
dec edi
jmp 0x40e92f
cmp si, word [ebx*8 + 0x646a28]
jbe 0x40e91e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e92f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x646a2c]
call fcn.0040e7bc
jmp 0x40e934
cmp edi, dword [ebp - 8]
jae 0x40e8f8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e9e3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e9e3
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.0040bdcc
push dword [ebp - 0x160]
push 0x40ea1c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040bdcc
push dword [ebp - 0x164]
push 0x40ea2c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040bdcc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040c004
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea08
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040b1fc
ret
Function at 0x40ebb4
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 0x40ecb8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x64ec14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x64ec2c]
jne 0x40ec00
mov eax, esi
mov edx, 0x64ec2e
mov ecx, 0x55
call fcn.0040bdcc
push 0x64ec14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40eca2
push 0x64ec14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040b19c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ec6f
cmp byte [0x64ec10], 0
je 0x40ec34
mov edx, esi
mov eax, ebx
call fcn.0040ea98
jmp 0x40ec6f
mov edx, esi
mov eax, ebx
call fcn.0040e89c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ec6f
cmp dword [esi], 0
je 0x40ec58
mov eax, esi
mov edx, 0x40ecd0
call fcn.0040bf24
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e89c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040bf24
push 0x64ec14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x64ec2c], bx
mov eax, dword [esi]
call fcn.0040bd14
mov ecx, eax
mov eax, 0x64ec2e
mov edx, 0xaa
call fcn.0040e71c
push 0x64ec14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ecbf
lea eax, [ebp - 4]
call fcn.0040b19c
ret
Function at 0x40eee8
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.0040b280
xor eax, eax
push ebp
push 0x40f10d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ef28
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ef42
mov eax, dword [ebp - 4]
call fcn.0040bd14
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040e71c
cmp word [ebp - 0x21a], 0
je 0x40f0f7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40f11c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f011
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40f11c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f011
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40f158
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f011
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40f158
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f011
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40f18c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f011
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40f1c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40f0f7
xor eax, eax
push ebp
push 0x40f0f0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ecf8
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 0x40f080
mov eax, dword [ebp - 0x10]
call fcn.00406f04
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.0040bd78
jmp 0x40f0cb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40f200
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40f0cb
mov eax, dword [ebp - 0x10]
call fcn.00406f04
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40f200
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040bd78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f0f7
cmp dword [ebp - 8], 0
je 0x40f0e6
mov eax, dword [ebp - 8]
call fcn.00406f20
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 0x40f114
lea eax, [ebp - 4]
call fcn.0040b19c
ret
Function at 0x40f414
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.0040b280
xor eax, eax
push ebp
push 0x40f4d4
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.0040bdcc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040bf7c
mov eax, dword [ebx]
call fcn.0040f2c4
test al, al
jne 0x40f4b1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040bdcc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040bf7c
mov eax, dword [ebx]
call fcn.0040f2c4
test al, al
jne 0x40f4b1
mov eax, ebx
call fcn.0040b19c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f4db
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b1fc
lea eax, [ebp - 4]
call fcn.0040b19c
ret

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