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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44fe24]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44fe05
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44fe14
or bl, 4
test esi, 0x20000000
je 0x44fe1f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4564e8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4564fa
add esp, 0xfffffff0
call fcn.00403840
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d090
mov eax, dword [0x641f2c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45688c
mov eax, dword [0x641f38]
mov dword [eax + 4], ebx
mov dword [eax], 0x456898
mov eax, ebx
call fcn.004568a4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415290]
call fcn.004034d8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415290]
call fcn.004034d8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415290]
call fcn.004034d8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415290]
call fcn.004034d8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415290]
call fcn.004034d8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x452cbc
push eax
push 0
push 0
mov eax, dword [0x6420a0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41eb88]
call fcn.00420320
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41eb88]
call fcn.00420320
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41eb88]
call fcn.00420320
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00456cf4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x456bbc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x456bbc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x456bbc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456637
call fcn.00403898
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4569a0
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 0x456b4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x456b2c
mov dl, 1
mov eax, dword [0x4156ac]
call fcn.004034d8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042b0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x456b1b
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.00444400
test al, al
je 0x456b0e
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, 0x456b5c
lea eax, [ebp - 0x254]
call fcn.004093ac
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x456b0e
xor eax, eax
push ebp
push 0x456b07
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 0x456b94
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x456af0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404520
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 0x456af0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404520
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456b0e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x456a11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00419228
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 0x456b52
lea eax, [ebp - 0x260]
call fcn.004042b0
ret

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

Disassembly:
push ecx
mov eax, dword [0x643b50]
cmp byte [eax + 0xa5], 0
jne 0x457505
cmp dword [0x643b68], 0
jne 0x4574c6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x457450
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x643b68], eax
cmp dword [0x643b64], 0
jne 0x4574e1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x643b64], eax
cmp dword [0x643b6c], 0
jne 0x457505
push esp
push 0
push 0
push 0x4573f4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x643b6c], eax
pop edx
ret
Function at 0x457b98
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x643b50]
cmp dword [eax + 0x30], 0
je 0x457c42
cmp dword [ebx + 0x94], 0
jne 0x457c3c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x457b28
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457c3c
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 0x457c02
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457c3c
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.0041760c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457c11
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4587a0
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 0x4587d5
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.004043a0
jmp 0x4587e2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404304
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4598f4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459935
mov eax, esi
call fcn.0043f9e8
test al, al
je 0x459935
mov eax, dword [ebx + 0x84]
call fcn.0043f6e4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459935
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f6e4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404770
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret
Function at 0x46043c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46046a
mov eax, ebx
call fcn.00460ef0
cmp dword [ebx + 0x40], 0
je 0x460463
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4604db
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4604cd
cmp dword [ebx + 8], 0
je 0x46048c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46049e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4604cd
cmp dword [ebx + 8], 0
je 0x46047f
cmp eax, 3
je 0x4604b1
dec eax
jne 0x46047f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46047f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46047f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4604f9
cmp dword [ebx + 0x14], 0xcc
je 0x4604f9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00460504
pop ebx
ret

Function at 0x473450
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404760
mov eax, dword [ebp - 8]
call fcn.00404760
xor eax, eax
push ebp
push 0x473527
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 4]
push esi
call sub.kernel32.dll_LoadLibraryW
test eax, eax
push esi
call sub.kernel32.dll_GetModuleHandleW
mov dword [0x643c1c], eax
cmp dword [0x643c1c], 0
je 0x473501
mov eax, dword [ebp - 8]
call fcn.00404770
push eax
mov eax, dword [0x643c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x643c20], eax
mov eax, dword [0x643c28]
push eax
push 0x40
push 0x15751a34
push 0x643c20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.nTDLL_ZwProtectVirtualMemory
mov edx, 0x643c20
mov eax, sub.kernel32.dll_GetCPInfo
mov ecx, 4
call fcn.00402c68
push 0x643c28
push 4
push sub.kernel32.dll_GetCPInfo
push 0x643c20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.ntdll_ZwWriteVirtualMemory
mov eax, dword [0x643c1c]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47352e
lea eax, [ebp - 8]
mov edx, 2
call fcn.004042d4
ret
Function at 0x42f380
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d000]
push edi
or ebp, 0xffffffff
jmp 0x42f3a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42f3a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42f398
mov eax, 1
add ebx, ebx
jne 0x42f3bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42f3b0
jne 0x42f3cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42f3b0
xor ecx, ecx
sub eax, 3
jb 0x42f3e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42f452
mov ebp, eax
add ebx, ebx
jne 0x42f3eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42f3f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42f41c
inc ecx
add ebx, ebx
jne 0x42f408
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42f3fd
jne 0x42f419
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42f3fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42f43c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42f42d
jmp 0x42f39e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42f43c
add edi, ecx
jmp 0x42f39e
pop esi
mov edi, esi
mov ecx, 0x11
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42f45a
cmp byte [edi], 0
jne 0x42f45a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42f45f
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x42f4ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x56e80]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x56ed8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42f48c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x56ee0]
or eax, eax
je 0x42f4c8
mov dword [ebx], eax
add ebx, 4
jmp 0x42f4a9
call dword [esi + 0x56edc]
mov ebp, dword [esi + 0x56ee4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42f502
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x430000
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
nop
nop
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x42ffcc
ror byte [eax + edx*4], 0x90
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x5be1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005be140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005be140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005be140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005be140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5bebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5bec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5d087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5bec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5bec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401080
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x8000000
push 3
push esi
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x40ef0c], eax
cmp eax, 0xffffffff
jne 0x4010d0
mov dword [0x40ef0c], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.File_scan__s_open_error:__d
push 0x9c7c90
call fcn.00401060
add esp, 0x10
call fcn.00401030
cmp eax, esi
je 0x401102
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401102
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Test_size_ERROR__d_r_n_s_r_n
push 0x9c7c90
call fcn.00401060
add esp, 0x10
call fcn.00401030
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x401c08
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e050]
jne 0x401c12
repz ret
jmp fcn.0040575e

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x405323
call fcn.00402ca2
mov dword [eax], esi
call fcn.00402c8f
push 0x16
pop esi
mov dword [eax], esi
call fcn.00402792
mov eax, esi
jmp 0x405378
test dword [ebp + 0xc], 0xfffffff9
jne 0x405309
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405350
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402cb5
pop ecx
call fcn.00402c8f
mov eax, dword [eax]
jmp 0x405378
test al, 0x10
jne 0x405376
test al, 1
je 0x405376
test byte [ebp + 0xc], 2
je 0x405376
call fcn.00402ca2
mov dword [eax], 5
call fcn.00402c8f
mov dword [eax], 0xd
jmp 0x405347
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40703b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40e050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004027d9
and dword [ebp - 0x14], 0
cmp dword [0x9c8cf4], 0
mov dword [ebp - 0x18], eax
jne 0x4070ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407196
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407196
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x9c8cf4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x9c8cf8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x9c8cfc], eax
call edi
push eax
call esi
mov dword [0x9c8d04], eax
test eax, eax
je 0x4070ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x9c8d00], eax
mov eax, dword [0x9c8d00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407147
cmp dword [0x9c8d04], ecx
je 0x407147
push eax
call esi
push dword [0x9c8d04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407147
test ebx, ebx
je 0x407147
call edi
test eax, eax
je 0x40713e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40713e
test byte [ebp - 8], 1
jne 0x407147
or dword [ebp + 0x10], 0x200000
jmp 0x40717a
mov eax, dword [0x9c8cf8]
cmp eax, dword [ebp - 0x18]
je 0x40717a
push eax
call esi
test eax, eax
je 0x40717a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40717a
mov eax, dword [0x9c8cfc]
cmp eax, dword [ebp - 0x18]
je 0x40717a
push eax
call esi
test eax, eax
je 0x40717a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x9c8cf4]
call esi
test eax, eax
je 0x407196
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407198
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401c08
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x9641691
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x2af1cfc
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401100
lea ebx, [ebx]
cmp esi, eax
jae 0x401104
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x40110a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401240
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareInfoSOFT
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401287
mov edx, dword [esp]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push eax
push 0x443704
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40128b
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ecx
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ecx
ret
Function at 0x403550
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x43e810
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x455ac0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
lea ecx, [esp + 0x20]
call fcn.00417000
xor ebx, ebx
push ebx
push ebx
push 0x44385c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x64], ebx
call fcn.00417444
test eax, eax
je 0x4035f8
lea ecx, [esp + 0x30]
call fcn.00417000
push ebx
push ebx
push str.EnterBootloader.exe
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 1
call fcn.00417444
test eax, eax
je 0x4035eb
lea ecx, [esp + 0x40]
call fcn.00417000
push ebx
push ebx
push str.RUUGetInfo.exe
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64], 2
call fcn.00417444
test eax, eax
jne 0x403621
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 1
call fcn.0041710d
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], bl
call fcn.0041710d
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
call fcn.0041710d
mov eax, 0xd0
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
lea eax, [esp + 0x18]
push eax
push 0x4437f4
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jne 0x403684
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 1
call fcn.0041710d
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], bl
call fcn.0041710d
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
call fcn.0041710d
mov eax, 0xd2
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
push edi
call fcn.004144ea
add esp, 4
mov esi, eax
push esi
push edi
push ebx
push 0x4437f4
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4036ab
push esi
call fcn.004144ef
add esp, 4
jmp 0x403640
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x4437f0
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4036a0
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x10]
sub esi, 0x40000
cmp esi, 0xffff
ja 0x403640
lea ecx, [esp + 0x10]
call fcn.00401d70
push esi
lea ecx, [esp + 0x14]
push 0x4437e8
push ecx
mov byte [esp + 0x64], 3
call fcn.00402bb0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov ecx, 0x4570e8
call fcn.004030b0
lea ecx, [esp + 0x10]
call fcn.00401da0
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 1
call fcn.0041710d
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], bl
call fcn.0041710d
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
call fcn.0041710d
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x4c
ret