joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435304
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov ax, word [ebp - 2]
call fcn.00432c48
test eax, eax
jne 0x43532d
mov word [ebp - 0xc], 0
jmp 0x4354fa
movzx eax, word [ebp - 2]
mov eax, dword [eax*4 + 0x463664]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 0x990
push eax
call sub.kernel32.dll_EnterCriticalSection_1
cmp dword [ebp - 8], 0
je 0x435428
movzx eax, word [ebp - 2]
cmp word [eax*2 + 0x4637f6], 0
je 0x435377
movzx eax, word [ebp - 2]
mov ax, word [eax*2 + 0x4637f6]
mov word [ebp - 0xc], ax
jmp 0x4354ec
cmp word [ebp - 0xa], 4
je 0x435384
mov word [ebp - 0xa], 4
mov ax, word [ebp - 0xa]
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 2]
mov dx, word [ebp - 0xa]
mov word [eax*2 + 0x4637f6], dx
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x97c], edx
mov eax, dword [ebp - 0x10]
add eax, 0x984
push eax
push 0
movzx eax, word [ebp - 2]
push eax
push 0x437664
push 0x4000
push 0
call sub.kernel32.dll_CreateThread
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x980], eax
push 0xbb8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x9b0]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x10]
add eax, 0x98c
push eax
push 0
movzx eax, word [ebp - 2]
push eax
push 0x4379cc
push 0x4000
push 0
call sub.kernel32.dll_CreateThread
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x988], eax
push 0xbb8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x9b0]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x4354ec
movzx eax, word [ebp - 2]
cmp word [eax*2 + 0x4637f6], 0
jne 0x435442
mov word [ebp - 0xc], 0
jmp 0x4354ec
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x97c], 1
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x60]
push eax
call sub.kernel32.dll_SetCommMask
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x9ac]
push eax
call sub.kernel32.dll_SetEvent
push 0xc8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x9b0]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x435498
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x980]
push eax
call sub.kernel32.dll_TerminateThread
movzx eax, word [ebp - 2]
movzx eax, word [eax*2 + 0x46385a]
push eax
push 0
call sub.user32.dll_KillTimer
push 0xc8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x9b0]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x4354d8
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x988]
push eax
call sub.kernel32.dll_TerminateThread
movzx eax, word [ebp - 2]
mov word [eax*2 + 0x4637f6], 0
mov word [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
add eax, 0x990
push eax
call sub.kernel32.dll_LeaveCriticalSection_1
mov ax, word [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x440000
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0043fd74
xor edx, edx
push ebp
push 0x440055
push dword fs:[edx]
mov dword fs:[edx], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 2
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44005c
mov eax, dword [ebp - 4]
call fcn.0043fd48
ret

Function at 0x440064
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0043fd74
xor edx, edx
push ebp
push 0x4400b9
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4400c0
mov eax, dword [ebp - 4]
call fcn.0043fd48
ret

Function at 0x44012c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0043fd74
xor eax, eax
push ebp
push 0x4401a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0043fd2c
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0041d6dc
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x44018b
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4401a8
mov eax, dword [ebp - 4]
call fcn.0043fd48
ret

Function at 0x4401b0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0043fd74
xor eax, eax
push ebp
push 0x440225
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0043fd2c
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x48]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x44020f
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44022c
mov eax, dword [ebp - 4]
call fcn.0043fd48
ret
Function at 0x441600
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x441733
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, edx
mov eax, esi
call fcn.004413e0
test al, al
je 0x4416d3
test ebx, ebx
jge 0x44163b
xor ebx, ebx
lea edi, [ebx + 1]
mov eax, dword [esi + 0x11c]
cmp ebx, eax
jl 0x44164c
mov ebx, eax
mov edi, ebx
mov ecx, edi
mov edx, edi
mov eax, esi
call fcn.004415dc
cmp edi, ebx
je 0x4416cb
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x441672
mov byte [ebp - 0x1f0], 0x81
mov byte [ebp - 0x1db], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
push 0x25
push pe_nt_image_headers32
mov eax, esi
call fcn.00418350
push eax
call sub.user32.dll_SendMessageA
push 1
push 0x25
push 0x101
mov eax, esi
call fcn.00418350
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [esi + 0x124], ebx
jmp 0x44171a
test ebx, ebx
jge 0x4416d9
xor ebx, ebx
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.004410d0
mov eax, dword [ebp - 0x204]
call fcn.00403654
cmp ebx, eax
jl 0x44170f
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.004410d0
mov eax, dword [ebp - 0x204]
call fcn.00403654
mov ebx, eax
mov ecx, ebx
mov edx, ebx
mov eax, esi
call fcn.004415dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44173a
lea eax, [ebp - 0x204]
call fcn.004034e0
ret
Function at 0x445014
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0xfc]
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x44519a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x134]
mov eax, dword [ebx + 0x10]
call fcn.0041b44c
cmp byte [ebp + 8], 0
je 0x44506d
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.0041b370
jmp 0x44507b
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.0041b370
mov eax, dword [ebx + 0x10]
call fcn.0041b444
dec eax
jle 0x4450c1
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
call fcn.0041b368
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov edi, dword [ebx + 0x10]
mov eax, edi
call fcn.0041b444
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, edi
call fcn.0041b3dc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x28]
call dword [ecx + 0x24]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
shr ecx, 1
add edx, ecx
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, esi
xor eax, 1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x14], edx
add eax, 2
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
lea eax, [esi + 2]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [esi + ebx]
mov edx, dword [ebp - 0xc]
mov dword [edi + eax*4], edx
mov eax, esi
xor eax, 1
mov edx, eax
add edx, ebx
mov ecx, dword [ebp - 0x14]
mov dword [edi + edx*4], ecx
add ebx, 2
lea edx, [esi + ebx]
mov ecx, dword [ebp - 0xc]
mov dword [edi + edx*4], ecx
add eax, ebx
mov edx, dword [ebp - 0x18]
mov dword [edi + eax*4], edx
add ebx, 2
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x28]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
add eax, dword [edx]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jle 0x445123
shr ebx, 2
push ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 0xc]
push eax
push edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0xfc]
call fcn.0041bda0
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44a9d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0044a55c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403818
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x44aa2d
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, 0xf0bc
mov dl, 1
mov eax, 0x44a464
call fcn.004083f0
call fcn.004031fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44aa38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403818
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x44aa8f
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, 0xf0bd
mov dl, 1
mov eax, 0x44a464
call fcn.004083f0
call fcn.004031fc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0044a58c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x450a2c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450bc1
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00440338
mov dx, 1
call fcn.00440300
test al, al
je 0x450ba8
call fcn.00440338
call fcn.0043fd74
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x450acf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x1c], 0
je 0x450aa3
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x10], eax
jmp 0x450aa8
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450ad6
cmp dword [ebp - 0x1c], 0
je 0x450ac4
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalUnlock
call fcn.00440338
call fcn.0043fd48
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450bc8
lea eax, [ebp - 0x120]
call fcn.004034e0
ret
Function at 0x401058
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x82
call fcn.0040aa15
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40109d
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426f78
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426f78]
xor cx, word [edx*2 + 0x426f78]
inc edx
mov word [edi + edx*2 + 0x426f76], cx
cmp edx, dword [ebp + 0xc]
jl 0x40107d
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x4020f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x66
call fcn.0040aa15
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x402138
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426ca0
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426ca0]
xor cx, word [edx*2 + 0x426ca0]
inc edx
mov word [edi + edx*2 + 0x426c9e], cx
cmp edx, dword [ebp + 0xc]
jl 0x402118
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x40251e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 4
push 0x426600
mov ebx, ecx
mov esi, edx
mov byte [ebp - 0x821], 1
mov dword [ebp - 0x860], 0x3c
mov dword [ebp - 0x85c], 0x8040
call fcn.004020f6
push 8
mov dword [ebp - 0x854], eax
mov eax, dword [esi + 0x14]
pop ecx
cmp eax, ecx
jb 0x40257c
mov edx, dword [esi]
mov dword [ebp - 0x850], edx
jmp 0x402582
mov dword [ebp - 0x850], esi
cmp dword [edi + 0x14], ecx
jb 0x402591
mov edx, dword [edi]
mov dword [ebp - 0x84c], edx
jmp 0x402597
mov dword [ebp - 0x84c], edi
cmp dword [ebx + 0x14], ecx
jb 0x4025a6
mov edx, dword [ebx]
mov dword [ebp - 0x848], edx
jmp 0x4025ac
mov dword [ebp - 0x848], ebx
and dword [ebp - 0x844], 0
mov dword [ebp - 0x840], 0x1d
cmp dword [edi + 0x14], ecx
jb 0x4025c4
mov edi, dword [edi]
cmp eax, ecx
jb 0x4025ca
mov esi, dword [esi]
push edi
push esi
push 0xe
push 0x426608
call fcn.004020f6
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
lea esi, [ebp - 0x820]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4026d0
cmp dword [ebp - 0x828], edi
je 0x40268a
push dword [ebp - 0x828]
push 0x15
push 0x426624
call fcn.004020f6
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
lea esi, [ebp - 0x820]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
call fcn.0040147a
push 0xffffffffffffffff
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402724
push 0x4228ac
push 0x19
push 0x426650
call fcn.004020f6
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
lea esi, [ebp - 0x820]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
jmp 0x402724
xor ebx, ebx
mov byte [ebp - 0x821], bl
cmp byte [0x4282ad], bl
je 0x402724
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x11
push 0x426684
call fcn.004020f6
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40000
push 3
push 0x4266a8
call fcn.004020f6
push eax
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x821]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b61b
leave
ret 4
Function at 0x4044c3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
mov eax, ebx
push edi
mov edi, ecx
cmp ax, si
jne 0x4044ee
xor eax, eax
jmp 0x404656
mov ecx, dword [edi + 0x24]
cmp dword [ecx], 0
je 0x40451b
mov eax, dword [edi + 0x34]
mov ecx, dword [ecx]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x40451b
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x404656
cmp dword [edi + 0x54], 0
jne 0x404528
mov eax, ebx
jmp 0x404656
mov eax, edi
call fcn.00405b5e
cmp dword [edi + 0x44], 0
jne 0x40454e
push dword [edi + 0x54]
push esi
call fcn.0040be6a
pop ecx
cmp ax, bx
pop ecx
movzx eax, si
jne 0x404656
jmp 0x404521
movzx eax, si
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.00405311
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4045fb
lea eax, [ebp - 0x20]
mov edx, eax
add eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x28]
push ebx
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x22]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
jl 0x404646
cmp eax, 1
jg 0x404603
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4045aa
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub esi, eax
je 0x4045d0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4045bd
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040d574
add esp, 0x10
cmp esi, eax
jne 0x404646
lea eax, [ebp - 0x24]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x2c], eax
jne 0x404635
cmp esi, ebx
ja 0x40455c
cmp dword [ebp - 0x10], 0x20
push ebx
jae 0x404647
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.00405355
jmp 0x40455c
mov edx, dword [ebp - 0x20]
jmp 0x40456e
cmp eax, 3
jne 0x404646
push dword [edi + 0x54]
push dword [ebp - 0x24]
call fcn.0040be6a
movzx esi, word [ebp + 8]
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
jne 0x404625
mov esi, ecx
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.00405445
jmp 0x404513
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.00405445
mov ax, word [ebp + 8]
jmp 0x404656
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.00405445
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b61b
leave
ret 4
Function at 0x405a66
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x44], 0
push esi
je 0x405b4f
cmp byte [edi + 0x4a], 0
je 0x405b4f
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp si, ax
jne 0x405aa4
xor al, al
jmp 0x405b51
lea esi, [ebp - 0x20]
call fcn.00405311
push ebx
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405af1
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x405af6
dec eax
je 0x405afa
dec eax
dec eax
je 0x405b4b
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00405445
mov al, bl
pop ebx
jmp 0x405b51
mov edx, dword [ebp - 0x20]
jmp 0x405abb
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405b06
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, eax
je 0x405b2c
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405b19
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040d574
add esp, 0x10
cmp esi, eax
jne 0x405ade
cmp byte [edi + 0x4a], 0
je 0x405b4b
test esi, esi
jne 0x405aad
push esi
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.00405355
jmp 0x405aad
mov bl, 1
jmp 0x405ae0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040b61b
leave
ret
Function at 0x406781
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
mov ebx, ecx
mov esi, edx
mov ecx, 0x80000002
push edi
mov dword [ebp - 0x4c0], esi
mov dword [ebp - 0x4b0], ecx
jb 0x4067b7
mov eax, dword [eax]
lea edx, [ebp - 0x4b0]
push edx
push 0x20019
xor edi, edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x4ac], eax
cmp eax, edi
jne 0x4068f6
xor eax, eax
mov ecx, 0x422890
call fcn.004014ba
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x4b8], 1
mov dword [ebp - 0x4b4], 0x400
jb 0x406806
mov eax, dword [ebx]
jmp 0x406808
mov eax, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x4b8]
push ecx
push edi
push eax
push dword [ebp - 0x4b0]
call esi
mov dword [ebp - 0x4ac], eax
cmp eax, edi
jne 0x4068f6
push 4
pop eax
cmp dword [ebp - 0x4b8], eax
je 0x406874
lea eax, [ebp - 0x48c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40684f
mov esi, dword [ebp - 0x4c0]
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x48c]
call fcn.004014ba
jmp 0x4068f6
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4b4], eax
jb 0x406888
mov ebx, dword [ebx]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x4b8]
push eax
push edi
push ebx
push dword [ebp - 0x4b0]
call esi
mov dword [ebp - 0x4ac], eax
cmp eax, edi
jne 0x4068f6
push edi
push dword [ebp - 0x4bc]
lea eax, [ebp - 0x8c]
push 0x422b34
push 0x40
push eax
call fcn.00406765
add esp, 0x14
lea eax, [ebp - 0x8c]
push eax
lea esi, [ebp - 0x4a8]
call fcn.00401313
mov eax, dword [ebp - 0x4c0]
mov ebx, esi
call fcn.00401360
push 1
xor edi, edi
call fcn.0040147a
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x4ac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b61b
leave
ret 4

Function at 0x40690d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x58
call fcn.0040aa15
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40694f
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426578
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426578]
xor cx, word [edx*2 + 0x426578]
inc edx
mov word [edi + edx*2 + 0x426576], cx
cmp edx, dword [ebp + 0xc]
jl 0x40692f
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

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

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x4071db
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4071f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4071f6
xor eax, eax
inc eax
ret
xor eax, eax
ret