joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468324
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46844c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.00466d80
xor eax, eax
push ebp
push 0x468427
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00467330
test al, al
je 0x46840b
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00468204
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.004a6e08
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x46840b
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004a7ae4
push eax
push edi
push esi
call sub.ADVAPI32.DLL_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00466ce0
test al, al
je 0x468407
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004a7ae4
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.004a7b44
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00468204
pop ecx
inc edi
dec ebx
jne 0x4683af
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46842e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.00466d80
ret
Function at 0x46845c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4686aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.00466d80
xor eax, eax
push ebp
push 0x468680
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00467330
test al, al
je 0x468664
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.004a6e08
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x468664
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.004a7ae4
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00466ce0
test al, al
je 0x468658
mov eax, dword [ebp - 4]
call fcn.004a7ae4
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.004a7b44
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00467d74
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x468658
xor eax, eax
push ebp
push 0x468651
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.00466d80
xor eax, eax
push ebp
push 0x468633
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a7ae4
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.004a7b44
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00466d84
mov eax, dword [ebp - 4]
call fcn.004a7ae4
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.004a7b44
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00467d74
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x468610
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00468324
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0046845c
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468617
mov eax, dword [ebp - 0x24]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x4684e7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468687
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.00466d80
ret
Function at 0x489af8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x489b51
test eax, edx
je 0x489b54
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x489b0f
movzx eax, word [eax]
sub eax, ecx
jmp 0x489b36
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 0x489b37
add ecx, 4
js 0x489b27
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x489b34
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x489b36
xor eax, eax
ret
test eax, eax
je 0x489b60
test edx, edx
jne 0x489b00
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x48abe0
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.004a7ae4
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x48ac4a
test ah, 4
je 0x48ac43
test bl, bl
jne 0x48ac08
mov al, 1
jmp 0x48ac71
test al, 0x10
je 0x48ac10
xor eax, eax
jmp 0x48ac71
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x48ac34
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x48ac71
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x48ac71
test al, 0x10
sete al
jmp 0x48ac71
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x48ac6b
cmp ebx, 3
je 0x48ac6b
cmp ebx, 0x7b
je 0x48ac6b
mov eax, esi
call fcn.0048aba0
test al, al
jne 0x48ac6f
xor eax, eax
jmp 0x48ac71
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x48ac78
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.004a7ae4
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x48ad1f
test esi, 0x400
jne 0x48acb4
test esi, 0x10
setne bl
jmp 0x48ad39
cmp byte [esp], 0
je 0x48ace8
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocStringLen
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x48ad39
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x48ad39
test esi, 0x10
je 0x48acf4
mov bl, 1
jmp 0x48ad39
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocStringLen
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x48ad1b
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x48ad39
mov bl, 1
jmp 0x48ad39
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x48ad33
cmp eax, 3
je 0x48ad33
cmp eax, 0x7b
jne 0x48ad37
xor ebx, ebx
jmp 0x48ad39
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48eca8
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 0x48ece1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004a6e08
jmp 0x48ecea
mov eax, ebx
mov edx, esi
call fcn.004a7060
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x48f9d4
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 0x48faf9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0048f7e4
mov esi, eax
mov eax, dword [0x749260]
cmp byte [eax], 0
je 0x48faa1
mov eax, dword [0x749268]
call fcn.004a4c7c
call fcn.004a4814
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 [0x48f9ac]
call fcn.004a8ec4
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 0x48fb14
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x48fadd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x7490c4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x749fe4]
call fcn.004a90d0
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 0x48fb00
lea eax, [ebp - 4]
mov edx, dword [0x48f9ac]
call fcn.004a8fe8
ret
Function at 0x490b80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x490c56
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004a70a8
lea eax, [ebp - 4]
call fcn.004a724c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004a7ae4
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x490c40
mov eax, ebx
call fcn.004a4610
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x490c39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004a7ae4
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x490c23
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x490c68
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x490c23
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490c40
mov eax, dword [ebp - 0x10]
call fcn.004a462c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490c5d
lea eax, [ebp - 4]
call fcn.004a6c80
ret

Function at 0x491820
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004a7158
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004aaaf4
mov edi, eax
cmp edi, 0x104
jbe 0x4917cb
mov eax, edi
add eax, eax
call fcn.004a4610
mov esi, eax
jmp 0x4917cd
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004aaaf4
push esi
call sub.USER32.DLL_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x491806
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4917f0
mov eax, esp
cmp esi, eax
je 0x491813
mov eax, esi
call fcn.004a462c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x49184c
cmp bl, 0
je 0x491848
cmp bl, 0x41
jl 0x491843
cmp bl, 0x5a
jg 0x491843
or bl, 0x20
xor al, bl
inc esi
jmp 0x491827
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x49178c

Function at 0x491fe4
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004a7b98
add esp, 0x800
pop ebx
ret
Function at 0x49235c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.004a6c80
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004a7ae4
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4923a1
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004a6e08
jmp 0x4923ba
mov edx, ebx
dec edx
mov eax, esi
call fcn.004a7c70
push ebx
mov eax, dword [esi]
call fcn.004a7ae4
push eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4a4ab8
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.004a6c80
test esi, esi
jne 0x4a4aee
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.004a6e08
jmp 0x4a4b0c
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004a499c
mov edi, eax
test esi, esi
je 0x4a4b0c
cmp dword [ebx], 0
je 0x4a4b0c
dec esi
jmp 0x4a4af5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4a4b40
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x71e6f8], 0x8088405
inc edx
mov dword [ebx + 0x71e6f8], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x4a5ae4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004a5ed0
mov byte [esp], al
cmp byte [esp], 0
jne 0x4a5c6d
test edi, edi
je 0x4a5c6d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4a5ba4
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4a5b7f
cmp edi, 0xffffffff
je 0x4a5b43
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4a5b43
mov byte [esp], 0
jmp 0x4a5c6d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4a5b7f
test ebx, ebx
jne 0x4a5b78
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004a29b4
test eax, eax
jne 0x4a5b78
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4a5c6d
pause
dec ebp
test ebp, ebp
jg 0x4a5b28
cmp edi, 0xffffffff
je 0x4a5ba4
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4a5ba2
mov byte [esp], 0
jmp 0x4a5c6d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4a5af2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004a29b4
cmp ebx, eax
jne 0x4a5ba4
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004a5ce0
mov edx, eax
mov ebx, dword [0x74d1c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4a5c0b
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4a5c09
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4a5c0b
xor edi, edi
cmp byte [esp], 0
je 0x4a5c34
mov ebx, dword [esi]
test bl, 1
jne 0x4a5c4d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004a29b4
cmp ebx, eax
jne 0x4a5c11
mov byte [esp + 1], 1
jmp 0x4a5c4d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004a29b4
cmp ebx, eax
jne 0x4a5c34
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4a5bbe
cmp byte [esp], 0
je 0x4a5c6d
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4a6930
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x74c950], 0
je 0x4a6991
cmp word [0x74cc2c], 0xd7b2
jne 0x4a6959
cmp dword [0x74cc34], 0
jbe 0x4a6959
mov eax, 0x74cc28
call dword [0x74cc44]
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
push 0x4a69bc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x71e710], 0
jne 0x4a69ad
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4a6b3c
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 [0x71e6dc], 0
je 0x4a6b67
mov edx, edi
mov eax, esi
call dword [0x71e6dc]
mov ebx, eax
jmp 0x4a6b78
mov eax, 8
call fcn.004a4610
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x74c951], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4a6b04
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 0x4a6bad
mov edx, 8
mov eax, ebx
call fcn.004a462c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4a958c
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 0x4a96f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a6c80
cmp si, word [0x71eed0]
jb 0x4a9624
cmp si, word [0x71f0d0]
ja 0x4a9624
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4a9624
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x71eed0]
jae 0x4a95fe
mov edi, ebx
dec edi
jmp 0x4a961f
cmp si, word [ebx*8 + 0x71eed0]
jbe 0x4a960e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4a961f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x71eed4]
call fcn.004a949c
jmp 0x4a9624
cmp edi, dword [ebp - 8]
jae 0x4a95e8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4a96d3
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4a96d3
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.004a7b98
push dword [ebp - 0x160]
push 0x4a970c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004a7b98
push dword [ebp - 0x164]
push 0x4a971c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004a7b98
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004a7dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a96f8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004a6ce0
ret
Function at 0x4a98a4
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 0x4a99a7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x74f459
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x74f472]
jne 0x4a98f0
mov eax, esi
mov edx, 0x74f474
mov ecx, 0x55
call fcn.004a7b98
push 0x74f459
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x4a9991
push 0x74f459
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.004a6c80
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4a995f
cmp byte [0x74f458], 0
je 0x4a9924
mov edx, esi
mov eax, ebx
call fcn.004a9788
jmp 0x4a995f
mov edx, esi
mov eax, ebx
call fcn.004a958c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4a995f
cmp dword [esi], 0
je 0x4a9948
mov eax, esi
mov edx, 0x4a99c0
call fcn.004a7cf0
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004a958c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004a7cf0
push 0x74f459
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x74f472], bx
push 0xaa
mov eax, dword [esi]
call fcn.004a7ae4
push eax
push 0x74f474
call sub.KERNEL32.DLL_lstrcpynW
push 0x74f459
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a99ae
lea eax, [ebp - 4]
call fcn.004a6c80
ret