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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
xor ecx, ecx
test edx, edx
je 0x408095
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
cmp edx, 0x20
jb 0x408075
lea eax, [ebx - 1]
add eax, edx
cmp esi, eax
ja 0x407fee
lea eax, [esi - 1]
add eax, edx
cmp eax, ebx
jae 0x408075
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x408000
lea eax, [esi - 1]
add eax, edx
cmp eax, edi
jae 0x408075
mov eax, edx
mov dword [ebp - 4], edx
mov edx, esi
and eax, 0x1f
sub dword [ebp - 4], eax
sub edx, edi
mov dword [ebp - 8], edx
mov eax, edi
mov edx, ebx
sub edx, edi
mov dword [ebp - 0xc], edx
mov edx, esi
mov esi, dword [ebp - 8]
sub edx, ebx
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
lea edx, [ebx + 0x10]
jmp 0x408030
movdqu xmm0, xmmword [eax]
mov ebx, dword [ebp - 0x10]
add ecx, 0x20
lea eax, [eax + 0x20]
lea edx, [edx + 0x20]
movdqu xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [esi + eax - 0x20], xmm1
movdqu xmm1, xmmword [eax - 0x10]
movdqu xmm0, xmmword [edx - 0x20]
pxor xmm1, xmm0
movdqu xmmword [ebx + edx - 0x20], xmm1
mov ebx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 4]
jb 0x408030
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
cmp ecx, edx
jae 0x408092
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ebx
sub edx, ecx
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + esi - 1], cl
dec edx
jne 0x408082
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408170
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, 0x422e93
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x422e90
mov dword [ebp + 0xc], 8
mov edi, 0x422e91
mov ebx, 0x422e92
sub esi, eax
sub edi, eax
sub ebx, eax
sub ecx, eax
mov dword [ebp - 4], ecx
dec dword [ebp + 0xc]
lea eax, [eax + 4]
movsx ecx, byte [esi + eax - 4]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 4], cl
movsx ecx, byte [edi + eax - 4]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 3], cl
movsx ecx, byte [ebx + eax - 4]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 2], cl
mov ecx, dword [ebp - 4]
movsx ecx, byte [ecx + eax - 4]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 1], cl
jne 0x4081a3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push ecx
mov esi, ecx
mov ecx, esp
push 0x423204
call fcn.00401090
mov ecx, esi
call fcn.00409260
mov ecx, esi
call fcn.00409690
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40989e
mov eax, dword [eax]
test eax, eax
je 0x40989e
push eax
call edi
cmp eax, 0xa
jb 0x40989e
mov ecx, esi
call fcn.00409f00
push 0
push 0
push esi
push 0x40aed0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x48], eax
mov eax, 1
mov dword [esi + 0x4c], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4098e2
mov eax, dword [eax]
test eax, eax
je 0x4098e2
push eax
call edi
cmp eax, 1
jne 0x4098e2
mov edi, dword [esi + 0x10]
test edi, edi
je 0x4098cf
cmp dword [edi + 4], 0
jne 0x4098ca
push dword [edi]
call fcn.0040c3c0
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
jmp 0x4098d1
xor eax, eax
push 1
push eax
call fcn.0040d9f7
add esp, 4
push eax
call fcn.0040b440
pop edi
mov dword [esi + 0x4c], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ad10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c738
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x426020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push str.PE98389WCVH
lea ecx, [ebx + 0xc]
call fcn.00401240
mov ecx, ebx
call fcn.00409690
push 0x408
call fcn.0040c97c
mov esi, eax
add esp, 4
test esi, esi
je 0x40ad93
push 0x408
push 0
push esi
call fcn.0040e360
mov ecx, dword [ebx + 0x10]
add esp, 8
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x40ad88
lea eax, [ecx + 8]
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, esi
call fcn.004085d0
mov esi, eax
jmp 0x40ad95
xor esi, esi
push ecx
mov ecx, esp
push 0x4231bc
call fcn.00401090
mov ecx, esi
call fcn.00408790
cmp dword [esi + 0x400], 1
jle 0x40aebf
push 1
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00408740
mov dword [ebp - 4], 0
mov edi, dword [eax]
test edi, edi
je 0x40ade5
cmp dword [edi + 4], 0
jne 0x40ade0
push dword [edi]
call fcn.0040c3c0
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
jmp 0x40ade7
xor eax, eax
push eax
call fcn.0040d9f7
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
cmp eax, 0x12fab26
setne dl
mov byte [ebp - 0xd], dl
test edi, edi
je 0x40ae50
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jne 0x40ae50
test edi, edi
je 0x40ae50
mov eax, dword [edi]
test eax, eax
je 0x40ae2d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x40ae44
push eax
call fcn.0040c8f8
add esp, 4
mov dword [edi + 4], 0
push edi
call fcn.0040c8f8
mov dl, byte [ebp - 0xd]
add esp, 4
push 0
test dl, dl
je 0x40ae7f
push 0x422700
push str.Hr_g
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, esi
call fcn.00408650
push esi
call fcn.0040c8f8
add esp, 4
push 0
call fcn.0040d4dc
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00408740
push eax
lea ecx, [ebx + 0x60]
call fcn.00407360
lea ecx, [ebp - 0x18]
call fcn.004011e0
mov ecx, esi
call fcn.00408650
push esi
call fcn.0040c8f8
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x422700
push 0x4232d0
jmp 0x40ae60
Function at 0x40636c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4063ab
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4063ab
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4063ab
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4063ab
cmp dword [ecx + 0x74], 0xe
jbe 0x4063ab
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4085c3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x414a30
push 0x414a28
push str.FlsAlloc
push 0x1f
call fcn.00408482
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4085f7
push dword [ebp + 8]
mov ecx, esi
call dword [0x413138]
call esi
jmp 0x4085fd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408641
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x414a40
push 0x414a38
push str.FlsGetValue
push 0x21
call fcn.00408482
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408678
push dword [ebp + 8]
mov ecx, esi
call dword [0x413138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408680
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x414a48
push 0x414a40
push str.FlsSetValue
push 0x22
call fcn.00408482
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4086ba
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x413138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40bc56
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40bcf3
push ebx
push esi
call fcn.0040bc1f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040976c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40bca0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bcf2
push edi
push eax
call fcn.004095cc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40bcc0
call fcn.00409592
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bcf1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040976c
add esp, 0x20
test eax, eax
jne 0x40bcdf
push edi
call fcn.00409592
jmp 0x40bce7
push ebx
call fcn.00409592
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40bcf6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40bd07
pop esi
ret
push ebx
push edi
push esi
call fcn.0040bc1f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004095cc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40bd2f
push ebx
push esi
push edi
call fcn.00404f00
add esp, 0xc
push 0
call fcn.00409592
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40c0ff
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040bd44
Function at 0x4045a4
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.00406ecc
test esi, esi
jne 0x4045dc
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.00407008
jmp 0x4045fa
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044e8
mov edi, eax
test esi, esi
je 0x4045fa
cmp dword [ebx], 0
je 0x4045fa
dec esi
jmp 0x4045e3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e3c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50d054], 0
je 0x405e9d
cmp word [0x50d330], 0xd7b2
jne 0x405e65
cmp dword [0x50d338], 0
jbe 0x405e65
mov eax, 0x50d32c
call dword [0x50d348]
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 0x405ec8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x50a030], 0
jne 0x405eb9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406048
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 [0x50a034], 0
je 0x40606e
mov edx, esi
mov eax, ebx
call dword [0x50a034]
jmp 0x40607d
mov eax, 8
call fcn.00404230
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x50d055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406010
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 0x408efc
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 0x409063
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406ecc
cmp si, word [0x50a7dc]
jb 0x408f96
cmp si, word [0x50a9dc]
ja 0x408f96
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408f96
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x50a7dc]
jae 0x408f70
mov edi, ebx
dec edi
jmp 0x408f91
cmp si, word [ebx*8 + 0x50a7dc]
jbe 0x408f80
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408f91
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x50a7e0]
call fcn.00408e0c
jmp 0x408f96
cmp edi, dword [ebp - 0xc]
jae 0x408f5a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409045
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409045
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.004070c4
push dword [ebp - 0x164]
push 0x409080
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004070c4
push dword [ebp - 0x168]
push 0x409090
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004070c4
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040747c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40906a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406ec4
ret
Function at 0x40921c
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 0x409321
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x50fb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x50fb74]
jne 0x409268
mov eax, esi
mov edx, 0x50fb78
mov ecx, 0x55
call fcn.004070c4
push 0x50fb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40930b
push 0x50fb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406ecc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4092d9
cmp byte [0x50fb58], 0
je 0x40929e
mov edx, esi
mov eax, ebx
call fcn.004090fc
jmp 0x4092d9
mov edx, esi
mov eax, ebx
call fcn.00408efc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4092d9
cmp dword [esi], 0
je 0x4092c2
mov eax, esi
mov edx, 0x40933c
call fcn.004072d8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408efc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004072d8
push 0x50fb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x50fb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406f58
push eax
push 0x50fb78
call sub.kernel32.dll_lstrcpynW
push 0x50fb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409328
lea eax, [ebp - 4]
call fcn.00406ebc
ret
Function at 0x409560
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.00406eb4
xor eax, eax
push ebp
push 0x409745
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4095a0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4095ba
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406f58
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40972f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409754
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409649
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409754
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409649
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409788
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409649
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40972f
xor eax, eax
push ebp
push 0x409728
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409364
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 0x4096b8
mov eax, dword [ebp - 0x10]
call fcn.00404230
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.00407088
jmp 0x409703
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4097fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409703
mov eax, dword [ebp - 0x10]
call fcn.00404230
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4097fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40972f
cmp dword [ebp - 8], 0
je 0x40971e
mov eax, dword [ebp - 8]
call fcn.0040424c
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 0x40974c
lea eax, [ebp - 4]
call fcn.00406ebc
ret
Function at 0x409a10
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.00406eb4
mov eax, dword [ebp - 0x21c]
call fcn.00406eb4
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409baf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406ecc
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406f58
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 0x409ab0
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409ac2
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409aad
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409b7b
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 0x409aeb
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.00409560
cmp dword [ebp - 0x220], 0
je 0x409b23
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409904
pop ecx
mov ebx, eax
jmp 0x409b7b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040921c
mov eax, dword [ebp - 0x224]
call fcn.00409904
pop ecx
mov ebx, eax
test bl, bl
jne 0x409b6e
cmp byte [0x50fb58], 0
jne 0x409b6e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040921c
mov eax, dword [ebp - 0x228]
call fcn.00409904
pop ecx
mov ebx, eax
test bl, bl
jne 0x409b7b
push ebp
call fcn.004099b4
pop ecx
mov ebx, eax
test bl, bl
je 0x409b91
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004070c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409bb6
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406ec4
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x50fc50
push 0xa
push 0x40d920
mov eax, dword [0x50fc40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d8b0
call fcn.0041a8ac
push ebx
mov eax, dword [0x50fc40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d8c7
call fcn.0041a8ac
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d8d9
call fcn.0041a8ac
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x50fc54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x50fc58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x50fc5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x50fc60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x50fc64], ecx
add edx, dword [eax + 0x14]
mov dword [0x50fc68], edx
pop esi
pop ebx
ret

Function at 0x412730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4127d9
test eax, edx
je 0x4127dc
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412759
push edx
mov edx, eax
mov eax, esp
call fcn.004070e0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41276f
push eax
lea eax, [esp + 8]
call fcn.004070e0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41277e
movzx eax, word [eax]
sub eax, ecx
jmp 0x4127a5
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 0x4127bf
add ecx, 4
js 0x412796
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4127bc
push eax
mov eax, ecx
mov edx, 2
call fcn.004060e8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4127a3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4127a5
xor eax, eax
ret
test eax, eax
je 0x4127ec
test edx, edx
jne 0x412740
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406f58
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413bca
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x413beb
cmp ebx, 3
je 0x413beb
cmp ebx, 0x7b
je 0x413beb
mov eax, esi
call fcn.00413b6c
test al, al
jne 0x413bef
xor eax, eax
jmp 0x413bf1
mov al, 1
pop esi
pop ebx
ret

Function at 0x417a94
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 0x417acd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407008
jmp 0x417ad6
mov eax, ebx
mov edx, esi
call fcn.00406ecc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4