joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c5bb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424c2b
mov eax, dword fs:[0]
push eax
mov eax, 0x1168
call fcn.00422c0d
mov eax, dword [0x42e058]
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 - 0x1170], edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0x10]
push 0x1154
mov dword [ebp - 0x1174], eax
lea eax, [ebp - 0x1164]
push edi
push eax
mov dword [ebp - 0x116c], edi
mov dword [ebx], edi
call fcn.00412d4c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x115c]
mov dword [ebp - 0x1164], 0x1154
push 0x80
push eax
mov dword [ebp - 0x1160], 7
call fcn.00414964
add esp, 0x1c
mov dword [ebp - 0x1168], 0x1048
lea eax, [ebp - 0x1168]
push eax
lea eax, [ebp - 0x105c]
push eax
push edi
push edi
push str.Path
push dword [ebp - 0x1170]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c70b
lea eax, [ebp - 0x1168]
mov dword [ebp - 0x1168], 4
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push str.Priority
push dword [ebp - 0x1170]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c70b
mov ecx, dword [ebp - 0x1174]
lea eax, [ebp - 0x116c]
push eax
push dword [ebp + 0xc]
lea edx, [ebp - 0x1164]
call fcn.0040c51e
mov esi, eax
test esi, esi
js 0x40c6f0
mov eax, dword [ebp - 0x116c]
mov esi, edi
mov dword [ebx], eax
jmp 0x40c6f6
mov edi, dword [ebp - 0x116c]
test edi, edi
je 0x40c70b
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
add eax, 4
add eax, edi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
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.00411690
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e09c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov eax, edx
mov edi, ecx
push eax
push edi
mov dword [ebp - 4], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e142
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e142
movzx ecx, word [edi]
mov eax, edi
push ebx
xor ebx, ebx
test cx, cx
je 0x40e13c
push 0x5c
pop edx
cmp cx, dx
cmove ebx, eax
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40e0d8
test ebx, ebx
je 0x40e13c
mov edx, dword [ebp - 4]
xor eax, eax
mov ecx, edi
mov word [ebx], ax
call fcn.0040e09c
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40e141
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e138
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e128
xor esi, esi
inc esi
jmp 0x40e141
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40e141
xor esi, esi
jmp 0x40e141
mov esi, 0x80070003
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40e734
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.00422c0d
mov eax, dword [0x42e058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x10008], 0
and dword [ebp - 0x1000c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10010], ecx
mov dword [ebp - 0x10014], eax
call fcn.0040e6bb
mov esi, eax
test esi, esi
js 0x40e841
lea eax, [ebp - 0x10008]
push eax
push 0
push 0
push edi
push dword [0x42f280]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e7fc
push 0
lea eax, [ebp - 0x1000c]
push eax
push 0x10000
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e7d8
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e841
cmp dword [ebp - 0x1000c], 0
push 0
jbe 0x40e816
push dword [ebp - 0x1000c]
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40e79f
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x40e79f
jmp 0x40e841
push dword [ebp - 0x10014]
xor esi, esi
push ebx
push 2
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x40e841
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 0x10008], 0
je 0x40e856
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411690
mov esp, ebp
pop ebp
ret 8
Function at 0x40e9aa
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
mov dword [ebp - 4], eax
mov esi, edx
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
test edi, edi
je 0x40e9fd
cmp word [edi], ax
je 0x40e9fd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
push dword [ebp - 8]
mov esi, eax
call ebx
add eax, 3
lea ecx, [ebp - 4]
add eax, esi
mov edx, edi
push eax
call fcn.0040e309
mov edi, eax
test edi, edi
js 0x40eb81
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
jmp 0x40ea32
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
lea ecx, [ebp - 4]
lea edx, [eax + 3]
call fcn.0040e27a
mov edi, eax
test edi, edi
js 0x40eb81
push 0xffffffffffffffff
push esi
mov esi, dword [ebp - 4]
push 4
push esi
call fcn.00414964
mov eax, dword [ebp - 8]
add esp, 0x10
add eax, 6
push 0x5c
mov dword [ebp - 0xc], eax
movzx eax, word [esi]
pop edx
cmp dx, ax
jne 0x40ea46
cmp dx, word [esi + 2]
je 0x40ea85
push 0x61
pop ecx
cmp cx, ax
ja 0x40ea56
push 0x7a
pop ecx
cmp cx, ax
jae 0x40ea6e
push 0x41
pop ecx
cmp cx, ax
ja 0x40eb7a
push 0x5a
pop ecx
cmp cx, ax
jb 0x40eb7a
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x40eb7a
cmp dx, word [esi + 4]
jne 0x40eb7a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40eaa0
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x10], eax
push esi
call ebx
mov ebx, dword [ebp - 0xc]
lea ecx, [esi + eax*2]
movzx eax, word [ebx]
mov dword [ebp - 4], ecx
test ax, ax
je 0x40eb84
push 0x5c
pop edx
cmp dx, ax
jne 0x40eac9
cmp ebx, dword [ebp - 8]
je 0x40eb69
mov word [ecx], ax
cmp dx, ax
jne 0x40eb63
push dword [ebp - 0x10]
xor eax, eax
push esi
mov word [ecx + 2], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40eb37
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x40eb25
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40eb21
push eax
push 7
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40eb21
call edi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40eb84
xor edi, edi
jmp 0x40eb37
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40eb84
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40eb5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40eb84
mov ecx, dword [ebp - 4]
push 0x5c
pop edx
add ecx, 2
mov dword [ebp - 4], ecx
add ebx, 2
movzx eax, word [ebx]
test ax, ax
jne 0x40eabb
jmp 0x40eb84
mov edi, 0x80070057
jmp 0x40eb84
mov esi, dword [ebp - 4]
test esi, esi
je 0x40eb98
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40eef0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x14], edx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
xor edi, edi
push ecx
push eax
mov esi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x40ef3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40efc9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x40ef50
mov esi, 0x8007000e
jmp 0x40efc9
cmp dword [ebp - 4], 0
jne 0x40ef7f
push edi
push ebx
push 0
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40ef7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40efc2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x42a448
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40efaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40efc2
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40effe
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f07f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x40f070
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f030
mov esi, 0x80070005
jmp 0x40f07e
test al, 0x10
je 0x40f03b
mov esi, 0x8000ffff
jmp 0x40f07e
test al, 7
je 0x40f07e
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40f063
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f07e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f07e
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
pop ebx
pop edi
mov eax, esi
pop esi
ret
Function at 0x40f084
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ebx
push esi
push edi
xor edi, edi
mov edx, 0x104
or ebx, 0xffffffff
mov dword [ebp - 8], edi
call fcn.0040e2c3
mov esi, eax
test esi, esi
js 0x40f173
push dword [ebp - 4]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
mov dword [ebp - 0xc], eax
cmp ebx, 0xffffffff
jne 0x40f13e
push 0x42a8a8
push eax
push 0x42a620
push dword [ebp - 4]
lea eax, [ebp - 8]
push str._s_S_05d._S
push eax
call fcn.0040e4a3
mov edi, dword [ebp - 8]
mov esi, eax
add esp, 0x18
test esi, esi
js 0x40f15f
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f130
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070050
je 0x40f130
test esi, esi
js 0x40f15f
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0x3e8
jl 0x40f0c3
push ecx
push ecx
mov edx, edi
call fcn.0040e391
mov esi, eax
mov dword [0x42e794], ebx
test esi, esi
jns 0x40f15f
cmp ebx, 0xffffffff
je 0x40f15f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40f173
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
je 0x40f18b
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f196
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42e058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x218], eax
or ebx, 0xffffffff
xor eax, eax
push edi
mov edi, eax
mov dword [ebp - 0x210], eax
mov esi, eax
mov dword [ebp - 0x214], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x210]
mov ecx, eax
call fcn.0040e1d6
lea eax, [ebp - 0x20c]
cmp dword [ebp - 0x210], esi
je 0x40f284
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x40f21b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f388
lea ecx, [ebp - 0x20c]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40f226
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x40f265
push 0xffffffffffffffff
push 0x42a448
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041488c
mov esi, eax
add esp, 0x10
test esi, esi
js 0x40f388
push 0xffffffffffffffff
push str.Temp_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041488c
add esp, 0x10
mov esi, eax
jmp 0x40f2a8
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40f2b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f388
xor ecx, ecx
mov eax, ecx
mov dword [ebp - 0x210], ecx
cmp ebx, 0xffffffff
jne 0x40f357
push 0x42a618
push eax
push 0x42a620
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push str._s_s_05d._s
push eax
call fcn.0040e48f
mov edi, dword [ebp - 0x214]
mov esi, eax
add esp, 0x18
test esi, esi
js 0x40f373
xor eax, eax
push eax
push 0x80
push 1
push eax
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f33b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070050
jne 0x40f337
xor ecx, ecx
mov esi, ecx
jmp 0x40f33d
test esi, esi
js 0x40f373
xor ecx, ecx
mov eax, dword [ebp - 0x210]
inc eax
mov dword [ebp - 0x210], eax
cmp eax, 0x3e8
jl 0x40f2ba
jmp 0x40f359
xor ecx, ecx
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x40f367
mov dword [eax], edi
mov edi, ecx
cmp ebx, 0xffffffff
je 0x40f373
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40f388
push edi
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411690
mov esp, ebp
pop ebp
ret 8
Function at 0x40f7bb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 8]
mov esi, eax
xor ebx, ebx
add esi, esi
or edx, 0xffffffff
cmp dword [0x42f288], ebx
jne 0x40f81b
mov dword [0x42f288], 1
mov ecx, ebx
push 8
mov eax, ecx
pop edi
test al, 1
je 0x40f801
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f803
shr eax, 1
dec edi
test edi, edi
jg 0x40f7f4
mov dword [ecx*4 + 0x42f2a0], eax
inc ecx
cmp ecx, 0xff
jle 0x40f7ef
mov ecx, dword [ebp + 8]
test esi, esi
je 0x40f837
movzx eax, byte [ecx]
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x42f2a0]
inc ecx
sub esi, 1
jne 0x40f81f
mov ecx, dword [ebp - 4]
not edx
mov eax, edx
mov dword [ebp - 8], ebx
xor edx, edx
div dword [ecx + 0xc]
mov esi, edx
cmp dword [ecx + 0xc], ebx
jbe 0x40f879
imul edi, esi, 0xc
add edi, dword [ecx + 8]
cmp dword [ebp + 0xc], ebx
je 0x40f887
cmp dword [edi + 4], ebx
je 0x40f875
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40f8b6
mov ecx, dword [ebp - 4]
cmp dword [edi + 4], ebx
jne 0x40f89f
cmp dword [edi], ebx
jne 0x40f89f
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 4], ebx
je 0x40f8b6
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40f8b6
mov ecx, dword [ebp - 4]
inc esi
cmp esi, dword [ecx + 0xc]
jb 0x40f8a8
sub esi, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0xc]
jb 0x40f84d
jmp 0x40f879
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x40f87c
Function at 0x410b78
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42e058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov eax, 0x104
cmp dword [0x42e794], 0xffffffff
push edi
mov dword [ebp - 0x420], eax
mov edi, str.unknown
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], esi
je 0x410cd8
cmp dword [0x42f28c], esi
je 0x410cd8
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x410bec
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00412d4c
add esp, 0xc
push ebx
lea eax, [ebp - 0x418]
push eax
lea edx, [ebp - 0x41c]
lea ecx, [ebp - 0x20c]
call fcn.0040eef0
test eax, eax
jns 0x410c0f
mov ebx, esi
mov eax, esi
jmp 0x410c1b
mov ebx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x410c4e
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00412d4c
add esp, 0xc
call fcn.0041122d
push eax
push str._Logging_started:__S_
push 1
call fcn.00410af9
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, bx
push eax
shr ebx, 0x10
lea eax, [ebp - 0x20c]
push ebx
push eax
push str.Executable:__S_v_d._d._d._d_r_nComputer__:__S
push 1
call fcn.00410af9
mov eax, dword [0x42e798]
add esp, 0x2c
pop ebx
sub eax, esi
je 0x410cc1
sub eax, 1
je 0x410cba
sub eax, 1
je 0x410cb3
sub eax, 1
jne 0x410cc6
mov edi, str.debug
jmp 0x410cc6
mov edi, str.verbose
jmp 0x410cc6
mov edi, str.standard
jmp 0x410cc6
mov edi, str.none
push edi
push str.____logging_level:__s____
push 1
call fcn.00410af9
add esp, 0xc
jmp 0x410cdb
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00411690
mov esp, ebp
pop ebp
ret
Function at 0x410cfe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push edx
push ecx
push 0x900
mov esi, ebx
mov dword [ebp - 8], ebx
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ebx, eax
test ebx, ebx
jne 0x410d4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410dbc
test ebx, ebx
je 0x410d8b
push 0
lea eax, [ebp - 8]
push eax
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
push dword [0x42e794]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410d84
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410dbc
add edi, dword [ebp - 8]
cmp edi, ebx
jb 0x410d4b
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42afec
push dword [0x42e794]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410dbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x410dcb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x410dd6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
push edi
push edx
mov edx, ecx
xor ebx, ebx
and dword [ebp - 4], ebx
lea ecx, [ebp - 8]
call fcn.0040e57e
mov edi, dword [ebp - 8]
mov esi, eax
test esi, esi
js 0x410e79
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
test eax, eax
je 0x410e48
push 0
lea ecx, [ebp - 4]
sub eax, ebx
push ecx
push eax
lea eax, [ebx + edi]
push eax
push dword [0x42e794]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410e3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410e79
add ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp ebx, eax
jb 0x410e09
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x42afec
push dword [0x42e794]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410e79
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test edi, edi
je 0x410e8d
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410ec8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x42e058]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
mov dword [esp + 8], ecx
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x100
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x410f93
lea eax, [esp + 8]
push eax
push 0x2001f
push esi
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410fa8
mov ecx, dword [esp + 8]
call fcn.00410ec8
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410fa8
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esp + 8], 0
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410fa8
jmp 0x410f9b
cmp esi, 0x80070103
je 0x410fa6
test esi, esi
jne 0x410fa8
xor ecx, ecx
jmp 0x410eec
xor esi, esi
cmp dword [esp + 8], 0
je 0x410fb9
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00411690
mov esp, ebp
pop ebp
ret

Function at 0x410fcf
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42e058]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push str.SOFTWAREMicrosoftOfficeDeliverySourceEngineDownloads
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00414964
add esp, 0x10
cmp eax, 0x50
jne 0x411009
mov eax, 0x8007007a
jmp 0x411050
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, eax
test ecx, ecx
jne 0x41105e
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00412ba4
pop ecx
pop ecx
test eax, eax
je 0x411040
xor ecx, ecx
mov word [eax], cx
cmp cx, word [eax + 2]
je 0x411021
cmp word [ebp - 0x20c], 0
je 0x41104e
test eax, eax
jne 0x411009
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411690
mov esp, ebp
pop ebp
ret
cmp ecx, 2
je 0x411077
cmp ecx, 3
je 0x411077
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x411079
xor eax, eax
cmp eax, 1
je 0x411009
jmp 0x411050