joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d908
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x456114]
cmp byte [eax + 0xc], 0
je 0x43da75
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43da6e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x457b24], 0
jne 0x43d95c
push 0x43da7c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43da84
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b24], eax
cmp dword [0x455b0c], 0
jne 0x43da57
push 0x43da94
call sub.kernel32.dll_LoadLibraryA
mov dword [0x455b0c], eax
cmp dword [0x455b0c], 0
je 0x43da57
push 0x43daa0
mov eax, dword [0x455b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b28], eax
push 0x43dab0
mov eax, dword [0x455b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b2c], eax
push 0x43dac4
mov eax, dword [0x455b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b30], eax
push 0x43dadc
mov eax, dword [0x455b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b34], eax
push 0x43daf4
mov eax, dword [0x455b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b38], eax
push 0x43db08
mov eax, dword [0x455b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b3c], eax
push 0x43db20
mov eax, dword [0x455b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b40], eax
push 0x43db38
mov eax, dword [0x455b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b44], eax
push 0x43db54
mov eax, dword [0x455b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b48], eax
push 0x43db60
mov eax, dword [0x455b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b4c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43da75
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x441928
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404468
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x441977
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004046d8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449120
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449170]
test si, 4
je 0x449134
or bl, 1
test si, 8
je 0x44913e
or bl, 4
test si, 1
je 0x449148
or bl, 8
test si, 2
je 0x449152
or bl, 0x10
test si, 0x10
je 0x44915c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44916b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x449174
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4491ac]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44918d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44919c
or bl, 4
test esi, 0x20000000
je 0x4491a7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44f870
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f882
add esp, 0xfffffff0
call fcn.00403a14
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419e34
mov eax, dword [0x455e04]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fc14
mov eax, dword [0x455e10]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fc20
mov eax, ebx
call fcn.0044fc2c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41204c]
call fcn.004036ac
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41204c]
call fcn.004036ac
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41204c]
call fcn.004036ac
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41204c]
call fcn.004036ac
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41204c]
call fcn.004036ac
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, 0x44c044
push eax
push 0
push 0
mov eax, dword [0x455f40]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b88c]
call fcn.0041d024
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b88c]
call fcn.0041d024
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b88c]
call fcn.0041d024
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045007c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ff44
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ff44
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ff44
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f9bf
call fcn.00403a6c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44fd28
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 0x44fed3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44feb4
mov dl, 1
mov eax, dword [0x412468]
call fcn.004036ac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404468
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44fea3
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.0043dc68
test al, al
je 0x44fe96
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, 0x44fee4
lea eax, [ebp - 0x254]
call fcn.00409250
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44fe96
xor eax, eax
push ebp
push 0x44fe8f
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 0x44ff1c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44fe78
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046d8
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 0x44fe78
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fe96
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44fd99
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415fcc
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 0x44feda
lea eax, [ebp - 0x260]
call fcn.00404468
ret

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

Disassembly:
push ecx
mov eax, dword [0x457b70]
cmp byte [eax + 0xa5], 0
jne 0x45088d
cmp dword [0x457b88], 0
jne 0x45084e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4507d8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x457b88], eax
cmp dword [0x457b84], 0
jne 0x450869
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x457b84], eax
cmp dword [0x457b8c], 0
jne 0x45088d
push esp
push 0
push 0
push 0x45077c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x457b8c], eax
pop edx
ret
Function at 0x450f20
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x457b70]
cmp dword [eax + 0x30], 0
je 0x450fca
cmp dword [ebx + 0x94], 0
jne 0x450fc4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450eb0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450fc4
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 0x450f8a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450fc4
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.004143c8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450f99
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451b28
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 0x451b5d
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.00404558
jmp 0x451b6a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044bc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452c7c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452cbd
mov eax, esi
call fcn.004392d8
test al, al
je 0x452cbd
mov eax, dword [ebx + 0x84]
call fcn.00438fd4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452cbd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438fd4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4033e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403439
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403439
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40342a
cmp esi, edx
jae 0x403439
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403418
cmp esi, edx
jae 0x403439
cmp word [esi], 0
je 0x403439
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x408310
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cd58
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x48d1dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x24c], 0
push 0
push eax
call fcn.00446820
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x234], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408395
sub eax, edx
lea ecx, [ebp - 0x248]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00409ae0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov esi, dword [ebp - 0x238]
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x254], eax
mov word [ebp - 0x264], ax
mov byte [ebp - 4], 2
lea eax, [esi + 0xf]
mov dword [ebp - 0x250], 7
push eax
mov dword [ebp - 0x24c], 1
call fcn.0040a5b0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push esi
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x264]
push eax
call fcn.00409850
push 0xf
push str.Log_rundll.log
lea ecx, [ebp - 0x264]
call fcn.00409850
lea ecx, [ebp - 0x230]
call fcn.004062d0
movups xmm1, xmmword [ebp - 0x264]
cmp dword [ebp - 0x250], 8
lea ecx, [ebp - 0x230]
movq xmm0, qword [ebp - 0x254]
movd eax, xmm1
movups xmmword [ebp - 0x230], xmm1
mov byte [ebp - 4], 1
cmovae ecx, eax
movq qword [ebp - 0x220], xmm0
push ecx
call fcn.0042f240
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4084cb
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4084c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40853e
push edx
push ecx
call fcn.00413236
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x408524
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40851a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408543
push edx
push ecx
call fcn.00413236
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041374e
mov esp, ebp
pop ebp
ret
call fcn.00449e09
call fcn.00449e09
int3
Function at 0x408d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x48d1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x408da7
test ebx, ebx
je 0x408da7
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x408da7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x408da7
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x408da1
push esi
push ebx
push edi
call fcn.00445d20
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x408da1
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041374e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041374e
mov esp, ebp
pop ebp
ret
Function at 0x40a0f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ce68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x48d1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00413206
mov edi, eax
add esp, 4
test edi, edi
je 0x40a193
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040d60d
add esp, 4
mov dword [edi + 4], eax
jmp 0x40a195
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.004054a0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x40a1f5
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40a1f5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x40a219
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40a23b
cmp byte [ebp + 0xc], 0
je 0x40a228
push esi
call fcn.0040de3b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x40a247
mov esi, str.ios_base::badbit_set
jmp 0x40a257
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0040a280
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00405ed0
push 0x486db8
lea eax, [ebp - 0x30]
push eax
call fcn.004458fe
int3
Function at 0x4176f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46db71
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x48d1dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.00402230
mov ecx, eax
test ecx, ecx
je 0x417884
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417845
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417837
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x417845
add eax, 0x10
push 0x492598
push eax
mov dword [ebp - 0x20], eax
call fcn.0046b97a
mov esi, eax
add esp, 8
test esi, esi
je 0x417845
push dword [ebp - 0x20]
push 0
push esi
call fcn.00446820
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4177fa
push esi
call fcn.0041389c
add esp, 4
jmp 0x417845
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417800
sub ecx, edx
sar ecx, 1
je 0x41782e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417816
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.004032a0
push esi
call fcn.0041389c
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x417845
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x417864
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041374e
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00401fa0
int3
Function at 0x417890
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x48d1dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4178b4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x417916
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x417916
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x417931
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041374e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x419bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dd36
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x48d1dc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x419c6c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x419c6c
call fcn.00418d30
mov esi, eax
jmp 0x419d5c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x419c8f
call fcn.00418d30
jmp 0x419d4f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x419cad
call fcn.00418d30
jmp 0x419d4f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x419cce
mov esi, 0x8007000e
jmp 0x419d51
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00418c00
jmp 0x419cf8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x419d0f
mov esi, 0x8007000e
jmp 0x419d51
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x419d2f
call fcn.00418d30
jmp 0x419d4f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00419a20
mov esi, eax
test edi, edi
je 0x419d5c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x419d80
lea ecx, [ebp - 0x418]
call fcn.004190a0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041374e
mov esp, ebp
pop ebp
ret 0x10