joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432f50
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword [0x4d2ee4]
sub esp, 0x18
push esi
push edi
mov edi, edx
mov esi, ecx
test eax, eax
jne 0x432f9a
mov eax, 1
mov ecx, 0x4d2ee4
lock xadd dword [ecx], eax
test eax, eax
jne 0x432f9a
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4d2ee8], eax
jmp 0x432f9f
mov eax, dword [0x4d2ee8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
lea eax, [ebp - 0x18]
mov ecx, 0x4d2eec
push eax
call fcn.00414390
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xd], 0
jne 0x433033
cmp dword [eax + 0x24], 8
lea edx, [eax + 0x10]
mov eax, dword [edx + 0x10]
mov dword [ebp - 8], eax
jb 0x432fd1
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], ecx
jb 0x432fdf
mov esi, dword [esi]
cmp dword [ebp - 8], ecx
mov eax, ecx
mov ecx, esi
cmovb eax, dword [ebp - 8]
push eax
call fcn.004146b0
add esp, 4
test eax, eax
jne 0x433001
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jae 0x433003
jmp 0x433033
js 0x433033
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x4d2eec]
je 0x433033
add eax, 0x28
cmp dword [edi + 0x14], 0x10
jb 0x433019
mov edi, dword [edi]
cmp dword [eax + 0x14], 0x10
jb 0x433021
mov eax, dword [eax]
push edi
push eax
call fcn.00461d6c
add esp, 8
mov byte [ebp - 1], 1
test eax, eax
je 0x433037
mov byte [ebp - 1], 0
push dword [0x4d2ee8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x439780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
push ebx
push esi
lea ebx, [eax + 0xfc]
mov dword [ebp - 8], eax
mov dword [eax + 0x108], 6
mov edx, dword [ebx]
push edi
mov edi, dword [ebx + 4]
mov ecx, edi
sub ecx, edx
sar ecx, 4
cmp ecx, 6
jbe 0x4397e3
lea eax, [edx + 0x60]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x4397de
lea esi, [eax + 4]
nop dword [eax]
cmp byte [esi], 0
je 0x4397d1
push dword [esi + 8]
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x10
lea eax, [esi - 4]
cmp eax, edi
jne 0x4397c0
mov eax, dword [ebp - 4]
mov dword [ebx + 4], eax
jmp 0x439828
jae 0x439828
mov eax, dword [ebx + 8]
sub eax, edx
sar eax, 4
cmp eax, 6
jae 0x4397fe
sub esp, 8
mov ecx, ebx
call fcn.0043f480
jmp 0x439828
mov eax, 6
sub eax, ecx
je 0x439825
nop word [eax + eax]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 8], 0xffffffff
add edi, 0x10
sub eax, 1
jne 0x439810
mov dword [ebx + 4], edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
push 0x10
call fcn.004511c8
mov ecx, dword [ebp - 8]
add esp, 4
mov dword [ebp - 4], eax
mov dword [eax + 4], str.UpdaterManifest::InstallThread
push 0
push 0
push eax
push 0x4191d0
push 0
push 0
mov dword [eax], vtable.Util::MethodThreadAdapter_class_UpdaterManifest__unsigned_char____cdecl_UpdaterManifest::__int__void__.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0x437a50
call edi
mov ecx, dword [ebx]
add ecx, esi
add esi, 0x10
mov dword [ecx], str.UpdaterManifest::InstallThread
mov byte [ecx + 4], 1
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 0xc], eax
cmp esi, 0x60
jl 0x439830
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43db10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], eax
jb 0x43db2e
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x43db54
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x43db40
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.004227b0
pop edi
pop esi
pop ebx
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x43db74
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x450b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x4d100c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp byte [edi + 2], 0
je 0x450bc1
cmp byte [edi + 0x3c], 0
je 0x450bc1
push 2
lea eax, [esp + 0x14]
mov byte [edi + 0x3c], 1
push eax
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov byte [edi + 0x3c], 0
xor eax, eax
lea ecx, [edi + 0x28]
cmp byte [edi + 7], al
lea esi, [edi + 0x40]
cmove ecx, eax
push ecx
push esi
push dword [ebp + 0xc]
push ebx
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00450db2
mov esp, ebp
pop ebp
ret 8

Function at 0x461c70
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x477f28
push esi
call fcn.0046640c
pop ecx
pop ecx
test eax, eax
jne 0x461c9e
xor al, al
jmp 0x461d1b
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004619b3
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x461cd8
push dword [ebp - 0x210]
call fcn.004605b8
xor al, al
jmp 0x461d19
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x461cde
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x461cfe
push edx
call fcn.00461ba6
pop ecx
test al, al
je 0x461cc9
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x461d0c
mov bl, 1
push dword [ebp - 0x210]
call fcn.004605b8
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00450db2
leave
ret

Function at 0x46556d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x479380
push 0x479378
push str.FlsAlloc
push 0x1e
call fcn.0046542e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4655a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x476370]
call esi
jmp 0x4655a7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4655eb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x479390
push 0x479388
push str.FlsGetValue
push 0x20
call fcn.0046542e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x465622
push dword [ebp + 8]
mov ecx, esi
call dword [0x476370]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x467759
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 0x4677f6
push ebx
push esi
call fcn.00467722
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.00465c09
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4677a3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4677f5
push edi
push eax
call fcn.0046474e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4677c3
call fcn.00463dc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4677f4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00465c09
add esp, 0x20
test eax, eax
jne 0x4677e2
push edi
call fcn.00463dc4
jmp 0x4677ea
push ebx
call fcn.00463dc4
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 0x4677f9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x46780a
pop esi
ret
push ebx
push edi
push esi
call fcn.00467722
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046474e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x467832
push ebx
push esi
push edi
call fcn.00453fa0
add esp, 0xc
push 0
call fcn.00463dc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x467bf6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00467847
Function at 0x438cab
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ebx
add edx, edx
sub edx, esi
add esi, 0x6f913d65
call fcn.00438cef
dec edx
sub edx, esi
xor dword [eax], ebx
inc edx
or edx, edx
add esi, edx
add eax, 1
or esi, edx
push 0x8e77eda5
pop esi
or esi, edx
cmp eax, ecx
jne fcn.00438cab
push edx
pop edx
ret
Function at 0x44ba10
Capabilities:
Accept command line arguments
Check os version

Disassembly:
sub esp, 8
mov al, byte [0x662041]
mov cl, byte [0x66204b]
xor cl, al
push ebx
mov byte [0x66204b], cl
mov cl, byte [0x662042]
or cl, 0x10
shr cl, 3
and ecx, 0xff
mov dword [esp + 4], ecx
fild dword [esp + 4]
fdivr qword [0x665968]
fadd qword [0x662058]
fstp qword [0x6659d8]
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dl, byte [0x66204d]
mov ebx, eax
mov al, byte [0x662041]
or al, dl
mov byte [0x662041], al
mov al, byte [0x662045]
or al, 2
shr al, 1
and eax, 0xff
mov dword [esp + 4], eax
fild dword [esp + 4]
fdivr qword [0x662058]
fadd qword [0x65e718]
fstp qword [0x665978]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x44bac9
mov edx, dword [0x665ac4]
push 0x6657dc
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [0x665ac4]
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov ecx, ebx
xor eax, eax
and ecx, 0xff
mov al, bh
cmp ecx, 5
pop ebx
jne 0x44baee
cmp eax, 1
jae 0x44bafe
mov dword [0x664fc8], 0x409
add esp, 8
ret
ja 0x44bafe
mov dword [0x664fc8], 0x409
add esp, 8
ret
mov dword [0x664fc8], 0x7f
add esp, 8
ret

Function at 0x659a1d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6623a8
cmp edx, dword [eax]
je 0x659a3f
add eax, 8
inc ecx
cmp eax, 0x662438
jl 0x659a30
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6623a8]
jne 0x659b6d
mov eax, dword [0xa5cd0c]
cmp eax, 1
je 0x659b47
test eax, eax
jne 0x659a70
cmp dword [0x6622d4], 1
je 0x659b47
cmp edx, 0xfc
je 0x659b6d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659aa7
lea eax, [ebp - 0x1a4]
push 0x65eab0
push eax
call fcn.0065a400
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065a890
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x659aea
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065a890
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65eaac
push edi
call fcn.0065c760
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65ea90
push eax
call fcn.0065a400
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a410
lea eax, [ebp - 0xa0]
push 0x65ea8c
push eax
call fcn.0065a410
push dword [esi + 0x6623ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a410
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65ea64
push eax
call fcn.0065c6d4
add esp, 0x2c
pop edi
jmp 0x659b6d
lea eax, [ebp + 8]
lea esi, [esi + 0x6623ac]
push 0
push eax
push dword [esi]
call fcn.0065a890
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404484
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x44f008], 0x8088405
inc edx
mov dword [ebx + 0x44f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405c8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x453054], 0
je 0x405ced
cmp word [0x453330], 0xd7b2
jne 0x405cb5
cmp dword [0x453338], 0
jbe 0x405cb5
mov eax, 0x45332c
call dword [0x453348]
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 0x405d18
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44f030], 0
jne 0x405d09
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408590
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 0x4086f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004067a4
cmp si, word [0x44f7d0]
jb 0x40862a
cmp si, word [0x44f9d0]
ja 0x40862a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40862a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x44f7d0]
jae 0x408604
mov edi, ebx
dec edi
jmp 0x408625
cmp si, word [ebx*8 + 0x44f7d0]
jbe 0x408614
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408625
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x44f7d4]
call fcn.004084a0
jmp 0x40862a
cmp edi, dword [ebp - 0xc]
jae 0x4085ee
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4086d9
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4086d9
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.0040698c
push dword [ebp - 0x164]
push 0x408714
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0040698c
push dword [ebp - 0x168]
push 0x408724
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040698c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406d38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4086fe
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040679c
ret
Function at 0x4088b0
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 0x4089b5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x455b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x455b74]
jne 0x4088fc
mov eax, esi
mov edx, 0x455b78
mov ecx, 0x55
call fcn.0040698c
push 0x455b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40899f
push 0x455b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.004067a4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40896d
cmp byte [0x455b58], 0
je 0x408932
mov edx, esi
mov eax, ebx
call fcn.00408790
jmp 0x40896d
mov edx, esi
mov eax, ebx
call fcn.00408590
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40896d
cmp dword [esi], 0
je 0x408956
mov eax, esi
mov edx, 0x4089d0
call fcn.00406b94
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408590
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406b94
push 0x455b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x455b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406830
push eax
push 0x455b78
call sub.kernel32.dll_lstrcpynW
push 0x455b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4089bc
lea eax, [ebp - 4]
call fcn.00406794
ret
Function at 0x408bf4
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.0040678c
xor eax, eax
push ebp
push 0x408dd9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408c34
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408c4e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406830
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408dc3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408de8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408cdd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408de8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408cdd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408cdd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e50
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408dc3
xor eax, eax
push ebp
push 0x408dbc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004089f8
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 0x408d4c
mov eax, dword [ebp - 0x10]
call fcn.004041c4
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.00406950
jmp 0x408d97
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408e90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408d97
mov eax, dword [ebp - 0x10]
call fcn.004041c4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408e90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406950
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408dc3
cmp dword [ebp - 8], 0
je 0x408db2
mov eax, dword [ebp - 8]
call fcn.004041e0
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 0x408de0
lea eax, [ebp - 4]
call fcn.00406794
ret
Function at 0x4090a4
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.0040678c
mov eax, dword [ebp - 0x21c]
call fcn.0040678c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409243
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004067a4
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406830
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 0x409144
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409156
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409141
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40920f
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 0x40917f
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.00408bf4
cmp dword [ebp - 0x220], 0
je 0x4091b7
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408f98
pop ecx
mov ebx, eax
jmp 0x40920f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004088b0
mov eax, dword [ebp - 0x224]
call fcn.00408f98
pop ecx
mov ebx, eax
test bl, bl
jne 0x409202
cmp byte [0x455b58], 0
jne 0x409202
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004088b0
mov eax, dword [ebp - 0x228]
call fcn.00408f98
pop ecx
mov ebx, eax
test bl, bl
jne 0x40920f
push ebp
call fcn.00409048
pop ecx
mov ebx, eax
test bl, bl
je 0x409225
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040698c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40924a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040679c
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x455c54
push 0xa
push 0x40ac04
mov eax, dword [0x455c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40ab94
call fcn.00415220
push ebx
mov eax, dword [0x455c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40abab
call fcn.00415220
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40abbd
call fcn.00415220
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x455c58], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x455c5c], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x455c60], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x455c64], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x455c68], ecx
add edx, dword [eax + 0x14]
mov dword [0x455c6c], edx
pop esi
pop ebx
ret

Function at 0x40e260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40e309
test eax, edx
je 0x40e30c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40e289
push edx
mov edx, eax
mov eax, esp
call fcn.004069a8
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40e29f
push eax
lea eax, [esp + 8]
call fcn.004069a8
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40e2ae
movzx eax, word [eax]
sub eax, ecx
jmp 0x40e2d5
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 0x40e2ef
add ecx, 4
js 0x40e2c6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40e2ec
push eax
mov eax, ecx
mov edx, 2
call fcn.00405e64
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40e2d3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40e2d5
xor eax, eax
ret
test eax, eax
je 0x40e31c
test edx, edx
jne 0x40e270
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4127dc
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 0x412815
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004068e0
jmp 0x41281e
mov eax, ebx
mov edx, esi
call fcn.004067a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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