joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a6bc
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x6aaba0
cmp dword [ebp + 0xc], 2
jl 0x40a6d0
mov ebx, 0x6aabd0
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 0x40a708
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x40528c
mov dword [0x6a801c], eax
mov eax, 0x405294
mov dword [0x6a8020], eax
mov eax, ebx
call fcn.0040a5a0
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 0x40a73d
cmp al, 3
jge 0x40a73d
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40a74e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x40a759
call dword [ecx + eax*4]
cmp dword [0x6a8040], 0
jne 0x40a76f
mov byte [0x6a8048], 1
fnstcw word [0x69a02c]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.0040aa1c
call fcn.0040a650
ret 4

Function at 0x40a984
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6a805c], 0
je 0x40a9eb
cmp word [0x6a834c], 0xd7b2
jne 0x40a9ad
cmp dword [0x6a8354], 0
jbe 0x40a9ad
mov eax, 0x6a8348
call dword [0x6a8364]
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, 0x40aa18
call fcn.0040b574
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x69a036], 0
jne 0x40aa07
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40abac
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 [0x69a038], 0
je 0x40abd7
mov edx, edi
mov eax, esi
call dword [0x69a038]
mov ebx, eax
jmp 0x40abe8
mov eax, 8
call fcn.00406ea0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x6a805d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40ab74
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 0x40ac18
mov eax, ebx
call fcn.00406ebc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40e8b8
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 0x40ea1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040acec
cmp si, word [0x69aa18]
jb 0x40e950
cmp si, word [0x69ac18]
ja 0x40e950
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e950
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x69aa18]
jae 0x40e92a
mov edi, ebx
dec edi
jmp 0x40e94b
cmp si, word [ebx*8 + 0x69aa18]
jbe 0x40e93a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e94b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x69aa1c]
call fcn.0040e7d8
jmp 0x40e950
cmp edi, dword [ebp - 8]
jae 0x40e914
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e9ff
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e9ff
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.0040b874
push dword [ebp - 0x160]
push 0x40ea3c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b874
push dword [ebp - 0x164]
push 0x40ea4c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b874
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040baac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea26
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040ad4c
pop eax
jmp eax
Function at 0x40ebd4
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 0x40ecda
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6aac18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x6aac30]
jne 0x40ec20
mov eax, esi
mov edx, 0x6aac32
mov ecx, 0x55
call fcn.0040b874
push 0x6aac18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ecc2
push 0x6aac18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040acec
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ec8f
cmp byte [0x6aac14], 0
je 0x40ec54
mov edx, esi
mov eax, ebx
call fcn.0040eab8
jmp 0x40ec8f
mov edx, esi
mov eax, ebx
call fcn.0040e8b8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ec8f
cmp dword [esi], 0
je 0x40ec78
mov eax, esi
mov edx, 0x40ecf4
call fcn.0040b9cc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e8b8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b9cc
push 0x6aac18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x6aac30], bx
mov eax, dword [esi]
call fcn.0040b7c0
mov ecx, eax
mov eax, 0x6aac32
mov edx, 0xaa
call fcn.0040e738
push 0x6aac18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ece1
lea eax, [ebp - 4]
call fcn.0040acec
pop eax
jmp eax
Function at 0x40ef1c
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.0040ade0
xor eax, eax
push ebp
push 0x40f144
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ef62
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ef7c
mov eax, dword [ebp - 4]
call fcn.0040b7c0
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040e738
cmp word [ebp - 0x21e], 0
je 0x40f127
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f154
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f04b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f154
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f04b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f190
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f04b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f190
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f04b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f1c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f04b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f1f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40f127
xor eax, eax
push ebp
push 0x40f120
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040ed1c
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 0x40f0ae
mov eax, dword [ebp - 0x14]
call fcn.00406ea0
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.0040b820
jmp 0x40f0f9
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40f238
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40f0f9
mov eax, dword [ebp - 0x14]
call fcn.00406ea0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40f238
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f127
cmp dword [ebp - 0xc], 0
je 0x40f114
mov eax, dword [ebp - 0xc]
call fcn.00406ebc
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 0x40f14b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ad4c
pop eax
jmp eax
Function at 0x40f454
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.0040ade0
xor eax, eax
push ebp
push 0x40f516
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.0040b874
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ba24
mov eax, dword [ebx]
call fcn.0040f300
test al, al
jne 0x40f4f1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b874
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ba24
mov eax, dword [ebx]
call fcn.0040f300
test al, al
jne 0x40f4f1
mov eax, ebx
call fcn.0040acec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f51d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040ad4c
lea eax, [ebp - 4]
call fcn.0040acec
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x426141
test eax, edx
je 0x426144
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4260ff
movzx eax, word [eax]
sub eax, ecx
jmp 0x426126
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 0x426127
add ecx, 4
js 0x426117
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x426124
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x426126
xor eax, eax
ret
test eax, eax
je 0x426150
test edx, edx
jne 0x4260f0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x427450
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.0040b7c0
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4274ba
test ah, 4
je 0x4274b3
test bl, bl
jne 0x427478
mov al, 1
jmp 0x4274e1
test al, 0x10
je 0x427480
xor eax, eax
jmp 0x4274e1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4274a4
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4274e1
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4274e1
test al, 0x10
sete al
jmp 0x4274e1
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4274db
cmp ebx, 3
je 0x4274db
cmp ebx, 0x7b
je 0x4274db
mov eax, esi
call fcn.00427410
test al, al
jne 0x4274df
xor eax, eax
jmp 0x4274e1
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4274e8
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.0040b7c0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x427586
test esi, 0x400
jne 0x42751d
test esi, 0x10
setne bl
jmp 0x427586
cmp byte [esp], 0
je 0x427551
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x427586
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x427586
test esi, 0x10
je 0x42755d
mov bl, 1
jmp 0x427586
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x427584
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x427586
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42c624
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 0x42c65d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040ae84
jmp 0x42c666
mov eax, ebx
mov edx, esi
call fcn.0040b0dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42c670
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 0x42c694
movzx eax, word [esp]
jmp 0x42c696
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42e38c
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 0x42e4b3
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042e194
mov esi, eax
mov eax, dword [0x6a7888]
cmp byte [eax], 0
je 0x42e459
mov eax, dword [0x6a7198]
call fcn.0040811c
call fcn.00407014
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 [0x42e35c]
call fcn.0040dcdc
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 0x42e4cc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42e495
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x6a709c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6ab63c]
call fcn.0040e3dc
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 0x42e4ba
lea eax, [ebp - 4]
mov edx, dword [0x42e35c]
call fcn.0040de00
pop eax
jmp eax
Function at 0x42fa38
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 0x42fa7b
mov eax, dword [ebp - 0x10c]
mov dword [0x6ab8fc], eax
mov eax, 0x6ab900
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040b874
mov eax, 0x6ab904
call fcn.0040acec
xor eax, eax
mov dword [0x6ab908], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x6ab7c0], 0xa
jl 0x42fbd1
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42fbdc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42fbd1
xor eax, eax
push ebp
push 0x42fbca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42fc38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42fb2a
cmp dword [ebp - 8], 2
jle 0x42fb2a
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42fafd
adc edx, 0
mov eax, 0x6ab904
call fcn.0040b94c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x6ab904]
call fcn.0040b7c0
push eax
push 0
push 0
push 0x42fc38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42fb84
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42fc58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42fb84
cmp dword [ebp - 8], 2
jle 0x42fb84
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42fb59
adc edx, 0
mov eax, 0x6ab904
call fcn.0040b94c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x6ab904]
call fcn.0040b7c0
push eax
push 0
push 0
push 0x42fc58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x6ab908
push 0
push 0
push 0x42fc6c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42fbb1
xor eax, eax
mov dword [0x6ab908], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fbd1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x69c750], 1
mov esp, ebp
pop ebp
ret
Function at 0x42fd14
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 0x42fdee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040b124
lea eax, [ebp - 4]
call fcn.0040b294
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7c0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42fdd6
mov eax, ebx
call fcn.00406ea0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42fdcf
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.0040b7c0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42fdb7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42fe00
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42fdb7
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 0x42fdd6
mov eax, dword [ebp - 0x10]
call fcn.00406ebc
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fdf5
lea eax, [ebp - 4]
call fcn.0040acec
pop eax
jmp eax

Function at 0x430e44
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.0040b1d4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004110e8
mov edi, eax
cmp edi, 0x104
jbe 0x430def
mov eax, edi
add eax, eax
call fcn.00406ea0
mov esi, eax
jmp 0x430df1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004110e8
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x430e2a
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 0x430e14
mov eax, esp
cmp esi, eax
je 0x430e37
mov eax, esi
call fcn.00406ebc
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 0x430e70
cmp bl, 0
je 0x430e6c
cmp bl, 0x41
jl 0x430e67
cmp bl, 0x5a
jg 0x430e67
or bl, 0x20
xor al, bl
inc esi
jmp 0x430e4b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x430db0

Function at 0x4317ac
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.0040b874
add esp, 0x800
pop ebx
ret
Function at 0x431da8
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.0040acec
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040b7c0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x431ded
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040ae84
jmp 0x431e06
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040b94c
push ebx
mov eax, dword [esi]
call fcn.0040b7c0
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x434074
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 0x434092
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x4340aa
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4340a5
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x4340af
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x43411d
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x434166
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x4340db
inc dword [ebp - 0xc]
jmp 0x4340f3
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x4340f3
cmp dword [ebp - 0xc], 0
jle 0x4340f3
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x434115
xor eax, eax
jmp 0x434111
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x434110
mov eax, esi
jmp 0x434169
inc eax
cmp eax, ecx
jle 0x4340fd
inc esi
cmp esi, dword [ebp - 8]
jl 0x4340c7
jmp 0x434166
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x434166
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x43413e
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x434160
xor eax, eax
jmp 0x43415c
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x43415b
mov eax, esi
jmp 0x434169
inc eax
cmp eax, ecx
jle 0x434148
inc esi
cmp esi, dword [ebp - 8]
jl 0x434126
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10