joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015b9
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x420010]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x69
pop eax
push 0x70
mov word [ebp - 0x24], ax
pop eax
push 0x63
mov word [ebp - 0x10], ax
pop eax
push 0x51
mov word [ebp - 0x22], ax
pop eax
push 0x6d
mov word [ebp - 0x28], ax
pop eax
push 0x75
pop edx
push 0x65
pop ecx
push 0x54
mov word [ebp - 0x12], ax
pop eax
push 0x74
mov word [ebp - 0x1e], ax
pop eax
push 0x6f
mov word [ebp - 0xc], ax
pop eax
push 0x6e
mov word [ebp - 0x14], ax
pop eax
mov word [ebp - 0x1a], ax
xor eax, eax
push 0x72
mov word [ebp - 6], ax
pop eax
push 0x6b
mov word [ebp - 8], ax
pop eax
push 0x43
mov word [ebp - 0x20], ax
pop eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x28]
push 0x417840
push eax
mov word [ebp - 0x26], dx
mov word [ebp - 0x18], cx
mov word [ebp - 0x1c], dx
mov word [ebp - 0xa], cx
mov word [ebp - 0xe], dx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4016f7
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.004055b0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x230]
add esp, 0xc
push edi
push 0x2a
push eax
push edi
call esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402879
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402949
add esp, 0x10
lea eax, [ebp - 0x230]
push edi
push 0x23
push eax
push edi
call esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402949
pop ecx
pop ecx
push edi
push 0x1c
lea eax, [ebp - 0x230]
push eax
push edi
call esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402879
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402949
add esp, 0x10
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403df5
leave
ret

Function at 0x401703
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x40171b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x420a48], eax
ret
Function at 0x4020ea
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x420010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push esi
mov ebx, 0x208
push ebx
push eax
call fcn.00408b34
push 0x417888
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040761e
add esp, 0x18
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
mov ecx, 0x417890
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402178
test dx, dx
je 0x402174
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402178
add eax, 4
add ecx, 4
test dx, dx
jne 0x402152
xor eax, eax
jmp 0x40217d
sbb eax, eax
or eax, 1
test eax, eax
je 0x402275
mov ecx, 0x417894
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4021b6
test dx, dx
je 0x4021b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4021b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x402190
xor eax, eax
jmp 0x4021bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x402275
push esi
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.00408b34
push 0x41789c
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.0040761e
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.0040761e
add esp, 0x24
test byte [ebp - 0x45c], 0x10
je 0x40223c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x40222d
lea eax, [ebp - 0x20c]
push eax
call fcn.004020ea
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x402265
test byte [ebp - 0x45c], 1
je 0x402258
lea eax, [ebp - 0x20c]
push 0x80
push eax
call fcn.00408d64
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402275
push 4
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402147
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4022a3
push 4
push eax
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403df5
leave
ret

Function at 0x40282c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x420010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 8]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edx
push 2
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40286c
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00403df5
leave
ret
Function at 0x4028c1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x420010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
call fcn.004055b0
push esi
push edi
push ebx
push str._s_s_s
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004033c6
add esp, 0x28
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40293d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.GDI32.dll_RemoveFontResourceW]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403df5
leave
ret
Function at 0x41541d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x4148cc
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x420010]
xor eax, ebp
mov dword [ebp + 0x210], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x21c]
xor ecx, ecx
mov eax, dword [ebp + 0x228]
mov edi, dword [ebp + 0x220]
mov esi, dword [ebp + 0x224]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebx], ecx
mov dword [ebx + 0x10], ecx
mov dword [ebp - 4], ecx
mov ecx, ebx
mov dword [ebx + 0x14], 7
push 0x417840
mov word [ebx], ax
call fcn.004034c8
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004055b0
add esp, 0xc
mov dword [ebp + 4], 0x208
lea eax, [ebp]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415505
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4154fc
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.004034c8
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 + 0x210]
xor ecx, ebp
call fcn.00403df5
add ebp, 0x214
leave
ret

Function at 0x415be7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x420010]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x10]
push esi
push edx
xor esi, esi
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
push 0x20019
cmovae eax, dword [ebp + 0xc]
push esi
push eax
push ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415c5b
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 4
push ecx
push esi
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
test eax, eax
je 0x415c5b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 8]
lea ecx, [ebp + 0xc]
call fcn.00403173
lea ecx, [ebp + 0x24]
call fcn.00403173
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00403df5
leave
ret
Function at 0x415c86
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40
mov eax, 0x4149bd
call fcn.00403e59
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], esi
xor eax, eax
mov dword [ebx], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], 7
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], esi
mov word [ebx], ax
cmp dword [ebp + 0x24], 8
lea edx, [ebp - 0x28]
push edx
push 0x20019
lea eax, [ebp + 0x10]
mov dword [ebp - 0x34], 1
cmovae eax, dword [ebp + 0x10]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415dda
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 0x3c], 8
lea ecx, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x28]
cmovae eax, dword [ebp + 0x28]
push ecx
push esi
push esi
push esi
push eax
push dword [ebp - 0x28]
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
call edi
test eax, eax
jne 0x415dda
lea eax, [ebp - 0x2d]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
shr eax, 1
push eax
call fcn.004036af
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
cmp dword [ebp + 0x3c], 8
lea eax, [ebp + 0x28]
push ecx
cmovae eax, dword [ebp + 0x28]
push esi
push 0
push 0
push eax
push dword [ebp - 0x28]
call edi
test eax, eax
jne 0x415dc5
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x4c], 0
add eax, 0xfffffffe
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
cmp esi, eax
je 0x415d7d
sub eax, esi
lea ecx, [ebp - 0x4c]
sar eax, 1
push eax
push esi
call fcn.004034ed
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call fcn.004038bd
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x415dc5
mov ecx, dword [ebp - 0x4c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], ecx
cmp eax, 0x1000
jb 0x415dbc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403094
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
call fcn.00403de7
pop ecx
pop ecx
test esi, esi
je 0x415dda
mov eax, dword [ebp - 0x1c]
sub eax, esi
and eax, 0xfffffffe
push eax
push esi
call fcn.00402d7d
pop ecx
pop ecx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x10]
call fcn.00403173
lea ecx, [ebp + 0x28]
call fcn.00403173
mov eax, ebx
call fcn.00403e17
ret
Function at 0x415e3e
Capabilities:
Check http status code
Send data
Send http request

Disassembly:
sub esp, 0x38
mov eax, dword [0x420010]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
push 0x6f
pop esi
push 0x77
mov edi, ecx
mov word [esp + 0x32], si
pop ecx
push 0x6c
pop eax
push 0x67
pop edx
push 0x2e
mov word [esp + 0x28], cx
xor ebx, ebx
mov word [esp + 0x2c], cx
mov word [esp + 0x38], ax
mov word [esp + 0x2a], cx
pop ecx
push 0x6d
pop eax
push 0x65
mov word [esp + 0x42], ax
pop eax
mov word [esp + 0x36], ax
push 0x63
pop eax
mov word [esp + 0x3a], ax
xor eax, eax
mov word [esp + 0x40], ax
inc eax
push eax
push eax
mov word [esp + 0x34], dx
mov word [esp + 0x40], cx
mov word [esp + 0x38], si
mov word [esp + 0x32], cx
mov word [esp + 0x3a], dx
mov word [esp + 0x44], si
call fcn.004029d1
pop ecx
push eax
sub esp, 0x18
lea eax, [esp + 0x44]
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 7
call fcn.004034c8
mov ecx, edi
call fcn.00401937
cmp byte [edi + 0x18], bl
je 0x415fa1
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.00415dfb
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x415f03
mov eax, dword [eax]
push ebx
push 0x4883000
push ebx
push ebx
push str.HTTP_1.0
push 0x417a04
push eax
push dword [edi + 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00403173
test esi, esi
je 0x415f9a
push 4
pop ebp
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
lea eax, [esp + 0x18]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [esp + 0x14], 0x180
lea eax, [esp + 0x14]
push ebp
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push ebx
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], ebx
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x28], ebp
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [esp + 0x18], 0xc8
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, edi
call fcn.00401996
mov ecx, dword [esp + 0x44]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403df5
add esp, 0x38
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
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 [0x5c9c4c]
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.00506df0
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.00506df0
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x578a30
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.004a9748
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00506df0
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.00523eb1
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.004a9748
mov esp, ebp
pop ebp
ret
Function at 0x40ad90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d180
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5c9c4c]
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.004a9748
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.004a9ba0
mov eax, dword [0x5c9c4c]
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.00506df0
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 0x578de4
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.00506df0
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.004a9748
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a9748
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 [0x5c9c4c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x5c8060]
test ecx, ecx
js 0x40d518
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9748
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x118
xorps xmm0, xmm0
mov dword [0x5c8060], 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.00506df0
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 0x57a220
push 0x578f00
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 [0x5c8060], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9748
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a9748
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