joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df95
Capabilities:
Create thread
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
dec eax
push esi
push edi
mov esi, ecx
je 0x40e037
dec eax
je 0x40dff3
dec eax
dec eax
je 0x40dfd3
sub eax, 0x3e4
je 0x40dfc8
dec eax
jne 0x40e08e
call fcn.0040bedd
jmp 0x40e08e
push esi
call fcn.0040b7c8
jmp 0x40e08e
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [esp + 8]
push ecx
push 4
lea eax, [esi + 0x204]
push eax
push 0x40dc57
jmp 0x40e055
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
call edi
lea eax, [esp + 8]
push eax
push 0x46e8f8
call edi
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x40e08e
mov eax, esi
jmp fcn.0040e201
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [esp + 8]
push ecx
push 4
lea eax, [esi + 0x204]
push eax
push 0x40dda5
push 0
push 0
mov dword [esi + 0x20c], 0x46e988
mov dword [eax], esi
mov dword [esi + 0x208], 0x46e838
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xfffffffffffffffe
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e0b6
Capabilities:
Create process on windows
Delete file
Get comspec environment variable
Move file
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x244]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40e1fa
push esi
lea eax, [ebp - 0x244]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40e1fa
push esi
lea eax, [ebp - 0x654]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40e1fa
push str._c_del
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44c]
push eax
call esi
push str.___nul
lea eax, [ebp - 0x44c]
push eax
call esi
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x20], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x654]
push 0x100
mov dword [ebp - 0x30], str.Open
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], 0x40
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40e1d7
push 0x40
push dword [ebp - 4]
call esi
push 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push 0
lea eax, [ebp - 0x244]
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
xor eax, eax
inc eax
jmp 0x40e1fc
push 0x20
call edi
push eax
call esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 4
push 0
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fbd7
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
lea eax, [esi - 0x54]
neg esi
sbb esi, esi
and esi, eax
cmp dword [esp + 0x18], 0
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x18], 1
je 0x40fc2f
push dword [esp + 0x14]
push dword [esi + 4]
call edi
push 0x104
mov ebx, eax
push ebp
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp dword [esp + 0x1c], eax
jge 0x40fc6d
and dword [esp + 0x18], 0
jmp 0x40fc45
push ebp
push dword [esp + 0x18]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x40fcab
push 0xffffffffffffffff
add esi, 0x54
call dword [sym.imp.USER32.dll_MessageBeep]
push dword [esp + 0x14]
mov eax, esi
add esi, 0xffffffac
neg eax
sbb eax, eax
and eax, esi
push dword [eax + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40fcab
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
call ebx
cmp eax, 0x104
jle 0x40fcab
push ebp
call ebx
push 0xffffffffffffffff
add esi, 0x54
call dword [sym.imp.USER32.dll_MessageBeep]
push dword [esp + 0x14]
mov eax, esi
add esi, 0xffffffac
neg eax
sbb eax, eax
and eax, esi
push dword [eax + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
and dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4102d7
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
mov esi, eax
lea eax, [esi - 0x54]
neg esi
sbb esi, esi
and esi, eax
cmp dword [esp + 0x18], 0
push edi
mov dword [esp + 0x10], 1
mov edi, 0x410
je 0x410331
push edi
push dword [esi + 4]
call ebx
push 0x104
push dword [esp + 0x1c]
mov ebp, eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp dword [esp + 0x1c], eax
jge 0x41036c
and dword [esp + 0x10], 0
jmp 0x410347
push dword [esp + 0x18]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4103ad
push 0xffffffffffffffff
add esi, 0x54
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, esi
add esi, 0xffffffac
neg eax
sbb eax, eax
push edi
and eax, esi
push dword [eax + 4]
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x4103ad
push dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
call ebp
cmp eax, 0x104
jle 0x4103ad
push dword [esp + 0x18]
call ebp
push 0xffffffffffffffff
add esi, 0x54
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, esi
add esi, 0xffffffac
neg eax
sbb eax, eax
push edi
and eax, esi
push dword [eax + 4]
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x410444
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
mov esi, eax
lea eax, [esi - 0x54]
neg esi
sbb esi, esi
and esi, eax
cmp dword [esp + 0x18], 0
push edi
mov dword [esp + 0x10], 1
mov edi, 0x415
je 0x41049e
push edi
push dword [esi + 4]
call ebx
push 0x104
push dword [esp + 0x1c]
mov ebp, eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp dword [esp + 0x1c], eax
jge 0x4104d9
and dword [esp + 0x10], 0
jmp 0x4104b4
push dword [esp + 0x18]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x41051a
push 0xffffffffffffffff
add esi, 0x54
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, esi
add esi, 0xffffffac
neg eax
sbb eax, eax
push edi
and eax, esi
push dword [eax + 4]
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x41051a
push dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
call ebp
cmp eax, 0x104
jle 0x41051a
push dword [esp + 0x18]
call ebp
push 0xffffffffffffffff
add esi, 0x54
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, esi
add esi, 0xffffffac
neg eax
sbb eax, eax
push edi
and eax, esi
push dword [eax + 4]
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x41085c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
push esi
push edi
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x410881
push esi
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x410a1d
mov eax, dword [ebx + 0x44]
cmp eax, edi
je 0x410895
test byte [ebx + 0x58], 2
jne 0x410895
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
test byte [ebx + 0x84], 2
mov dword [ebx + 0x44], esi
jne 0x410a1a
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0xb
push dword [ebx + 4]
call esi
push edi
push edi
push 0x418
push dword [ebx + 4]
call esi
cmp eax, edi
jle 0x4108da
mov dword [esp + 0xc], eax
push edi
push edi
push 0x416
push dword [ebx + 4]
call esi
dec dword [esp + 0xc]
jne 0x4108c8
mov eax, dword [ebx + 0x44]
cmp eax, edi
je 0x4109fb
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
jle 0x4109fb
lea esi, [esp + 0x28]
call fcn.0041ace2
lea eax, [esp + 0x78]
mov dword [esp + 0x4c], eax
mov eax, esi
push eax
push 1
push dword [esp + 0x14]
mov dword [esp + 0x38], 0x15
push dword [ebx + 0x44]
mov dword [esp + 0x40], edi
mov dword [esp + 0x60], 0x64
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x63
jle 0x410962
mov eax, esi
push eax
push 1
push dword [esp + 0x14]
mov dword [esp + 0x3c], 4
push dword [ebx + 0x44]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov word [esp + 0x78], di
xor eax, eax
mov esi, dword [esp + 0xc]
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
test byte [esp + 0x34], 3
mov dword [esp + 0x14], eax
setne cl
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
dec cl
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push 0x443
push dword [ebx + 4]
mov dword [esp + 0x28], esi
and ecx, 4
mov byte [esp + 0x2c], cl
mov byte [esp + 0x2d], 0x18
call dword [sym.imp.USER32.dll_SendMessageW]
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x58]
push eax
push esi
push 0x440
push dword [ebx + 4]
mov dword [esp + 0x68], 0x20
mov dword [esp + 0x6c], 2
call dword [sym.imp.USER32.dll_SendMessageW]
inc esi
xor edi, edi
cmp esi, dword [esp + 0x10]
mov dword [esp + 0xc], esi
jl 0x4108fc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
push 0xb
push dword [ebx + 4]
call esi
push 1
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410a92
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and word [ebp - 0x18], 0
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 9
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x410afc
push str.STATIC
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x410afc
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [esi + 4]
call edi
mov ecx, eax
or ecx, 0x100
cmp eax, ecx
je 0x410af5
push ecx
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xfffffffffffffff0
push dword [esi + 4]
call edi
push str.Verdana
push 0
push 0x2bc
push 0x13
lea edi, [esi + 0x28]
push edi
xor cl, cl
call fcn.0040f0d5
mov edi, dword [edi]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push edi
push 0x30
push dword [esi + 4]
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test edi, edi
jle 0x410b8d
lea eax, [edi + edi + 2]
call fcn.0042ff20
mov dword [ebp - 4], esp
inc edi
push edi
push dword [ebp - 4]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x410b8d
push ecx
mov eax, esp
and dword [eax], 0
push ecx
mov eax, esp
and dword [eax], 0
push dword [esi + 4]
lea edi, [esi + 0x24]
push edi
call fcn.0041ab95
push 0
push 1
push 0x401
push dword [edi]
call ebx
xor ebx, ebx
push ebx
push ecx
mov ecx, dword [ebp - 4]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esi + 4]
push edi
call fcn.0041ab19
lea esp, [ebp - 0x20]
pop edi
pop ebx
leave
ret
Function at 0x411ef8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.0041220a
push 1
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x2c]
cmp eax, 0xffffffff
jne 0x411f36
push 9
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push 0
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 8]
call ebx
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test edi, edi
jle 0x411fc3
lea eax, [edi + edi + 2]
call fcn.0042ff20
mov dword [ebp - 8], esp
inc edi
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x411fc3
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
xor ecx, ecx
test al, 1
je 0x411f9f
inc ecx
jmp 0x411fa6
test al, 2
je 0x411fa6
push 2
pop ecx
test al, 0xb
je 0x411fad
push 0x24
pop ecx
or ecx, 0x10
push ecx
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0xc]
push dword [ebp + 8]
call ebx
lea esp, [ebp - 0x24]
pop edi
pop ebx
leave
ret 4
Function at 0x417c2c
Capabilities:
Log keystrokes via polling

Disassembly:
and dword [ebx], 0
push esi
mov esi, eax
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x417c57
cmp eax, 0x79
jne 0x417c4e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x417c57
cmp dword [esi + 0xa8], 0x20
jne 0x417cca
cmp dword [esp + 8], 0xf100
jne 0x417cca
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x417c87
mov eax, esi
call fcn.00416296
push 0
push 0xffffffffffffffff
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x417cca
mov eax, dword [esi + 0xa8]
cmp eax, 0x20
je 0x417cca
test byte [esi + 0x84], 0x40
jne 0x417cbf
mov al, byte [esi + 0x85]
test al, 2
je 0x417cb4
test al, 4
jne 0x417cb4
test al, 8
je 0x417cb4
mov al, 1
call fcn.0041564a
push edi
mov edi, esi
call fcn.004166c9
pop edi
jmp 0x417cc4
cmp eax, 0x20
je 0x417cca
mov dword [ebx], 1
and byte [esi + 0x84], 0xbf
xor eax, eax
pop esi
ret 4

Function at 0x418add
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
push edi
mov byte [ebp - 1], 1
jne 0x418b27
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
jmp 0x418b4e
shr eax, 2
test al, 1
je 0x418b57
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x418b8a
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x418b89
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret
Function at 0x4190ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
call dword [0x46bf94]
mov eax, dword [ebp + 8]
xor edi, edi
push 2
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x40c], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp + 0xc], ebx
jne 0x41910e
call fcn.00418efa
mov esi, eax
jmp 0x4191ed
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x41912b
call fcn.00418efa
jmp 0x4191e2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x419121
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x41916e
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x419164
lea eax, [ebp - 0x40c]
call fcn.0041a057
mov eax, 0x8007000e
jmp 0x419208
push 2
push eax
call fcn.0041920f
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x41918e
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.0041a0aa
jmp 0x41919a
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], eax
mov ebx, dword [ebp - 0x40c]
cmp ebx, edi
jne 0x4191ab
mov esi, 0x8007000e
jmp 0x4191e4
call dword [0x46bf94]
push esi
push ebx
push esi
push dword [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x419121
mov ecx, dword [ebp - 0x40c]
push dword [ebp + 0x18]
mov word [ecx + eax*2], di
push dword [ebp - 0x40c]
lea ecx, [ebp - 8]
call fcn.00419254
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x419206
lea eax, [ebp - 0x40c]
call fcn.0041a057
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x41a060
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x41a073
push 0x80004005
call fcn.0041b286
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x41a07a
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41a140
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x41a207
xor eax, eax
cmp dword [ebp - 8], esi
je 0x41a189
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x41a207
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push ecx
jmp 0x41a1dd
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.0041a140
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x41a21a
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
je 0x41a1b1
cmp dword [ebp - 8], esi
je 0x41a1f7
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x41a211
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x41a224
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x41a213

Function at 0x41a960
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00428c40
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41a9b9
cmp dword [ebp - 0x110], 5
jae 0x41a9b5
cmp dword [ebp - 0x110], 4
jne 0x41a9b9
cmp dword [ebp - 0x10c], 0x5a
jb 0x41a9b9
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x41b844
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b8a7
cmp dword [ebp + 0xc], 1
je 0x41b880
cmp dword [ebp + 0xc], 2
je 0x41b880
push 0xd
pop eax
jmp 0x41b8a7
test edi, edi
mov eax, dword [ebp - 4]
je 0x41b8a1
test eax, eax
je 0x41b89d
test al, 1
jne 0x41b87b
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x41b8a1
jmp 0x41b87b
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x41b9f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41ba0c
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41ba41
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x41ba3d
cmp edi, eax
jae 0x41ba41
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x41ba2f
cmp edi, eax
jb 0x41ba45
xor eax, eax
jmp 0x41ba4f
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret