joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40341b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
je 0x40349c
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x403493
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x403493
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x40348c
push ebx
call fcn.0043e86c
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x40348c
push ebx
push dword [ebp + 8]
push eax
call fcn.0043e3b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
xor esi, esi
cmp dword [ebp - 4], ebx
je 0x4034d9
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x474fcc
push dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4034d0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push dword [ebp - 4]
call fcn.0043e715
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4034e2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x4ec]
sub esp, 0x56c
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x4e8], eax
push ebx
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x44]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x48], ebx
call fcn.0043e330
push esi
push 0
push edi
mov dword [ebp - 0x44], esi
call fcn.0043e330
add esp, 0x18
push edi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [edi + 4], 5
jne 0x403545
call fcn.00403360
test eax, eax
je 0x403545
and dword [ebx + 4], 0
jmp 0x4035f4
lea eax, [ebp - 0x44]
push eax
call fcn.0040332f
mov ebx, dword [edi + 4]
mov eax, dword [ebp - 0x40]
imul ebx, ebx, 0xa
add ebx, dword [edi + 8]
imul eax, eax, 0xa
add eax, dword [ebp - 0x3c]
cmp eax, ebx
mov dword [ebp - 0x4c], eax
jle 0x403578
push esi
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.0043e3b0
mov ebx, dword [ebp - 0x4c]
add esp, 0xc
xor eax, eax
push 0x40e
push eax
mov word [ebp + 0xd8], ax
lea eax, [ebp + 0xda]
push eax
call fcn.0043e330
add esp, 0xc
lea esi, [ebp + 0xd8]
call fcn.004033a0
test eax, eax
jl 0x4035ed
lea eax, [ebp - 0x80]
push eax
mov eax, esi
push eax
call fcn.0040341b
test eax, eax
je 0x4035ed
mov ecx, dword [ebp - 0x70]
movzx edx, word [ebp - 0x70]
shr ecx, 0x10
mov esi, ecx
imul esi, esi, 0xa
xor eax, eax
add esi, edx
inc eax
cmp ebx, esi
jge 0x4035e4
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x6c]
shr ecx, 0x10
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0x48]
mov dword [edi + 8], edx
mov dword [ecx + 4], eax
jmp 0x4035f7
mov ecx, dword [ebp - 0x48]
and dword [ecx + 4], 0
jmp 0x4035f7
mov eax, dword [ebp - 0x48]
and dword [eax + 4], 0
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x4e8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b2b9
add ebp, 0x4ec
leave
ret

Function at 0x403996
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
push edi
push str.SysPager
mov ebx, eax
push edi
push ebx
call esi
push edi
push str.ToolbarWindow32
push edi
cmp eax, edi
je 0x4039d7
push eax
jmp 0x4039d8
push ebx
call esi
mov dword [ebp - 4], eax
cmp eax, edi
je 0x403a2b
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
cmp esi, ebx
jle 0x403a2b
cdq
sub eax, edx
mov dword [ebp - 8], eax
sar dword [ebp - 8], 1
movzx eax, word [ebp - 8]
movzx ecx, bx
shl eax, 0x10
or eax, ecx
push eax
push edi
push 0x200
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_PostMessageW]
inc ebx
cmp ebx, esi
jl 0x403a0a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403a9d
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ecx
push ebx
mov bl, al
push esi
movzx esi, bl
neg esi
sbb esi, esi
xor eax, eax
and esi, 5
test bl, bl
setne al
push edi
mov edi, ecx
dec eax
and eax, 5
mov dword [esp + 0x10], eax
xor eax, eax
test bl, bl
sete al
mov dword [esp + 0xc], eax
test bl, bl
jne 0x403add
xor eax, eax
cmp dword [edi + 0x48c], eax
setne al
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [edi + 0x6b8]
call ebp
push esi
push dword [edi + 0x6c0]
call ebp
mov eax, dword [esp + 0x10]
call fcn.00404e12
mov esi, dword [esp + 0x14]
push esi
push dword [edi + 0x7f0]
call ebp
push esi
push dword [edi + 0x86c]
call ebp
test bl, bl
sete bl
push ebx
push edi
call fcn.00403b59
push esi
push dword [edi + 0x8e8]
call ebp
push 0
push 0
push 0xf0
push dword [edi + 0x964]
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebp
test eax, eax
jne 0x403b53
mov eax, edi
pop edi
pop esi
mov cl, bl
pop ebx
add esp, 8
jmp fcn.0040698f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret

Function at 0x403c91
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
push 0xc8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [esi + 0x73c]
call dword [sym.imp.USER32.dll_ShowWindow]
add esi, 0x738
call fcn.0041032f
pop esi
ret

Function at 0x403d24
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
je 0x403d3f
push dword [ebp + 8]
push dword [esi + 0x9c8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
and dword [esi + 0x9e8], 0
push 0
push 0xffffffffffffffec
push dword [esi + 0x9c8]
mov dword [ebp - 0x10], 0x1e
mov dword [ebp - 0xc], 0x140
mov dword [ebp - 8], 0x17c
mov dword [ebp - 4], 0x14e
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 0xe
push 0x15e
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
push dword [esi + 0x9c8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 0x9c8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
leave
ret 4

Function at 0x404106
Capabilities:
Create thread

Disassembly:
lea eax, [esi + 0xd44]
push eax
xor eax, eax
push eax
push esi
push 0x404099
push eax
push eax
call fcn.0043ec55
add esp, 0x18
mov dword [esi + 0xd48], eax
ret
Function at 0x4044da
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x7e4], ebx
je 0x404545
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.0043e330
add esp, 0xc
call fcn.00411936
push str.360DrvMgr.exe
push dword [eax + 0x20]
lea eax, [ebp - 0x210]
push 0x475124
push 0x103
push eax
call fcn.0043f583
add esp, 0x14
call fcn.00417bd4
call fcn.00411936
mov ecx, dword [eax + 0x20]
call fcn.00417fb4
call fcn.00403996
cmp dword [edi + 0x5c], ebx
je 0x404583
lea esi, [edi + 0x60]
xor eax, eax
cmp ax, word [esi]
je 0x404583
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404583
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x404583
push esi
call fcn.00416a34
pop ecx
push ebx
call fcn.0040464e
push ebx
push ebx
push 0x1409
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b2b9
leave
ret
Function at 0x404efc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x475144
lea eax, [ebp - 0x424]
push eax
call fcn.00402ad3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0043e330
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0043e330
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x18
mov ebx, 0x3f7
push ebx
push dword [esi + 4]
call edi
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x20
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.0043e330
mov eax, dword [esi + 4]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x430], eax
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
mov dword [ebp - 0x438], 0x1041
mov dword [ebp - 0x434], 0x404e6e
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x405054
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push ebx
push dword [esi + 4]
call edi
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 0x428]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
cmp word [ebp - 0x210], bx
je 0x405054
push ebx
push ebx
push 0xf0
push dword [esi + 0x964]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
cmp eax, 1
jne 0x405042
push eax
push dword [esi + 0x7f0]
call edi
push 1
jmp 0x40504c
push ebx
push dword [esi + 0x7f0]
call edi
push ebx
push dword [esi + 0x86c]
call edi
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.004031f6
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0043b2b9
leave
ret
Function at 0x4054f6
Capabilities:
Print debug messages

Disassembly:
push 0x154
mov eax, 0x46a45a
call fcn.00443910
xor eax, eax
push 0xc6
mov word [ebp - 0xdc], ax
xor edi, edi
lea eax, [ebp - 0xda]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x130], esi
call fcn.0043e330
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
push dword [esi + 4]
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x134], edi
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0x134]
lea eax, [ebp - 0xdc]
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
push dword [ebp - 0x140]
push str.__d__d_:__d__d__r_n
push eax
call fcn.0040323a
add esp, 0x18
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x11c]
push ecx
push eax
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x124], eax
lea edx, [ebp - 0x140]
mov ecx, eax
lea ebx, [ebp - 0x160]
mov dword [ebp - 4], edi
call fcn.00407dd4
mov byte [ebp - 4], 2
push dword [ebp - 0x124]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
xor ebx, ebx
mov dword [ebp - 0x12c], eax
cmp dword [esi + 0x48c], ebx
je 0x4055f5
call fcn.0040e904
mov esi, eax
call fcn.0040ecfe
jmp 0x405601
call fcn.0040e904
mov esi, eax
call fcn.0040ed1a
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0x12c]
call edi
mov byte [ebp - 0x128], bl
mov byte [ebp - 0x127], bl
mov byte [ebp - 0x126], 0xff
mov byte [ebp - 0x125], 1
push dword [ebp - 0x128]
mov ecx, 0x18f
push ecx
mov esi, eax
mov eax, 0x26a
push eax
push ebx
push ebx
push dword [ebp - 0x12c]
push ecx
push eax
push ebx
push ebx
push dword [ebp - 0x160]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov eax, dword [ebp - 0x130]
cmp dword [eax + 0xd58], ebx
je 0x4056be
call fcn.0040e904
mov esi, eax
call fcn.0040edef
push eax
push dword [ebp - 0x12c]
call edi
mov byte [ebp - 0x128], bl
mov byte [ebp - 0x127], bl
mov byte [ebp - 0x126], 0xff
mov byte [ebp - 0x125], 1
push dword [ebp - 0x128]
mov esi, eax
push 0x24
push 0x78
push ebx
push ebx
push dword [ebp - 0x12c]
push 0x24
push 0x78
push 0x145
push 7
push dword [ebp - 0x160]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push esi
push dword [ebp - 0x12c]
call edi
lea esi, [ebp - 0x12c]
call fcn.00407e39
mov eax, dword [ebp - 0x130]
xor esi, esi
inc esi
lea edi, [ebp - 0x160]
mov dword [eax + 0x58], esi
call fcn.00407d0a
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x120]
call dword [sym.imp.USER32.dll_EndPaint]
mov eax, esi
call fcn.00443993
ret
Function at 0x406300
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push edi
push 6
call fcn.0040836d
pop ecx
push eax
mov ebp, 0x3e8
push ebp
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x409
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x407
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push ebp
push dword [esi + 4]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, esi
call fcn.004045a8
pop edi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4085c4
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x475678
push esi
push 0x475688
push 0x488520
mov dword [0x487d3c], eax
call fcn.00402e53
add esp, 0xc
xor ebx, ebx
test byte [0x48b728], 1
jne 0x408646
mov eax, dword [0x488520]
or dword [0x48b728], 1
push eax
push 1
push ebx
mov edi, eax
mov byte [0x48a4d0], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x48a4d4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40863b
push edi
call fcn.0040849e
push 0x46c488
call fcn.0043e1cf
pop ecx
cmp byte [0x48a4d0], bl
je 0x408656
push 3
pop eax
jmp 0x4086f0
push esi
push 0x475698
push 0x488524
call fcn.00402e53
add esp, 0xc
call fcn.00418447
test al, al
jne 0x408692
cmp dword [0x487d40], ebx
jne 0x40868e
push 0x30
push dword [0x488520]
push 0x4756b8
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 7
jmp 0x408650
call fcn.0041c28c
call fcn.00418e8d
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.0043e330
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4086e4
push 0xe
pop ebx
mov edi, 0x488190
lea esi, [ebp - 0x210]
call fcn.0041eaed
mov dword [0x4881b4], 1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b2b9
leave
ret

Function at 0x40a21c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40a22a
push 0xd
pop eax
jmp 0x40a25d
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 0x40a231
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 0x40a282
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x40a75e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
mov dword [ebp - 0x21c], ecx
xor esi, esi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0040a720
mov ebx, eax
cmp ebx, esi
je 0x40a7c7
lea esi, [ebp - 0x214]
call fcn.0040a880
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b2b9
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40a7e5
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040a75e
cmp eax, esi
jne 0x40a82c
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x40a7cf
lea esi, [ebp - 0x214]
call fcn.0040a880
push dword [ebp - 0x21c]
mov esi, edi
call fcn.0040a8a3
lea esi, [ebp - 0x214]
mov edi, eax
call fcn.0040a880
mov eax, edi
jmp 0x40a7b6

Function at 0x40a8a3
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x489384], 0
jne 0x40a8d3
push 0x475778
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a8cc
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x489388], eax
mov byte [0x489384], 1
mov eax, dword [0x489388]
test eax, eax
je 0x40a8eb
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x40a8f7
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x40b8e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 8
push 0
push edi
call fcn.0043e330
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40b931
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b930
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], ebx
inc eax
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x40b97a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b9ac
xor eax, eax
jmp 0x40b9cc
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
call fcn.0040b9cf
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
leave
ret

Function at 0x40b9cf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.0045ff20
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xfa4]
push edi
mov edi, edx
mov dword [ebp - 0x7c], eax
test ecx, ecx
je 0x40bac5
test edi, edi
jle 0x40bac5
mov eax, edi
cdq
and edx, 0xfff
add eax, edx
mov esi, eax
sar esi, 0xc
and edi, 0x80000fff
jns 0x40ba35
dec edi
or edi, 0xfffff000
inc edi
and dword [ebp - 0x70], 0
and dword [ebp - 0x78], 0
mov dword [ebp - 0x74], ecx
test esi, esi
jle 0x40ba88
mov ebx, 0x1000
push ebx
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0043e3b0
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bac5
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40ba7d
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
add dword [ebp - 0x74], ebx
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], esi
jl 0x40ba49
test edi, edi
jle 0x40bac0
push edi
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0043e3b0
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bac5
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40bac0
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
xor eax, eax
inc eax
jmp 0x40bac7
xor eax, eax
mov ecx, dword [ebp + 0xf94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b2b9
add ebp, 0xf98
leave
ret
Function at 0x40baf8
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x46b120
call fcn.004438a7
mov edi, 0x485f6c
mov ecx, edi
lea esi, [ebp - 0x10]
call fcn.00402b4a
and dword [ebp - 4], 0
mov ebx, esi
call fcn.0040236e
test eax, eax
jne 0x40bb37
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004031f6
xor eax, eax
call fcn.0044397f
ret 0xc
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
mov ecx, ebx
call fcn.0040b97a
test eax, eax
jne 0x40bb54
lea eax, [ebx - 0x10]
jmp 0x40bb28
mov ecx, edi
lea esi, [ebp + 8]
call fcn.00402b4a
mov ebx, esi
mov byte [ebp - 4], 1
call fcn.0040236e
mov esi, dword [ebp + 8]
push esi
xor edi, edi
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [ebp + 0x10], edi
je 0x40bb9a
push edi
mov edi, dword [ebp - 0x10]
push esi
push edi
call fcn.004019f9
add esp, 0xc
test eax, eax
jge 0x40bbca
lea eax, [esi - 0x10]
call fcn.004031f6
lea eax, [edi - 0x10]
jmp 0x40bb28
cmp dword [ebp - 0x10], edi
je 0x40bbaa
push esi
push dword [ebp - 0x10]
call fcn.0040bda0
jmp 0x40bbac
xor eax, eax
cmp eax, edi
jne 0x40bbca
lea eax, [esi - 0x10]
call fcn.004031f6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, edi
jmp 0x40bb2f
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 8]
call fcn.00402b81
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
inc edi
jmp 0x40bbb0

Function at 0x40bbe3
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x46b9ef
call fcn.004438a7
mov edi, 0x485f6c
mov ecx, edi
lea esi, [ebp - 0x10]
call fcn.00402b4a
and dword [ebp - 4], 0
mov ebx, esi
call fcn.0040236e
test eax, eax
jne 0x40bc22
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004031f6
xor eax, eax
call fcn.0044397f
ret 8
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
mov ecx, ebx
call fcn.0040b97a
test eax, eax
jne 0x40bc3f
lea eax, [ebx - 0x10]
jmp 0x40bc13
mov ecx, edi
lea esi, [ebp + 8]
call fcn.00402b4a
mov ebx, esi
mov byte [ebp - 4], 1
call fcn.0040236e
mov esi, dword [ebp + 8]
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call fcn.00402ad3
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 2
call fcn.0040b53f
mov edi, dword [ebp - 0x10]
push 0x488568
push esi
push edi
call fcn.004019f9
add esp, 0xc
test eax, eax
mov eax, dword [ebp + 0xc]
jge 0x40bcb6
add eax, 0xfffffff0
call fcn.004031f6
lea eax, [esi - 0x10]
call fcn.004031f6
lea eax, [edi - 0x10]
call fcn.004031f6
mov eax, ebx
jmp 0x40bc1a
add eax, 0xfffffff0
call fcn.004031f6
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
inc ebx
jmp 0x40bc9f