joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa29c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x477360]
call fcn.004db41c
xor eax, eax
push ebp
push 0x4aa3e6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x6a1b7c], 0
jne 0x4aa2f0
mov ecx, dword [0x6add4c]
mov dl, 1
mov eax, dword [0x4b7764]
call fcn.004c2bc0
call fcn.004d9570
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.004d7d04
mov eax, ebx
call fcn.004da948
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4aa3f4
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.004dd710
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4aa337
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4aa38c
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_GetComputerNameW
test eax, eax
je 0x4aa385
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.004dac3c
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.004dac00
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.004bd650
test eax, eax
jne 0x4aa385
mov ebx, 0x15
jmp 0x4aa391
mov ebx, 0x10
jmp 0x4aa391
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x6a1b7c]
call fcn.004aa0ac
mov eax, dword [ebp - 4]
call fcn.004aa0ac
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004dd728
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa3ed
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004d9df8
lea eax, [ebp - 0xc]
mov edx, dword [0x477360]
call fcn.004db4f4
ret

Function at 0x4bd3ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4bd405
test eax, edx
je 0x4bd408
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4bd3c3
movzx eax, word [eax]
sub eax, ecx
jmp 0x4bd3ea
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 0x4bd3eb
add ecx, 4
js 0x4bd3db
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4bd3e8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4bd3ea
xor eax, eax
ret
test eax, eax
je 0x4bd414
test edx, edx
jne 0x4bd3b4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4be384
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.004dab4c
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4be3ee
test ah, 4
je 0x4be3e7
test bl, bl
jne 0x4be3ac
mov al, 1
jmp 0x4be415
test al, 0x10
je 0x4be3b4
xor eax, eax
jmp 0x4be415
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4be3d8
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x4be415
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4be415
test al, 0x10
sete al
jmp 0x4be415
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4be40f
cmp ebx, 3
je 0x4be40f
cmp ebx, 0x7b
je 0x4be40f
mov eax, esi
call fcn.004be344
test al, al
jne 0x4be413
xor eax, eax
jmp 0x4be415
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4be41c
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.004dab4c
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4be4c3
test esi, 0x400
jne 0x4be458
test esi, 0x10
setne bl
jmp 0x4be4dd
cmp byte [esp], 0
je 0x4be48c
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocStringLen
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4be4dd
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x4be4dd
test esi, 0x10
je 0x4be498
mov bl, 1
jmp 0x4be4dd
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocStringLen
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4be4bf
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x4be4dd
mov bl, 1
jmp 0x4be4dd
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x4be4d7
cmp eax, 3
je 0x4be4d7
cmp eax, 0x7b
jne 0x4be4db
xor ebx, ebx
jmp 0x4be4dd
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c1be4
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 0x4c1c1d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004d9f20
jmp 0x4c1c26
mov eax, ebx
mov edx, esi
call fcn.004da178
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c1c30
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 0x4c1c52
movzx eax, word [esp]
jmp 0x4c1c54
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4c2910
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 0x4c2a35
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004c2720
mov esi, eax
mov eax, dword [0x6ae064]
cmp byte [eax], 0
je 0x4c29dd
mov eax, dword [0x6ae070]
call fcn.004d7ca0
call fcn.004d78ec
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 [0x4c28e8]
call fcn.004dc040
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 0x4c2a50
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4c2a19
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x6adec4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6aeb38]
call fcn.004dc24c
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 0x4c2a3c
lea eax, [ebp - 4]
mov edx, dword [0x4c28e8]
call fcn.004dc164
ret

Function at 0x4c3abc
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 0x4c3b92
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004da1c0
lea eax, [ebp - 4]
call fcn.004da330
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004dab4c
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4c3b7c
mov eax, ebx
call fcn.004d76e8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4c3b75
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.004dab4c
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x4c3b5f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c3ba4
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x4c3b5f
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 0x4c3b7c
mov eax, dword [ebp - 0x10]
call fcn.004d7704
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3b99
lea eax, [ebp - 4]
call fcn.004d9d98
ret
Function at 0x4c47c8
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.004da270
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004ddc6c
mov edi, eax
cmp edi, 0x104
jbe 0x4c4773
mov eax, edi
add eax, eax
call fcn.004d76e8
mov esi, eax
jmp 0x4c4775
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004ddc6c
push esi
call sub.USER32.DLL_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4c47ae
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 0x4c4798
mov eax, esp
cmp esi, eax
je 0x4c47bb
mov eax, esi
call fcn.004d7704
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 0x4c47f4
cmp bl, 0
je 0x4c47f0
cmp bl, 0x41
jl 0x4c47eb
cmp bl, 0x5a
jg 0x4c47eb
or bl, 0x20
xor al, bl
inc esi
jmp 0x4c47cf
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4c4734

Function at 0x4c507c
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.004dac00
add esp, 0x800
pop ebx
ret

Function at 0x4c53f4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
dec dword [ebx - 0x7407740e]
invalid
call fcn.004d9d98
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004dab4c
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4c5439
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004d9f20
jmp 0x4c5452
mov edx, ebx
dec edx
mov eax, esi
call fcn.004dacd8
push ebx
mov eax, dword [esi]
call fcn.004dab4c
push eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4d7af8
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.004d9d98
test esi, esi
jne 0x4d7b2e
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.004d9f20
jmp 0x4d7b4c
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004d7a3c
mov edi, eax
test esi, esi
je 0x4d7b4c
cmp dword [ebx], 0
je 0x4d7b4c
dec esi
jmp 0x4d7b35
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4d8b08
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.004d8ef4
mov byte [esp], al
cmp byte [esp], 0
jne 0x4d8c91
test edi, edi
je 0x4d8c91
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4d8bc8
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4d8ba3
cmp edi, 0xffffffff
je 0x4d8b67
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4d8b67
mov byte [esp], 0
jmp 0x4d8c91
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4d8ba3
test ebx, ebx
jne 0x4d8b9c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004d5a8c
test eax, eax
jne 0x4d8b9c
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4d8c91
pause
dec ebp
test ebp, ebp
jg 0x4d8b4c
cmp edi, 0xffffffff
je 0x4d8bc8
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4d8bc6
mov byte [esp], 0
jmp 0x4d8c91
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4d8b16
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004d5a8c
cmp ebx, eax
jne 0x4d8bc8
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004d8d04
mov edx, eax
mov ebx, dword [0x6b23e8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4d8c2f
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4d8c2d
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4d8c2f
xor edi, edi
cmp byte [esp], 0
je 0x4d8c58
mov ebx, dword [esi]
test bl, 1
jne 0x4d8c71
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004d5a8c
cmp ebx, eax
jne 0x4d8c35
mov byte [esp + 1], 1
jmp 0x4d8c71
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004d5a8c
cmp ebx, eax
jne 0x4d8c58
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4d8be2
cmp byte [esp], 0
je 0x4d8c91
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 0x4d99fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6b1b70], 0
je 0x4d9a5d
cmp word [0x6b1e4c], 0xd7b2
jne 0x4d9a25
cmp dword [0x6b1e54], 0
jbe 0x4d9a25
mov eax, 0x6b1e48
call dword [0x6b1e64]
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 0x4d9a88
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x6a2258], 0
jne 0x4d9a79
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4d9c54
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 [0x6a2224], 0
je 0x4d9c7f
mov edx, edi
mov eax, esi
call dword [0x6a2224]
mov ebx, eax
jmp 0x4d9c90
mov eax, 8
call fcn.004d76e8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x6b1b71], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4d9c1c
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 0x4d9cc5
mov edx, 8
mov eax, ebx
call fcn.004d7704
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4dc708
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 0x4dc86d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004d9d98
cmp si, word [0x6a2a18]
jb 0x4dc7a0
cmp si, word [0x6a2c18]
ja 0x4dc7a0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4dc7a0
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x6a2a18]
jae 0x4dc77a
mov edi, ebx
dec edi
jmp 0x4dc79b
cmp si, word [ebx*8 + 0x6a2a18]
jbe 0x4dc78a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4dc79b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6a2a1c]
call fcn.004dc618
jmp 0x4dc7a0
cmp edi, dword [ebp - 8]
jae 0x4dc764
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4dc84f
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4dc84f
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.004dac00
push dword [ebp - 0x160]
push 0x4dc888
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004dac00
push dword [ebp - 0x164]
push 0x4dc898
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004dac00
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004dae38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc874
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004d9df8
ret
Function at 0x4dca20
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 0x4dcb23
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6b4679
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x6b4692]
jne 0x4dca6c
mov eax, esi
mov edx, 0x6b4694
mov ecx, 0x55
call fcn.004dac00
push 0x6b4679
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x4dcb0d
push 0x6b4679
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.004d9d98
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4dcadb
cmp byte [0x6b4678], 0
je 0x4dcaa0
mov edx, esi
mov eax, ebx
call fcn.004dc904
jmp 0x4dcadb
mov edx, esi
mov eax, ebx
call fcn.004dc708
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4dcadb
cmp dword [esi], 0
je 0x4dcac4
mov eax, esi
mov edx, 0x4dcb3c
call fcn.004dad58
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004dc708
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004dad58
push 0x6b4679
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x6b4692], bx
push 0xaa
mov eax, dword [esi]
call fcn.004dab4c
push eax
push 0x6b4694
call sub.KERNEL32.DLL_lstrcpynW
push 0x6b4679
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dcb2a
lea eax, [ebp - 4]
call fcn.004d9d98
ret
Function at 0x4dcd58
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.004d9e7c
xor eax, eax
push ebp
push 0x4dcf7d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4dcd98
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x4dcdb2
push 0x105
mov eax, dword [ebp - 4]
call fcn.004dab4c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4dcf67
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4dcf8c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4dce81
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4dcf8c
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4dce81
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4dcfc8
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4dce81
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4dcfc8
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4dce81
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4dcffc
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4dce81
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4dd030
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x4dcf67
xor eax, eax
push ebp
push 0x4dcf60
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004dcb64
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 0x4dcef0
mov eax, dword [ebp - 0x10]
call fcn.004d76e8
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.004dabac
jmp 0x4dcf3b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4dd070
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4dcf3b
mov eax, dword [ebp - 0x10]
call fcn.004d76e8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4dd070
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004dabac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dcf67
cmp dword [ebp - 8], 0
je 0x4dcf56
mov eax, dword [ebp - 8]
call fcn.004d7704
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 0x4dcf84
lea eax, [ebp - 4]
call fcn.004d9d98
ret
Function at 0x4dd2bc
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.004d9e7c
xor eax, eax
push ebp
push 0x4dd37c
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
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.004dac00
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004dadb0
mov eax, dword [ebx]
call fcn.004dd184
test al, al
jne 0x4dd359
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004dac00
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004dadb0
mov eax, dword [ebx]
call fcn.004dd184
test al, al
jne 0x4dd359
mov eax, ebx
call fcn.004d9d98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd383
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004d9df8
lea eax, [ebp - 4]
call fcn.004d9d98
ret

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

Disassembly:
sub dword [0x6b2404], 1
jae 0x4dde15
call fcn.004d43f8
call fcn.004d74a8
call fcn.004dc4b0
mov byte [0x6a2244], 2
mov dword [0x6b1b2c], 0x6604ce
mov dword [0x6b1b30], 0x6604e6
mov byte [0x6b1b72], 2
call fcn.004ddc8c
mov dword [0x6b1b74], eax
mov dword [0x6b1b18], 0x4dbaa0
call fcn.004d81f4
mov word [0x6b1b7c], 0xd7b0
mov word [0x6b1e4c], 0xd7b0
mov word [0x6b211c], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x6b1b64], eax
call fcn.004d5a9c
mov dword [0x6b1b60], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x6b23ec], eax
mov dword [0x6b23f0], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x6b1b58], eax
call fcn.004ddca0
ret