joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402776
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x402785
pop dword [ebp - 0x44]
mov eax, 0xa8d0eb5c
sub eax, 0xa890c3d7
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xf3d46d42
add dword [ebp - 0x54], 0x5a7dd809
mov dword [ebp - 0x50], 0xca16289e
add dword [ebp - 0x50], 0x681d23a7
mov dword [ebp - 0x4c], 0x8d350d82
add dword [ebp - 0x4c], 0xbf1736ac
mov dword [ebp - 0x48], 0xf4ee245b
add dword [ebp - 0x48], 0xb11dba5
lea eax, [ebp - 0x54]
push eax
mov eax, 0xcf365255
add eax, 0x3109be7b
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x3ec3803c
add dword [ebp - 0x54], 0x35aee91a
mov dword [ebp - 0x50], 0x81245572
sub dword [ebp - 0x50], 0x3fb7f3fd
mov dword [ebp - 0x4c], 0xa0657eed
add dword [ebp - 0x4c], 0xc309ed7f
mov dword [ebp - 0x48], 0xe632273c
add dword [ebp - 0x48], 0x19cdd8c4
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x66a6d482
sub eax, 0x6666c3a2
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x34b7e
push 0
call eax
mov ecx, 0x3f7a
mov edi, eax
mov esi, 0x78e21452
add esi, 0x8760e1ae
add esi, dword [ebp - 0x44]
mov ebx, 0x1e9807d8
sub ebx, 0x621fe595
sub dword [ebp - 0x14], 0xa35889f
mov edx, dword [esi]
sub dword [ebp - 4], eax
add edx, ebx
mov dword [ebp - 0x30], 0x9f1b9aac
mov dword [edi], edx
xor dword [ebp - 8], 0x4ffb4ed9
add edi, 0x3879545b
add edi, 0xc786aba9
add esi, 0x590ca811
sub esi, 0x590ca80d
loop 0x4028a1
add eax, 0xf0bb
mov ebx, eax
add eax, 0xac9bf9ca
add eax, 0x5364063b
mov ecx, 0xa5f7f113
sub ecx, 0xa5b7f113
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x403547
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4014ac]
jne 0x4039b6
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4073f8], eax
mov dword [0x4073f4], ecx
mov dword [0x4073f0], edx
mov dword [0x4073ec], ebx
mov dword [0x4073e8], esi
mov dword [0x4073e4], edi
mov word [0x407410], ss
mov word [0x407404], cs
mov word [0x4073e0], ds
mov word [0x4073dc], es
mov word [0x4073d8], fs
mov word [0x4073d4], gs
pushfd
pop dword [0x407408]
mov eax, dword [ebp]
mov dword [0x4073fc], eax
mov eax, dword [ebp + 4]
mov dword [0x407400], eax
lea eax, [ebp + 8]
mov dword [0x40740c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x407348], 0x10001
mov eax, dword [0x407400]
mov dword [0x4072fc], eax
mov dword [0x4072f0], 0xc0000409
mov dword [0x4072f4], 1
mov eax, dword [0x4014ac]
mov dword [ebp - 0x328], eax
mov eax, dword [0x407248]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x407340], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x4014b8
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x407340], 0
jne 0x403aa2
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x403832
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x405338
call fcn.00403d57
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x407680], ebx
jne 0x4035cd
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x407674
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x403607
cmp eax, esi
jne 0x4035fa
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40360a
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4035e1
xor esi, esi
inc esi
mov eax, dword [0x407670]
cmp eax, esi
jne 0x40361d
push 0x1f
call sub.msvcr100.dll__amsg_exit
pop ecx
jmp 0x403658
mov eax, dword [0x407670]
test eax, eax
jne 0x403652
mov dword [0x407670], esi
push 0x40118c
push 0x40117c
call sub.msvcr100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x403658
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x403772
mov dword [0x4072e8], esi
mov eax, dword [0x407670]
cmp eax, esi
jne 0x40367c
push 0x401178
push 0x40116c
call sub.msvcr100.dll__initterm
pop ecx
pop ecx
mov dword [0x407670], 2
cmp dword [ebp - 0x24], ebx
jne 0x403689
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x407684], ebx
je 0x4036aa
push 0x407684
call fcn.00402776
pop ecx
test eax, eax
je 0x4036aa
push ebx
push 2
push ebx
call dword [0x407684]
mov eax, dword [sym.imp.msvcr100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x403703
cmp al, bl
je 0x4036c3
cmp dword [ebp - 0x1c], ebx
jne 0x403703
mov al, byte [esi]
cmp al, bl
je 0x4036d3
cmp al, 0x20
ja 0x4036d3
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4036c3
test byte [ebp - 0x40], 1
je 0x4036df
movzx eax, word [ebp - 0x3c]
jmp 0x4036e2
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4072e4], eax
cmp dword [0x4072d8], ebx
jne 0x403758
push eax
call dword [sym.imp.msvcr100.dll_exit]
cmp al, 0x22
jne 0x403712
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcr100.dll__ismbblead]
pop ecx
test eax, eax
je 0x403725
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4036b1
cmp dword [0x4072e8], ebx
jne 0x403766
call dword [sym.imp.msvcr100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4072e4]
call fcn.00403d9c
ret
call fcn.00402776
jmp 0x40359f
Function at 0x404864
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407070
test esi, esi
jne 0x40489c
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.004071ac
jmp 0x4048ba
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047a8
mov edi, eax
test esi, esi
je 0x4048ba
cmp dword [ebx], 0
je 0x4048ba
dec esi
jmp 0x4048a3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4061dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x567054], 0
je 0x40623d
cmp word [0x567330], 0xd7b2
jne 0x406205
cmp dword [0x567338], 0
jbe 0x406205
mov eax, 0x56732c
call dword [0x567348]
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 0x406268
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x560030], 0
jne 0x406259
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4063e8
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 [0x560034], 0
je 0x40640e
mov edx, esi
mov eax, ebx
call dword [0x560034]
jmp 0x40641d
mov eax, 8
call fcn.004044f0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x567055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4063b0
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 0x40915c
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 0x4092c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407070
cmp si, word [0x5607dc]
jb 0x4091f6
cmp si, word [0x5609dc]
ja 0x4091f6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4091f6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5607dc]
jae 0x4091d0
mov edi, ebx
dec edi
jmp 0x4091f1
cmp si, word [ebx*8 + 0x5607dc]
jbe 0x4091e0
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4091f1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5607e0]
call fcn.0040906c
jmp 0x4091f6
cmp edi, dword [ebp - 0xc]
jae 0x4091ba
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4092a5
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4092a5
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.00407258
push dword [ebp - 0x164]
push 0x4092e0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407258
push dword [ebp - 0x168]
push 0x4092f0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407258
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092ca
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407068
ret
Function at 0x40947c
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 0x409581
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x569b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x569b74]
jne 0x4094c8
mov eax, esi
mov edx, 0x569b78
mov ecx, 0x55
call fcn.00407258
push 0x569b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40956b
push 0x569b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407070
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409539
cmp byte [0x569b58], 0
je 0x4094fe
mov edx, esi
mov eax, ebx
call fcn.0040935c
jmp 0x409539
mov edx, esi
mov eax, ebx
call fcn.0040915c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409539
cmp dword [esi], 0
je 0x409522
mov eax, esi
mov edx, 0x40959c
call fcn.0040746c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040915c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040746c
push 0x569b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x569b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.004070fc
push eax
push 0x569b78
call sub.kernel32.dll_lstrcpynW
push 0x569b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409588
lea eax, [ebp - 4]
call fcn.00407060
ret
Function at 0x4097c0
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.00407058
xor eax, eax
push ebp
push 0x4099a5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409800
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40981a
push 0x105
mov eax, dword [ebp - 4]
call fcn.004070fc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40998f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40998f
xor eax, eax
push ebp
push 0x409988
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004095c4
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 0x409918
mov eax, dword [ebp - 0x10]
call fcn.004044f0
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.0040721c
jmp 0x409963
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409a5c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409963
mov eax, dword [ebp - 0x10]
call fcn.004044f0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409a5c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040721c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40998f
cmp dword [ebp - 8], 0
je 0x40997e
mov eax, dword [ebp - 8]
call fcn.0040450c
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 0x4099ac
lea eax, [ebp - 4]
call fcn.00407060
ret
Function at 0x409c70
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.00407058
mov eax, dword [ebp - 0x21c]
call fcn.00407058
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409e0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407070
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004070fc
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 0x409d10
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409d22
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409d0d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409ddb
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 0x409d4b
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.004097c0
cmp dword [ebp - 0x220], 0
je 0x409d83
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409b64
pop ecx
mov ebx, eax
jmp 0x409ddb
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040947c
mov eax, dword [ebp - 0x224]
call fcn.00409b64
pop ecx
mov ebx, eax
test bl, bl
jne 0x409dce
cmp byte [0x569b58], 0
jne 0x409dce
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040947c
mov eax, dword [ebp - 0x228]
call fcn.00409b64
pop ecx
mov ebx, eax
test bl, bl
jne 0x409ddb
push ebp
call fcn.00409c14
pop ecx
mov ebx, eax
test bl, bl
je 0x409df1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407258
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e16
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407068
ret

Function at 0x40a5a4
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 0x40dae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x569c5c
push 0xa
push 0x40db74
mov eax, dword [0x569c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40db04
call fcn.0041c3d0
push ebx
mov eax, dword [0x569c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40db1b
call fcn.0041c3d0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40db2d
call fcn.0041c3d0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x569c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x569c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x569c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x569c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x569c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x569c74], edx
pop esi
pop ebx
ret

Function at 0x412f98
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x413041
test eax, edx
je 0x413044
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412fc1
push edx
mov edx, eax
mov eax, esp
call fcn.00407274
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x412fd7
push eax
lea eax, [esp + 8]
call fcn.00407274
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x412fe6
movzx eax, word [eax]
sub eax, ecx
jmp 0x41300d
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 0x413027
add ecx, 4
js 0x412ffe
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x413024
push eax
mov eax, ecx
mov edx, 2
call fcn.00406488
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41300b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41300d
xor eax, eax
ret
test eax, eax
je 0x413054
test edx, edx
jne 0x412fa8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004070fc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4146de
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4146ff
cmp ebx, 3
je 0x4146ff
cmp ebx, 0x7b
je 0x4146ff
mov eax, esi
call fcn.00414680
test al, al
jne 0x414703
xor eax, eax
jmp 0x414705
mov al, 1
pop esi
pop ebx
ret

Function at 0x41959c
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 pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4195d5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004071ac
jmp 0x4195de
mov eax, ebx
mov edx, esi
call fcn.00407070
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4195e8
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_1
test eax, eax
jle 0x41960a
movzx eax, word [esp]
jmp 0x41960c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x419d9c
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 0x419ec1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00419bac
mov esi, eax
mov eax, dword [0x566c5c]
cmp byte [eax], 0
je 0x419e69
mov eax, dword [0x566890]
call fcn.00404998
call fcn.00404658
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x419d74]
call fcn.00408a44
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_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x419edc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x419ea5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5667fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x569c40]
call fcn.00408c4c
push eax
call sub.user32.dll_LoadStringW_1
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 0x419ec8
lea eax, [ebp - 4]
mov edx, dword [0x419d74]
call fcn.00408b64
ret
Function at 0x41b0a0
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 0x41b176
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004070c4
lea eax, [ebp - 4]
call fcn.00407a5c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004070fc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41b160
mov eax, ebx
call fcn.004044f0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41b159
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.004070fc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41b143
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41b188
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41b143
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 0x41b160
mov eax, dword [ebp - 0x10]
call fcn.0040450c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b17d
lea eax, [ebp - 4]
call fcn.00407060
ret

Function at 0x41c278
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.004067d8
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41c222
mov eax, edi
add eax, eax
call fcn.004044f0
mov esi, eax
jmp 0x41c224
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41c25d
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 0x41c247
mov eax, esp
cmp esi, eax
je 0x41c26a
mov eax, esi
call fcn.0040450c
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 0x41c2a4
cmp bl, 0
je 0x41c2a0
cmp bl, 0x41
jl 0x41c29b
cmp bl, 0x5a
jg 0x41c29b
or bl, 0x20
xor al, bl
inc esi
jmp 0x41c27f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41c1e4