joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c450
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0xc], ecx
jne 0x40c468
mov eax, 0x80004001
jmp 0x40c5da
mov eax, dword [ebp + 0xc]
push ebx
push edi
test byte [eax + 4], 2
je 0x40c5bb
push 0xffffffffffffffff
add eax, 0x108
lea ecx, [esi + 0x115c]
push eax
push 0x824
push ecx
call fcn.00414347
add esp, 0x10
cmp eax, 0x50
jne 0x40c4a2
mov edi, 0x8007007a
jmp 0x40c5d6
push 0x824
lea ebx, [esi + 0x114]
xor edi, edi
push ebx
lea eax, [esi + 0x115c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40c4dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40c5d6
movzx eax, word [ebx]
push 0x68
pop ecx
push 0x74
pop edx
cmp cx, ax
jne 0x40c556
cmp dx, word [esi + 0x116]
jne 0x40c51b
cmp dx, word [esi + 0x118]
jne 0x40c51b
push 0x70
pop ecx
cmp cx, word [esi + 0x11a]
push 0x68
pop ecx
jne 0x40c51b
push 0x3a
pop edx
cmp dx, word [esi + 0x11c]
push 0x74
pop edx
je 0x40c57f
cmp cx, ax
jne 0x40c556
cmp dx, word [esi + 0x116]
jne 0x40c556
cmp dx, word [esi + 0x118]
jne 0x40c556
push 0x70
pop ecx
cmp cx, word [esi + 0x11a]
jne 0x40c556
push 0x73
pop ecx
cmp cx, word [esi + 0x11c]
jne 0x40c556
push 0x3a
pop ecx
cmp cx, word [esi + 0x11e]
je 0x40c57f
push 0x66
pop ecx
cmp cx, ax
jne 0x40c59f
cmp dx, word [esi + 0x116]
jne 0x40c59f
push 0x70
pop eax
cmp ax, word [esi + 0x118]
jne 0x40c59f
push 0x3a
pop eax
cmp ax, word [esi + 0x11a]
jne 0x40c59f
xor ecx, ecx
jmp 0x40c586
add ebx, 2
cmp word [ebx], cx
jne 0x40c583
push 0x2f
pop eax
cmp ax, word [ebx - 2]
je 0x40c5ae
mov word [ebx], ax
xor eax, eax
mov word [ebx + 2], ax
jmp 0x40c5ae
mov ecx, ebx
call fcn.0040e9b8
mov edi, eax
test edi, edi
js 0x40c5d6
xor ecx, ecx
mov dword [esi + 0x21a4], ecx
test edi, edi
js 0x40c5cd
mov eax, dword [ebp + 0xc]
test byte [eax + 4], 4
je 0x40c5cd
mov eax, dword [eax + 0x1150]
mov dword [esi + 0x21a8], eax
push ecx
push esi
call fcn.0040c5df
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40c7ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42469d
mov eax, dword fs:[0]
push eax
mov eax, 0x1168
call fcn.004225c8
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.00412c31
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x115c]
mov dword [ebp - 0x1164], 0x1154
push 0x80
push eax
mov dword [ebp - 0x1160], 7
call fcn.00414347
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 0x40c8fc
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 0x40c8fc
mov ecx, dword [ebp - 0x1174]
lea eax, [ebp - 0x116c]
push eax
push dword [ebp + 0xc]
lea edx, [ebp - 0x1164]
call fcn.0040c71b
mov esi, eax
test esi, esi
js 0x40c8e1
mov eax, dword [ebp - 0x116c]
mov esi, edi
mov dword [ebx], eax
jmp 0x40c8e7
mov edi, dword [ebp - 0x116c]
test edi, edi
je 0x40c8fc
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.004114dd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e044
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 0x40e080
mov esi, 0x8007000e
jmp 0x40e176
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ebx
call fcn.0040e3a7
mov esi, eax
test esi, esi
js 0x40e15c
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 0x40e151
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
jne 0x40e13f
cmp dword [ebp - 0xc], 0x44
jbe 0x40e100
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 0x40e0fe
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e15f
mov eax, dword [ebp - 0x14]
mov edi, eax
mov edx, dword [ebp - 8]
cmp edx, 0xff
jbe 0x40e11c
lea ecx, [ebp - 4]
call fcn.0040e3a7
mov esi, eax
test esi, esi
js 0x40e15c
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 0x40e151
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e15f
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor edi, edi
xor esi, esi
jmp 0x40e15f
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e16a
mov ecx, ebx
call fcn.004111cc
pop ebx
test edi, edi
je 0x40e176
mov ecx, edi
call fcn.004111cc
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40e241
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 0x40e2e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e2e7
movzx ecx, word [edi]
mov eax, edi
push ebx
xor ebx, ebx
test cx, cx
je 0x40e2e1
push 0x5c
pop edx
cmp cx, dx
cmove ebx, eax
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40e27d
test ebx, ebx
je 0x40e2e1
mov edx, dword [ebp - 4]
xor eax, eax
mov ecx, edi
mov word [ebx], ax
call fcn.0040e241
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40e2e6
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e2dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e2cd
xor esi, esi
inc esi
jmp 0x40e2e6
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40e2e6
xor esi, esi
jmp 0x40e2e6
mov esi, 0x80070003
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e822
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.004225c8
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.0040e7a9
mov esi, eax
test esi, esi
js 0x40e92f
lea eax, [ebp - 0x10008]
push eax
push 0
push 0
push edi
push dword [0x42f2b0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e8ea
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 0x40e8c6
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e92f
cmp dword [ebp - 0x1000c], 0
push 0
jbe 0x40e904
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 0x40e88d
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x40e88d
jmp 0x40e92f
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 0x40e92f
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 0x10008], 0
je 0x40e944
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.004114dd
mov esp, ebp
pop ebp
ret 8
Function at 0x40ea98
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 0x40eaeb
cmp word [edi], ax
je 0x40eaeb
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.0040e436
mov edi, eax
test edi, edi
js 0x40ec6f
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
jmp 0x40eb20
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
lea ecx, [ebp - 4]
lea edx, [eax + 3]
call fcn.0040e3a7
mov edi, eax
test edi, edi
js 0x40ec6f
push 0xffffffffffffffff
push esi
mov esi, dword [ebp - 4]
push 4
push esi
call fcn.00414347
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 0x40eb34
cmp dx, word [esi + 2]
je 0x40eb73
push 0x61
pop ecx
cmp cx, ax
ja 0x40eb44
push 0x7a
pop ecx
cmp cx, ax
jae 0x40eb5c
push 0x41
pop ecx
cmp cx, ax
ja 0x40ec68
push 0x5a
pop ecx
cmp cx, ax
jb 0x40ec68
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x40ec68
cmp dx, word [esi + 4]
jne 0x40ec68
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40eb8e
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 0x40ec72
push 0x5c
pop edx
cmp dx, ax
jne 0x40ebb7
cmp ebx, dword [ebp - 8]
je 0x40ec57
mov word [ecx], ax
cmp dx, ax
jne 0x40ec51
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 0x40ec25
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x40ec13
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40ec0f
push eax
push 7
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40ec0f
call edi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40ec72
xor edi, edi
jmp 0x40ec25
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40ec72
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40ec4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40ec72
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 0x40eba9
jmp 0x40ec72
mov edi, 0x80070057
jmp 0x40ec72
mov esi, dword [ebp - 4]
test esi, esi
je 0x40ec7d
mov ecx, esi
call fcn.004111cc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40efd5
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 0x40f020
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f0a9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x40f035
mov esi, 0x8007000e
jmp 0x40f0a9
push edi
push ebx
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40f05f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f0a2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x42a498
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40f08f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f0a2
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 0x40f0de
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 0x40f15f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x40f150
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f110
mov esi, 0x80070005
jmp 0x40f15e
test al, 0x10
je 0x40f11b
mov esi, 0x8000ffff
jmp 0x40f15e
test al, 7
je 0x40f15e
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40f143
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f15e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f15e
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 0x40f164
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.0040e3f0
mov esi, eax
test esi, esi
js 0x40f24a
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 0x40f21e
push 0x42a8f8
push eax
push 0x42a670
push dword [ebp - 4]
lea eax, [ebp - 8]
push str._s_S_05d._S
push eax
call fcn.0040e5be
mov edi, dword [ebp - 8]
mov esi, eax
add esp, 0x18
test esi, esi
js 0x40f23f
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 0x40f210
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070050
je 0x40f210
test esi, esi
js 0x40f23f
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0x3e8
jl 0x40f1a3
push ecx
push ecx
mov edx, edi
call fcn.0040e4b5
mov esi, eax
mov dword [0x42e794], ebx
test esi, esi
jns 0x40f23f
cmp ebx, 0xffffffff
je 0x40f23f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40f24a
mov ecx, edi
call fcn.004111cc
cmp dword [ebp - 4], 0
je 0x40f258
mov ecx, dword [ebp - 4]
call fcn.004111cc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40f263
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
push edi
mov dword [ebp - 0x218], eax
xor edi, edi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], edi
push eax
push 0x104
xor esi, esi
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40f2c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f385
xor eax, eax
mov dword [ebp - 0x214], eax
cmp ebx, 0xffffffff
jne 0x40f360
push 0x42a668
push eax
push 0x42a670
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push str._s_s_05d._s
push eax
call fcn.0040e5aa
mov edi, dword [ebp - 0x210]
mov esi, eax
add esp, 0x18
test esi, esi
js 0x40f37a
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f348
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070050
jne 0x40f344
xor esi, esi
jmp 0x40f348
test esi, esi
js 0x40f37a
mov eax, dword [ebp - 0x214]
inc eax
mov dword [ebp - 0x214], eax
cmp eax, 0x3e8
jl 0x40f2c9
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x40f36e
mov dword [eax], edi
xor edi, edi
cmp ebx, 0xffffffff
je 0x40f37a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40f385
mov ecx, edi
call fcn.004111cc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004114dd
mov esp, ebp
pop ebp
ret 8
Function at 0x40f77c
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 [0x42f2b8], ebx
jne 0x40f7dc
mov dword [0x42f2b8], 1
mov ecx, ebx
push 8
mov eax, ecx
pop edi
test al, 1
je 0x40f7c2
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f7c4
shr eax, 1
dec edi
test edi, edi
jg 0x40f7b5
mov dword [ecx*4 + 0x42f2d0], eax
inc ecx
cmp ecx, 0xff
jle 0x40f7b0
mov ecx, dword [ebp + 8]
test esi, esi
je 0x40f7f8
movzx eax, byte [ecx]
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x42f2d0]
inc ecx
sub esi, 1
jne 0x40f7e0
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 0x40f83a
imul edi, esi, 0xc
add edi, dword [ecx + 8]
cmp dword [ebp + 0xc], ebx
je 0x40f848
cmp dword [edi + 4], ebx
je 0x40f836
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40f877
mov ecx, dword [ebp - 4]
cmp dword [edi + 4], ebx
jne 0x40f860
cmp dword [edi], ebx
jne 0x40f860
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 0x40f877
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40f877
mov ecx, dword [ebp - 4]
inc esi
cmp esi, dword [ecx + 0xc]
jb 0x40f869
sub esi, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0xc]
jb 0x40f80e
jmp 0x40f83a
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x40f83d
Function at 0x410a9c
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 0x410bfc
cmp dword [0x42f2bc], esi
je 0x410bfc
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x410b10
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00412c31
add esp, 0xc
push ebx
lea eax, [ebp - 0x418]
push eax
lea edx, [ebp - 0x41c]
lea ecx, [ebp - 0x20c]
call fcn.0040efd5
test eax, eax
jns 0x410b33
mov ebx, esi
mov eax, esi
jmp 0x410b3f
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 0x410b72
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00412c31
add esp, 0xc
call fcn.0041112b
push eax
push str._Logging_started:__S_
push 1
call fcn.00410a1d
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.00410a1d
mov eax, dword [0x42e798]
add esp, 0x2c
pop ebx
sub eax, esi
je 0x410be5
sub eax, 1
je 0x410bde
sub eax, 1
je 0x410bd7
sub eax, 1
jne 0x410bea
mov edi, str.debug
jmp 0x410bea
mov edi, str.verbose
jmp 0x410bea
mov edi, str.standard
jmp 0x410bea
mov edi, str.none
push edi
push str.____logging_level:__s____
push 1
call fcn.00410a1d
add esp, 0xc
jmp 0x410bff
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004114dd
mov esp, ebp
pop ebp
ret
Function at 0x410c22
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 0x410c6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410ce0
test ebx, ebx
je 0x410caf
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 0x410ca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410ce0
add edi, dword [ebp - 8]
cmp edi, ebx
jb 0x410c6f
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42b03c
push dword [0x42e794]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410ce0
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 0x410cef
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 0x410cfa
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.0040e676
mov edi, dword [ebp - 8]
mov esi, eax
test esi, esi
js 0x410d9d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
test eax, eax
je 0x410d6c
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 0x410d62
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410d9d
add ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp ebx, eax
jb 0x410d2d
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x42b03c
push dword [0x42e794]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410d9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test edi, edi
je 0x410da8
mov ecx, edi
call fcn.004111cc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4