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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425cb8
mov eax, dword fs:[0]
push eax
mov eax, 0x1168
call fcn.00423c98
mov eax, dword [0x42f058]
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.00412d6c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x115c]
mov dword [ebp - 0x1164], 0x1154
push 0x80
push eax
mov dword [ebp - 0x1160], 7
call fcn.00414a70
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 0x40c6c9
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 0x40c6c9
mov ecx, dword [ebp - 0x1174]
lea eax, [ebp - 0x116c]
push eax
push dword [ebp + 0xc]
lea edx, [ebp - 0x1164]
call fcn.0040c4e2
mov esi, eax
test esi, esi
js 0x40c6ae
mov eax, dword [ebp - 0x116c]
mov esi, edi
mov dword [ebx], eax
jmp 0x40c6b4
mov edi, dword [ebp - 0x116c]
test edi, edi
je 0x40c6c9
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.004116a3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d50d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 0x250]
mov edi, esi
cmp eax, 0xffffffff
jne 0x40d52a
inc edi
jmp 0x40d5f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
cmp dword [ebp + 8], esi
je 0x40d5f5
cmp dword [ebx + 0x14], esi
jne 0x40d5f5
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x250], eax
cmp eax, 0xffffffff
jne 0x40d584
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40d5f5
push 0
push 0
push dword [ebx + 0x244]
push dword [ebx + 0x240]
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40d5b8
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40d5f5
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40d5dc
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40d5f5
mov eax, dword [ebx + 0x244]
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x240]
push eax
push edx
mov ecx, dword [esi]
push eax
push edx
push esi
call dword [ecx + 0x50]
mov eax, dword [ebx + 0x250]
cmp eax, 0xffffffff
je 0x40d60e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40dd34
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
mov eax, dword [edx + 8]
push ebx
push edi
mov edi, ecx
test eax, eax
je 0x40dd5b
lea ecx, [ebp - 4]
mov edx, eax
push ecx
call fcn.0040de51
mov ebx, eax
jmp 0x40dd9e
lea eax, [ebp - 4]
push eax
push dword [edx + 0x30]
movzx eax, byte [edx + 0x12]
push dword [edx + 0x2c]
push dword [edx + 0x28]
push dword [edx + 0x24]
push dword [edx + 0x20]
push dword [edx + 0x1c]
push dword [edx + 0x18]
push dword [edx + 0x14]
push eax
lea eax, [edx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40dda2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40ddd4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40ddcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40ddd4
xor ebx, ebx
cmp dword [ebp - 8], ebx
sete bl
cmp dword [ebp - 4], 0
je 0x40dde3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40de51
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push esi
push edi
push 0x44
pop eax
push eax
push 8
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xff
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x40de8d
mov esi, 0x8007000e
jmp 0x40df95
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ebx
call fcn.0040e261
mov esi, eax
test esi, esi
js 0x40df69
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40df5e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
jne 0x40df4c
cmp dword [ebp - 0xc], 0x44
jbe 0x40df0d
push dword [ebp - 0xc]
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40df0b
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40df6c
mov eax, dword [ebp - 0x14]
mov edi, eax
mov edx, dword [ebp - 8]
cmp edx, 0xff
jbe 0x40df29
lea ecx, [ebp - 4]
call fcn.0040e261
mov esi, eax
test esi, esi
js 0x40df69
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40df5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40df6c
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor edi, edi
xor esi, esi
jmp 0x40df6c
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40df80
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
test edi, edi
je 0x40df95
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
mov esp, ebp
pop ebp
ret 4
Function at 0x40e075
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 0x40e127
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e127
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x40e121
push 0x5c
mov edx, eax
pop esi
cmp dx, si
mov eax, ecx
cmovne eax, ebx
add ecx, 2
mov ebx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40e0b7
test ebx, ebx
je 0x40e121
mov edx, dword [ebp - 4]
xor eax, eax
mov ecx, edi
mov word [ebx], ax
call fcn.0040e075
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40e126
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e11d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e10d
xor esi, esi
inc esi
jmp 0x40e126
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40e126
xor esi, esi
jmp 0x40e126
mov esi, 0x80070003
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.00423c98
mov eax, dword [0x42f058]
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.0040e693
mov esi, eax
test esi, esi
js 0x40e819
lea eax, [ebp - 0x10008]
push eax
push 0
push 0
push edi
push dword [0x4303a0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e7d4
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 0x40e7b0
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e819
cmp dword [ebp - 0x1000c], 0
push 0
jbe 0x40e7ee
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 0x40e777
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x40e777
jmp 0x40e819
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 0x40e819
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 0x10008], 0
je 0x40e82e
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.004116a3
mov esp, ebp
pop ebp
ret 8
Function at 0x40e98a
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 - 8], eax
mov esi, edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], eax
test edi, edi
je 0x40e9dd
cmp word [edi], ax
je 0x40e9dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
push dword [ebp - 0xc]
mov esi, eax
call ebx
add eax, 3
lea ecx, [ebp - 8]
add eax, esi
mov edx, edi
push eax
call fcn.0040e2ef
mov edi, eax
test edi, edi
js 0x40eb5e
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
jmp 0x40ea12
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
lea ecx, [ebp - 8]
lea edx, [eax + 3]
call fcn.0040e261
mov edi, eax
test edi, edi
js 0x40eb5e
push 0xffffffffffffffff
push esi
mov esi, dword [ebp - 8]
push 4
push esi
call fcn.00414a70
mov eax, dword [ebp - 0xc]
add esp, 0x10
add eax, 6
push 0x5c
mov dword [ebp - 4], eax
movzx eax, word [esi]
pop edx
cmp dx, ax
jne 0x40ea26
cmp dx, word [esi + 2]
je 0x40ea65
push 0x61
pop ecx
cmp cx, ax
ja 0x40ea36
push 0x7a
pop ecx
cmp cx, ax
jae 0x40ea4e
push 0x41
pop ecx
cmp cx, ax
ja 0x40eb57
push 0x5a
pop ecx
cmp cx, ax
jb 0x40eb57
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x40eb57
cmp dx, word [esi + 4]
jne 0x40eb57
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40ea80
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 ecx, dword [ebp - 4]
lea ebx, [esi + eax*2]
movzx eax, word [ecx]
test ax, ax
je 0x40eb61
push 0x5c
pop edx
cmp dx, ax
jne 0x40eaa6
cmp ecx, dword [ebp - 0xc]
je 0x40eb43
mov word [ebx], ax
cmp dx, ax
jne 0x40eb40
push dword [ebp - 0x10]
xor eax, eax
push esi
mov word [ebx + 2], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40eb14
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x40eb02
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40eafe
push eax
push 7
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40eafe
call edi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40eb61
xor edi, edi
jmp 0x40eb14
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40eb61
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40eb3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40eb61
mov ecx, dword [ebp - 4]
push 0x5c
pop edx
add ebx, 2
add ecx, 2
mov dword [ebp - 4], ecx
movzx eax, word [ecx]
test ax, ax
jne 0x40ea98
jmp 0x40eb61
mov edi, 0x80070057
jmp 0x40eb61
mov esi, dword [ebp - 8]
test esi, esi
je 0x40eb75
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 0x40eec6
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 0x40ef11
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40ef9f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x40ef26
mov esi, 0x8007000e
jmp 0x40ef9f
cmp dword [ebp - 4], 0
jne 0x40ef55
push edi
push ebx
push 0
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40ef55
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40ef98
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x42b618
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40ef85
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40ef98
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 0x40efd4
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 0x40f057
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x40f048
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f006
mov esi, 0x80070005
jmp 0x40f056
test al, 0x10
je 0x40f011
mov esi, 0x8000ffff
jmp 0x40f056
xor esi, esi
test al, 7
je 0x40f056
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40f03b
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f056
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f056
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 0x40f05c
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.0040e2a9
mov esi, eax
test esi, esi
js 0x40f14b
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 0x40f116
push 0x42ba78
push eax
push 0x42b7f0
push dword [ebp - 4]
lea eax, [ebp - 8]
push str._s_S_05d._S
push eax
call fcn.0040e488
mov edi, dword [ebp - 8]
mov esi, eax
add esp, 0x18
test esi, esi
js 0x40f137
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 0x40f108
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070050
je 0x40f108
test esi, esi
js 0x40f137
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0x3e8
jl 0x40f09b
push ecx
push ecx
mov edx, edi
call fcn.0040e377
mov esi, eax
mov dword [0x42f88c], ebx
test esi, esi
jns 0x40f137
cmp ebx, 0xffffffff
je 0x40f137
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40f14b
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 0x40f163
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 0x40f16e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42f058]
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.0040e1bd
lea eax, [ebp - 0x20c]
cmp dword [ebp - 0x210], esi
je 0x40f25c
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x40f1f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f360
lea ecx, [ebp - 0x20c]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40f1fe
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x40f23d
push 0xffffffffffffffff
push 0x42b618
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041499a
mov esi, eax
add esp, 0x10
test esi, esi
js 0x40f360
push 0xffffffffffffffff
push str.Temp_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041499a
add esp, 0x10
mov esi, eax
jmp 0x40f280
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40f288
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f360
xor ecx, ecx
mov eax, ecx
mov dword [ebp - 0x210], ecx
cmp ebx, 0xffffffff
jne 0x40f32f
push 0x42b7e8
push eax
push 0x42b7f0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push str._s_s_05d._s
push eax
call fcn.0040e474
mov edi, dword [ebp - 0x214]
mov esi, eax
add esp, 0x18
test esi, esi
js 0x40f34b
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 0x40f313
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070050
jne 0x40f30f
xor ecx, ecx
mov esi, ecx
jmp 0x40f315
test esi, esi
js 0x40f34b
xor ecx, ecx
mov eax, dword [ebp - 0x210]
inc eax
mov dword [ebp - 0x210], eax
cmp eax, 0x3e8
jl 0x40f292
jmp 0x40f331
xor ecx, ecx
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x40f33f
mov dword [eax], edi
mov edi, ecx
cmp ebx, 0xffffffff
je 0x40f34b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40f360
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.004116a3
mov esp, ebp
pop ebp
ret 8
Function at 0x41031a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
or esi, 0xffffffff
mov dword [ebp - 4], ecx
cmp dword [0x4303a8], 0
mov ebx, edx
jne 0x410372
push edi
mov dword [0x4303a8], 1
xor edi, edi
push 8
mov edx, edi
pop esi
mov ecx, edx
mov eax, edx
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
and al, 1
cmove edx, ecx
dec esi
test esi, esi
jg 0x410343
mov dword [edi*4 + 0x4303c0], edx
inc edi
cmp edi, 0xff
jle 0x41033e
mov ecx, dword [ebp - 4]
or esi, 0xffffffff
pop edi
test ebx, ebx
je 0x41038e
movzx eax, byte [ecx]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x4303c0]
inc ecx
sub ebx, 1
jne 0x410376
not esi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410b7a
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42f058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov eax, 0x104
cmp dword [0x42f88c], 0xffffffff
push edi
mov dword [ebp - 0x420], eax
mov edi, str.unknown
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], esi
je 0x410cda
cmp dword [0x4303ac], esi
je 0x410cda
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x410bee
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00412d6c
add esp, 0xc
push ebx
lea eax, [ebp - 0x418]
push eax
lea edx, [ebp - 0x41c]
lea ecx, [ebp - 0x20c]
call fcn.0040eec6
test eax, eax
jns 0x410c11
mov ebx, esi
mov eax, esi
jmp 0x410c1d
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 0x410c50
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00412d6c
add esp, 0xc
call fcn.0041122f
push eax
push str._Logging_started:__S_
push 1
call fcn.00410afb
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.00410afb
mov eax, dword [0x42f890]
add esp, 0x2c
pop ebx
sub eax, esi
je 0x410cc3
sub eax, 1
je 0x410cbc
sub eax, 1
je 0x410cb5
sub eax, 1
jne 0x410cc8
mov edi, str.debug
jmp 0x410cc8
mov edi, str.verbose
jmp 0x410cc8
mov edi, str.standard
jmp 0x410cc8
mov edi, str.none
push edi
push str.____logging_level:__s____
push 1
call fcn.00410afb
add esp, 0xc
jmp 0x410cdd
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004116a3
mov esp, ebp
pop ebp
ret