joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f174
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44f325
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.0042960c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x44f33c
call fcn.00429270
mov eax, ebx
call fcn.004135b8
mov edi, eax
dec edi
test edi, edi
jl 0x44f22c
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041358c
mov edx, dword [0x42f43c]
call fcn.004285ac
test al, al
je 0x44f228
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0041358c
lea edx, [ebp - 0x14]
call fcn.00454e7c
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.0042960c
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004292e4
inc esi
dec edi
jne 0x44f1da
mov al, byte [0x44f340]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x44f34c
mov eax, dword [ebp - 0xc]
call fcn.0041c12c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00429004
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00454e7c
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x44f33c
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f0]
call fcn.00454e7c
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x44f33c
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x44f33c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x44f358
call fcn.004183ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f32c
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00428f90
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00428f90
lea eax, [ebp - 0x14]
call fcn.00428f6c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00428f90
ret
Function at 0x4529f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x487e24], 0
je 0x452b43
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x486e7c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x452b43
mov eax, dword [0x487e28]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x487e24]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x452b12
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x487e24]
call fcn.0040b250
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x452b0a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x452b0a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x452b0a
mov eax, dword [ebp - 0x14]
call fcn.0045b500
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x452b0a
push ebp
call fcn.004529b0
pop ecx
test al, al
jne 0x452b0a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x452ac6
mov eax, dword [ebp - 0x14]
call fcn.0045a094
dec eax
jle 0x452b0a
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0042861c
cmp byte [ebp - 1], 0
je 0x452b0a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x452b0a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x487e28]
call fcn.00452178
inc edi
dec ebx
jne 0x452a59
mov eax, dword [0x487e28]
cmp dword [eax + 8], 0
jle 0x452b2a
mov eax, dword [0x487e28]
call fcn.00452208
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x452b43
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00452818
pop ecx
test al, al
jne 0x452b43
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4560f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x45613c
mov eax, esi
call fcn.00443154
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45613c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x45613c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x45627b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x45617c
cmp eax, 0x108
ja 0x45617c
mov eax, esi
call fcn.00443154
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x456272
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x45627b
jmp 0x456272
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x45625b
cmp eax, 0x20a
ja 0x45625b
test byte [esi + 0x50], 0x80
jne 0x4561ae
sub eax, 0x203
je 0x4561ab
sub eax, 3
je 0x4561ab
sub eax, 3
jne 0x4561ae
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4561c2
dec eax
je 0x4561d7
dec eax
je 0x4561f4
dec eax
je 0x4561d7
jmp 0x4561fb
mov ecx, ebx
mov eax, dword [0x486e7c]
mov eax, dword [eax]
mov edx, esi
call fcn.0044cb60
jmp 0x456272
cmp byte [esi + 0x5d], 1
jne 0x4561ed
mov eax, esi
mov si, 0xffed
call fcn.0042861c
jmp 0x45627b
or word [esi + 0x54], 1
jmp 0x456272
and word [esi + 0x54], 0xfffe
jmp 0x456272
mov eax, dword [0x487de0]
cmp byte [eax + 0x20], 0
je 0x456272
mov eax, dword [0x487de0]
cmp dword [eax + 0x1c], 0
je 0x456272
mov eax, dword [ebx]
mov edx, dword [0x487de0]
cmp eax, dword [edx + 0x1c]
jne 0x456272
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00443098
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0042861c
jmp 0x45627b
cmp eax, 0xb00b
jne 0x456272
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00454a2c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459730
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x45974c
cmp dword [esi + 4], 0
je 0x459779
test byte [ebx + 0x55], 1
jne 0x45976b
mov eax, ebx
call fcn.00458388
test eax, eax
jne 0x45976b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x459889
mov edx, esi
mov eax, ebx
call fcn.00459250
jmp 0x459889
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x459882
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0045b500
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00456024
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00459730
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0045b500
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459889
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fd24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x486e78]
cmp byte [eax + 0xc], 0
je 0x45fe91
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45fe8a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x487e34], 0
jne 0x45fd78
push 0x45fe98
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x45fea0
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x487e34], eax
cmp dword [0x482b44], 0
jne 0x45fe73
push 0x45feb0
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x482b44], eax
cmp dword [0x482b44], 0
je 0x45fe73
push 0x45febc
mov eax, dword [0x482b44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x487e38], eax
push 0x45fecc
mov eax, dword [0x482b44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x487e3c], eax
push 0x45fee0
mov eax, dword [0x482b44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x487e40], eax
push 0x45fef8
mov eax, dword [0x482b44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x487e44], eax
push 0x45ff10
mov eax, dword [0x482b44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x487e48], eax
push 0x45ff24
mov eax, dword [0x482b44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x487e4c], eax
push 0x45ff3c
mov eax, dword [0x482b44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x487e50], eax
push 0x45ff54
mov eax, dword [0x482b44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x487e54], eax
push 0x45ff70
mov eax, dword [0x482b44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x487e58], eax
push 0x45ff7c
mov eax, dword [0x482b44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x487e5c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fe91
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x466aa8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x466b0a
call fcn.00466a58
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00461b20
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00461b20
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x466b88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4849c0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x466c62
cmp dword [0x4849bc], 0
jne 0x466c62
cmp dword [0x484ba0], 0
je 0x466c1c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00466958
add esp, 8
mov ebx, eax
test eax, eax
jne 0x466c02
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00466958
add esp, 8
mov ebx, eax
test eax, eax
jne 0x466c02
lea ebx, [ebp - 0x84]
jmp 0x466c03
inc ebx
call fcn.00466b44
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x466c9d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4849c4
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00461b20
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4849c7
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x466c9d
cmp dword [0x4849bc], 0
je 0x466c7c
cmp dword [0x4849bc], 0xffffffff
je 0x466c9d
push esi
call dword [0x4849bc]
pop ecx
mov eax, dword [0x4849c0]
test eax, eax
je 0x466c9d
cmp dword [0x4849c0], 0xffffffff
je 0x466c9d
cmp byte [eax], 0
je 0x466c9d
push esi
push eax
call fcn.00466aa8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46dc34
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x46dc62
mov eax, ebx
call fcn.0046e6ec
cmp dword [ebx + 0x3c], 0
je 0x46dc5b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x46dcd3
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x46dcc5
cmp dword [ebx + 8], 0
je 0x46dc84
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x46dc96
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46dcc5
cmp dword [ebx + 8], 0
je 0x46dc77
cmp eax, 3
je 0x46dca9
dec eax
jne 0x46dc77
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 0x46dc77
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x46dc77
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x46dcf1
cmp dword [ebx + 0x10], 0xcc
je 0x46dcf1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046dcfc
pop ebx
ret
Function at 0x40a990
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x5cac4c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x40aa51
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00507970
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40aa3b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.00507970
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x579a30
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x40aa51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa2b8
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00507970
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.0040ab20
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00524a31
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x40aab1
cmp eax, 0x207
ja 0x40aab1
jne 0x40aab8
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40aac1
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004aa2b8
mov esp, ebp
pop ebp
ret
Function at 0x40ad90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dcd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5cac4c]
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 - 0x24], ecx
mov eax, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push 0x40b4b0
push 0x40b400
push 0x40b4d0
push 0x40b470
push 0x40b420
push 0x40b520
push 0x40b510
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call sub.Cabinet.dll_FDICreate
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x40aeed
push dword [ebp - 0x20]
push edi
push 0x40b530
push edi
push dword [ebp - 0x28]
push esi
push ebx
call sub.Cabinet.dll_FDICopy
add esp, 0x1c
test eax, eax
jne 0x40ae83
lea ecx, [ebp - 0x20]
call fcn.0040ab30
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
push esi
mov dword [ebp - 4], edi
call fcn.0040af10
push eax
push esi
lea eax, [ebp - 0x20]
push str.FDICopy_failed_with_error_code__d_:__s
push eax
call fcn.0040b090
mov esi, dword [ebp - 0x20]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ae88
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40ae88
mov edi, 1
push ebx
call sub.Cabinet.dll_FDIDestroy
add esp, 4
cmp eax, 1
je 0x40aeed
lea ecx, [ebp - 0x20]
call fcn.0040ab30
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
push esi
mov dword [ebp - 4], 1
call fcn.0040af10
push eax
push esi
lea eax, [ebp - 0x20]
push str.FDIDestroy_failed_with_error_code__d_:__s
push eax
call fcn.0040b090
mov esi, dword [ebp - 0x20]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40aeed
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.004aa2b8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b940
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004aa710
mov eax, dword [0x5cac4c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.00507970
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x40ba32
test edi, edi
je 0x40ba32
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40ba32
cmp eax, 0x3fff
ja 0x40ba32
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40ba32
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x579de4
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ba32
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push 0
push edi
call fcn.00507970
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa2b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004aa2b8
mov esp, ebp
pop ebp
ret
Function at 0x40d4d0
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5cac4c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x5c9060]
test ecx, ecx
js 0x40d518
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa2b8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x118
xorps xmm0, xmm0
mov dword [0x5c9060], 0
lea eax, [ebp - 0x124]
movaps xmmword [ebp - 0x160], xmm0
push 0
push eax
movaps xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0
call fcn.00507970
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40d589
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d5e0
push 0x57b220
push 0x579f00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d5e0
lea ecx, [ebp - 0x160]
push ecx
call eax
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x40d5c0
cmp ax, 6
jne 0x40d5e0
mov dword [0x5c9060], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa2b8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004aa2b8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x40db50
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 0x40dba9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40dba9
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 0x40db9a
cmp esi, edx
jae 0x40dba9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40db88
cmp esi, edx
jae 0x40dba9
cmp word [esi], 0
je 0x40dba9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40e5d0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40e5f1
mov eax, 0x80004003
pop esi
pop ebp
ret
push ebx
push edi
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x40e61b
push esi
mov ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
neg eax
push edi
sbb ebx, ebx
and ebx, 0x7fffbffb
add ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret