joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461ed4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46207f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x462060
mov dl, 1
mov eax, dword [0x418310]
call fcn.00403350
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004040d0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46204f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044fb8c
test al, al
je 0x462042
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x462090
lea eax, [ebp - 0x254]
call fcn.00409134
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x462042
xor eax, eax
push ebp
push 0x46203b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4620c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x462024
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404340
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x462024
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462042
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x461f45
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c638
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462086
lea eax, [ebp - 0x260]
call fcn.004040d0
ret

Function at 0x4629b4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x47cc0c]
cmp byte [eax + 0xa5], 0
jne 0x462a25
cmp dword [0x47cc24], 0
jne 0x4629e6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x462970
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47cc24], eax
cmp dword [0x47cc20], 0
jne 0x462a01
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47cc20], eax
cmp dword [0x47cc28], 0
jne 0x462a25
push esp
push 0
push 0
push 0x462914
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47cc28], eax
pop edx
ret
Function at 0x462b4c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x462b63
add esp, 0xfffffff0
call fcn.004036a4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420448
mov eax, dword [0x47b78c]
cmp word [eax + 2], 0
jne 0x462b8b
mov eax, dword [0x47b78c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004642cc
mov eax, dword [0x47b850]
cmp word [eax + 2], 0
jne 0x462ba5
mov eax, dword [0x47b850]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004644c4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417d68]
call fcn.00403350
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417d68]
call fcn.00403350
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42298c]
call fcn.0042a184
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x462d2c
mov eax, dword [0x47b680]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a554
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x464a74
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47b680]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c92c
test eax, eax
je 0x462c9a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b28
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c954
test eax, eax
je 0x462cae
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404340
mov eax, dword [0x47b52c]
cmp byte [eax], 0
jne 0x462ce2
mov eax, ebx
call fcn.00462e54
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00464c50
mov eax, ebx
call fcn.00465614
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x462d22
call fcn.004036fc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4630d4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47cc0c]
cmp dword [eax + 0x30], 0
je 0x46317e
cmp dword [ebx + 0x94], 0
jne 0x463178
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x463064
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x463178
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46313e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x463178
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a25c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46314d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x463ce0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x463d15
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004041c0
jmp 0x463d22
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404124
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x464e2c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x464e6d
mov eax, esi
call fcn.0044b130
test al, al
je 0x464e6d
mov eax, dword [ebx + 0x84]
call fcn.0044ae2c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x464e6d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044ae2c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x432005
Capabilities:
Encode data using xor

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x61e553c5
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x77a298a
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40e3dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
push edi
mov edi, ecx
test esi, esi
jns 0x40e40a
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffe
and esi, 0x7fffffff
push eax
add esi, edx
push esi
call fcn.0040e48b
add esp, 0xc
jmp 0x40e487
push ebx
mov ecx, 0x7fffffff
and esi, ecx
add esi, edx
lea eax, [ebp + 8]
mov ebx, dword [esi]
and dword [ebp + 8], 0
push eax
push 4
push dword [esi + 4]
and ebx, ecx
add ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e486
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
mov ecx, dword [eax + 0x1c]
push 0
sub ecx, edi
test byte [ebp + 0xc], 0x40
pop eax
setne al
lea eax, [eax*2 - 1]
push eax
mov eax, dword [0x51fd84]
imul eax, dword [esi]
push eax
mov eax, dword [0x51fd8c]
imul eax, dword [esi]
push eax
mov eax, dword [0x51fd80]
mov edx, dword [esi + 4]
xor eax, ecx
push eax
mov ecx, ebx
call fcn.0040e9fe
add esp, 0x14
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x40e9ae
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
mov ebx, dword [ecx + 0x3c]
add ebx, ecx
push ebp
movzx eax, word [ebx + 0x14]
lea ebp, [ebx + 0x18]
add ebp, eax
push esi
xor eax, eax
xor esi, esi
push edi
mov dword [esp + 0x10], edx
cmp ax, word [ebx + 6]
jae 0x40e9ee
mov edi, ebp
push edi
push edx
call fcn.0041e6c6
pop ecx
pop ecx
test eax, eax
je 0x40e9f6
movzx eax, word [ebx + 6]
mov edx, dword [esp + 0x10]
inc esi
add edi, 0x28
cmp esi, eax
jb 0x40e9d1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
imul esi, esi, 0x28
lea eax, [esi + ebp]
jmp 0x40e9f0
Function at 0x40ea8f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42a21a
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
mov esi, ecx
push edi
mov ebx, edx
test esi, esi
je 0x40eb57
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi + 0x7c], 0
je 0x40eb57
mov eax, dword [edi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x24]
add ecx, esi
add edx, esi
cmp byte [ebx], 0xff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
je 0x40eb12
push ebx
call fcn.0041df60
push eax
push ebx
call fcn.004121f4
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
jmp 0x40eb1c
mov ecx, dword [ebx + 1]
xor ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
xor ebx, ebx
cmp dword [eax + 0x18], ebx
jbe 0x40eb57
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x40eb4d
add eax, esi
push eax
mov dword [esp + 0x20], eax
call fcn.0041df60
push eax
push dword [esp + 0x24]
call fcn.004121f4
add esp, 0xc
cmp dword [esp + 0x10], eax
je 0x40eb6b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, dword [eax + 0x18]
jb 0x40eb23
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [edi + 0x78]
jb 0x40ec67
mov eax, dword [edi + 0x7c]
add eax, dword [edi + 0x78]
cmp ecx, eax
jae 0x40ec67
lea eax, [ecx + esi]
push eax
lea ecx, [esp + 0x2c]
call fcn.004021ea
xor ebx, ebx
mov dword [esp + 0x64], ebx
push 1
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x18], 0x2e
call fcn.0040235b
mov esi, eax
cmp esi, 0xffffffff
je 0x40ec54
push esi
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00411264
mov byte [esp + 0x64], 1
cmp dword [eax + 0x14], 0x10
jb 0x40ebe2
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.00402217
test edi, edi
je 0x40ec54
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00411264
mov byte [esp + 0x64], 2
cmp dword [eax + 0x14], 0x10
jb 0x40ec1d
mov eax, dword [eax]
push ebx
push dword [ebp + 0xc]
mov edx, eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040ea8f
add esp, 0xc
mov esi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.00402217
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00402217
mov eax, esi
jmp 0x40eb59
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00402217
jmp 0x40eb57
lea eax, [ecx + esi]
jmp 0x40eb59
Function at 0x40f481
Capabilities:
Parse pe header

Disassembly:
push 8
push 0x437a98
call fcn.004291b0
mov esi, ecx
and dword [ebp - 4], 0
lea edi, [esi + 0x80]
push dword [ebp + 0xc]
push 0x40
push 0
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f582
or dword [ebp - 4], 0xffffffff
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40f571
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x40f571
mov dword [ebp - 4], 1
lea edi, [esi + 0xc0]
push dword [ebp + 0xc]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f582
or dword [ebp - 4], 0xffffffff
cmp dword [edi], 0x4550
jne 0x40f571
mov eax, 0x10b
cmp word [esi + 0xd8], ax
jne 0x40f571
movzx eax, word [esi + 0xc6]
test ax, ax
je 0x40f571
mov edi, eax
imul edi, edi, 0x28
movzx ecx, word [esi + 0xd4]
mov ebx, dword [esi + 0xbc]
add ecx, 0x18
add ebx, ecx
push edi
call fcn.0041e7d8
pop ecx
mov dword [esi + 0x1b8], eax
test eax, eax
jne 0x40f546
push 8
jmp 0x40f588
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push edi
push ebx
push eax
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f582
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + edi]
mov dword [esi + 0x18], eax
xor eax, eax
jmp 0x40f589
push 0xb
jmp 0x40f588
or dword [ebp - 4], 0xffffffff
push 0x1e
pop eax
call fcn.004291eb
ret 8

Function at 0x4121f4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ecx, 0xf7f733c0
test edi, edi
je 0x41222d
movzx eax, byte [ebx]
cdq
push 0
xor esi, edx
push 0x1000193
xor ecx, eax
push esi
push ecx
inc ebx
call fcn.00428b80
xor esi, esi
mov ecx, eax
dec edi
jne 0x41220f
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412236
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x5232e0]
or eax, dword [0x5232e4]
push ebx
push esi
mov ebx, edx
push edi
mov dword [esp + 0xc], ebx
mov edi, ecx
jne 0x412296
xor esi, esi
mov eax, esi
push 8
cdq
pop ebx
mov ecx, eax
shrd eax, edx, 1
and ecx, 1
shr edx, 1
or ecx, 0
je 0x412278
xor eax, 0xd7870f42
xor edx, 0xc96c5795
dec ebx
jne 0x41225d
mov dword [esi*8 + 0x522ae8], eax
mov dword [esi*8 + 0x522aec], edx
inc esi
cmp esi, 0x100
jl 0x412257
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not ecx
not edx
test edi, edi
je 0x4122c7
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
shr edx, 8
xor ecx, dword [eax*8 + 0x522ae8]
xor edx, dword [eax*8 + 0x522aec]
inc edi
dec ebx
jne 0x4122a4
pop edi
not ecx
pop esi
not edx
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4179c8
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ad1a
push eax
mov dword fs:[0], esp
sub esp, 0x38
cmp dword [0x522abc], 0
push esi
je 0x417a67
mov esi, 0x522aac
push ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00419bf0
mov ecx, eax
call fcn.00419e19
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x417a18
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push dword [eax + ecx*4]
lea ecx, [esp + 0x24]
call fcn.004114d6
and dword [esp + 0x44], 0
mov ecx, esi
call fcn.00419aa5
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x417a49
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402217
cmp dword [0x522abc], 0
jne 0x4179f5
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, 0x42acaf
call fcn.0041efb8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0x10
mov edi, edx
jb 0x417a95
mov eax, dword [esi]
jmp 0x417a97
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417b45
push ecx
push ecx
mov ecx, esi
call fcn.004190fb
cmp eax, 0xffffffff
je 0x417aea
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00411264
and dword [ebp - 4], 0
mov edx, edi
mov ecx, eax
call fcn.00417a77
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402217
inc bl
je 0x417aea
xor al, al
jmp 0x417b51
mov ecx, dword [0x52106c]
test ecx, ecx
je 0x417b07
cmp dword [esi + 0x14], 0x10
jb 0x417afe
mov eax, dword [esi]
jmp 0x417b00
mov eax, esi
push 0
push eax
call ecx
jmp 0x417b31
cmp dword [0x520c48], 0
je 0x417b2f
push 0x18
pop eax
call fcn.0041f3e0
push esp
push 0x4361b4
call fcn.0040e784
push eax
call dword [0x520c48]
add esp, 0xc
jmp 0x417ae6
xor eax, eax
test eax, eax
je 0x417ae6
push esi
mov ecx, 0x522aac
call fcn.00419a22
mov byte [edi], 0
jmp 0x417b4f
test eax, 0x410
je 0x417ae6
mov byte [edi], 1
mov al, 1
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4187af
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42acfe
call fcn.0041efb8
mov eax, 0x1030
call fcn.0041f3e0
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1048], ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push 0x51bb18
push 0x80000001
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xf
pop edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [esp + 0x1048], ebx
xor ebp, ebp
inc ebp
mov dword [esp + 0x1c], ebp
test eax, eax
jne 0x4188a5
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push dword [esp + 0x1068]
mov dword [esp + 0x24], 0x1000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x3c], bl
test eax, eax
jne 0x41889b
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 2
ja 0x41889b
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00402571
mov dword [esp + 0x1048], ebp
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00411160
mov byte [esp + 0x1048], bl
lea ecx, [esp + 0x20]
call fcn.00402217
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1040]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41b030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [0x51b120]
push edi
test edx, edx
je 0x41b05a
lea eax, [edx - 1]
shr eax, 2
inc eax
imul ecx, ecx, 0x7fff0000
xor ecx, esi
sub edx, 4
dec eax
jne 0x41b04c
mov eax, dword [ebp + 8]
shr edx, 2
lea edi, [eax + edx*4]
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41b092
dec edx
shr edx, 2
inc edx
imul ecx, ecx, 0x7fff0000
xor ecx, esi
mov eax, ecx
not eax
xor eax, dword [edi]
xor eax, 0x1010101
mov dword [edi], eax
lea edi, [edi + 4]
dec edx
je 0x41b092
mov esi, dword [0x51b120]
jmp 0x41b06f
pop edi
pop esi
pop ebp
ret
Function at 0x426812
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51ab10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [fcn.0041b8ae]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041fece
mov dword [ebp - 0x14], eax
cmp dword [0x520b78], edi
jne 0x426903
push 0x800
push edi
push 0x42e298
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x426890
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4269e3
push 0x42e298
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4269e3
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4269e3
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x520b78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x520b7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x520b80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x520b88], eax
test eax, eax
je 0x426900
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x520b84], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x426928
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42691b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x42693d
push 4
pop eax
jmp 0x4269e5
cmp dword [ebp - 0x14], edi
je 0x42693d
push dword [0x520b78]
call dword [fcn.0041b8b2]
push 3
jmp 0x426922
mov eax, dword [0x520b84]
mov ebx, dword [fcn.0041b8b2]
cmp eax, esi
je 0x42699b
cmp dword [0x520b88], esi
je 0x42699b
push eax
call ebx
push dword [0x520b88]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42699b
test eax, eax
je 0x42699b
call ecx
test eax, eax
je 0x426990
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 0x426990
test byte [ebp - 8], 1
jne 0x42699b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4269cb
mov eax, dword [0x520b7c]
cmp eax, esi
je 0x4269c8
push eax
call ebx
test eax, eax
je 0x4269c8
call eax
mov edi, eax
test edi, edi
je 0x4269c8
mov eax, dword [0x520b80]
cmp eax, esi
je 0x4269c8
push eax
call ebx
test eax, eax
je 0x4269c8
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x520b78]
call ebx
test eax, eax
je 0x4269e3
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4269e5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fc2f
leave
ret