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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x405730
lea eax, [esi + 0x2ec]
push eax
push 0
push esi
push 0x4056e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2e8], eax
pop esi
pop ebp
ret 4
call fcn.00405170
pop esi
pop ebp
ret 4

Function at 0x405740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x55509c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x208
lea eax, [ebp - 0x20c]
mov ebx, ecx
push 0
push eax
call fcn.0048cfa0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0048cfa0
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebx + 0x14c], 8
lea ecx, [ebx + 0x138]
jb 0x4057a3
mov ecx, dword [ecx]
lea edx, [ebp - 0x414]
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x4057b0
push esi
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4057d0
mov eax, dword [0x519bc4]
mov dword [edi], eax
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4057f0
mov ecx, 7
mov esi, str.LittlePicture
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x405811
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041b987
lea edi, [ebp - 0x20c]
add esp, 4
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405840
mov ecx, 7
mov esi, str.LittlePicture
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x20c]
pop edi
add ecx, 0xfffffffe
pop esi
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x405863
mov eax, dword [str..ini]
mov dword [ecx], eax
mov eax, dword [0x519e2c]
mov dword [ecx + 4], eax
mov ax, word [0x519e30]
mov word [ecx + 8], ax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push str.InstallPath
push str.AppCfg
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
push str.InstallPath
call fcn.004058d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00413012
mov esp, ebp
pop ebp
ret
Function at 0x4058d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5131a8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x55509c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x3c]
call fcn.0041aa79
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.0041aaad
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4059a8
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405a23
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.LittlePicture
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40597e
push dword [ebp + 0xc]
call esi
jmp 0x405a23
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call esi
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0xf003f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405a23
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.LittlePicture
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405a1e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.0041aa8c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x407a30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513430
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x55509c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x557b08], 0
jne 0x407a67
call fcn.00407d30
mov ecx, dword [0x557b08]
call fcn.004046e0
mov edx, eax
mov dword [ebp - 0x2c], 7
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [edx], ax
jne 0x407a91
xor ecx, ecx
jmp 0x407aa5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407a96
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00402180
cmp byte [ebp + 8], 0
mov dword [ebp - 4], 0
je 0x407b31
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], 0
push eax
call fcn.00402060
push 0x13
push str.LittlePicViewer.exe
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00401f30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407b1c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0041c793
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x407b31
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402280
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x407b46
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00402280
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret 4

Function at 0x407ef0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov byte [ebp - 4], 0
mov ecx, dword [esi + 0x88c]
test ecx, ecx
je 0x407f18
call fcn.004070e0
mov ecx, dword [esi + 0x88c]
call fcn.004e51d0
mov byte [ebp - 4], al
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 1
push 1
push 0x7530
push 0x7530
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp + 8], 0
jne 0x407f6a
push dword [ebp - 4]
mov ecx, esi
call fcn.00407a30
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0xc]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x407f80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx - 0x870]
mov byte [ebp - 4], 0
mov ecx, dword [esi + 0x88c]
test ecx, ecx
je 0x407fac
call fcn.004070e0
mov ecx, dword [esi + 0x88c]
call fcn.004e51d0
mov byte [ebp - 4], al
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 1
push 1
push 0x7530
push 0x7530
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp - 4]
mov ecx, esi
call fcn.00407a30
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0xc]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4098f0
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x55509c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push esi
mov esi, dword [ebp + 8]
push 0
push 0x5197f0
mov dword [ebp - 0xa38], eax
call fcn.00402180
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048cfa0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x40995d
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push edi
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x4099b1
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413046
push esi
mov esi, eax
mov dword [ebp - 0xa34], eax
push 0
push esi
call fcn.0048cfa0
add esp, 0x10
push esi
push edi
call ebx
test eax, eax
jne 0x4099c6
push esi
call fcn.00451e30
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x51a594]
mov dword [ebp - 0xc], eax
mov ax, word [0x51a598]
push 0x208
mov word [ebp - 8], ax
call fcn.00413046
add esp, 4
mov ebx, eax
mov cx, word [esi]
lea eax, [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x104
push ebx
push eax
mov word [ebp - 0xc], cx
call edi
test eax, eax
jne 0x409a4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409ad9
push ebx
call fcn.00451e30
xor ecx, ecx
mov eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413046
add esp, 8
mov ebx, eax
lea eax, [ebp - 0xc]
push 1
push ebx
push eax
call edi
test eax, eax
je 0x409ad9
mov edi, ebx
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x409a50
sub edi, ecx
lea eax, [ebp - 0x218]
sar edi, 1
push edi
push ebx
push eax
call fcn.00493ed9
add esp, 0xc
test eax, eax
je 0x409a89
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x409a74
cmp word [esi], ax
je 0x409ad9
jmp 0x4099e7
lea eax, [ebp - 0x218]
lea eax, [eax + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x51a59c
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.00409ee0
add esp, 0x14
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.004035e0
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.00408c90
lea ecx, [ebp - 0xa30]
call fcn.0040a770
mov eax, dword [ebp - 0xa34]
push eax
call fcn.00451e30
push ebx
call fcn.00451e30
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov al, 1
pop edi
pop ebx
pop esi
call fcn.00413012
mov esp, ebp
pop ebp
ret 8
Function at 0x409b10
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x55509c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x214], 0
call fcn.0048cfa0
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409b98
lea eax, [ebp - 0x218]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x409b91
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x20c], ax
jne 0x409bb8
xor ecx, ecx
jmp 0x409bd0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409bc1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00402180
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00413012
mov esp, ebp
pop ebp
ret 8
Function at 0x409c00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513646
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x55509c]
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 dword [ebp - 0x478], ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x47c], 0
push eax
push 0x5197f0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00402180
push 0x22c
lea eax, [ebp - 0x474]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0048cfa0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x409cbe
push 0x5197f0
mov ecx, ebx
call fcn.004035e0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x409e7d
inc ecx
push ecx
jmp 0x409e6c
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x409e37
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x450], ax
jne 0x409d0a
xor ecx, ecx
jmp 0x409d22
lea ecx, [ebp - 0x450]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d13
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x248]
call fcn.00402180
mov esi, dword [ebp - 0x46c]
mov byte [ebp - 4], 1
cmp esi, dword [ebp + 0xc]
je 0x409d80
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x409d66
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00402280
lea eax, [ebp - 0x474]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x409ce0
jmp 0x409e37
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048cfa0
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409e25
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00407590
lea eax, [ebp - 0x230]
push 0x5197f0
push eax
call fcn.00408b20
add esp, 8
test al, al
je 0x409e25
mov ecx, dword [ebp - 0x478]
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.004098f0
lea eax, [ebp - 0x230]
push 0x5197f0
push eax
call fcn.00408b20
add esp, 8
test al, al
je 0x409e25
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x230]
call fcn.00407590
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x248]
call fcn.0040a770
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov word [ebx], ax
lea eax, [ebp - 0x230]
push eax
call fcn.00405e30
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x409e7d
inc eax
push eax
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00402280
mov eax, ebx
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.00413012
mov esp, ebp
pop ebp
ret 8
Function at 0x40c590
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x55509c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0042dd60
add esp, 4
push str.Riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [0x555074]
mov edi, eax
mov ecx, dword [0x555078]
mov dword [0x557bbc], 0
cmp esi, ecx
jae 0x40c5fa
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x40c5f3
mov eax, dword [eax + 0x1c]
push 1
call eax
mov ecx, dword [0x555078]
add esi, 4
cmp esi, ecx
jb 0x40c5e0
cmp dword [0x557bc0], 0
jne 0x40c608
call fcn.0040c820
mov ecx, dword [0x557bc0]
mov eax, dword [ecx]
call dword [eax + 0xac]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048cfa0
push 0x51a1fc
lea eax, [ebp - 0x20c]
push str._s__
push eax
call fcn.00407340
add esp, 0x18
cmp dword [0x557bc0], 0
jne 0x40c650
call fcn.0040c820
mov ecx, dword [0x557bc0]
lea eax, [ebp - 0x20c]
push 0
push 1
push 0
push 0
push 0
push 0
push 0x100
push 0xce0000
push eax
push 0
call fcn.00427660
cmp dword [0x557bc0], 0
jne 0x40c688
call fcn.0040c820
mov ecx, dword [0x557bc0]
call fcn.004274e0
cmp dword [0x557bc0], 0
jne 0x40c6a1
call fcn.0040c820
mov ecx, dword [0x557bc0]
push 5
call fcn.004264a0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0042c800
call fcn.0042ea80
mov ecx, 0x557b90
call fcn.0040ddf0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x557bc0], 0
pop edi
pop esi
je 0x40c6f5
mov ecx, dword [0x557bc0]
test ecx, ecx
je 0x40c6eb
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x557bc0], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov byte [0x557bc4], 1
call fcn.00413012
mov esp, ebp
pop ebp
ret
Function at 0x40d0f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5139b6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x55509c]
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 0x40d19c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40d19c
call fcn.0040c1f0
mov esi, eax
jmp 0x40d28c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40d1bf
call fcn.0040c1f0
jmp 0x40d27f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40d1dd
call fcn.0040c1f0
jmp 0x40d27f
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 0x40d1fe
mov esi, 0x8007000e
jmp 0x40d281
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040bfd0
jmp 0x40d228
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40d23f
mov esi, 0x8007000e
jmp 0x40d281
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 0x40d25f
call fcn.0040c1f0
jmp 0x40d27f
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.0040cf90
mov esi, eax
test edi, edi
je 0x40d28c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40d2b0
lea ecx, [ebp - 0x418]
call fcn.0040c760
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.00413012
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40dbe0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x40dbf9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dc05
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40dc00
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40dc40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40dc55
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dc60
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x410800
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0x64
push 2
push esi
mov ecx, dword [esi + 0x75c]
call fcn.0042e820
lea eax, [esi + 0x8c0]
push eax
push 0
push esi
push 0x40fc50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x8c4], eax
pop esi
ret

Function at 0x411800
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x55509c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x208
push eax
mov word [ebp - 0xc], ax
mov edi, ecx
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x214]
push eax
call fcn.0048cfa0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411841
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jl 0x411864
push 3
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00494a4f
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x218]
shrd ecx, edx, 0x14
shr edx, 0x14
call fcn.004137e0
cmp dword [edi + 0x78c], 0
cvtsd2ss xmm0, xmm0
je 0x411904
cvttss2si eax, xmm0
cmp eax, 0x400
jle 0x4118dd
mulss xmm0, dword [0x51d17c]
lea eax, [ebp - 0x214]
sub esp, 8
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
push 0x51d160
push eax
call fcn.00407340
add esp, 0x10
jmp 0x4118f2
push eax
lea eax, [ebp - 0x214]
push str._dMB
push eax
call fcn.00407340
add esp, 0xc
mov ecx, dword [edi + 0x78c]
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00413012
mov esp, ebp
pop ebp
ret 4