joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e51b
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x41e597
push 9
call esi
test bl, al
je 0x41e597
push 0x11
call esi
test bl, al
jne 0x41e597
push 0x10
call esi
test bl, al
jne 0x41e597
push 0x12
call esi
test bl, al
jne 0x41e597
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x41e597
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x41e597
xor eax, eax
jmp 0x41e619
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41e5c0
push 0x11
call esi
test bl, al
jne 0x41e5b8
push 0x10
call esi
test bl, al
jne 0x41e5b8
push 0x12
call esi
test bl, al
je 0x41e5c0
push 1
push ebp
call fcn.0041e4d4
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x41e5d6
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x41e616
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x41e616
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x41e616
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x41e616
dec esi
push esi
push dword [0x49faa4]
call fcn.00423c53
test eax, eax
je 0x41e616
mov eax, dword [eax + 8]
jmp 0x41e618
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x41e9f2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x41ea62
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x41ea44
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x41ea43
cmp dl, 0x5c
je 0x41ea43
cmp dl, 0x2f
jne 0x41ea4e
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x41ea31
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x41ea64
xor eax, eax
leave
ret 4
Function at 0x41eaea
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
push edi
mov edi, esi
cmp eax, ebx
je 0x41ec2b
cmp byte [eax], bl
je 0x41ec2b
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea ecx, [ebp + eax - 0x109]
cmp eax, 2
je 0x41eb45
cmp eax, 3
jne 0x41eb84
cmp byte [ebp - 0x107], 0x3a
jne 0x41eb84
cmp eax, 2
jne 0x41eb66
lea eax, [ebp - 0x108]
push 0x459784
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x41ec2b
or esi, 0xffffffff
jmp 0x41ec28
mov al, byte [ecx]
cmp al, 0x5c
je 0x41eb8e
cmp al, 0x2f
jne 0x41eb93
mov byte [ecx], bl
dec ecx
jmp 0x41eb84
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or ebx, 0xffffffff
cmp eax, ebx
je 0x41ebd9
test byte [ebp - 0x248], 0x10
je 0x41ebbe
push 0xfffffffffffffffe
pop edi
mov esi, ebx
jmp 0x41ebd0
mov esi, dword [ebp - 0x22c]
xor edi, edi
or edi, dword [ebp - 0x228]
xor edx, edx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41ec2b
cmp byte [ebp - 0x108], 0x5c
jne 0x41ebeb
cmp byte [ebp - 0x107], 0x5c
je 0x41ebfd
cmp byte [ebp - 0x108], 0x2e
jne 0x41ec2b
cmp byte [ebp - 0x107], 0x2e
jne 0x41ec2b
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
je 0x41ec14
test al, 0x10
je 0x41ec2b
jmp 0x41ec26
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x41ec2b
mov esi, ebx
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebx
leave
ret 4

Function at 0x41ec40
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x41ec75
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x41f240
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x49fabc]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00423c53
test eax, eax
je 0x41f28a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x41f277
push 1
push edx
push eax
call fcn.0041f680
movzx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x41f2a0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x49fabc]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00423c53
test eax, eax
je 0x41f2ea
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x41f2d7
push 4
push edx
push eax
call fcn.0041f680
mov eax, dword [esp]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x41f300
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x49fabc]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00423c53
test eax, eax
je 0x41f34a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x41f337
push 1
push edx
push eax
call fcn.0041f680
movsx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x41f680
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x41f6a1
push esi
call fcn.0041ec40
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x41f716
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x41f703
dec ecx
je 0x41f6ee
sub ecx, 2
je 0x41f6db
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x41f75f
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x41f782
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x421b68
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x10c
push 8
push dword [0x49e784]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x49fae0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x49fae4], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 7
mov dword [esi], 0x420ae7
mov dword [esi + 4], 0x420ba2
mov dword [esi + 8], 0x420c35
mov dword [esi + 0xc], 0x420d6d
mov dword [esi + 0x10], 0x420e3a
mov dword [esi + 0x14], 0x420e94
mov dword [esi + 0x18], 0x420ed4
mov dword [esi + 0x1c], 0x420eec
mov dword [esi + 0x20], fcn.00420f04
mov dword [esi + 0x24], 0x4211e0
mov dword [esi + 0x28], fcn.00421055
mov dword [esi + 0x2c], 0x4211fc
mov dword [esi + 0x30], 0x4212de
mov dword [esi + 0x34], 0x421409
mov dword [esi + 0x38], 0x420c72
mov dword [esi + 0x3c], 0x4214aa
mov dword [esi + 0x40], 0x420b05
mov dword [esi + 0x44], 0x42154d
mov dword [esi + 0x48], 0x421631
mov dword [esi + 0x4c], 0x421680
mov dword [esi + 0x50], 0x421742
mov dword [esi + 0x54], 0x4218ef
mov dword [esi + 0x58], 0x421a33
mov dword [esi + 0x5c], 0x421aee
mov dword [esi + 0x60], 0x4219f2
mov dword [esi + 0x64], 0x4219ab
mov eax, esi
pop esi
ret

Function at 0x422b77
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x49f6a4], eax
cmp eax, edi
je 0x422baa
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49f6a8], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x49f6a0], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x422be8
cmp dword [ebp - 0xc], 1
je 0x422bf9
cmp dword [ebp - 0xc], 2
jne 0x422be8
cmp dword [ebp - 0x18], 5
jb 0x422bf9
jne 0x422be8
cmp dword [ebp - 0x14], edi
jne 0x422be8
mov dword [0x49f6a0], edi
cmp dword [0x49f6a0], edi
je 0x422bff
call fcn.00422abe
test eax, eax
jne 0x422bff
mov dword [0x49f6a0], edi
pop edi
add ebp, 0x78
leave
ret
Function at 0x43e5b0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x43e646
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
push edi
cmp esi, edx
jle 0x43e5fd
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x459af0]
inc edx
cmp edx, esi
jl 0x43e5e1
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x43e621
mov edi, dword [ecx + 8]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x459af0]
inc edx
cmp edx, esi
jl 0x43e607
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x43f510
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push ebx
push esi
push edi
push eax
push ecx
mov ebx, 1
xor esi, esi
mov dword [ebp - 8], esi
push ebx
call fcn.00447e70
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add esp, 0xc
test edx, edx
je 0x43f6cd
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, 0x7fffffff
mov dword [ecx + 0x280], eax
mov dword [edx + 0x284], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.MSVCRT.dll_longjmp]
mov dword [eax + 0x288], esi
mov eax, dword [ebp - 4]
push 0x40
push edx
push eax
mov dword [ecx + 0x28c], esi
call fcn.00442ee0
push esi
push eax
call sub.MSVCRT.dll__setjmp3
add esp, 0x14
test eax, eax
je 0x43f592
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
push esi
push ecx
push edi
push edx
call fcn.00447f40
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push ecx
push edx
push eax
call fcn.00442f40
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push ecx
push edx
call fcn.00442320
add esp, 0x28
test eax, eax
jne 0x43f5d3
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
test eax, eax
jne 0x43f615
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xb4], 0x2000
mov eax, dword [edx + 0xb4]
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.00448060
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 4]
add esp, 8
cmp dword [eax + 0xb0], 0
jne 0x43f615
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ecx + 0x98], 0x440870
mov ecx, dword [ebp - 4]
mov dword [edx + 0x9c], fcn.004408c0
mov edx, dword [ebp - 8]
mov dword [ecx + 0xa0], eax
test edx, edx
jne case.0x43f660.0
mov eax, dword [ebp - 4]
push 0x38
add eax, 0x78
push str.1.2.8
push eax
call fcn.00455670
add eax, 6
add esp, 0xc
cmp eax, 6
ja case.0x43f660.5
jmp dword [eax*4 + 0x43f710]
push str.zlib_memory_error
jmp 0x43f689
mov edx, dword [ebp - 4]
push str.zlib_stream_error
push edx
jmp 0x43f68d
mov eax, dword [ebp - 4]
push str.zlib_version_error
push eax
jmp 0x43f68d
push str.Unknown_zlib_error
mov ecx, dword [ebp - 4]
push ecx
call fcn.00442f70
mov dword [ebp - 8], ebx
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
test edx, edx
mov edx, dword [ebp - 4]
je 0x43f6d6
mov ecx, dword [eax + 0xb0]
push ecx
push edx
call fcn.00448030
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
mov dword [eax + 0xb0], 0
call fcn.00447ef0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xb0]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xb4]
mov eax, dword [ebp - 4]
push 0
push 0
push eax
mov dword [ecx + 0x88], edx
call fcn.004431d0
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442f00
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x442f1a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x442f1a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x44ed5a
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x49e784]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x49fae0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x49fae4], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0045532f
mov dword [esi + 0x58], 0x44eccc
mov dword [esi + 0x5c], 0x44ed18
mov dword [esi + 0x10], fcn.0044de5e
mov dword [esi + 0x30], 0x44dfe6
mov dword [esi + 0x64], 0x44e0f2
mov dword [esi + 0x60], 0x44e13f
mov dword [esi + 0x34], 0x44e865
mov dword [esi + 0x24], 0x44e704
mov dword [esi + 0x28], 0x44e72d
mov dword [esi + 0x2c], 0x44e758
mov dword [esi + 0x44], 0x44eb56
mov eax, esi
pop esi
ret 4

Function at 0x450127
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ecx + 0xd4]
mov dword [ebp - 4], esi
je 0x4501ae
imul esi, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
imul eax, dword [ebp + 0x18]
neg dword [ebp + 0x10]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [ecx + 0xcc]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xc8]
mov edi, edx
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x45018f
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x18]
jne 0x450174
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
cmp dword [ecx + 0xe8], 0
jne 0x4501a3
add edx, dword [ebp + 0x10]
jmp 0x4501a6
add edx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
jne 0x450154
pop edi
pop ebx
pop esi
leave
ret 0x1c
Function at 0x4510d1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
mov edx, dword [ecx + 0xd4]
push edi
mov edi, dword [ebp + 0xc]
je 0x45115f
mov dword [ebp - 4], edi
imul edi, dword [ebp + 0x18]
imul eax, eax, 3
add edi, dword [ebp + 8]
neg dword [ebp - 4]
push ebx
push esi
mov esi, edx
imul esi, dword [ebp + 0x10]
add edi, eax
mov dword [ebp + 0x10], edi
mov eax, dword [ecx + 0xcc]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xc8]
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x45113a
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x18]
jne 0x451120
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
cmp dword [ecx + 0xe8], 0
mov edi, dword [ebp + 0x10]
jne 0x451151
add edi, dword [ebp - 4]
jmp 0x451154
add edi, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x10], edi
jne 0x451102
pop esi
pop ebx
pop edi
leave
ret 0x1c

Function at 0x4511c8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
imul eax, eax, 3
cmp dword [ebp + 0x18], 0
mov dword [ebp - 8], eax
je 0x451274
mov eax, dword [ebp + 0xc]
imul ecx, ecx, 3
neg eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x14]
add eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp - 8]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0xcc]
imul ecx, dword [ebp + 0x10]
add ecx, dword [edi + 0xc8]
add ecx, esi
test edx, edx
jle 0x45124f
mov eax, 0xff
sub eax, dword [ebp + 0x1c]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
movzx edx, byte [edx]
movzx eax, byte [ecx]
imul edx, dword [ebp + 0x1c]
imul eax, dword [ebp - 0xc]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc dword [ebp + 8]
mov byte [ecx], al
inc ecx
dec dword [ebp - 4]
jne 0x451229
dec dword [ebp + 0x18]
inc dword [ebp + 0x10]
cmp dword [edi + 0xe8], 0
mov ecx, dword [ebp + 0x14]
jne 0x451266
add ecx, dword [ebp - 0x10]
jmp 0x451269
add ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0x14], ecx
jne 0x4511ff
pop esi
pop ebx
leave
ret 0x18
Function at 0x40332b
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406928
xor ebx, ebx
cmp eax, ebx
jne 0x40340e
test byte [ebp + 0x10], 2
je 0x40338c
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x4033f3
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4033c8
test edi, edi
jne 0x4033f3
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.0040332b
test eax, eax
jne 0x4033d1
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x4033a1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004070d6
test eax, eax
jne 0x403403
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40340e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40340e
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403736
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
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 0x403756
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403765
mov ebx, 0x41a050
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40377a
mov ecx, dword [0x42cc18]
add ecx, eax
push ecx
call fcn.00403931
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040391b
test eax, eax
je 0x4038d2
test byte [ebp + 0x17], 0x80
je 0x4038bb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40dfc0
mov dword [ebp - 0xc], eax
call fcn.00407231
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403911
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4037ca
mov esi, dword [ebp + 0x14]
mov edi, 0x416050
push esi
push edi
call fcn.0040391b
test eax, eax
je 0x4038d2
sub dword [ebp + 0x14], esi
mov dword [0x40dfd8], edi
mov dword [0x40dfdc], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40dfc0
mov dword [0x40dfe0], ebx
mov dword [0x40dfe4], eax
call fcn.00407251
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x4038b3
mov esi, dword [0x40dfe0]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42cc74], 1
mov edi, eax
je 0x403872
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403839
cmp dword [ebp + 0x14], 0
jne 0x403872
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 - 0x90]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.00405a8f
mov dword [ebp - 0xc], edi
test esi, esi
je 0x4038a7
cmp dword [ebp + 0x10], 0
jne 0x40388f
push esi
push ebx
push dword [ebp + 0xc]
call fcn.0040665d
test eax, eax
je 0x4038b7
add dword [ebp - 4], esi
jmp 0x40389b
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40dfe0]
cmp dword [ebp - 0x10], 1
jne 0x4037ed
jmp 0x403911
cmp dword [ebp + 0x14], 0
jg 0x4037bd
jmp 0x403911
push 0xfffffffffffffffc
jmp 0x4038d4
push 0xfffffffffffffffe
jmp 0x4038d4
test edi, edi
je 0x403906
cmp dword [ebp + 0x14], esi
jge 0x4038c7
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040391b
test eax, eax
jne 0x40390e
push 0xfffffffffffffffd
pop eax
jmp 0x403914
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4038e2
mov esi, dword [ebp + 0x14]
mov edi, 0x416050
push esi
push edi
call fcn.0040391b
test eax, eax
je 0x4038d2
push esi
push edi
push dword [ebp + 0xc]
call fcn.0040665d
test eax, eax
je 0x4038b7
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4038d7
jmp 0x403911
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10