joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c2c4
Capabilities:
Capture microphone audio

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov dword [esp + 8], 0x20001
mov eax, dword [esi + 0x818]
mov dword [esp + 0xc], eax
mov word [esp + 0x16], 0x10
mov ecx, dword [0xb20588]
mov dword [ecx + 0x177c], 0x10
mov word [esp + 0x14], 4
shl eax, 2
mov dword [esp + 0x10], eax
mov word [esp + 0x18], 0
lea edi, [esi + 0x800]
sub esp, 8
lea eax, [esp + 0x10]
push 0x30000
push esi
push 0x49b65c
push eax
push dword [esi + 0x810]
push edi
call fcn.0081d87a
add esp, 8
test eax, eax
je 0x49c351
mov ecx, eax
call fcn.0049b55c
xor edx, edx
call fcn.0043947c
mov esi, 9
jmp 0x49c469
mov dword [esp], edi
lea ebp, [esi + 4]
xor ebx, ebx
xor edi, edi
nop word [eax + eax]
lea esi, [ebp - 4]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], 0
mov dword [ebp + 4], 0
mov dword [ebp], 0
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x81c]
add eax, ebx
sub esp, 4
push 0x800
push 0
push eax
call fcn.0080778b
add esp, 0x10
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x81c]
add eax, ebx
mov dword [ebp - 4], eax
mov dword [ebp], 0x800
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], 0
mov dword [ebp + 4], 0
sub esp, 4
push 0x20
push esi
push dword [ecx + 0x800]
call fcn.0081d880
add esp, 4
mov dword [esp + 4], eax
sub esp, 4
push 0x20
push esi
mov eax, dword [esp + 0x3c]
push dword [eax + 0x800]
call fcn.0081d85c
add esp, 4
mov esi, eax
add esi, dword [esp + 4]
jne 0x49c444
add ebp, 0x20
add ebx, 0x800
cmp edi, 0x3f
lea edi, [edi + 1]
jb 0x49c364
test esi, esi
je 0x49c467
sub esp, 0xc
mov eax, dword [esp + 0xc]
push dword [eax]
call fcn.0081d862
add esp, 0xc
mov eax, str.Errors_during_In_Buffers_prepare
xor edx, edx
call fcn.0043947c
jmp 0x49c469
xor esi, esi
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x49c474
Capabilities:
Capture microphone audio

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x821], 0
jne 0x49c4b1
mov ecx, dword [esp + 0x14]
shl ecx, 5
add ecx, eax
sub esp, 4
push 0x20
push ecx
push dword [eax + 0x800]
call fcn.0081d85c
add esp, 4
test eax, eax
je 0x49c4b1
mov eax, str.Errors_when_requeing_input_buffers...
xor edx, edx
call fcn.0043947c
add esp, 0xc
ret
Function at 0x4a174c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
sub esp, 8
lea eax, [ebp - 0x14]
push eax
push eax
call fcn.0081a78c
add esp, 0x10
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x38], 0x819a94
mov dword [ebp - 0x34], 0x4a1914
mov dword [ebp - 0x30], ebp
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x30], 0x4a18b6
lea eax, [ebp - 0x54]
call fcn.0081a4cd
test esi, esi
je 0x4a179d
mov eax, dword [esi - 4]
mov dword [ebp - 0x18], eax
jmp 0x4a17a4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x4c], 1
sub esp, 4
lea eax, [ebp - 0x68]
push 0x14
push 0
push eax
call fcn.0080778b
add esp, 0x10
mov dword [ebp - 0x4c], 2
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x74]
mov edx, dword [ebp - 0x14]
test edx, edx
mov ecx, 0xac8052
je 0x4a17e9
mov ecx, edx
mov dword [ebp - 0x4c], 3
sub esp, 0xc
lea esi, [ebp - 0x1c]
lea edx, [ebp - 0x68]
push edx
push esi
push dword [ebp - 0x18]
push ecx
push eax
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
test eax, eax
jne 0x4a187d
mov dword [ebp - 0x4c], 4
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x74]
jne 0x4a183e
mov dword [ebp - 0x4c], 5
push 1
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push eax
call sub.KERNEL32.DLL_GetOverlappedResult
jmp 0x4a187d
test eax, eax
je 0x4a187d
mov ecx, dword [ebp - 0x10]
cmp byte [ecx + 0xf], 0
jne 0x4a1860
mov dword [ebp - 0x4c], 6
mov eax, dword [ebp - 0x10]
call fcn.0056ca50
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x74]
mov dword [ebp - 0x4c], 7
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x74], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x4c], 8
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
sub esp, 0xc
lea eax, [ebp - 0x14]
push eax
call fcn.00413a98
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x54]
push eax
call fcn.0081a4ee
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4a8894
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 0x4a88d6
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 0x4a88f6
lea eax, [esp + 0x212]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.004ac4ac
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x4a8b4c
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.004ab6ec
test esi, esi
jne 0x4a8b82
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.004ab874
jmp 0x4a8ba0
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004a8a30
mov edi, eax
test esi, esi
je 0x4a8ba0
cmp dword [ebx], 0
je 0x4a8ba0
dec esi
jmp 0x4a8b89
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4aa410
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.004aa8d0
mov byte [esp], al
cmp byte [esp], 0
jne 0x4aa599
test edi, edi
je 0x4aa599
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4aa4d9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4aa4b4
cmp edi, 0xffffffff
je 0x4aa475
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4aa475
mov byte [esp], 0
jmp 0x4aa599
cmp dword [esi], 1
jg 0x4aa4b4
cmp dword [esi], 0
jne 0x4aa4a6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4aa4a6
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4aa599
lea eax, [esp + 0xc]
call fcn.004aa0cc
dec ebp
test ebp, ebp
jg 0x4aa45a
cmp edi, 0xffffffff
je 0x4aa4d9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4aa4d7
mov byte [esp], 0
jmp 0x4aa599
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4aa41e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4aa4d9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004aa614
mov edx, eax
mov ebx, dword [0xb74578]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4aa53d
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4aa53b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4aa53d
xor edi, edi
cmp byte [esp], 0
je 0x4aa563
mov ebx, dword [esi]
test bl, 1
jne 0x4aa579
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4aa543
mov byte [esp + 1], 1
jmp 0x4aa579
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4aa563
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4aa4f0
cmp byte [esp], 0
je 0x4aa599
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 0x4ab384
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0xb73cd8], 0
je 0x4ab3eb
cmp word [0xb73fc4], 0xd7b2
jne 0x4ab3ad
cmp dword [0xb73fcc], 0
jbe 0x4ab3ad
mov eax, 0xb73fc0
call dword [0xb73fdc]
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, 0x4ab418
call fcn.004ac08c
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0xac80ac], 0
jne 0x4ab407
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x4ab5ac
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 [0xac8078], 0
je 0x4ab5d7
mov edx, edi
mov eax, esi
call dword [0xac8078]
mov ebx, eax
jmp 0x4ab5e8
mov eax, 8
call fcn.004a8680
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0xb73cd9], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4ab574
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 0x4ab618
mov eax, ebx
call fcn.004a869c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4ae6e8
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 0x4ae84d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004ab6ec
cmp si, word [0xac8a7c]
jb 0x4ae780
cmp si, word [0xac8c7c]
ja 0x4ae780
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4ae780
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0xac8a7c]
jae 0x4ae75a
mov edi, ebx
dec edi
jmp 0x4ae77b
cmp si, word [ebx*8 + 0xac8a7c]
jbe 0x4ae76a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4ae77b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0xac8a80]
call fcn.004ae608
jmp 0x4ae780
cmp edi, dword [ebp - 8]
jae 0x4ae744
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4ae82f
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4ae82f
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.004ac4ac
push dword [ebp - 0x160]
push 0x4ae868
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004ac4ac
push dword [ebp - 0x164]
push 0x4ae878
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004ac4ac
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004ac6e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae854
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004ab74c
ret
Function at 0x4aea00
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 0x4aeb04
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xb76898
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0xb768b0]
jne 0x4aea4c
mov eax, esi
mov edx, 0xb768b2
mov ecx, 0x55
call fcn.004ac4ac
push 0xb76898
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x4aeaee
push 0xb76898
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.004ab6ec
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4aeabb
cmp byte [0xb76894], 0
je 0x4aea80
mov edx, esi
mov eax, ebx
call fcn.004ae8e4
jmp 0x4aeabb
mov edx, esi
mov eax, ebx
call fcn.004ae6e8
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4aeabb
cmp dword [esi], 0
je 0x4aeaa4
mov eax, esi
mov edx, 0x4aeb1c
call fcn.004ac604
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004ae6e8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004ac604
push 0xb76898
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0xb768b0], bx
mov eax, dword [esi]
call fcn.004ac3f4
mov ecx, eax
mov eax, 0xb768b2
mov edx, 0xaa
call fcn.004ae568
push 0xb76898
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aeb0b
lea eax, [ebp - 4]
call fcn.004ab6ec
ret
Function at 0x4aed34
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.004ab7d0
xor eax, eax
push ebp
push 0x4aef59
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4aed74
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x4aed8e
mov eax, dword [ebp - 4]
call fcn.004ac3f4
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004ae568
cmp word [ebp - 0x21a], 0
je 0x4aef43
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4aef68
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4aee5d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4aef68
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4aee5d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4aefa4
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4aee5d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4aefa4
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4aee5d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4aefd8
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4aee5d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4af00c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x4aef43
xor eax, eax
push ebp
push 0x4aef3c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004aeb44
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 0x4aeecc
mov eax, dword [ebp - 0x10]
call fcn.004a8680
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.004ac458
jmp 0x4aef17
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4af04c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4aef17
mov eax, dword [ebp - 0x10]
call fcn.004a8680
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4af04c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004ac458
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aef43
cmp dword [ebp - 8], 0
je 0x4aef32
mov eax, dword [ebp - 8]
call fcn.004a869c
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 0x4aef60
lea eax, [ebp - 4]
call fcn.004ab6ec
ret
Function at 0x4af260
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.004ab7d0
xor eax, eax
push ebp
push 0x4af320
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.004ac4ac
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004ac65c
mov eax, dword [ebx]
call fcn.004af110
test al, al
jne 0x4af2fd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004ac4ac
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004ac65c
mov eax, dword [ebx]
call fcn.004af110
test al, al
jne 0x4af2fd
mov eax, ebx
call fcn.004ab6ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af327
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004ab74c
lea eax, [ebp - 4]
call fcn.004ab6ec
ret

Function at 0x4b1078
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 0x4b2084
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x4b215b
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0xb74614], 1
jae 0x4b214d
call fcn.004a968c
call fcn.004a841c
push 0x400
call sub.KERNEL32.DLL_SetThreadLocale
call fcn.004ae46c
mov byte [0xac8098], 2
mov dword [0xb73c94], 0x81cd3a
mov dword [0xb73c98], 0x81cd58
mov byte [0xb73cda], 2
call fcn.004b1078
mov dword [0xb73ce0], eax
mov dword [0xb73c80], 0x4ad5f8
call fcn.004a96c8
call fcn.004a96e4
mov word [0xb73ce8], 0xd7b0
mov word [0xb73fc4], 0xd7b0
mov word [0xb742a0], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0xb73ccc], eax
call fcn.004a6aa4
mov dword [0xb73cc8], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0xb745fc], eax
mov dword [0xb74600], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0xb73cc0], eax
call fcn.004b108c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2162
ret
Function at 0x4c42f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4c4349
test eax, edx
je 0x4c434c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4c4307
movzx eax, word [eax]
sub eax, ecx
jmp 0x4c432e
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 0x4c432f
add ecx, 4
js 0x4c431f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4c432c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4c432e
xor eax, eax
ret
test eax, eax
je 0x4c4358
test edx, edx
jne 0x4c42f8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4c5978
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 0x4c59a5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4c5a80
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.004ac3f4
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4c5aea
test ah, 4
je 0x4c5ae3
test bl, bl
jne 0x4c5aa8
mov al, 1
jmp 0x4c5b11
test al, 0x10
je 0x4c5ab0
xor eax, eax
jmp 0x4c5b11
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4c5ad4
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x4c5b11
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4c5b11
test al, 0x10
sete al
jmp 0x4c5b11
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4c5b0b
cmp ebx, 3
je 0x4c5b0b
cmp ebx, 0x7b
je 0x4c5b0b
mov eax, esi
call fcn.004c5a40
test al, al
jne 0x4c5b0f
xor eax, eax
jmp 0x4c5b11
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4c5b18
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.004ac3f4
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4c5bbf
test esi, 0x400
jne 0x4c5b54
test esi, 0x10
setne bl
jmp 0x4c5bef
cmp byte [esp], 0
je 0x4c5b88
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4c5bef
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x4c5bef
test esi, 0x10
je 0x4c5b94
mov bl, 1
jmp 0x4c5bef
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4c5bbb
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x4c5bef
mov bl, 1
jmp 0x4c5bef
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x4c5be9
cmp eax, 3
je 0x4c5be9
cmp eax, 0xa1
je 0x4c5be9
cmp eax, 0x7b
je 0x4c5be9
cmp eax, 0x35
je 0x4c5be9
cmp eax, 0x15
je 0x4c5be9
cmp eax, 0x43
jne 0x4c5bed
xor ebx, ebx
jmp 0x4c5bef
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4ca848
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 0x4ca881
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004ab874
jmp 0x4ca88a
mov eax, ebx
mov edx, esi
call fcn.004abacc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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