joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4532d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x453379
test eax, edx
je 0x45337c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4532f9
push edx
mov edx, eax
mov eax, esp
call fcn.0046be08
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x45330f
push eax
lea eax, [esp + 8]
call fcn.0046be08
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x45331e
movzx eax, word [eax]
sub eax, ecx
jmp 0x453345
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 0x45335f
add ecx, 4
js 0x453336
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x45335c
push eax
mov eax, ecx
mov edx, 2
call fcn.0046b21c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x453343
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x453345
xor eax, eax
ret
test eax, eax
je 0x45338c
test edx, edx
jne 0x4532e0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0046bc80
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4547ba
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4547db
cmp ebx, 3
je 0x4547db
cmp ebx, 0x7b
je 0x4547db
mov eax, esi
call fcn.0045475c
test al, al
jne 0x4547df
xor eax, eax
jmp 0x4547e1
mov al, 1
pop esi
pop ebx
ret

Function at 0x458664
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 0x45869d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0046bd30
jmp 0x4586a6
mov eax, ebx
mov edx, esi
call fcn.0046bbf4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4586b0
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 0x4586d2
movzx eax, word [esp]
jmp 0x4586d4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x458e64
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 0x458f89
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00458c74
mov esi, eax
mov eax, dword [0x5049c0]
cmp byte [eax], 0
je 0x458f31
mov eax, dword [0x5049c4]
call fcn.00469914
call fcn.00469708
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 [0x458e3c]
call fcn.0046d388
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 0x458fa4
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x458f6d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x504834]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x504e68]
call fcn.0046d474
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 0x458f90
lea eax, [ebp - 4]
mov edx, dword [0x458e3c]
call fcn.0046d394
ret

Function at 0x45b2c7
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.0046b55c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x45b2ea
mov eax, edi
add eax, eax
call fcn.00469538
mov esi, eax
jmp 0x45b2ec
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
push edi
push esi
call sub.USER32.DLL_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x45b325
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 0x45b30f
mov eax, esp
cmp esi, eax
je 0x45b332
mov eax, esi
call fcn.00469554
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 0x45b36c
cmp bl, 0
je 0x45b368
cmp bl, 0x41
jl 0x45b363
cmp bl, 0x5a
jg 0x45b363
or bl, 0x20
xor al, bl
inc esi
jmp 0x45b347
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x45b2ac
Function at 0x46af70
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x507300], 0
je 0x46afd1
cmp word [0x5075dc], 0xd7b2
jne 0x46af99
cmp dword [0x5075e4], 0
jbe 0x46af99
mov eax, 0x5075d8
call dword [0x5075f4]
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 0x46affc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4fbccc], 0
jne 0x46afed
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x46b17c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4fbc9c], 0
je 0x46b1a2
mov edx, esi
mov eax, ebx
call dword [0x4fbc9c]
jmp 0x46b1b1
mov eax, 8
call fcn.00469538
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x507301], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x46b144
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x46d984
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46daeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0046bbf4
cmp si, word [0x4fc47c]
jb 0x46da1e
cmp si, word [0x4fc67c]
ja 0x46da1e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x46da1e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4fc47c]
jae 0x46d9f8
mov edi, ebx
dec edi
jmp 0x46da19
cmp si, word [ebx*8 + 0x4fc47c]
jbe 0x46da08
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x46da19
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4fc480]
call fcn.0046d894
jmp 0x46da1e
cmp edi, dword [ebp - 0xc]
jae 0x46d9e2
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x46dacd
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x46dacd
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0046bdec
push dword [ebp - 0x164]
push 0x46db08
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0046bdec
push dword [ebp - 0x168]
push 0x46db18
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0046bdec
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0046c198
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46daf2
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0046bbec
ret
Function at 0x46dca4
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 0x46dda9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x509e14
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x509e2c]
jne 0x46dcf0
mov eax, esi
mov edx, 0x509e30
mov ecx, 0x55
call fcn.0046bdec
push 0x509e14
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x46dd93
push 0x509e14
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.0046bbf4
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x46dd61
cmp byte [0x509e10], 0
je 0x46dd26
mov edx, esi
mov eax, ebx
call fcn.0046db84
jmp 0x46dd61
mov edx, esi
mov eax, ebx
call fcn.0046d984
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x46dd61
cmp dword [esi], 0
je 0x46dd4a
mov eax, esi
mov edx, 0x46ddc4
call fcn.0046bff4
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0046d984
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0046bff4
push 0x509e14
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x509e2c], bx
push 0xaa
mov eax, dword [esi]
call fcn.0046bc80
push eax
push 0x509e30
call sub.KERNEL32.DLL_lstrcpynW
push 0x509e14
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ddb0
lea eax, [ebp - 4]
call fcn.0046bbe4
ret
Function at 0x46dfe8
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.0046bbdc
xor eax, eax
push ebp
push 0x46e1cd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x46e028
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x46e042
push 0x105
mov eax, dword [ebp - 4]
call fcn.0046bc80
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x46e1b7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x46e1dc
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x46e0d1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x46e1dc
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x46e0d1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x46e210
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x46e0d1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x46e244
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x46e1b7
xor eax, eax
push ebp
push 0x46e1b0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0046ddec
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 0x46e140
mov eax, dword [ebp - 0x10]
call fcn.00469538
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.0046bdb0
jmp 0x46e18b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x46e284
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x46e18b
mov eax, dword [ebp - 0x10]
call fcn.00469538
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x46e284
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0046bdb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e1b7
cmp dword [ebp - 8], 0
je 0x46e1a6
mov eax, dword [ebp - 8]
call fcn.00469554
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 0x46e1d4
lea eax, [ebp - 4]
call fcn.0046bbe4
ret
Function at 0x46e498
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.0046bbdc
mov eax, dword [ebp - 0x21c]
call fcn.0046bbdc
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x46e637
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0046bbf4
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.0046bc80
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x46e538
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x46e54a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x46e535
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x46e603
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x46e573
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.0046dfe8
cmp dword [ebp - 0x220], 0
je 0x46e5ab
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0046e38c
pop ecx
mov ebx, eax
jmp 0x46e603
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0046dca4
mov eax, dword [ebp - 0x224]
call fcn.0046e38c
pop ecx
mov ebx, eax
test bl, bl
jne 0x46e5f6
cmp byte [0x509e10], 0
jne 0x46e5f6
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0046dca4
mov eax, dword [ebp - 0x228]
call fcn.0046e38c
pop ecx
mov ebx, eax
test bl, bl
jne 0x46e603
push ebp
call fcn.0046e43c
pop ecx
mov ebx, eax
test bl, bl
je 0x46e619
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0046bdec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e63e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0046bbec
ret

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

Disassembly:
sub dword [0x507b98], 1
jae 0x46ef21
call fcn.00466504
call fcn.00469314
call fcn.0046d6d8
mov byte [0x4fbcbc], 2
mov dword [0x5072bc], 0x4f8b68
mov dword [0x5072c0], 0x4f8b86
mov byte [0x507302], 2
call fcn.0046ed8c
mov dword [0x507304], eax
mov dword [0x5072a8], 0x46cdf8
call fcn.00469ed8
mov word [0x50730c], 0xd7b0
mov word [0x5075dc], 0xd7b0
mov word [0x5078ac], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x5072f4], eax
call fcn.0046790c
mov dword [0x5072f0], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x507b80], eax
mov dword [0x507b84], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x5072e8], eax
call fcn.0046eda0
ret
Function at 0x4ed08c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4ed0a8
call fcn.004ee204
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4ed0c7
test bl, 1
je 0x4ed0c7
call fcn.004f4874
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4f1018
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004ebe40
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
call fcn.004ebef0
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004ebef0
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x5031e9
lea ecx, [ebp - 0x200]
push ecx
call fcn.004ebe40
add esp, 8
push 0xa
lea ecx, [ebp - 0x200]
push ecx
call fcn.004ebef0
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov eax, dword [ebx]
push eax
call fcn.004f24b8
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4f1129
push esi
call fcn.004ebef0
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004ebef0
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004eb0bc
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4f1100
xor eax, eax
jmp 0x4f11b0
push esi
call fcn.004ebef0
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004ebef0
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004ebd6f
add esp, 0xc
jmp 0x4f1169
mov edi, dword [ebx + 0x24]
push edi
call fcn.004ebef0
pop ecx
push eax
push esi
call fcn.004ebef0
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004ebef0
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004eb0dc
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4f1169
xor eax, eax
jmp 0x4f11b0
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004ebe40
add esp, 8
push 0x5031eb
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004ebe40
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
mov eax, dword [ebx + 0x24]
push eax
call fcn.004ebe40
add esp, 8
push 0x5031ed
mov edx, dword [ebx + 0x24]
push edx
call fcn.004ebe40
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f4808
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4f4835
jmp 0x4f486c
call fcn.004f47b8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004ebef0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004ebef0
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f48f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x503828], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4f49ca
cmp dword [0x503824], 0
jne 0x4f49ca
cmp dword [0x503a24], 0
je 0x4f4984
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004f42c0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4f496a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004f42c0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4f496a
lea ebx, [ebp - 0x84]
jmp 0x4f496b
inc ebx
call fcn.004f48a8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4f4a05
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x50382c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004ebef0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x50382f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4f4a05
cmp dword [0x503824], 0
je 0x4f49e4
cmp dword [0x503824], 0xffffffff
je 0x4f4a05
push esi
call dword [0x503824]
pop ecx
mov eax, dword [0x503828]
test eax, eax
je 0x4f4a05
cmp dword [0x503828], 0xffffffff
je 0x4f4a05
cmp byte [eax], 0
je 0x4f4a05
push esi
push eax
call fcn.004f4808
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402710
Capabilities:
Encode data using xor
Get file size
Set file attributes
Set registry value

Disassembly:
push esi
push edi
push 0x80
push 0x407050
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x40704c
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 0
push str.asgdr
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x402780
mov ecx, dword [esp + 0x10]
mov dl, byte [esp + 0x14]
push ebx
push ebp
mov eax, ecx
sub esi, ecx
mov ebp, edi
mov bl, byte [esi + eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x40276a
pop ebp
mov byte [edi + ecx], 0
pop ebx
pop edi
pop esi
ret 0xc
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov byte [eax + ecx], 0
ret 0xc

Function at 0x402790
Capabilities:
Get disk information

Disassembly:
sub esp, 0x68
push esi
push edi
push 0
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
push 0xc
push 0
push 0x407148
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x10]
push 0x407144
push edx
call esi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x402810
push 0x407140
push 0x40713c
push 0x407138
push 0x407134
push 0x407130
push 0x40712c
lea eax, [esp + 0x24]
push str._s_s_s_s_s_s
push eax
call esi
add esp, 0x20
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor ecx, ecx
test eax, eax
je 0x40283c
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x68
ret
pop edi
mov eax, ecx
pop esi
add esp, 0x68
ret