joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408558
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 0x40865d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x442b54
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x442b6c]
jne 0x4085a4
mov eax, esi
mov edx, 0x442b70
mov ecx, 0x55
call fcn.004068f0
push 0x442b54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408647
push 0x442b54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406708
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408615
cmp byte [0x442b50], 0
je 0x4085da
mov edx, esi
mov eax, ebx
call fcn.00408438
jmp 0x408615
mov edx, esi
mov eax, ebx
call fcn.00408238
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408615
cmp dword [esi], 0
je 0x4085fe
mov eax, esi
mov edx, 0x408678
call fcn.00406af8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408238
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406af8
push 0x442b54
call sub.kernel32.dll_EnterCriticalSection
mov word [0x442b6c], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406794
push eax
push 0x442b70
call sub.kernel32.dll_lstrcpynW
push 0x442b54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408664
lea eax, [ebp - 4]
call fcn.004066f8
ret
Function at 0x40889c
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.004066f0
xor eax, eax
push ebp
push 0x408a81
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4088dc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4088f6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406794
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408a6b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408a90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408985
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408a90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408985
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ac4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408985
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408af8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408a6b
xor eax, eax
push ebp
push 0x408a64
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004086a0
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 0x4089f4
mov eax, dword [ebp - 0x10]
call fcn.00404188
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.004068b4
jmp 0x408a3f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408b38
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408a3f
mov eax, dword [ebp - 0x10]
call fcn.00404188
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408b38
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004068b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a6b
cmp dword [ebp - 8], 0
je 0x408a5a
mov eax, dword [ebp - 8]
call fcn.004041a4
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 0x408a88
lea eax, [ebp - 4]
call fcn.004066f8
ret
Function at 0x408d4c
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.004066f0
mov eax, dword [ebp - 0x21c]
call fcn.004066f0
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x408eeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406708
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406794
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 0x408dec
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x408dfe
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x408de9
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x408eb7
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 0x408e27
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.0040889c
cmp dword [ebp - 0x220], 0
je 0x408e5f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408c40
pop ecx
mov ebx, eax
jmp 0x408eb7
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408558
mov eax, dword [ebp - 0x224]
call fcn.00408c40
pop ecx
mov ebx, eax
test bl, bl
jne 0x408eaa
cmp byte [0x442b50], 0
jne 0x408eaa
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408558
mov eax, dword [ebp - 0x228]
call fcn.00408c40
pop ecx
mov ebx, eax
test bl, bl
jne 0x408eb7
push ebp
call fcn.00408cf0
pop ecx
mov ebx, eax
test bl, bl
je 0x408ecd
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004068f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ef2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406700
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x442c48
push 0xa
push 0x40a8e0
mov eax, dword [0x442c38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a870
call fcn.004155d8
push ebx
mov eax, dword [0x442c38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a887
call fcn.004155d8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a899
call fcn.004155d8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x442c4c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x442c50], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x442c54], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x442c58], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x442c5c], ecx
add edx, dword [eax + 0x14]
mov dword [0x442c60], edx
pop esi
pop ebx
ret

Function at 0x40dff8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40e0a1
test eax, edx
je 0x40e0a4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40e021
push edx
mov edx, eax
mov eax, esp
call fcn.0040690c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40e037
push eax
lea eax, [esp + 8]
call fcn.0040690c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40e046
movzx eax, word [eax]
sub eax, ecx
jmp 0x40e06d
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 0x40e087
add ecx, 4
js 0x40e05e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40e084
push eax
mov eax, ecx
mov edx, 2
call fcn.00405f24
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40e06b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40e06d
xor eax, eax
ret
test eax, eax
je 0x40e0b4
test edx, edx
jne 0x40e008
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406794
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40f17e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40f19f
cmp ebx, 3
je 0x40f19f
cmp ebx, 0x7b
je 0x40f19f
mov eax, esi
call fcn.0040f120
test al, al
jne 0x40f1a3
xor eax, eax
jmp 0x40f1a5
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406794
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40f1c1
test al, 0x10
jne 0x40f1c5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4128c4
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 0x4128fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406844
jmp 0x412906
mov eax, ebx
mov edx, esi
call fcn.00406708
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x4130c4
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 0x4131e9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00412ed4
mov esi, eax
mov eax, dword [0x43f1d0]
cmp byte [eax], 0
je 0x413191
mov eax, dword [0x43f084]
call fcn.004045d4
call fcn.004042d0
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41309c]
call fcn.00407c64
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_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x413204
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4131cd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x43f054]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x442c38]
call fcn.00407d28
push eax
call sub.user32.dll_LoadStringW_1
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 0x4131f0
lea eax, [ebp - 4]
mov edx, dword [0x41309c]
call fcn.00407c70
ret
Function at 0x415480
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.00406234
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41542a
mov eax, edi
add eax, eax
call fcn.00404188
mov esi, eax
jmp 0x41542c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x415465
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 0x41544f
mov eax, esp
cmp esi, eax
je 0x415472
mov eax, esi
call fcn.004041a4
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 0x4154ac
cmp bl, 0
je 0x4154a8
cmp bl, 0x41
jl 0x4154a3
cmp bl, 0x5a
jg 0x4154a3
or bl, 0x20
xor al, bl
inc esi
jmp 0x415487
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4153ec
Function at 0x436d34
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb9c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x436eb2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.004090a0
push eax
push 0x436ec0
push 1
push 0
mov eax, dword [0x43f110]
push eax
call sub.ole32.dll_CoCreateInstance
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, 0x436ed0
call fcn.004090e4
push 0
mov eax, esi
call fcn.00406580
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
push 3
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x4c]
push 4
lea eax, [ebp - 0x258]
push eax
push 0x104
lea eax, [ebp - 0x462]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, ebx
lea edx, [ebp - 0x462]
mov ecx, 0x105
call fcn.004068f0
push 0x104
lea eax, [ebp - 0x462]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x28]
lea eax, [ebx + 4]
lea edx, [ebp - 0x462]
mov ecx, 0x105
call fcn.004068f0
push 0x104
lea eax, [ebp - 0x462]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
lea eax, [ebx + 8]
lea edx, [ebp - 0x462]
mov ecx, 0x105
call fcn.004068f0
push 0x104
lea eax, [ebp - 0x462]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
lea eax, [ebx + 0xc]
lea edx, [ebp - 0x462]
mov ecx, 0x105
call fcn.004068f0
lea eax, [ebx + 0x14]
push eax
push 0x104
lea eax, [ebp - 0x462]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x40]
lea eax, [ebx + 0x10]
lea edx, [ebp - 0x462]
mov ecx, 0x105
call fcn.004068f0
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x38]
lea eax, [ebx + 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436eb9
lea eax, [ebp - 8]
call fcn.004090a0
lea eax, [ebp - 4]
call fcn.004090a0
ret

Function at 0x437108
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x214], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004066f0
xor eax, eax
push ebp
push 0x4371ba
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20c
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 4]
call fcn.00406794
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov ebx, eax
test ebx, ebx
je 0x437190
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x210]
mov ecx, 0x106
call fcn.004068f0
mov eax, dword [ebp - 0x214]
mov edx, dword [ebp - 4]
call fcn.00406dbc
je 0x437190
mov eax, esi
lea edx, [ebp - 0x210]
mov ecx, 0x106
call fcn.004068f0
jmp 0x437199
mov eax, esi
xor edx, edx
call fcn.00406708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4371c1
lea eax, [ebp - 0x214]
call fcn.004066f8
lea eax, [ebp - 4]
call fcn.004066f8
ret
Function at 0x401b40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x50
mov dword [ebp - 4], 0x20
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x14]
imul ecx, dword [ebp + 0x18]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
imul edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + edx*2]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x14]
imul edx, dword [ebp + 0x18]
imul edx, edx, 3
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
cmp dword [ebp + 0x1c], 0
je 0x401ba4
mov dword [ebp - 0x14], 0x58
mov dword [ebp - 4], 0x24
jmp 0x401bb2
mov dword [ebp - 0x14], 0x60
mov dword [ebp - 4], 0x24
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x20], 0
je 0x401bcd
mov eax, 1
jmp 0x401c72
mov dword [ebp - 0x28], 1
mov eax, dword [ebp + 0x18]
cdq
idiv dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0x14]
imul eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0041f350
add esp, 0xc
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040e6a0
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040c790
add esp, 0x14
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00402e30
add esp, 0x1c
mov ecx, dword [ebp + 0x14]
imul ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041f350
add esp, 0xc
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x405f10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43fd90]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00405c60
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00405ea0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x405f7b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00405c90
mov eax, dword [ebp - 0x224]
jmp 0x40600c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x405fe1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00405f10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x405fd8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00405c90
mov eax, dword [ebp - 0x228]
jmp 0x40600c
mov dword [ebp - 4], 0x100
jmp 0x405f82
lea ecx, [ebp - 0x14]
call fcn.00405dd0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00405d10
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00405c90
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041f6b5
mov esp, ebp
pop ebp
ret 4
Function at 0x406600
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x406609
xor ecx, ecx
jne 0x406609
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x40662a
mov eax, 0xd
jmp 0x406685
xor eax, eax
jne 0x406611
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x40663b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x406a80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [0x4718e4]
cmp dword [ecx + 0x1c], 0
jle 0x406aa8
mov edx, dword [ebp + 0x10]
mov eax, dword [0x4718e4]
mov ecx, dword [eax + 0x1c]
mov dword [edx], ecx
jmp 0x406b0b
mov edx, dword [0x4718e4]
cmp dword [edx + 0x2c], 2
jne 0x406b02
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov eax, 1
test eax, eax
je 0x406af3
mov ecx, dword [0x4718e4]
cmp dword [ecx + 0x2c], 2
je 0x406ad4
jmp 0x406af3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0x4e20
jbe 0x406ae6
jmp 0x406af3
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406abd
mov edx, dword [ebp + 0x10]
mov eax, dword [0x4718e4]
mov ecx, dword [eax + 0x1c]
mov dword [edx], ecx
jmp 0x406b0b
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406c10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x43fd90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4718e4]
push eax
call fcn.0040efb0
add esp, 4
call fcn.0040fa90
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040f510
add esp, 4
mov edx, dword [0x4718e4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x20], eax
cmp dword [0x4718e8], 1
jne 0x406cb3
mov byte [ebp - 0x88], 0
push 0x7f
push 0
lea ecx, [ebp - 0x87]
push ecx
call fcn.0041f6d0
add esp, 0xc
mov edx, dword [0x4718e4]
mov eax, dword [edx + 0x20]
push eax
push str.beginCapture_currentHandle_d_n
lea ecx, [ebp - 0x88]
push ecx
call fcn.004208cb
add esp, 0xc
lea edx, [ebp - 0x88]
push edx
call fcn.00420840
add esp, 4
push eax
push 0x43547c
lea eax, [ebp - 0x88]
push eax
call fcn.0040f6d0
add esp, 0xc
mov ecx, dword [0x4718e4]
cmp dword [ecx + 0x24], 0
je 0x406cd1
mov edx, dword [0x4718e4]
cmp dword [edx + 0x28], 0
je 0x406cd1
xor eax, eax
jmp 0x406d21
mov eax, dword [0x4718e4]
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x8c], eax
mov ecx, 1
test ecx, ecx
je 0x406d1f
mov edx, dword [0x4718e4]
cmp dword [edx + 0x28], 0
je 0x406d00
jmp 0x406d1f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x8c]
cmp eax, 0x1388
jbe 0x406d15
jmp 0x406d1f
push 0x20
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406ce9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f6b5
mov esp, ebp
pop ebp
ret 0xc