joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dd8b
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
push ebx
push edi
mov dword [ebp - 4], edx
mov edi, 0x80070000
mov eax, dword [ecx + 8]
mov dword [ebp - 8], edx
test eax, eax
je 0x40ddb8
lea ecx, [ebp - 4]
push ecx
push eax
push edx
call fcn.0040df75
mov ebx, eax
jmp 0x40ddf7
lea eax, [ebp - 4]
push eax
push dword [ecx + 0x30]
movzx eax, byte [ecx + 0x12]
push dword [ecx + 0x2c]
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
push dword [ecx + 0x1c]
push dword [ecx + 0x18]
push dword [ecx + 0x14]
push eax
lea eax, [ecx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40ddfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40de2b
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40de23
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40de2b
xor ebx, ebx
cmp dword [ebp - 8], ebx
sete bl
cmp dword [ebp - 4], 0
je 0x40de3a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40df75
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x44
pop ebx
push 1
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0xff
call fcn.004113fb
mov edi, eax
test edi, edi
jne 0x40dfa7
mov esi, 0x8007000e
jmp 0x40e078
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.0040e280
mov esi, eax
test esi, esi
js 0x40e078
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40e06f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40e05d
cmp dword [ebp - 0xc], ebx
jbe 0x40e01c
push 1
push dword [ebp - 0xc]
push edi
call fcn.00411444
mov ebx, eax
test ebx, ebx
jne 0x40e01a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e078
mov edi, ebx
cmp dword [ebp - 8], 0xff
jbe 0x40e037
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.0040e280
mov esi, eax
test esi, esi
js 0x40e078
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40e06f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e078
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor edi, edi
xor esi, esi
cmp dword [ebp - 4], 0
je 0x40e086
push dword [ebp - 4]
call fcn.0040e63e
test edi, edi
je 0x40e090
push edi
call fcn.0041141d
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40e09b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e13d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e13d
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x40e137
push 0x5c
pop edx
cmp ax, dx
cmove ebx, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x40e0d4
test ebx, ebx
je 0x40e137
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0040e09b
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40e13c
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e133
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e123
xor esi, esi
inc esi
jmp 0x40e13c
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40e13c
xor esi, esi
jmp 0x40e13c
mov esi, 0x80070003
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x40e7f2
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.0041188c
mov eax, dword [0x42e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x10010], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10014], eax
mov dword [ebp - 0x10008], edi
mov dword [ebp - 0x1000c], edi
call fcn.0040e752
mov esi, eax
test esi, esi
js 0x40e900
lea eax, [ebp - 0x10008]
push eax
push edi
push edi
push dword [ebp + 0xc]
push dword [0x42e900]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e8bb
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 0x40e897
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e900
cmp dword [ebp - 0x1000c], 0
push 0
jbe 0x40e8d5
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 0x40e85e
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x40e85e
jmp 0x40e900
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 0x40e900
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 0x10008], 0
je 0x40e915
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.00411786
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40ed66
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
test edi, edi
je 0x40edbb
cmp word [edi], ax
je 0x40edbb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [ebp + 0xc]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, 3
add eax, esi
push eax
push edi
lea eax, [ebp - 4]
push eax
call fcn.0040e360
mov esi, eax
test esi, esi
js 0x40ef5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 8], ebx
jmp 0x40edf4
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
add eax, 3
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040e280
mov esi, eax
test esi, esi
js 0x40ef5c
push 0xffffffffffffffff
push ebx
push 4
push dword [ebp - 4]
call fcn.004165bf
lea eax, [ebx + 6]
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push 0x5c
pop edx
mov dword [ebp - 0x10], edx
movzx eax, word [ecx]
cmp dx, ax
jne 0x40ee0b
cmp dx, word [ecx + 2]
je 0x40ee4d
push 0x61
pop edx
cmp dx, ax
ja 0x40ee1b
push 0x7a
pop edx
cmp dx, ax
jae 0x40ee33
push 0x41
pop edx
cmp dx, ax
ja 0x40ef55
push 0x5a
pop edx
cmp dx, ax
jb 0x40ef55
push 0x3a
pop eax
cmp ax, word [ecx + 2]
jne 0x40ef55
push 0x5c
pop eax
cmp ax, word [ecx + 4]
jne 0x40ef55
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40ee68
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0xc], eax
push ecx
call edi
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
lea edx, [ecx + eax*2]
movzx eax, word [edi]
mov dword [ebp + 8], edx
test ax, ax
je 0x40ef5f
mov ebx, dword [ebp + 0xc]
cmp word [ebp - 0x10], ax
jne 0x40ee94
cmp edi, ebx
je 0x40ef44
push 0x5c
pop ecx
mov word [edx], ax
cmp cx, ax
jne 0x40ef3b
push dword [ebp - 0xc]
xor eax, eax
mov word [edx + 2], ax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ef0a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40eef8
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40eef4
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40eef4
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40ef5c
xor esi, esi
jmp 0x40ef0a
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40ef5c
cmp dword [ebp + 0x18], 0
je 0x40ef38
push dword [ebp + 0x18]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40ef38
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40ef5c
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add edx, 2
mov dword [ebp + 8], edx
add edi, 2
movzx eax, word [edi]
test ax, ax
jne 0x40ee86
jmp 0x40ef5f
mov esi, 0x80070057
jmp 0x40ef5f
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40ef69
push ecx
call fcn.0040e63e
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40f03e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
lea eax, [ebp - 8]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, 0x104
or edi, 0xffffffff
push ebx
push eax
call fcn.0040e4b8
mov esi, eax
test esi, esi
js 0x40f126
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x40f0ef
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
push str._s_S_05d._S
push eax
call fcn.0040e502
mov esi, eax
add esp, 0x18
test esi, esi
js 0x40f126
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f0e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070050
jne 0x40f0e2
xor esi, esi
jmp 0x40f0e6
test esi, esi
js 0x40f126
inc ebx
cmp ebx, 0x3e8
jl 0x40f076
cmp dword [ebp + 0x10], 0
je 0x40f109
push 0xfde9
push 0
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.0040e3d4
mov esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40f112
mov dword [eax], edi
test esi, esi
js 0x40f11a
test eax, eax
jne 0x40f126
cmp edi, 0xffffffff
je 0x40f126
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40f134
push dword [ebp - 4]
call fcn.0040e63e
cmp dword [ebp - 8], 0
je 0x40f142
push dword [ebp - 8]
call fcn.0040e63e
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f14d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x218], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x210], esi
push edi
mov dword [ebp - 0x220], eax
or edi, 0xffffffff
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40f1be
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f295
xor eax, eax
mov dword [ebp - 0x214], eax
cmp edi, 0xffffffff
jne 0x40f262
push dword [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push str._s_s_05d._s
push eax
call fcn.0040e2c9
mov esi, eax
add esp, 0x18
test esi, esi
js 0x40f295
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f24a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070050
jne 0x40f246
xor esi, esi
jmp 0x40f24a
test esi, esi
js 0x40f295
mov eax, dword [ebp - 0x214]
inc eax
mov dword [ebp - 0x214], eax
cmp eax, 0x3e8
jl 0x40f1c6
test ebx, ebx
je 0x40f268
mov dword [ebx], edi
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x40f281
mov eax, dword [ebp - 0x210]
and dword [ebp - 0x210], 0
mov dword [ecx], eax
test esi, esi
js 0x40f289
test ebx, ebx
jne 0x40f295
cmp edi, 0xffffffff
je 0x40f295
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x210], 0
je 0x40f2a9
push dword [ebp - 0x210]
call fcn.0040e63e
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411786
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f34b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40f33d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f2f1
mov esi, 0x80070005
jmp 0x40f34b
test al, 0x10
je 0x40f2fc
mov esi, 0x8000ffff
jmp 0x40f34b
test al, 7
je 0x40f34b
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40f32a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f34b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f34b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x40f464
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 8]
mov esi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x40f4a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f52f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x40f4bd
mov esi, 0x8007000e
jmp 0x40f52f
push edi
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40f4e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f528
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x42577c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40f515
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f528
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
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 0xc
Function at 0x40f862
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 [0x42ed08], ebx
jne 0x40f8c2
mov dword [0x42ed08], 1
mov ecx, ebx
push 8
mov eax, ecx
pop edi
test al, 1
je 0x40f8a8
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f8aa
shr eax, 1
dec edi
test edi, edi
jg 0x40f89b
mov dword [ecx*4 + 0x42e908], eax
inc ecx
cmp ecx, 0xff
jle 0x40f896
mov ecx, dword [ebp + 8]
test esi, esi
je 0x40f8de
movzx eax, byte [ecx]
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x42e908]
inc ecx
sub esi, 1
jne 0x40f8c6
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 0x40f920
imul edi, esi, 0xc
add edi, dword [ecx + 8]
cmp dword [ebp + 0xc], ebx
je 0x40f92e
cmp dword [edi + 4], ebx
je 0x40f91c
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40f95d
mov ecx, dword [ebp - 4]
cmp dword [edi + 4], ebx
jne 0x40f946
cmp dword [edi], ebx
jne 0x40f946
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 0x40f95d
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40f95d
mov ecx, dword [ebp - 4]
inc esi
cmp esi, dword [ecx + 0xc]
jb 0x40f94f
sub esi, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0xc]
jb 0x40f8f4
jmp 0x40f920
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x40f923
Function at 0x410a1f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ecx, ecx
lea eax, [ebp + 0x10]
push eax
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 8], ecx
push dword [ebp + 8]
mov edi, ecx
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ebx, eax
test ebx, ebx
jne 0x410a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410ae8
test ebx, ebx
je 0x410ab0
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 [0x42e058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410ae8
add edi, dword [ebp - 8]
cmp edi, ebx
jb 0x410a70
cmp dword [ebp + 0x14], 0
je 0x410ae8
push 0
lea eax, [ebp - 8]
push eax
push 2
push dword [0x42e060]
push dword [0x42e058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410ae8
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 0x410af7
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 0x10

Function at 0x410b02
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
and dword [ebp - 8], edi
push eax
call fcn.0040e516
mov esi, eax
test esi, esi
js 0x410bb4
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x410b7b
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 [0x42e058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410b74
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410bb3
add edi, dword [ebp - 8]
cmp edi, ebx
jb 0x410b3b
cmp dword [ebp + 0x10], 0
je 0x410bb3
push 0
lea eax, [ebp - 8]
push eax
push 2
push dword [0x42e060]
push dword [0x42e058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410bb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
pop ebx
cmp dword [ebp - 4], 0
je 0x410bc2
push dword [ebp - 4]
call fcn.0040e63e
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410c51
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42e070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov eax, 0x104
cmp dword [0x42e058], 0xffffffff
push edi
mov dword [ebp - 0x420], eax
mov edi, str.unknown
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], esi
je 0x410dab
cmp dword [0x42ed0c], esi
je 0x410dab
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x208
test eax, eax
jne 0x410cc7
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004122f1
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f464
test eax, eax
jns 0x410cf1
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x410d1a
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004122f1
add esp, 0xc
push esi
call fcn.00411363
push eax
push str._Logging_started:__S_
push 1
call fcn.00410f09
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x41c]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x20c]
push ecx
push eax
push str.Executable:__S_v_d._d._d._d_r_nComputer__:__S
push 1
call fcn.00410f09
mov eax, dword [0x42e05c]
add esp, 0x2c
pop ebx
sub eax, esi
je 0x410d94
sub eax, 1
je 0x410d8d
sub eax, 1
je 0x410d86
sub eax, 1
jne 0x410d99
mov edi, str.debug
jmp 0x410d99
mov edi, str.verbose
jmp 0x410d99
mov edi, str.standard
jmp 0x410d99
mov edi, str.none
push edi
push str.____logging_level:__s____
push 1
call fcn.00410f09
add esp, 0xc
jmp 0x410dae
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00411786
mov esp, ebp
pop ebp
ret

Function at 0x410f9f
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004165bf
add esp, 0x10
cmp eax, 0x50
jne 0x410fdc
mov eax, 0x8007007a
jmp 0x41101f
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, eax
test ecx, ecx
jne 0x411030
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00414a24
pop ecx
pop ecx
test eax, eax
je 0x41100f
xor ecx, ecx
mov word [eax], cx
cmp cx, word [eax + 2]
je 0x410ff0
cmp word [ebp - 0x20c], 0
je 0x41101d
test eax, eax
jne 0x410fdc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00411786
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
je 0x411049
cmp ecx, 3
je 0x411049
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x41104b
xor eax, eax
cmp eax, 1
je 0x410fdc
jmp 0x41101f