joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406060
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x1c], 0x47
mov edx, 1
imul eax, edx, 0xe
mov byte [ebp + eax - 0x1c], 0x61
mov ecx, 1
imul edx, ecx, 0x11
mov byte [ebp + edx - 0x1c], 0x57
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x1c], 0x65
mov ecx, 1
imul edx, ecx, 5
mov byte [ebp + edx - 0x1c], 0x64
mov eax, 1
shl eax, 3
mov byte [ebp + eax - 0x1c], 0x65
mov ecx, 1
imul edx, ecx, 0xa
mov byte [ebp + edx - 0x1c], 0x69
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0x1c], 0x4d
mov edx, 1
imul eax, edx, 0xd
mov byte [ebp + eax - 0x1c], 0x4e
mov ecx, 1
imul edx, ecx, 0xf
mov byte [ebp + edx - 0x1c], 0x6d
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x1c], 0x6c
mov edx, 1
imul eax, edx, 9
mov byte [ebp + eax - 0x1c], 0x46
mov ecx, 1
imul edx, ecx, 7
mov byte [ebp + edx - 0x1c], 0x6c
mov eax, 1
imul ecx, eax, 6
mov byte [ebp + ecx - 0x1c], 0x75
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 0x1c], 0x74
mov eax, 1
imul ecx, eax, 0xc
mov byte [ebp + ecx - 0x1c], 0x65
mov edx, 1
shl edx, 2
mov byte [ebp + edx - 0x1c], 0x6f
mov eax, 1
imul ecx, eax, 0x12
mov byte [ebp + ecx - 0x1c], 0
mov edx, 1
shl edx, 4
mov byte [ebp + edx - 0x1c], 0x65
lea eax, [ebp - 0x1c]
push eax
call fcn.004047c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40618e
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x406220
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 1
imul ecx, eax, 0xa
mov byte [ebp + ecx - 0x10], 0x73
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0x10], 0x63
mov ecx, 1
imul edx, ecx, 3
mov byte [ebp + edx - 0x10], 0x74
mov eax, 1
shl eax, 2
mov byte [ebp + eax - 0x10], 0x50
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0x10], 0x6f
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x10], 0x45
mov edx, 1
imul eax, edx, 0xb
mov byte [ebp + eax - 0x10], 0
mov ecx, 1
imul edx, ecx, 9
mov byte [ebp + edx - 0x10], 0x73
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x10], 0x78
mov ecx, 1
imul edx, ecx, 5
mov byte [ebp + edx - 0x10], 0x72
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x10], 0x69
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x10], 0x65
lea edx, [ebp - 0x10]
push edx
call fcn.004047c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4062e1
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4062f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
call fcn.004046e0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406400
mov eax, 1
imul ecx, eax, 9
mov byte [ebp + ecx - 0x1c], 0x54
mov edx, 1
imul eax, edx, 3
mov byte [ebp + eax - 0x1c], 0x57
mov ecx, 1
imul edx, ecx, 0xe
mov byte [ebp + edx - 0x1c], 0
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x1c], 0x78
mov edx, 1
shl edx, 2
mov byte [ebp + edx - 0x1c], 0x69
mov eax, 1
imul ecx, eax, 0xc
mov byte [ebp + ecx - 0x1c], 0x74
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0x1c], 0x6f
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x1c], 0x77
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 0x1c], 0x74
mov eax, 1
imul ecx, eax, 0xa
mov byte [ebp + ecx - 0x1c], 0x65
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x1c], 0x6e
mov ecx, 1
imul edx, ecx, 0xd
mov byte [ebp + edx - 0x1c], 0x57
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x1c], 0x65
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x1c], 0x53
mov eax, 1
imul ecx, eax, 6
mov byte [ebp + ecx - 0x1c], 0x64
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4063f6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x407f61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0041cfae
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x407f98
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00407fb9
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41808e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4180d3
call fcn.0041cfae
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4180d3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4180ef
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041fb48
mov ebx, eax
test edi, edi
je 0x4180ed
test esi, esi
je 0x4180ed
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x487c43
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004fc891
call fcn.0041d005
cmp dword [eax + 0x14], 0
jne 0x487c5e
mov ecx, esi
pop esi
jmp fcn.00487049
pop esi
ret

Function at 0x487d64
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041c6da
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x487da0
call fcn.00487f83
mov dword [esi + 0xc], 1
jmp 0x487da5
call fcn.00487f83
cmp dword [esi], 0
je 0x487dee
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x487dc8
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00418146
jmp 0x487dd9
push 0xff
mov ecx, esi
call fcn.0040a253
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040b063
jmp 0x487e12
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x487e12
push dword [esi]
push dword [ebp - 4]
call fcn.0041d1b4
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x487ed8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00487f83
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x487f20
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00418146
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040b063
jmp 0x487f2b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041d1b4
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4fa53c
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.005159f6
call fcn.0041d005
cmp dword [eax + 0x14], 0
jne 0x4fa557
mov ecx, esi
pop esi
jmp fcn.004f9e25
pop esi
ret
Function at 0x407e64
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408248
mov byte [esp], al
cmp byte [esp], 0
jne 0x407fee
test edi, edi
je 0x407fee
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407f2e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x407f09
cmp edi, 0xffffffff
je 0x407ec9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407ec9
mov byte [esp], 0
jmp 0x407fee
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407f09
test ebx, ebx
jne 0x407efb
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407efb
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407fee
lea eax, [esp + 0xc]
call fcn.00407b44
dec ebp
test ebp, ebp
jg 0x407eae
cmp edi, 0xffffffff
je 0x407f2e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407f2c
mov byte [esp], 0
jmp 0x407fee
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407e72
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407f2e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040805c
mov edx, eax
mov ebx, dword [0x57f8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407f92
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407f90
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407f92
xor edi, edi
cmp byte [esp], 0
je 0x407fb8
mov ebx, dword [esi]
test bl, 1
jne 0x407fce
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407f98
mov byte [esp + 1], 1
jmp 0x407fce
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407fb8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407f45
cmp byte [esp], 0
je 0x407fee
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408b68
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x581b18
cmp dword [ebp + 0xc], 2
jl 0x408b7c
mov ebx, 0x581b48
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x408bb4
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x404af0
mov dword [0x57f01c], eax
mov eax, 0x404af8
mov dword [0x57f020], eax
mov eax, ebx
call fcn.00408a4c
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x408be9
cmp al, 3
jge 0x408be9
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x408bfa
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x408c05
call dword [ecx + eax*4]
cmp dword [0x57f040], 0
jne 0x408c1b
mov byte [0x57f048], 1
fnstcw word [0x577028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00408eac
call fcn.00408afc
ret 4

Function at 0x408e14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x57f058], 0
je 0x408e7b
cmp word [0x57f344], 0xd7b2
jne 0x408e3d
cmp dword [0x57f34c], 0
jbe 0x408e3d
mov eax, 0x57f340
call dword [0x57f35c]
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
mov eax, 0x408ea8
call fcn.004099ac
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x577032], 0
jne 0x408e97
push 0
push 0x5779c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409044
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x577034], 0
je 0x40906f
mov edx, edi
mov eax, esi
call dword [0x577034]
mov ebx, eax
jmp 0x409080
mov eax, 8
call fcn.00406798
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x57f059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40900c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4090b0
mov eax, ebx
call fcn.004067b4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40b81c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b981
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409184
cmp si, word [0x577a00]
jb 0x40b8b4
cmp si, word [0x577c00]
ja 0x40b8b4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b8b4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x577a00]
jae 0x40b88e
mov edi, ebx
dec edi
jmp 0x40b8af
cmp si, word [ebx*8 + 0x577a00]
jbe 0x40b89e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b8af
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x577a04]
call fcn.0040b73c
jmp 0x40b8b4
cmp edi, dword [ebp - 8]
jae 0x40b878
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b963
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b963
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409d64
push dword [ebp - 0x160]
push 0x40b99c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409d64
push dword [ebp - 0x164]
push 0x40b9ac
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409d64
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409f9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b988
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004091e4
ret
Function at 0x40bb34
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 0x40bc38
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x581b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x581ba0]
jne 0x40bb80
mov eax, esi
mov edx, 0x581ba2
mov ecx, 0x55
call fcn.00409d64
push 0x581b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bc22
push 0x581b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409184
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bbef
cmp byte [0x581b84], 0
je 0x40bbb4
mov edx, esi
mov eax, ebx
call fcn.0040ba18
jmp 0x40bbef
mov edx, esi
mov eax, ebx
call fcn.0040b81c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bbef
cmp dword [esi], 0
je 0x40bbd8
mov eax, esi
mov edx, 0x40bc50
call fcn.00409ebc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b81c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409ebc
push 0x581b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x581ba0], bx
mov eax, dword [esi]
call fcn.00409ca8
mov ecx, eax
mov eax, 0x581ba2
mov edx, 0xaa
call fcn.0040b69c
push 0x581b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc3f
lea eax, [ebp - 4]
call fcn.00409184
ret
Function at 0x40be68
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.00409268
xor eax, eax
push ebp
push 0x40c08d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40bea8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40bec2
mov eax, dword [ebp - 4]
call fcn.00409ca8
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b69c
cmp word [ebp - 0x21a], 0
je 0x40c077
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c09c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bf91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c09c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bf91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bf91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bf91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c10c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bf91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c140
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c077
xor eax, eax
push ebp
push 0x40c070
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bc78
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 0x40c000
mov eax, dword [ebp - 0x10]
call fcn.00406798
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.00409d10
jmp 0x40c04b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c180
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c04b
mov eax, dword [ebp - 0x10]
call fcn.00406798
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c180
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409d10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c077
cmp dword [ebp - 8], 0
je 0x40c066
mov eax, dword [ebp - 8]
call fcn.004067b4
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 0x40c094
lea eax, [ebp - 4]
call fcn.00409184
ret
Function at 0x40c37c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409268
xor eax, eax
push ebp
push 0x40c43c
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409d64
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409f14
mov eax, dword [ebx]
call fcn.0040c244
test al, al
jne 0x40c419
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409d64
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409f14
mov eax, dword [ebx]
call fcn.0040c244
test al, al
jne 0x40c419
mov eax, ebx
call fcn.00409184
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c443
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004091e4
lea eax, [ebp - 4]
call fcn.00409184
ret

Function at 0x40ccb4
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 0x41d094
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41d0ed
test eax, edx
je 0x41d0f0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41d0ab
movzx eax, word [eax]
sub eax, ecx
jmp 0x41d0d2
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 0x41d0d3
add ecx, 4
js 0x41d0c3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41d0d0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41d0d2
xor eax, eax
ret
test eax, eax
je 0x41d0fc
test edx, edx
jne 0x41d09c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41e354
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41e381
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41e454
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00409ca8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41e4be
test ah, 4
je 0x41e4b7
test bl, bl
jne 0x41e47c
mov al, 1
jmp 0x41e4e5
test al, 0x10
je 0x41e484
xor eax, eax
jmp 0x41e4e5
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41e4a8
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41e4e5
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41e4e5
test al, 0x10
sete al
jmp 0x41e4e5
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41e4df
cmp ebx, 3
je 0x41e4df
cmp ebx, 0x7b
je 0x41e4df
mov eax, esi
call fcn.0041e414
test al, al
jne 0x41e4e3
xor eax, eax
jmp 0x41e4e5
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x422198
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 0x4221d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040930c
jmp 0x4221da
mov eax, ebx
mov edx, esi
call fcn.00409564
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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