joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003df8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
in al, 0x20
add dword [eax], eax
and ebx, 0x17d6e
jmp 0x10003da0
jmp 0x10003da5
pop ebx
cmp dword [ebp - 0x1568], 0
jne 0x10003dbe
mov dword [ebp - 0x2a0], 0
jmp 0x10004065
mov ecx, dword [ebp - 0x1568]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xc64], eax
push edx
push edx
add esp, 4
or edx, 0x11059
pop edx
push edi
xor edi, 0x699d
jmp 0x10003de9
pop edi
push edx
call 0x10003df8
add byte [edi + 0x3b], al
dec esi
inc ecx
dec eax
push eax
dec ebx
add esp, 4
xor edx, 0x17dbe
pop edx
cmp dword [ebp - 0xc64], 0
jne 0x10003e1a
mov dword [ebp - 0x2a0], 0
jmp 0x10004065
mov ecx, dword [ebp - 0xc64]

Function at 0x10003f1f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop ecx
push esi
and esi, 0x7d5f
or esi, 0x17016
sub esi, 0x10748
xor esi, 0x3284
pop esi
invalid
mov bh, 0x45

Function at 0x1000402b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [ebp + 0x41], al
cmp bh, byte [ebx + eax*2]
dec ebp
cmp al, 0x40
inc ebx
cmp byte [ebx - 0x74a0fb3c], al
Function at 0x10037a90
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10180f36
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x101e42fc]
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
lea eax, [ebp - 0x144]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x10037b0f
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x144]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 7
mov word [ebp - 0x140], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 7
mov word [ebp - 0x128], ax
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.100e05f0
push 1
push 0x101af36c
lea ecx, [ebp - 0x128]
call fcn.10001c20
cmp dword [ebp - 0x12c], 8
lea edx, [ebp - 0x140]
cmovae edx, dword [ebp - 0x140]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10037b80
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.10001d30
push 0x17
push str.ACCCreative_Cloud.exe
lea ecx, [ebp - 0x128]
call fcn.10001d30
push 1
push 0x101af36c
lea ecx, [ebp - 0x128]
call fcn.10001d30
push 0x13
push str.___showwindowfalse
lea ecx, [ebp - 0x128]
call fcn.10001d30
push 0x13
push str.___onOSstartuptrue
lea ecx, [ebp - 0x128]
call fcn.10001d30
cmp dword [ebp - 0x114], 8
lea eax, [ebp - 0x110]
push 0xff
push 0
lea edi, [ebp - 0x128]
mov dword [ebp - 0x14c], 1
cmovae edi, dword [ebp - 0x128]
push eax
call fcn.10150b00
add esp, 0xc
mov dword [ebp - 0x148], 0xff
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push str.Adobe_Creative_Cloud
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10037c8f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10037c52
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0
push str.Adobe_Creative_Cloud
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10037c8f
mov bl, 1
jmp 0x10037c91
xor bl, bl
lea ecx, [ebp - 0x128]
call fcn.10001bc0
lea ecx, [ebp - 0x140]
call fcn.10001bc0
mov al, bl
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.1014d1d5
mov esp, ebp
pop ebp
ret
Function at 0x10039c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10181250
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x101e42fc]
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 esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10039c6a
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10039ca1
cmp dword [esi + 0x14], 8
jb 0x10039c7d
mov esi, dword [esi]
push esi
push str.Application_file_path_does_not_exist:__s_n
push 0x101b1d5c
push ecx
call fcn.10002de0
add esp, 4
push eax
call fcn.10003eb0
add esp, 0x10
xor al, al
jmp 0x10039e3f
push 1
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x101af36c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10001c20
mov dword [ebp - 4], 0
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x10039cd5
mov edx, dword [esi]
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039ce0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10001d30
push 1
push 0x101af36c
lea ecx, [ebp - 0x28]
call fcn.10001d30
push 1
push 0x101a531c
lea ecx, [ebp - 0x28]
call fcn.10001d30
push 0xc
push str.uninstallAAM
lea ecx, [ebp - 0x28]
call fcn.10001d30
push ecx
push 0x101a4ae8
mov ecx, esi
call fcn.1003dfe0
xor ecx, ecx
mov dword [ebp - 0x30], 0
cmp dword [esi + 0x10], eax
mov dword [ebp - 0x2c], 7
cmovb eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
mov word [ebp - 0x40], cx
jb 0x10039d56
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.10001c20
mov byte [ebp - 4], 1
lea edx, [ebp - 0x50]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push edx
cmovae eax, dword [ebp - 0x40]
lea edx, [ebp - 0x98]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push edx
cmovae ecx, dword [ebp - 0x28]
push eax
push 0
push 0x8000000
push 1
push 0
push 0
push ecx
push 0
mov dword [ebp - 0x98], 0x44
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x6c], 0x101
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10039e19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_Occured_trying_to_launch_exe._Error:__d
push 0x101b1d5c
push ecx
call fcn.10002de0
add esp, 4
push eax
call fcn.10003eb0
add esp, 0x10
xor bl, bl
jmp 0x10039e2d
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x40]
call fcn.10001bc0
lea ecx, [ebp - 0x28]
call fcn.10001bc0
mov al, bl
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.1014d1d5
mov esp, ebp
pop ebp
ret
Function at 0x100eed50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x101e42fc]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x8c], 1
jne 0x100eedf2
xor eax, eax
cmp dword [ebx + 0x60], 8
mov word [esp + 0xc], ax
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x4c]
jb 0x100eed8b
mov eax, dword [eax]
push 0x101c6988
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1015dc80
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x100eedf2
push eax
push 2
lea eax, [esp + 0x14]
push 1
push eax
call fcn.1015e60c
push dword [esp + 0x20]
call fcn.1015da8f
mov ax, word [esp + 0x20]
add esp, 0x14
cmp al, 0xff
jne 0x100eedcf
cmp ah, 0xfe
je 0x100eedf2
cmp ah, 0xff
jne 0x100eedd8
cmp al, 0xfe
je 0x100eedf2
mov eax, dword [edi]
test eax, eax
je 0x100eedeb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov ecx, ebx
call fcn.100f0a40
lea esi, [ebx + 0x4c]
mov ecx, esi
call fcn.100fb8e0
test eax, eax
je 0x100eee1d
cmp eax, 1
jne 0x100eee6f
push 0
mov dl, al
mov ecx, esi
call fcn.100e3030
add esp, 4
test al, al
je 0x100eee6f
mov dword [edi], 0xffffffff
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100eee27
mov eax, dword [esi]
push 0
push 0x200080
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x100eeec6
cmp dword [esi + 0x14], 8
jb 0x100eee4f
mov esi, dword [esi]
push 0
push 0x200080
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x100eee85
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x8c], 1
push 0
jne 0x100eeea7
mov ecx, 0xfeff
mov word [esp + 0x10], cx
lea ecx, [esp + 0x14]
push ecx
push 2
lea ecx, [esp + 0x18]
jmp 0x100eeebe
lea ecx, [esp + 0x14]
mov word [esp + 0x10], 0xbbef
push ecx
mov byte [esp + 0x16], 0xbf
lea ecx, [esp + 0x14]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 4

Function at 0x100ef320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100ef340
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
add esi, esi
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push 0x101c69a4
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 4
Function at 0x100ef3b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ebx
push edi
mov edi, ecx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x100ef3d0
push 2
push 0
push 0
push dword [edi + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push ebx
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0x101c69ac
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 4
Function at 0x10104900
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], esi
call fcn.10101190
mov byte [esi + 0xb1], 1
lea eax, [esi + 0x70]
mov dword [eax + 0x48], 0x10
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [eax + 0x4c], eax
lea eax, [esi + 0xc0]
mov byte [eax + 0x41], 1
mov dword [eax + 0x48], 0x10
mov dword [eax + 0x4c], eax
mov eax, dword [esi + 0x10c]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, esi
mov dword [esi + 0x60], vtable.CryptoPP::SHA1.0
mov dword [esi], vtable.CryptoPP::PK_MessageAccumulatorImpl_class_CryptoPP::SHA1_.0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10105500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x101055ba
cmp byte [esi + 0x3d], 0
je 0x101055ba
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x101055a8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10105570
sub eax, 1
je 0x10105574
sub eax, 2
jne 0x101055a8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10105591
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10164e22
add esp, 0x10
cmp edi, eax
jne 0x101055a8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret

Function at 0x10106f50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
test esi, esi
je 0x10106fb3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10106fb3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10106f82
pop edi
shr eax, 4
pop esi
and al, 1
pop ebx
pop ebp
ret 4
push esi
call fcn.10165232
mov edi, eax
push 0x5c
push edi
call fcn.1015126b
add esp, 0xc
push edi
test eax, eax
je 0x10106fda
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
call fcn.10106f50
push edi
test al, al
jne 0x10106fbc
call fcn.101586be
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
call fcn.101586be
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10106fe2
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
call fcn.101586be
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
Function at 0x10106ff0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x101e42fc]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x1010703a
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
jne 0x10107071
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x101070a9
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
jne 0x101070a9
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 8

Function at 0x10107810
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.1014e7b0
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
mov edi, ecx
mov ecx, esi
call fcn.100fb8e0
test eax, eax
je 0x10107861
cmp eax, 2
je 0x1010784f
push 0
mov dl, 1
mov ecx, esi
call fcn.100e3030
add esp, 4
test al, al
jne 0x10107861
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x1010786c
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x1010788f
mov esi, dword [esi]
push 0
push 0x200080
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x101078d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1010790f
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10107917
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x2008], 0x1000
je 0x101078d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
test ebx, ebx
pop ebx
sete al
xor ecx, ebp
pop edi
pop esi
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret
Function at 0x10112b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 8
mov edi, ecx
call fcn.1014d1eb
add esp, 4
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 4], esi
push 0
push 0
push esi
push 0x10134f60
push 0
movq qword [esi], xmm0
push 0
mov dword [esi], 0x101131f0
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10112b57
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.1014d535
add esp, 8
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x26c], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10132360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10186f79
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x101e42fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
lea ecx, [edi + 4]
call fcn.101282e0
mov dword [edi], vtable.CryptoPP::Integer.0
mov ecx, 2
mov dword [edi + 8], 2
call fcn.1012bcb0
mov ecx, 8
call fcn.10130970
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
push 1
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov esi, dword [ebx]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
push edi
mov esi, dword [esi + 0x30]
mov ecx, esi
call dword [0x1018a4d4]
mov ecx, ebx
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x101359df
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10135a26
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10135a26
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x10135a26
cmp eax, 3
jle 0x10135a13
cmp eax, 4
jne 0x10135a26
push str.SELECT_DISTINCT_PayloadID_FROM_payloads_ORDER_BY_installTime
push edx
push dword [ecx]
call fcn.10136c03
add esp, 0xc
pop ebp
ret
push eax
push str.SELECT_DISTINCT_PayloadID_FROM_payloads_WHERE_installState___d_ORDER_BY_installTime
push edx
push dword [ecx]
call fcn.10136c03
add esp, 0x10
pop ebp
ret
push 0xa
pop eax
pop ebp
ret
Function at 0x10136132
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10136f82
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
push 1
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.10135669
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret

Function at 0x10137140
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10187c9c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x101e42fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
xor eax, eax
mov word [edi], 0
mov byte [edi + 2], 0
mov dword [edi + 4], 0x20000
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 7
mov word [edi + 8], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], 7
mov word [edi + 0x20], ax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 7
mov word [edi + 0x38], ax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], 7
mov word [edi + 0x50], ax
lea esi, [edi + 0x84]
mov dword [edi + 0x68], 0x200000
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov word [edi + 0x80], 0x100
push 0x40
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.1014d1eb
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov byte [edi + 0x8c], 0
mov dword [edi + 0x90], 0x3c
mov word [edi + 0x94], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret