joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409bce
Capabilities:
Create directory
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
and byte [ebp - 0x188], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x187]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4c]
push eax
call fcn.004032dc
mov ebx, 0x4102f8
mov edi, 0x4102f0
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.004029b1
mov esi, 0x4102ec
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x20], esi
call fcn.00402199
lea ecx, [ebp - 0x20]
call fcn.004027e2
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], 0x104
call fcn.004027e2
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x30], eax
call fcn.004027e2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x68]
push eax
call fcn.004032dc
mov ecx, eax
mov dword [ebp - 4], ecx
call fcn.004027e2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x84]
push eax
call fcn.004033b2
mov ecx, eax
mov dword [ebp + 0xc], ecx
call fcn.004027e2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004033b2
mov ecx, eax
mov dword [ebp + 0xc], ecx
call fcn.004027e2
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x188]
push ecx
mov eax, dword [eax + 4]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 4]
push dword [ebp - 0x24]
push eax
push 0
call sub.VERSION.dll_VerInstallFileA
lea ecx, [ebp - 0x4c]
mov dword [ebp + 0xc], eax
call fcn.00402199
lea ecx, [ebp - 0x84]
call fcn.00402199
lea ecx, [ebp - 0x68]
call fcn.00402199
mov eax, dword [ebp + 0xc]
test al, 1
je 0x409d52
lea eax, [ebp - 0x188]
push 0
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], edi
call fcn.00402c2b
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040b834
mov esi, eax
add esp, 0xc
mov ecx, esi
call fcn.004027e2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x68]
call fcn.00402199
lea ecx, [ebp - 0x4c]
call fcn.00402199
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x409d9a
test al, 4
jne 0x409d9a
test al, 0x80
mov esi, eax
jne 0x409d65
test ah, 4
je 0x409d68
push 0x20
pop esi
test ah, 2
je 0x409d70
push 5
pop esi
test ah, 1
je 0x409d78
push 0x70
pop esi
lea ecx, [ebp - 0x20]
call fcn.004027e2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x20]
call fcn.00402199
mov eax, 0xfffff830
sub eax, esi
jmp 0x409db7
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004027e2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call fcn.00402199
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409ee1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
and byte [ebx], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004027e2
push dword [esi + 4]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp + 8], eax
jne 0x409f3f
mov al, 1
jmp 0x409fb5
push eax
lea ecx, [ebp + 0x10]
call fcn.00409fbc
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push dword [ebp + 8]
push dword [ebp - 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x409f65
mov bl, 1
jmp 0x409fab
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x412590
push dword [ebp + 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409f61
mov edx, dword [ebp - 4]
xor ecx, ecx
xor esi, esi
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
or ecx, edx
mov edx, dword [ebp + 0xc]
or eax, esi
cmp ecx, dword [edx]
jne 0x409f9e
cmp eax, dword [edx + 4]
jne 0x409fa1
mov byte [ebx], 1
cmp eax, dword [edx + 4]
ja 0x409fa9
jb 0x409f61
cmp ecx, dword [edx]
jb 0x409f61
xor bl, bl
lea ecx, [ebp + 0x10]
call fcn.00409a6c
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409fd1
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], ecx
push esi
push esi
push 0x8003
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.0040e69d
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004027e2
push dword [edi + 4]
call fcn.0040ee16
pop ecx
mov dword [ebp + 8], eax
mov ecx, edi
call fcn.004027e2
mov edi, dword [edi + 4]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp dword [ebp - 0xc], edi
je 0x40a041
lea ecx, [ebp - 0xc]
call fcn.0040ac79
mov dword [ebp - 0xc], edi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 8]
ja 0x40a075
lea ecx, [ebp - 0x78]
call fcn.0040e82b
lea ecx, [ebp - 8]
call fcn.0040ac8f
lea ecx, [ebp - 4]
call fcn.0040501e
lea ecx, [ebp - 0xc]
call fcn.0040ac79
jmp 0x40a133
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp dword [ebp - 4], edi
je 0x40a09e
cmp dword [ebp - 4], esi
je 0x40a09b
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], edi
push esi
push esi
push esi
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
je 0x40a0ca
cmp eax, esi
je 0x40a0c4
push eax
call edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push 1
add eax, ecx
push esi
push eax
lea ecx, [ebp - 0x78]
call fcn.0040ead3
test al, al
je 0x40a0f1
push dword [ebp + 8]
lea ecx, [ebp - 0x78]
push dword [ebp - 8]
call fcn.0040ec73
test al, al
jne 0x40a0f6
lea ecx, [ebp - 0x78]
jmp 0x40a109
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x78]
push eax
call fcn.0040a16d
test eax, eax
lea ecx, [ebp - 0x78]
jne 0x40a13a
call fcn.0040e82b
cmp dword [ebp - 8], esi
je 0x40a11b
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x40a128
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x40a133
push dword [ebp - 0xc]
call ebx
mov eax, 0x80090006
jmp 0x40a166
call fcn.0040e82b
cmp dword [ebp - 8], esi
je 0x40a14c
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x40a159
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x40a164
push dword [ebp - 0xc]
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40a16d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push str.PUBLICKEY
push 0x74
push dword [0x4131fc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [0x4131fc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
push dword [0x4131fc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0xc]
push 0
push edi
push eax
call fcn.0040ea44
pop edi
pop esi
test al, al
jne 0x40a1be
xor eax, eax
jmp 0x40a1cd
mov ecx, dword [esp + 4]
call fcn.0040ec41
neg al
sbb eax, eax
neg eax
ret 4

Function at 0x40a5c8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.004022e3
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov ecx, ebx
call fcn.004033f5
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x40a5fe
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.00402199
push 0x5c
inc esi
pop edi
mov dword [ebp + 8], edi
push esi
lea eax, [ebp + 8]
push 1
push eax
mov ecx, ebx
call fcn.00402ed7
cmp dword [0x4103a4], eax
je 0x40a669
lea esi, [eax + 1]
push 0
push esi
push 0
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x4102f8
mov dword [ebp - 8], 0x4102f0
call fcn.00404f00
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x4102ec
call fcn.004027e2
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
call fcn.00402199
mov dword [ebp + 8], edi
jmp 0x40a60d
lea ecx, [ebp - 0x38]
call fcn.00402421
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c099
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.0040c235
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40c14d
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c13f
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x40c103
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x40c12c
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x40c139
cmp byte [ebp - 0x838], bl
je 0x40c13f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x40c14d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0040bd45
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x40c172
cmp dword [ebp + 0xc], 4
jne 0x40c19e
cmp dword [ebp - 0x14], ebx
jne 0x40c19e
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x40c18a
mov ecx, edi
call fcn.0040c750
jmp 0x40c19e
cmp ax, 4
mov ecx, edi
jne 0x40c199
call fcn.0040c931
jmp 0x40c19e
call fcn.0040cd05
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x40c750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.0040f0c0
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c91e
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x40c91e
cmp dword [ebp - 0x14], 1
jne 0x40c91e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x40c8e1
cmp byte [ebp - 0x148], al
je 0x40c8e1
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x40c8d3
lea eax, [ebp - 0x96c]
push 0x412bd4
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x4125b4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x412bd0
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x40c837
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.0040bf1e
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40c92c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d8a5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0xf4]
cmp eax, 0x7530
jbe 0x40d908
mov ecx, dword [esi + 0xe8]
lea eax, [esi + 0xe8]
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xdc], ecx
xor ecx, ecx
mov dword [esi + 0xe4], edx
mov dword [eax], ecx
lea eax, [esi + 0xf0]
mov edx, dword [esi + 0xec]
mov dword [esi + 0xec], ecx
mov dword [eax], ecx
lea eax, [esi + 0xec]
mov dword [esi + 0xe0], edx
call edi
mov dword [esi + 0xf4], eax
mov edi, dword [esi + 0xe4]
test edi, edi
jne 0x40d91a
mov eax, dword [esi + 0xdc]
jmp 0x40d972
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x40d970
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0xdc]
cmp ebx, eax
jbe 0x40d948
shr ebx, 1
shr edi, 1
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], edi
mov eax, dword [esi + 0xdc]
mov edi, dword [esi + 0xe4]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x40d923
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x40e0d6
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40e140
call esi
cmp eax, 0x3f0
jne 0x40e130
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x40e13c
mov al, 1
jmp 0x40e205
cmp eax, ebx
je 0x40e1b9
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e1b9
call esi
cmp eax, 0x7a
jne 0x40e1b9
push dword [ebp - 4]
call fcn.0040b9fc
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x40e1ad
lea eax, [ebp - 0x10]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40e1bd
cmp byte [ebp - 0x20], bl
je 0x40e1b9
push esi
call fcn.0040ba07
pop ecx
xor al, al
jmp 0x40e205
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp + 0xb], bl
jbe 0x40e1ed
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40e1e9
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x40e1cc
jmp 0x40e1ed
mov byte [ebp + 0xb], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x20], bl
je 0x40e202
push esi
call fcn.0040ba07
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ee16
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 4], esi
je 0x40ee58
lea ecx, [ebp - 4]
call fcn.0040ac79
mov dword [ebp - 4], esi
push edi
push edi
push edi
push 2
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp dword [ebp - 8], esi
je 0x40ee79
lea ecx, [ebp - 8]
call fcn.0040501e
mov dword [ebp - 8], esi
cmp dword [ebp - 8], edi
jne 0x40ee9d
cmp dword [ebp - 4], ebx
je 0x40ef4c
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 8], edi
mov dword [ebp - 4], ebx
jmp 0x40ef45
push edi
push edi
push edi
push 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x40eeca
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40ef41
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
jmp 0x40ef41
cmp word [edi], 0x5a4d
jne 0x40eefa
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40ef27
cmp dword [esi], 0x4550
jne 0x40ef27
push esi
push edi
call fcn.0040edd0
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40ef0d
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], 0
je 0x40ef1f
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40ef3a
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], 0
je 0x40ef4c
push dword [ebp - 8]
call esi
xor eax, eax
jmp 0x40ef22
Function at 0x40ef50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x40efa2
push eax
call fcn.0040b9fc
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40efa2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x412590
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40efa6
xor al, al
jmp 0x40f007
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x40f005
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0040b9fc
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x40f005
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x40eff3
mov al, 1
pop ebx
leave
ret 4
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.004015fd
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401eca
sub eax, fcn.00401695
push eax
push fcn.00401695
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x401079
mov eax, ebx
lea edx, [ebp - 2]
call fcn.00401527
mov eax, ebx
call fcn.00401578
mov eax, 0x40b054
lea edx, [ebx + 0x1b600]
or al, 1
imul eax, ebx
or edx, ebx
mov ebx, 0x40b054
sub ebx, eax
mov eax, ebx
lea ebx, [ebp - 2]
call fcn.00401695
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop edx
pop ecx
pop ebx
ret

Function at 0x4015fd
Capabilities:
Delete file
Encode data using base64 via winapi
Get common file path

Disassembly:
push ebx
push ecx
push edx
enter 0x324, 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
push 0x104
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0
push 0
call dword [sym.imp.USER32.DLL_GetSystemMenu]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
lea eax, [ebp - 0x324]
push eax
movzx ebx, byte [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [ebx - 0x41]
leave
pop edx
pop ecx
pop ebx
ret
Function at 0x503aa2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x503aff
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x503af9
mov edx, dword [0x543ad8]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x503aed
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x503ad2
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x503afb
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x5055b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x50561c
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x505665
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0051b410
add esp, 8
test eax, eax
jne 0x505663
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x505667
jmp 0x505613
xor eax, eax
mov esp, ebp
pop ebp
ret