joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4074a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [0x42fc84], 0x44
mov dword [esp + 0x20], 0x42fc84
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x407520
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
mov eax, edx
leave
ret 4

Function at 0x4077d0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
je 0x4077fb
and eax, 0xfffffffe
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push ebx
mov ebx, dword [ebp - 4]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, 0
cmp eax, 0xffffffff
push ecx
cmove eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x40785e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 0x65
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x1c]
jmp 0x4078bc
mov dword [ebp - 0x1c], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [ebp - 0x2c], eax
div ecx
mov dword [ebp - 0x30], edx
mov cl, byte [ebp - 0x30]
add ecx, 0x61
mov byte [ebp - 0x1a], cl
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
jne 0x4078c4
dec esi
jne 0x407874
mov byte [ebx], 0
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4078d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x14]
cmp dword [ebp + 0x18], 1
lea edx, [ebp - 0x14]
sbb eax, eax
xor al, al
add eax, 0x20119
mov byte [ebx], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x407972
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x400
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x40795b
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
jbe 0x40795e
mov byte [ebx], 0
mov eax, dword [ebp - 0x14]
mov byte [ebx + 0x3ff], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x407e68
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], 0x4300c8
mov dword [esp + 4], eax
call fcn.00407a3d
push ebx
push ebx
mov dword [esp], 0x4300c8
call fcn.004076b8
mov ebx, eax
xor eax, eax
test ebx, ebx
push esi
je 0x407f16
mov dword [esp], ebx
call fcn.00407a7b
test byte [0x432854], 0x80
push ecx
je 0x407ed6
mov al, byte [ebx]
cmp al, 0x5c
je 0x407f14
test al, al
jne 0x407ed6
jmp 0x407f14
call fcn.00407e30
test eax, eax
push edx
je 0x407ec7
test byte [eax], 0x10
je 0x407f14
mov dword [esp], 0x4300c8
call fcn.0040764c
push ecx
jmp 0x407ee2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub ebx, 0x4300c8
mov dword [esp], 0x4300c8
call esi
cmp eax, ebx
push edx
mov dword [esp], 0x4300c8
jg 0x407eb8
call fcn.004075d6
push ecx
mov dword [esp], 0x4300c8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
setne al
push ebx
movzx eax, al
jmp 0x407f16
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
Function at 0x408510
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x43120c], 0
mov ebp, esp
push edi
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov ebx, dword [ebp + 0x10]
jne 0x408551
xor edx, edx
mov eax, edx
mov esi, 8
mov edi, eax
and eax, 1
neg eax
shr edi, 1
and eax, 0xedb88320
xor eax, edi
dec esi
jne 0x40852e
mov dword [edx*4 + 0x431208], eax
inc edx
cmp edx, 0x100
jne 0x408527
mov eax, dword [ebp + 8]
not eax
jmp 0x40856b
mov dl, byte [ecx]
dec ebx
inc ecx
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x431208]
test ebx, ebx
jne 0x408558
pop ebx
not eax
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x415d03
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00411018
mov dword [ebp - 0x14], eax
cmp dword [0x44dbe8], esi
jne 0x415df6
push 0x800
push esi
push 0x403598
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x415d83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x415ed6
push esi
push esi
push 0x403598
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x415ed6
push 0x4035b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415ed6
push eax
call ebx
push 0x4035bc
push edi
mov dword [0x44dbe8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4035cc
push edi
mov dword [0x44dbec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4035e0
push edi
mov dword [0x44dbf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44dbf8], eax
test eax, eax
je 0x415df3
push 0x4035fc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44dbf4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x415e1b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x415e0e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x415e30
push 4
pop eax
jmp 0x415ed8
cmp dword [ebp - 0x14], esi
je 0x415e30
push dword [0x44dbe8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x415e15
mov eax, dword [0x44dbf4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x415e8e
cmp dword [0x44dbf8], edi
je 0x415e8e
push eax
call ebx
push dword [0x44dbf8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x415e8e
test eax, eax
je 0x415e8e
call ecx
test eax, eax
je 0x415e83
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x415e83
test byte [ebp - 8], 1
jne 0x415e8e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x415ebe
mov eax, dword [0x44dbec]
cmp eax, edi
je 0x415ebb
push eax
call ebx
test eax, eax
je 0x415ebb
call eax
mov esi, eax
test esi, esi
je 0x415ebb
mov eax, dword [0x44dbf0]
cmp eax, edi
je 0x415ebb
push eax
call ebx
test eax, eax
je 0x415ebb
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44dbe8]
call ebx
test eax, eax
je 0x415ed6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x415ed8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eb49
mov esp, ebp
pop ebp
ret
Function at 0x422df1
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x54
mov eax, 0x4448b4
call fcn.0040ec3e
mov esi, ecx
mov dword [ebp - 0x5c], esi
cmp dword [0x44dc68], 8
lea ecx, [ebp - 0x48]
push ecx
mov eax, 0x44dc54
cmovae eax, dword [0x44dc54]
xor ebx, ebx
push 0x20119
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x422fb8
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], ebx
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x422faf
lea ebx, [esi + 0x1c]
push dword [ebx + 4]
mov ecx, ebx
push dword [ebx]
call fcn.0042349c
mov eax, dword [ebx]
lea ecx, [ebp - 0x40]
push 0x407774
mov dword [ebx + 4], eax
call fcn.0040cd4c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x4012f4
call fcn.0040cd4c
mov byte [ebp - 4], 1
lea eax, [esi + 0x28]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x80000001
call fcn.00426a55
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.0040d09c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.0040d09c
mov eax, dword [ebp - 0x44]
inc eax
xor esi, esi
mov dword [ebp - 0x44], eax
cmp esi, dword [ebp - 0x4c]
jae 0x422faf
and dword [ebp - 0x60], 0
lea ecx, [ebp - 0x60]
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042336a
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
js 0x422f96
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
call fcn.0040cd4c
mov byte [ebp - 4], 3
and dword [ebp - 0x54], 0
and dword [ebp - 0x50], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x48]
call fcn.00422fc3
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.004258fe
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x422f86
call fcn.0040cf6f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.0040d09c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004246cb
inc esi
test edi, edi
js 0x422faf
mov eax, dword [ebp - 0x44]
jmp 0x422eed
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040ebde
ret
Function at 0x4265bf
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
mov eax, 0x100
cmp byte [ebp + 0x10], bl
push esi
mov esi, dword [ebp + 0xc]
cmovne ebx, eax
or ebx, 0x1000b
cmp dword [esi + 0x10], 0
jne 0x4265e9
mov eax, 0x80070057
jmp 0x42664f
cmp dword [esi + 0x14], 8
jb 0x4265f3
mov eax, dword [esi]
jmp 0x4265f5
mov eax, esi
push edi
lea ecx, [ebp + 0x10]
push ecx
push ebx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x426641
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push dword [ebp + 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp + 0x10], 0
test edi, edi
jne 0x426641
cmp dword [esi + 0x14], 8
jb 0x426632
mov esi, dword [esi]
push 0
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edi, eax
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4269a6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 0x14], 0
mov eax, 0x20119
mov ecx, 0x20019
cmovne ecx, eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x4269c8
mov eax, dword [eax]
push ebx
push esi
lea edx, [ebp + 0x14]
push edx
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
mov ebx, 0x80070000
or esi, ebx
mov dword [ebp + 0xc], 4
test eax, eax
cmovle esi, eax
test esi, esi
js 0x426a46
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x426a00
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, ebx
test eax, eax
cmovle esi, eax
test esi, esi
js 0x426a3d
cmp dword [ebp + 8], 4
jne 0x426a38
mov ecx, dword [ebp + 0x18]
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x426a3d
mov esi, 0x8007065d
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x426a55
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x44a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x20019
cmp byte [ebp + 0x14], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, 0x20119
cmovne ecx, esi
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x426a92
mov eax, dword [eax]
lea esi, [ebp - 0x210]
push esi
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x218], 0x208
test eax, eax
cmovle esi, eax
and dword [ebp - 0x214], 0
test esi, esi
js 0x426b3f
cmp dword [edi + 0x14], 8
jb 0x426acf
mov edi, dword [edi]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x426b33
cmp dword [ebp - 0x214], 1
jne 0x426b2e
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
call fcn.0040d4b7
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0040d2da
jmp 0x426b33
mov esi, 0x8007065d
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eb49
mov esp, ebp
pop ebp
ret 0x14

Function at 0x426b59
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
push 1
xor ebx, ebx
push ebx
push 0x407b20
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426bbb
lea eax, [ebp - 0xc]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push 0x407b7c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x426bb2
cmp dword [ebp - 4], 1
sete bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426bc7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x4012f4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426c2e
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 4
push eax
push 0x10
push 0x407ba8
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
push dword [ebp - 4]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
cmove ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426d2b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0x18], 0
mov eax, 0x102
mov ecx, 0x20006
cmovne ecx, eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x426d4c
mov eax, dword [eax]
push esi
push edi
xor edi, edi
lea edx, [ebp + 0x18]
push edi
push edx
push edi
push ecx
push edi
push edi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x426db5
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x10], edi
jne 0x426d76
mov ecx, edi
jmp 0x426d7e
cmp dword [ecx + 0x14], 8
jb 0x426d7e
mov ecx, dword [ecx]
mov edx, dword [ebp + 0x14]
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
jb 0x426d8c
mov edx, dword [edx]
lea eax, [eax*2 + 2]
push eax
xor eax, eax
cmp byte [ebp + 0x1c], al
push edx
setne al
inc eax
push eax
push edi
push ecx
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, si
or eax, 0x80070000
test esi, esi
pop edi
cmovle eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x42b42f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4207c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
or ebp, 0xffffffff
jmp 0x4207e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4207e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4207d8
mov eax, 1
add ebx, ebx
jne 0x4207fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4207f0
jne 0x42080c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4207f0
xor ecx, ecx
sub eax, 3
jb 0x420820
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x420892
mov ebp, eax
add ebx, ebx
jne 0x42082b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x420838
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42085c
inc ecx
add ebx, ebx
jne 0x420848
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42083d
jne 0x420859
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42083d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42087c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42086d
jmp 0x4207de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42087c
add edi, ecx
jmp 0x4207de
pop esi
mov edi, esi
mov ecx, 0x19b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42089a
cmp byte [edi], 4
jne 0x42089a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42089f
lea edi, [esi + 0x1e000]
mov eax, dword [edi]
or eax, eax
je 0x420917
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x208f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20930]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4208cc
mov ecx, edi
jns 0x4208fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20934]
or eax, eax
je 0x420911
mov dword [ebx], eax
add ebx, 4
jmp 0x4208e9
call dword [esi + 0x2093c]
mov ebp, dword [esi + 0x20938]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42094b
sub esp, 0xffffff80
jmp 0x4029f0
Function at 0x402ffb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403018
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403027
mov ebx, 0x4168c0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40303c
mov ecx, dword [0x423778]
add ecx, eax
push ecx
call fcn.004031ed
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004031d7
test eax, eax
je 0x40318e
test byte [ebp + 0x17], 0x80
je 0x403177
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40a830
mov dword [ebp - 0xc], eax
call fcn.00406497
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4031cd
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40308c
mov esi, dword [ebp + 0x14]
mov edi, 0x4128c0
push esi
push edi
call fcn.004031d7
test eax, eax
je 0x40318e
sub dword [ebp + 0x14], esi
mov dword [0x40a848], edi
mov dword [0x40a84c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40a830
mov dword [0x40a850], ebx
mov dword [0x40a854], eax
call fcn.004064b7
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x40316f
mov esi, dword [0x40a850]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4237d4], 1
mov edi, eax
je 0x40312e
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4030fb
cmp dword [ebp + 0x14], 0
jne 0x40312e
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x50]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.00405101
mov dword [ebp - 0xc], edi
test esi, esi
je 0x403163
cmp dword [ebp + 0x10], 0
jne 0x40314b
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405c1a
test eax, eax
je 0x403173
add dword [ebp - 4], esi
jmp 0x403157
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40a850]
cmp dword [ebp - 0x10], 1
jne 0x4030af
jmp 0x4031cd
cmp dword [ebp + 0x14], 0
jg 0x40307f
jmp 0x4031cd
push 0xfffffffffffffffc
jmp 0x403190
push 0xfffffffffffffffe
jmp 0x403190
test edi, edi
je 0x4031c2
cmp dword [ebp + 0x14], esi
jge 0x403183
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004031d7
test eax, eax
jne 0x4031ca
push 0xfffffffffffffffd
pop eax
jmp 0x4031d0
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40319e
mov esi, dword [ebp + 0x14]
mov edi, 0x4128c0
push esi
push edi
call fcn.004031d7
test eax, eax
je 0x40318e
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405c1a
test eax, eax
je 0x403173
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403193
jmp 0x4031cd
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10