joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4092ac
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.0040976c
mov byte [esp], al
cmp byte [esp], 0
jne 0x409435
test edi, edi
je 0x409435
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409375
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409350
cmp edi, 0xffffffff
je 0x409311
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409311
mov byte [esp], 0
jmp 0x409435
cmp dword [esi], 1
jg 0x409350
cmp dword [esi], 0
jne 0x409342
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x409342
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409435
lea eax, [esp + 0xc]
call fcn.00408f60
dec ebp
test ebp, ebp
jg 0x4092f6
cmp edi, 0xffffffff
je 0x409375
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409373
mov byte [esp], 0
jmp 0x409435
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4092ba
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409375
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004094b0
mov edx, eax
mov ebx, dword [0x7af8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4093d9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4093d7
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4093d9
xor edi, edi
cmp byte [esp], 0
je 0x4093ff
mov ebx, dword [esi]
test bl, 1
jne 0x409415
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4093df
mov byte [esp + 1], 1
jmp 0x409415
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4093ff
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40938c
cmp byte [esp], 0
je 0x409435
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 0x40a2fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7af05c], 0
je 0x40a363
cmp word [0x7af348], 0xd7b2
jne 0x40a325
cmp dword [0x7af350], 0
jbe 0x40a325
mov eax, 0x7af344
call dword [0x7af360]
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, 0x40a390
call fcn.0040aef0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x7a303c], 0
jne 0x40a37f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a524
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 [0x7a3040], 0
je 0x40a54f
mov edx, edi
mov eax, esi
call dword [0x7a3040]
mov ebx, eax
jmp 0x40a560
mov eax, 8
call fcn.00407058
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7af05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a4ec
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 0x40a590
mov eax, ebx
call fcn.00407074
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40e6f8
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 0x40e85f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a664
cmp si, word [0x7a3a20]
jb 0x40e790
cmp si, word [0x7a3c20]
ja 0x40e790
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e790
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x7a3a20]
jae 0x40e76a
mov edi, ebx
dec edi
jmp 0x40e78b
cmp si, word [ebx*8 + 0x7a3a20]
jbe 0x40e77a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e78b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x7a3a24]
call fcn.0040e614
jmp 0x40e790
cmp edi, dword [ebp - 8]
jae 0x40e754
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e83f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e83f
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.0040b3bc
push dword [ebp - 0x160]
push 0x40e87c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b3bc
push dword [ebp - 0x164]
push 0x40e88c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b3bc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b5f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e866
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a6c4
pop eax
jmp eax
Function at 0x40ea14
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 0x40eb1a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7b1c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x7b1c30]
jne 0x40ea60
mov eax, esi
mov edx, 0x7b1c32
mov ecx, 0x55
call fcn.0040b3bc
push 0x7b1c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40eb02
push 0x7b1c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a664
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40eacf
cmp byte [0x7b1c14], 0
je 0x40ea94
mov edx, esi
mov eax, ebx
call fcn.0040e8f8
jmp 0x40eacf
mov edx, esi
mov eax, ebx
call fcn.0040e6f8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40eacf
cmp dword [esi], 0
je 0x40eab8
mov eax, esi
mov edx, 0x40eb34
call fcn.0040b514
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e6f8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b514
push 0x7b1c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x7b1c30], bx
mov eax, dword [esi]
call fcn.0040b308
mov ecx, eax
mov eax, 0x7b1c32
mov edx, 0xaa
call fcn.0040e574
push 0x7b1c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb21
lea eax, [ebp - 4]
call fcn.0040a664
pop eax
jmp eax
Function at 0x40ed5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a758
xor eax, eax
push ebp
push 0x40ef84
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40eda2
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40edbc
mov eax, dword [ebp - 4]
call fcn.0040b308
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040e574
cmp word [ebp - 0x21e], 0
je 0x40ef67
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee8b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef94
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee8b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40efd0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee8b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40efd0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee8b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f004
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee8b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f038
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ef67
xor eax, eax
push ebp
push 0x40ef60
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040eb5c
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40eeee
mov eax, dword [ebp - 0x14]
call fcn.00407058
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b368
jmp 0x40ef39
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40f078
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ef39
mov eax, dword [ebp - 0x14]
call fcn.00407058
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40f078
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b368
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef67
cmp dword [ebp - 0xc], 0
je 0x40ef54
mov eax, dword [ebp - 0xc]
call fcn.00407074
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef8b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a6c4
pop eax
jmp eax
Function at 0x40f298
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.0040a758
xor eax, eax
push ebp
push 0x40f35a
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.0040b3bc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b56c
mov eax, dword [ebx]
call fcn.0040f140
test al, al
jne 0x40f335
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b3bc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b56c
mov eax, dword [ebx]
call fcn.0040f140
test al, al
jne 0x40f335
mov eax, ebx
call fcn.0040a664
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f361
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a6c4
lea eax, [ebp - 4]
call fcn.0040a664
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x425fb5
test eax, edx
je 0x425fb8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x425f73
movzx eax, word [eax]
sub eax, ecx
jmp 0x425f9a
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x425f9b
add ecx, 4
js 0x425f8b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x425f98
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x425f9a
xor eax, eax
ret
test eax, eax
je 0x425fc4
test edx, edx
jne 0x425f64
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42736c
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.0040b308
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4273d6
test ah, 4
je 0x4273cf
test bl, bl
jne 0x427394
mov al, 1
jmp 0x4273fd
test al, 0x10
je 0x42739c
xor eax, eax
jmp 0x4273fd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4273c0
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4273fd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4273fd
test al, 0x10
sete al
jmp 0x4273fd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4273f7
cmp ebx, 3
je 0x4273f7
cmp ebx, 0x7b
je 0x4273f7
mov eax, esi
call fcn.0042732c
test al, al
jne 0x4273fb
xor eax, eax
jmp 0x4273fd
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040b308
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4274a2
test esi, 0x400
jne 0x427439
test esi, 0x10
setne bl
jmp 0x4274a2
cmp byte [esp], 0
je 0x42746d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4274a2
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x4274a2
test esi, 0x10
je 0x427479
mov bl, 1
jmp 0x4274a2
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4274a0
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x4274a2
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42c154
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
test eax, eax
jle 0x42c18d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a7fc
jmp 0x42c196
mov eax, ebx
mov edx, esi
call fcn.0040aa54
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42c1a0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42c1c4
movzx eax, word [esp]
jmp 0x42c1c6
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42d8e4
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 0x42da0b
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042d6ec
mov esi, eax
mov eax, dword [0x7ae2d0]
cmp byte [eax], 0
je 0x42d9b1
mov eax, dword [0x7adcd0]
call fcn.00408034
call fcn.004071cc
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42d8b4]
call fcn.0040dae0
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42da24
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42d9ed
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x7adbe8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x7b263c]
call fcn.0040e218
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42da12
lea eax, [ebp - 4]
mov edx, dword [0x42d8b4]
call fcn.0040dc04
pop eax
jmp eax
Function at 0x42eea4
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x42eee7
mov eax, dword [ebp - 0x10c]
mov dword [0x7b2900], eax
mov eax, 0x7b2904
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040b3bc
mov eax, 0x7b2908
call fcn.0040a664
xor eax, eax
mov dword [0x7b290c], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x7b27c4], 0xa
jl 0x42f03d
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42f048
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42f03d
xor eax, eax
push ebp
push 0x42f036
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42f0a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42ef96
cmp dword [ebp - 8], 2
jle 0x42ef96
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42ef69
adc edx, 0
mov eax, 0x7b2908
call fcn.0040b494
lea eax, [ebp - 8]
push eax
mov eax, dword [0x7b2908]
call fcn.0040b308
push eax
push 0
push 0
push 0x42f0a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42eff0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42f0c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42eff0
cmp dword [ebp - 8], 2
jle 0x42eff0
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42efc5
adc edx, 0
mov eax, 0x7b2908
call fcn.0040b494
lea eax, [ebp - 8]
push eax
mov eax, dword [0x7b2908]
call fcn.0040b308
push eax
push 0
push 0
push 0x42f0c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x7b290c
push 0
push 0
push 0x42f0d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42f01d
xor eax, eax
mov dword [0x7b290c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f03d
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x7a5720], 1
mov esp, ebp
pop ebp
ret
Function at 0x42f180
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 0x42f25a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040aa9c
lea eax, [ebp - 4]
call fcn.0040ac10
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b308
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42f242
mov eax, ebx
call fcn.00407058
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42f23b
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.0040b308
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42f223
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42f26c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42f223
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 0x42f242
mov eax, dword [ebp - 0x10]
call fcn.00407074
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f261
lea eax, [ebp - 4]
call fcn.0040a664
pop eax
jmp eax

Function at 0x4302e8
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.0040ab50
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410eb4
mov edi, eax
cmp edi, 0x104
jbe 0x430293
mov eax, edi
add eax, eax
call fcn.00407058
mov esi, eax
jmp 0x430295
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410eb4
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4302ce
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 0x4302b8
mov eax, esp
cmp esi, eax
je 0x4302db
mov eax, esi
call fcn.00407074
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 0x430314
cmp bl, 0
je 0x430310
cmp bl, 0x41
jl 0x43030b
cmp bl, 0x5a
jg 0x43030b
or bl, 0x20
xor al, bl
inc esi
jmp 0x4302ef
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x430254

Function at 0x430c2c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040b3bc
add esp, 0x800
pop ebx
ret
Function at 0x431244
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0040a664
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040b308
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x431289
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040a7fc
jmp 0x4312a2
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040b494
push ebx
mov eax, dword [esi]
call fcn.0040b308
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433884
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4338a4
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x4338be
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4338b9
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x4338c3
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x433931
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x43397a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x4338ef
inc dword [ebp - 0xc]
jmp 0x433907
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x433907
cmp dword [ebp - 0xc], 0
jle 0x433907
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x433929
xor eax, eax
jmp 0x433925
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x433924
mov eax, esi
jmp 0x43397d
inc eax
cmp eax, ecx
jle 0x433911
inc esi
cmp esi, dword [ebp - 8]
jl 0x4338db
jmp 0x43397a
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x43397a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x433952
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x433974
xor eax, eax
jmp 0x433970
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x43396f
mov eax, esi
jmp 0x43397d
inc eax
cmp eax, ecx
jle 0x43395c
inc esi
cmp esi, dword [ebp - 8]
jl 0x43393a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10