joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d79c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x49d7a5
push ecx
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49d963
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.004a7f30
mov eax, dword [ebp - 0x24]
call fcn.0049cfb8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x1c]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004a7d4c
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
call fcn.004a7f30
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x49d817
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
shr eax, 1
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
inc edx
mov eax, dword [ebp - 0xc]
call fcn.004a7d4c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
call fcn.004a7f30
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 0x3c
call fcn.004a4a64
mov eax, dword [ebp - 4]
mov dword [eax], 0x3c
mov eax, 0x49d974
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x14]
call fcn.004a7e3c
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x18]
call fcn.004a7e3c
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.004a7d44
jne 0x49d89b
lea eax, [ebp - 0x30]
call sym.a1runscanner.exe__Processutils_GetCurrentDir_qqrv
mov eax, dword [ebp - 0x30]
call fcn.004a7e3c
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
jmp 0x49d8a9
mov eax, dword [ebp + 8]
call fcn.004a7c30
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [0x7b7928]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x4140
call sub.KERNEL32.DLL_GetCurrentProcessId
lea edx, [ebp - 0x38]
call fcn.0049ce84
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x49d98c
call fcn.004a80a4
mov eax, dword [ebp - 0x34]
call fcn.004a7e3c
push eax
push 0
push 0
call fcn.004b18d4
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 4]
push eax
call fcn.0078de9a
test eax, eax
je 0x49d911
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x49d911
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x49d919
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x10], eax
mov edx, 0x49d9b0
mov eax, dword [ebp - 0x10]
call sym.a1runscanner.exe__Processutils_LogError_qqrui20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d96a
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.004a7064
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004a70c4
lea eax, [ebp - 0x24]
call fcn.004a7004
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a7064
ret
Function at 0x49d9d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
call sym.a1runscanner.exe__Processutils_IsElevated_qqrv
test al, al
je 0x49d9fb
push 0x49da70
call sub.KERNEL32.DLL_OutputDebugStringW
mov dword [ebp - 0x10], 0x2e4
jmp 0x49da67
mov eax, dword [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 4]
call sym.a1runscanner.exe__Processutils_RunElevated_qqrr18_SHELLEXECUTEINFOWruix17System_WideStringt3
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x49da67
cmp byte [ebp - 5], 0
jne 0x49da40
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
mov eax, dword [0x7b7920]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
jmp 0x49da4f
mov edx, 0x49db54
mov eax, 1
call sym.a1runscanner.exe__Processutils_LogError_qqrui20System_UnicodeString
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x18], 0
je 0x49da67
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4a3c5c
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 0x4a3c9e
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 0x4a3cbe
lea eax, [esp + 0x212]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.004a7ef4
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4a3eb4
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.004a7004
test esi, esi
jne 0x4a3eea
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.004a718c
jmp 0x4a3f08
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004a3df8
mov edi, eax
test esi, esi
je 0x4a3f08
cmp dword [ebx], 0
je 0x4a3f08
dec esi
jmp 0x4a3ef1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4a5d28
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.004a61e8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4a5eb1
test edi, edi
je 0x4a5eb1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4a5df1
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4a5dcc
cmp edi, 0xffffffff
je 0x4a5d8d
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4a5d8d
mov byte [esp], 0
jmp 0x4a5eb1
cmp dword [esi], 1
jg 0x4a5dcc
cmp dword [esi], 0
jne 0x4a5dbe
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4a5dbe
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4a5eb1
lea eax, [esp + 0xc]
call fcn.004a59e4
dec ebp
test ebp, ebp
jg 0x4a5d72
cmp edi, 0xffffffff
je 0x4a5df1
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4a5def
mov byte [esp], 0
jmp 0x4a5eb1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4a5d36
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4a5df1
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004a5f2c
mov edx, eax
mov ebx, dword [0x7ba58c]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4a5e55
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4a5e53
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4a5e55
xor edi, edi
cmp byte [esp], 0
je 0x4a5e7b
mov ebx, dword [esi]
test bl, 1
jne 0x4a5e91
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4a5e5b
mov byte [esp + 1], 1
jmp 0x4a5e91
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4a5e7b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4a5e08
cmp byte [esp], 0
je 0x4a5eb1
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 0x4a6c9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7b9cec], 0
je 0x4a6d03
cmp word [0x7b9fd8], 0xd7b2
jne 0x4a6cc5
cmp dword [0x7b9fe0], 0
jbe 0x4a6cc5
mov eax, 0x7b9fd4
call dword [0x7b9ff0]
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, 0x4a6d30
call fcn.004a79ac
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x7a3ce0], 0
jne 0x4a6d1f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4a6ec4
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 [0x7a3cac], 0
je 0x4a6eef
mov edx, edi
mov eax, esi
call dword [0x7a3cac]
mov ebx, eax
jmp 0x4a6f00
mov eax, 8
call fcn.004a3a3c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7b9ced], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4a6e8c
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 0x4a6f30
mov eax, ebx
call fcn.004a3a58
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4a9fe4
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 0x4aa149
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a7004
cmp si, word [0x7a46d4]
jb 0x4aa07c
cmp si, word [0x7a48d4]
ja 0x4aa07c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4aa07c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x7a46d4]
jae 0x4aa056
mov edi, ebx
dec edi
jmp 0x4aa077
cmp si, word [ebx*8 + 0x7a46d4]
jbe 0x4aa066
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4aa077
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x7a46d8]
call fcn.004a9f04
jmp 0x4aa07c
cmp edi, dword [ebp - 8]
jae 0x4aa040
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4aa12b
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4aa12b
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.004a7ef4
push dword [ebp - 0x160]
push 0x4aa164
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004a7ef4
push dword [ebp - 0x164]
push 0x4aa174
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004a7ef4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004a812c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa150
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004a7064
ret
Function at 0x4aa2fc
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 0x4aa400
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7bc8ac
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x7bc8c4]
jne 0x4aa348
mov eax, esi
mov edx, 0x7bc8c6
mov ecx, 0x55
call fcn.004a7ef4
push 0x7bc8ac
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x4aa3ea
push 0x7bc8ac
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.004a7004
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4aa3b7
cmp byte [0x7bc8a8], 0
je 0x4aa37c
mov edx, esi
mov eax, ebx
call fcn.004aa1e0
jmp 0x4aa3b7
mov edx, esi
mov eax, ebx
call fcn.004a9fe4
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4aa3b7
cmp dword [esi], 0
je 0x4aa3a0
mov eax, esi
mov edx, 0x4aa418
call fcn.004a804c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004a9fe4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004a804c
push 0x7bc8ac
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x7bc8c4], bx
mov eax, dword [esi]
call fcn.004a7e3c
mov ecx, eax
mov eax, 0x7bc8c6
mov edx, 0xaa
call fcn.004a9e64
push 0x7bc8ac
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa407
lea eax, [ebp - 4]
call fcn.004a7004
ret
Function at 0x4aa630
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.004a70e8
xor eax, eax
push ebp
push 0x4aa855
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4aa670
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x4aa68a
mov eax, dword [ebp - 4]
call fcn.004a7e3c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004a9e64
cmp word [ebp - 0x21a], 0
je 0x4aa83f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4aa864
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4aa759
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4aa864
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4aa759
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4aa8a0
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4aa759
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4aa8a0
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4aa759
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4aa8d4
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4aa759
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4aa908
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x4aa83f
xor eax, eax
push ebp
push 0x4aa838
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004aa440
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 0x4aa7c8
mov eax, dword [ebp - 0x10]
call fcn.004a3a3c
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.004a7ea0
jmp 0x4aa813
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4aa948
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4aa813
mov eax, dword [ebp - 0x10]
call fcn.004a3a3c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4aa948
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004a7ea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa83f
cmp dword [ebp - 8], 0
je 0x4aa82e
mov eax, dword [ebp - 8]
call fcn.004a3a58
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 0x4aa85c
lea eax, [ebp - 4]
call fcn.004a7004
ret
Function at 0x4aab5c
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.004a70e8
xor eax, eax
push ebp
push 0x4aac1c
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.004a7ef4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004a80a4
mov eax, dword [ebx]
call fcn.004aaa0c
test al, al
jne 0x4aabf9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004a7ef4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004a80a4
mov eax, dword [ebx]
call fcn.004aaa0c
test al, al
jne 0x4aabf9
mov eax, ebx
call fcn.004a7004
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aac23
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a7064
lea eax, [ebp - 4]
call fcn.004a7004
ret

Function at 0x4ac9bc
Capabilities:
Get system information on windows

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

Function at 0x4ad9c8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x4ada9f
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x7ba628], 1
jae 0x4ada91
call fcn.004a4fd8
call fcn.004a37f4
push 0x400
call sub.KERNEL32.DLL_SetThreadLocale
call fcn.004a9d68
mov byte [0x7a3ccc], 2
mov dword [0x7b9ca8], 0x78d9f0
mov dword [0x7b9cac], 0x78da20
mov byte [0x7b9cee], 2
call fcn.004ac9bc
mov dword [0x7b9cf4], eax
mov dword [0x7b9c94], 0x4a8f60
call fcn.004a5014
call fcn.004a5030
mov word [0x7b9cfc], 0xd7b0
mov word [0x7b9fd8], 0xd7b0
mov word [0x7ba2b4], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x7b9ce0], eax
call fcn.004a1e7c
mov dword [0x7b9cdc], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x7ba610], eax
mov dword [0x7ba614], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x7b9cd4], eax
call fcn.004ac9d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4adaa6
ret
Function at 0x4bf700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4bf759
test eax, edx
je 0x4bf75c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4bf717
movzx eax, word [eax]
sub eax, ecx
jmp 0x4bf73e
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4bf73f
add ecx, 4
js 0x4bf72f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4bf73c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4bf73e
xor eax, eax
ret
test eax, eax
je 0x4bf768
test edx, edx
jne 0x4bf708
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4c0da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4c0dcd
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4c0ea8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.004a7e3c
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4c0f12
test ah, 4
je 0x4c0f0b
test bl, bl
jne 0x4c0ed0
mov al, 1
jmp 0x4c0f39
test al, 0x10
je 0x4c0ed8
xor eax, eax
jmp 0x4c0f39
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4c0efc
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x4c0f39
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4c0f39
test al, 0x10
sete al
jmp 0x4c0f39
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4c0f33
cmp ebx, 3
je 0x4c0f33
cmp ebx, 0x7b
je 0x4c0f33
mov eax, esi
call fcn.004c0e68
test al, al
jne 0x4c0f37
xor eax, eax
jmp 0x4c0f39
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4c0f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.004a7e3c
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4c0fe7
test esi, 0x400
jne 0x4c0f7c
test esi, 0x10
setne bl
jmp 0x4c1017
cmp byte [esp], 0
je 0x4c0fb0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4c1017
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x4c1017
test esi, 0x10
je 0x4c0fbc
mov bl, 1
jmp 0x4c1017
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4c0fe3
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x4c1017
mov bl, 1
jmp 0x4c1017
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x4c1011
cmp eax, 3
je 0x4c1011
cmp eax, 0xa1
je 0x4c1011
cmp eax, 0x7b
je 0x4c1011
cmp eax, 0x35
je 0x4c1011
cmp eax, 0x15
je 0x4c1011
cmp eax, 0x43
jne 0x4c1015
xor ebx, ebx
jmp 0x4c1017
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c5acc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x4c5b05
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004a718c
jmp 0x4c5b0e
mov eax, ebx
mov edx, esi
call fcn.004a73e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c5b18
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 0x4c5b3a
movzx eax, word [esp]
jmp 0x4c5b3c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret