joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404db8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
call fcn.004029fc
mov ebx, eax
call fcn.004029fc
mov dword [0x407024], eax
call fcn.004029fc
mov dword [0x407028], eax
push 0x404ef8
push ebx
call sub.Kernel32.dll_lstrcatW
push 0x404f00
mov eax, dword [0x407024]
push eax
call sub.Kernel32.dll_lstrcatW
push 0x404f0c
mov eax, dword [0x407028]
push eax
call sub.Kernel32.dll_lstrcatW
mov eax, ebx
call fcn.00404d8c
test al, al
je 0x404e1b
mov edx, esp
mov eax, ebx
call fcn.00401f60
mov dword [0x407020], eax
jmp 0x404e3c
mov al, 0x2a
call fcn.004021a4
mov ecx, ebx
mov edx, 0x2a
call fcn.0040224c
mov edx, esp
mov eax, ebx
call fcn.00401f60
mov dword [0x407020], eax
push 0x40
push 0x3000
push 0x200
push 0
call sub.Kernel32.dll_VirtualAlloc_1
mov dword [0x407014], eax
push 0x40
push 0x3000
push 0x200
push 0
call sub.Kernel32.dll_VirtualAlloc_1
mov dword [0x407018], eax
push 0x40
push 0x3000
push 0x200
push 0
call sub.Kernel32.dll_VirtualAlloc_1
mov dword [0x40701c], eax
push 0x40
push 0x3000
push 0x200
push 0
call sub.Kernel32.dll_VirtualAlloc_1
mov dword [0x40702c], eax
push 0x40
push 0x3000
push 0x200
push 0
call sub.Kernel32.dll_VirtualAlloc_1
mov dword [0x407030], eax
push 0x404f18
mov eax, dword [0x407014]
push eax
call sub.Kernel32.dll_lstrcpyA
push 0x404f4c
mov eax, dword [0x407018]
push eax
call sub.Kernel32.dll_lstrcpyA
push 0x404f84
mov eax, dword [0x40701c]
push eax
call sub.Kernel32.dll_lstrcpyA
mov byte [0x407038], 0
mov byte [0x407039], 0
pop edx
pop ebx
ret

Function at 0x404fac
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebx
push esi
push 4
push 0x3000
push 0x208
push 0
call sub.Kernel32.dll_VirtualAlloc_1
mov esi, eax
push 0x208
push esi
call sub.Kernel32.dll_GetWindowsDirectoryA
test eax, eax
jbe 0x4050b0
push 4
push 0x3000
push 0x208
push 0
call sub.Kernel32.dll_VirtualAlloc_1
mov ebx, eax
push esi
push ebx
call sub.Kernel32.dll_lstrcpyA
push 0x4050c0
push ebx
call sub.Kernel32.dll_lstrcatA
push 4
push 0
push ebx
call sub.Kernel32.dll_MoveFileExA
push 0x4050cc
push ebx
call sub.Kernel32.dll_lstrcpyA
push esi
push ebx
call sub.Kernel32.dll_lstrcpyA
push 0x4050d0
push ebx
call sub.Kernel32.dll_lstrcatA
push 4
push 0
push ebx
call sub.Kernel32.dll_MoveFileExA
push 0x4050cc
push ebx
call sub.Kernel32.dll_lstrcpyA
push esi
push ebx
call sub.Kernel32.dll_lstrcpyA
push 0x4050dc
push ebx
call sub.Kernel32.dll_lstrcatA
push 4
push 0
push ebx
call sub.Kernel32.dll_MoveFileExA
push 0x4050cc
push ebx
call sub.Kernel32.dll_lstrcpyA
push esi
push ebx
call sub.Kernel32.dll_lstrcpyA
push 0x4050ec
push ebx
call sub.Kernel32.dll_lstrcatA
push 4
push 0
push ebx
call sub.Kernel32.dll_MoveFileExA
push 0x4050cc
push ebx
call sub.Kernel32.dll_lstrcpyA
push esi
push ebx
call sub.Kernel32.dll_lstrcpyA
push 0x4050fc
push ebx
call sub.Kernel32.dll_lstrcatA
push 4
push 0
push ebx
call sub.Kernel32.dll_MoveFileExA
push 0x8000
push 0
push ebx
call sub.Kernel32.dll_VirtualFree_1
push 0x8000
push 0
push esi
call sub.Kernel32.dll_VirtualFree_1
pop esi
pop ebx
ret
Function at 0x406688
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.00406b30
mov byte [esp], al
cmp byte [esp], 0
jne 0x406811
test edi, edi
je 0x406811
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406751
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40672c
cmp edi, 0xffffffff
je 0x4066ed
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4066ed
mov byte [esp], 0
jmp 0x406811
cmp dword [esi], 1
jg 0x40672c
cmp dword [esi], 0
jne 0x40671e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40671e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406811
lea eax, [esp + 0xc]
call fcn.00406368
dec ebp
test ebp, ebp
jg 0x4066d2
cmp edi, 0xffffffff
je 0x406751
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40674f
mov byte [esp], 0
jmp 0x406811
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x406696
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406751
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040688c
mov edx, eax
mov ebx, dword [0x4bd8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4067b5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4067b3
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4067b5
xor edi, edi
cmp byte [esp], 0
je 0x4067db
mov ebx, dword [esi]
test bl, 1
jne 0x4067f1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4067bb
mov byte [esp + 1], 1
jmp 0x4067f1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4067db
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406768
cmp byte [esp], 0
je 0x406811
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 0x4076b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4bd058], 0
je 0x40771f
cmp word [0x4bd344], 0xd7b2
jne 0x4076e1
cmp dword [0x4bd34c], 0
jbe 0x4076e1
mov eax, 0x4bd340
call dword [0x4bd35c]
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, 0x40774c
call fcn.00408240
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b9032], 0
jne 0x40773b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4078e0
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 [0x4b9034], 0
je 0x40790b
mov edx, edi
mov eax, esi
call dword [0x4b9034]
mov ebx, eax
jmp 0x40791c
mov eax, 8
call fcn.004053f0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4bd059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4078a8
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 0x40794c
mov eax, ebx
call fcn.0040540c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40a4cc
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 0x40a631
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407a20
cmp si, word [0x4b9a08]
jb 0x40a564
cmp si, word [0x4b9c08]
ja 0x40a564
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a564
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4b9a08]
jae 0x40a53e
mov edi, ebx
dec edi
jmp 0x40a55f
cmp si, word [ebx*8 + 0x4b9a08]
jbe 0x40a54e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a55f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4b9a0c]
call fcn.0040a3ec
jmp 0x40a564
cmp edi, dword [ebp - 8]
jae 0x40a528
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a613
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a613
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.0040858c
push dword [ebp - 0x160]
push 0x40a64c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040858c
push dword [ebp - 0x164]
push 0x40a65c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040858c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004087c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a638
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407a80
ret
Function at 0x40a7e4
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 0x40a8e8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4bfc10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4bfc28]
jne 0x40a830
mov eax, esi
mov edx, 0x4bfc2a
mov ecx, 0x55
call fcn.0040858c
push 0x4bfc10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a8d2
push 0x4bfc10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407a20
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a89f
cmp byte [0x4bfc0c], 0
je 0x40a864
mov edx, esi
mov eax, ebx
call fcn.0040a6c8
jmp 0x40a89f
mov edx, esi
mov eax, ebx
call fcn.0040a4cc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a89f
cmp dword [esi], 0
je 0x40a888
mov eax, esi
mov edx, 0x40a900
call fcn.004086e4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a4cc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004086e4
push 0x4bfc10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4bfc28], bx
mov eax, dword [esi]
call fcn.004084ec
mov ecx, eax
mov eax, 0x4bfc2a
mov edx, 0xaa
call fcn.0040a34c
push 0x4bfc10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a8ef
lea eax, [ebp - 4]
call fcn.00407a20
ret
Function at 0x41e080
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
test eax, eax
jle 0x41e0a2
movzx eax, word [esp]
jmp 0x41e0a4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41f0f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41f219
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041eefc
mov esi, eax
mov eax, dword [0x4bc6c0]
cmp byte [eax], 0
je 0x41f1c1
mov eax, dword [0x4bc524]
call fcn.00405820
call fcn.00405564
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41f0c4]
call fcn.00409c00
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41f234
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x41f1fd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4bc4f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c0634]
call fcn.00409ff0
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f220
lea eax, [ebp - 4]
mov edx, dword [0x41f0c4]
call fcn.00409d24
ret
Function at 0x422d18
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041a764
add esp, 0x208
pop ebx
ret

Function at 0x422d44
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041a764
add esp, 0x208
pop ebx
ret

Function at 0x422ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x422fd6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x422fc0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x422efd
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x422fc0
cmp dword [ebp - 0x14], 0
jne 0x422f12
mov eax, dword [ebp - 0xc]
call fcn.00407a20
mov bl, 1
jmp 0x422fc0
cmp dword [ebp - 0x14], 0x70000000
jb 0x422f20
call fcn.0041f258
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00407ba8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00407fa0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x422ec6
test eax, eax
jne 0x422fc0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x422f6e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x422fc0
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x422f76
dec esi
test esi, esi
je 0x422f85
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x422f75
cmp dword [ebp - 0x10], 7
jne 0x422f90
test esi, esi
je 0x422f90
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00408664
cmp dword [ebp - 0x10], 7
jne 0x422fb3
test esi, esi
je 0x422fb3
lea eax, [ebp - 4]
call fcn.00407fa0
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00407e00
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422fdd
lea eax, [ebp - 4]
call fcn.00407a20
ret

Function at 0x42459c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4c290c
mov eax, esi
mov edx, 8
test al, 1
je 0x4245b8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4245ba
shr eax, 1
dec edx
jne 0x4245ab
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4245a4
pop esi
ret
Function at 0x4245d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4c2908], 0
jne 0x4245fa
call fcn.0042459c
mov dword [esp], 0x4c2908
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x424624
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4c290c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x424600
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x429980
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00429934
test al, al
jne 0x4299a1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4299ed
xor eax, eax
push ebp
push 0x4299dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004084ec
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4299e4
lea eax, [ebp - 0xc]
call fcn.00429970
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469c68
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x469c70
mov eax, edx
pop esi
pop ebx
ret

Function at 0x49a180
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x49a1ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00499c44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49a1e7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b1814
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4b181c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4b190d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00422d70
mov edx, dword [ebp - 8]
mov ecx, 0x4b1928
xor eax, eax
call fcn.004b16f4
push 0
mov eax, dword [ebp - 4]
call fcn.004084ec
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4b18db
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4b1836
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov ax, 0x3d
call fcn.00429734
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00419e18
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.004232ec
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov ax, 0x81
call fcn.00429704
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x414db8]
call fcn.0041f264
call fcn.0040711c
jmp 0x4b1836
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00407e00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1914
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00407a80
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407a80
ret

Function at 0x4b193c
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
call fcn.0041ff2c
cmp eax, 2
jne 0x4b19a4
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4b195f
xor eax, eax
jmp 0x4b19b3
lea eax, [esp + 8]
push eax
push 0x4b19b8
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4b19a4
xor eax, eax
jmp 0x4b19b3
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x4b19e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4b1a3a
inc esi
xor edi, edi
cmp edi, 1
jne 0x4b1a06
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4b1a14
cmp edi, 1
jle 0x4b1a14
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00429980
test eax, eax
jne 0x4b1a3a
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4b1a3a
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4b1a3a
inc edi
dec esi
jne 0x4b19f6
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4b1a44
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4b1a68
mov eax, dword [ebp - 4]
jmp 0x4b1a6b
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x4b1a70
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4b1abd
xor ebx, ebx
jmp 0x4b1ab2
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00419768
test eax, eax
jne 0x4b1ab1
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4b1b68
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4b1a93
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4b1ac9
je 0x4b1ad2
jmp 0x4b1adb
call fcn.0042301c
mov esi, eax
jmp 0x4b1add
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4b1add
xor esi, esi
test si, si
je 0x4b1b68
xor ebx, ebx
jmp 0x4b1b03
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4b1b02
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4b1b68
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4b1aea
xor ebx, ebx
jmp 0x4b1b5d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x4b1b5c
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x4b1b51
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004b1a44
push eax
mov eax, esi
call fcn.004b1a44
pop edx
cmp edx, eax
jne 0x4b1b5c
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4b1b68
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4b1b12
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4