joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af827
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
mov dword [ebp - 4], ecx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], esi
cmp dword [ecx + 0x28], esi
je 0x4af88e
cmp edi, 0x40000
jb 0x4af88e
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
movlpd qword [ebp - 0x10], xmm0
push eax
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x28], 0x59a3a8
push dword [ebp + 8]
movlpd qword [ebp - 0x20], xmm0
push dword [ecx + 0x20]
call fcn.004aebc5
mov edx, dword [ebp + 0x18]
mov esi, eax
mov ecx, dword [ebp - 0x10]
add dword [edx], ecx
jmp 0x4af976
mov edx, dword [ebp + 0xc]
mov eax, 0x10000
push ebx
mov ebx, eax
mov dword [ebp - 0xc], edx
cmp edi, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
cmovb ebx, edi
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], esi
cmp dword [eax + 4], esi
je 0x4af8ca
mov ecx, eax
call fcn.004b3d21
mov ecx, dword [ebp - 4]
mov esi, eax
test esi, esi
js 0x4af975
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ecx + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x28], 0
je 0x4af91c
test eax, eax
jne 0x4af938
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4af920
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x20]
call fcn.004b445f
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x4af938
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x4af975
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
add dword [ecx], eax
add dword [ebp + 0x14], eax
adc edx, 0
add dword [ebp + 0x10], eax
mov dword [ebp - 0xc], edx
sub edi, eax
je 0x4af975
cmp ebx, eax
jne 0x4af970
mov ecx, dword [ebp - 4]
mov eax, 0x10000
cmp edi, eax
mov ebx, eax
mov eax, dword [ebp + 0x14]
cmovb ebx, edi
xor esi, esi
jmp 0x4af8ad
mov esi, 0x8000ffff
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4b447e
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x210], eax
test edi, edi
jg 0x4b44b1
xor eax, eax
jmp 0x4b4559
cmp esi, ebx
je 0x4b44ba
xor ecx, ecx
mov word [esi], cx
cmp edi, 0x104
jl 0x4b44d3
push esi
push dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x4b4559
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004d19ad
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x210]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
test ebx, ebx
je 0x4b4557
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x214]
jne 0x4b4516
sub ecx, edx
sar ecx, 1
cmp ecx, edi
jl 0x4b4549
push 0x3ca797
call fcn.00503c15
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4b44aa
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004600f8
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd104
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4b472d
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jg 0x4b4749
xor ecx, ecx
mov dword [0], 1
int 0x29
mov ebx, dword [ebp + 8]
xor eax, eax
push edi
push ebx
mov word [ebx], ax
call fcn.004b4937
pop ecx
pop ecx
test al, al
jne 0x4b4765
xor eax, eax
jmp 0x4b4834
call fcn.004668bd
test eax, eax
je 0x4b4776
xor eax, eax
inc eax
jmp 0x4b4834
push esi
push ebx
call fcn.004600ce
mov esi, eax
mov dword [ebp + 8], eax
test esi, esi
jle 0x4b473b
push 0x5c
pop eax
cmp word [ebx + esi*2 - 2], ax
je 0x4b479c
cmp esi, edi
je 0x4b47e2
mov word [ebx + esi*2], ax
inc esi
mov dword [ebp + 8], esi
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0xc
push eax
call fcn.004b46be
mov eax, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 4]
push eax
call fcn.00461501
cmp dword [ebp + 0xc], edi
jle 0x4b47e6
xor eax, eax
jmp 0x4b4833
push 6
lea edi, [ebx + esi*2]
mov esi, 0x59a700
pop ecx
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.004b4a4d
test eax, eax
jne 0x4b481e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
call fcn.004b46f0
or eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
push 0x5c
pop ecx
mov word [ebx + eax*2 + 0x16], cx
xor ecx, ecx
mov word [ebx + eax*2 + 0x18], cx
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b4984
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
push esi
push edi
push 0x104
push ecx
push eax
call fcn.004600f8
mov edi, eax
push 0x5c
pop ebx
cmp bx, word [edi - 2]
jne 0x4b49c2
add edi, 0xfffffffe
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
mov esi, edi
cmp edi, eax
jbe 0x4b49fe
cmp bx, word [esi]
jne 0x4b49e8
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.004b4a4d
test eax, eax
jne 0x4b49f7
sub esi, 2
lea eax, [ebp - 0x20c]
cmp esi, eax
ja 0x4b49ce
jmp 0x4b49fa
mov word [esi], bx
cmp esi, edi
ja 0x4b4a33
xor eax, eax
cmp word [esi], ax
jne 0x4b4a2c
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4b4a27
lea eax, [ebp - 0x20c]
push eax
call fcn.004b4a4d
test eax, eax
je 0x4b4a49
mov word [esi], bx
xor eax, eax
add esi, 2
cmp esi, edi
jbe 0x4b4a00
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd104
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x4b4a36

Function at 0x4b4a6c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x904]
push edi
push 0x100
push 0
push eax
call fcn.004d19ad
add esp, 0xc
lea eax, [ebp - 0x804]
xor edi, edi
push 0x400
push eax
push esi
call fcn.004600f8
push 0x5c
pop esi
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.004d1ccf
pop ecx
pop ecx
test eax, eax
je 0x4b4ad1
xor ecx, ecx
mov dword [ebp + edi*4 - 0x904], eax
mov word [eax], cx
inc edi
cmp edi, 0x40
jge 0x4b4b14
test eax, eax
je 0x4b4b0a
lea eax, [ebp - 0x804]
push eax
call fcn.004b46f0
test eax, eax
js 0x4b4ab1
jmp 0x4b4b0a
mov eax, dword [ebp + edi*4 - 0x908]
dec edi
push 0
mov word [eax], si
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4b4b14
cmp edi, 1
jg 0x4b4aec
xor eax, eax
inc eax
jmp 0x4b4b16
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004cd104
mov esp, ebp
pop ebp
ret 4
Function at 0x4b4df3
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x55ea6c
call fcn.004cd1ad
cmp dword [ebp + 0xc], 0x104
jge 0x4b4e16
xor ecx, ecx
mov dword [0], 1
int 0x29
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0x10]
mov word [edi], ax
test esi, esi
js 0x4b4e08
cmp esi, 0x1a
je 0x4b4e52
cmp esi, 0x1c
je 0x4b4e52
cmp esi, 0x23
je 0x4b4e52
cmp esi, 5
je 0x4b4e52
cmp esi, 0x27
je 0x4b4e52
cmp esi, 6
je 0x4b4e52
cmp esi, 0x10
je 0x4b4e52
push 0x3ca4d6
call fcn.00503c15
push dword [ebp + 0xc]
xor ebx, ebx
mov ecx, 0x61b428
push edi
push esi
mov dword [ebp - 4], ebx
call fcn.004b4ce8
test eax, eax
je 0x4b4ec1
cmp eax, 2
je 0x4b4ebc
or dword [ebp - 4], 0xffffffff
mov ecx, esi
push edi
or ecx, 0x8000
mov eax, esi
cmp byte [ebp + 0x14], bl
push ebx
push ebx
cmovne eax, ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test ebx, ebx
jns 0x4b4e98
mov eax, ebx
jmp 0x4b4ec1
push dword [ebp + 0xc]
push edi
call fcn.004ad001
push edi
push esi
mov ecx, 0x61b428
mov dword [ebp - 4], 2
call fcn.004b4c97
jmp 0x4b4e94
mov eax, 0x80004005
call fcn.004cd113
ret

Function at 0x4b64df
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4b64ee
or eax, 0xffffffff
jmp 0x4b652b
movzx eax, word [edx]
mov ecx, 0x1505
push esi
xor esi, esi
jmp 0x4b6508
imul ecx, ecx, 0x21
movzx eax, ax
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4b64fb
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
pop ebp
ret 4

Function at 0x4b73d6
Capabilities:
Encrypt data using rc4 prga
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4b73e5
or eax, 0xffffffff
jmp 0x4b7436
movzx eax, word [edx]
mov ecx, 0x1505
push esi
xor esi, esi
jmp 0x4b7413
cmp ax, 0x41
jb 0x4b7406
cmp ax, 0x5a
ja 0x4b7406
movzx eax, ax
add eax, 0x20
jmp 0x4b7409
movzx eax, ax
imul ecx, ecx, 0x21
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4b73f2
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
pop ebp
ret 4

Function at 0x4b7d5e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 2
push str.office.odf
push 0x59aa58
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
neg eax
sbb eax, eax
inc eax
pop ebp
ret 8
Function at 0x4d4528
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5052c6
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x5052e7
mov eax, dword [esi]
jmp 0x5052e9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x50533d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x50533d
cmp eax, 5
jne 0x50532f
push dword [ebp + 0xc]
push 0x80
push esi
call fcn.00505802
cmp dword [esi + 0x14], 8
jb 0x50531c
mov eax, dword [esi]
jmp 0x50531e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x50533d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x50533d
cmp byte [ebp + 0xc], 0
jne 0x505350
xor al, al
jmp 0x50533f
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004cd104
mov esp, ebp
pop ebp
ret 8
push esi
push str.failed_to_delete_file__s
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.00503c9f
push 0x5d6094
lea eax, [ebp - 0x38c]
push eax
call fcn.004cea74
int3

Function at 0x505802
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x505823
mov eax, dword [esi]
jmp 0x505825
mov eax, esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x505838
cmp byte [ebp + 0x10], al
jne 0x505849
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004cd104
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp + 0xc]
push eax
push esi
push str.Cannot_set_file__s_attbutes_to__u
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.00503d30
push 0x5d6094
lea eax, [ebp - 0x38c]
push eax
call fcn.004cea74
int3
Function at 0x508a1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [edi + 0x20], 0
je 0x508ac8
cmp dword [esi + 0x14], 8
push 4
pop ebx
mov dword [ebp - 0x390], ebx
mov dword [ebp - 0x394], ebx
jb 0x508a5d
mov eax, dword [esi]
jmp 0x508a5f
mov eax, esi
lea edx, [ebp - 0x394]
push edx
push ecx
lea ecx, [ebp - 0x390]
push ecx
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
je 0x508aa7
cmp ecx, 2
je 0x508ab3
cmp ecx, 0xea
je 0x508ab3
push esi
lea eax, [edi + 8]
push eax
push str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
push ecx
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.00505df9
jmp 0x508ada
cmp dword [ebp - 0x390], ebx
jne 0x508ab3
mov al, 1
jmp 0x508ab5
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd104
mov esp, ebp
pop ebp
ret 8
push str.ORegistryKey.GetValue_failure:_Cannot_get_DWORD_value._The_registry_key_is_closed_or_not_set
push 0x3a
lea ecx, [ebp - 0x38c]
call fcn.00506047
push 0x5d6094
lea eax, [ebp - 0x38c]
push eax
call fcn.004cea74
int3
Function at 0x508aec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [ebx + 0x20], 0
mov edi, dword [ebp + 0xc]
je 0x508c30
xor edx, edx
mov dword [ebp - 0x390], 1
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x394], edx
jb 0x508b30
mov eax, dword [esi]
jmp 0x508b32
mov eax, esi
lea ecx, [ebp - 0x394]
push ecx
push edx
lea ecx, [ebp - 0x390]
push ecx
push edx
push eax
push dword [ebx + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x508c1b
cmp dword [ebp - 0x390], 1
je 0x508b6d
cmp dword [ebp - 0x390], 2
jne 0x508c1b
test ecx, ecx
je 0x508b8e
push esi
lea eax, [ebx + 8]
push eax
push str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
push ecx
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.00505df9
jmp 0x508c43
and dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x508b9c
mov eax, dword [edi]
jmp 0x508b9e
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x394]
cmp ecx, 2
ja 0x508bb2
mov al, 1
jmp 0x508c1d
shr ecx, 1
dec ecx
push 0
push ecx
mov ecx, edi
call fcn.00409232
cmp dword [edi + 0x14], 8
jb 0x508bc9
mov ecx, dword [edi]
jmp 0x508bcb
mov ecx, edi
cmp dword [esi + 0x14], 8
jb 0x508bd5
mov eax, dword [esi]
jmp 0x508bd7
mov eax, esi
lea edx, [ebp - 0x394]
push edx
push ecx
lea ecx, [ebp - 0x390]
push ecx
push 0
push eax
push dword [ebx + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x508c06
push esi
lea ecx, [ebx + 8]
push ecx
push str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
push eax
jmp 0x508b7c
mov eax, dword [ebp - 0x394]
mov ecx, edi
shr eax, 1
push 0
dec eax
push eax
call fcn.00409232
jmp 0x508bae
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd104
mov esp, ebp
pop ebp
ret 8
push esi
push str.ORegistryKey.GetValue_failure:_Cannot_get_value._The_tregistry_key_is_closed_or_not_set
push 0x3a
lea ecx, [ebp - 0x38c]
call fcn.00505fb8
push 0x5d6094
lea eax, [ebp - 0x38c]
push eax
call fcn.004cea74
int3
Function at 0x508c55
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
je 0x508d3c
xor edx, edx
mov dword [ebp - 0x394], 3
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x390], edx
jb 0x508c99
mov eax, dword [esi]
jmp 0x508c9b
mov eax, esi
lea ecx, [ebp - 0x390]
push ecx
push edx
lea ecx, [ebp - 0x394]
push ecx
push edx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x508d27
cmp dword [ebp - 0x394], 3
jne 0x508d27
test eax, eax
je 0x508ce0
lea eax, [edi + 8]
push eax
push esi
push str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
push 0x2b
lea ecx, [ebp - 0x38c]
call fcn.00505f21
jmp 0x508d4f
push dword [ebp - 0x390]
mov ecx, ebx
call fcn.0043ccf1
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
neg eax
sbb eax, eax
and eax, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x508d02
mov ecx, dword [esi]
jmp 0x508d04
mov ecx, esi
lea edx, [ebp - 0x390]
push edx
push eax
lea eax, [ebp - 0x394]
push eax
push 0
push ecx
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x508cc7
mov al, 1
jmp 0x508d29
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd104
mov esp, ebp
pop ebp
ret 8
push esi
push str.ORegistryKey.GetValue_failure:_Cannot_get_value._The_tregistry_key_is_closed_or_not_set
push 0x3a
lea ecx, [ebp - 0x38c]
call fcn.00505fb8
push 0x5d6094
lea eax, [ebp - 0x38c]
push eax
call fcn.004cea74
int3
Function at 0x50ad0d
Capabilities:
Set registry value

Disassembly:
push 0x3e8
mov eax, 0x561ba2
call fcn.004cd176
mov dword [ebp - 0x3ec], ecx
and dword [ebp - 0x3e8], 0
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x3f0], eax
push esi
je 0x50ad50
lea eax, [ebp - 0x58]
push eax
call fcn.0050a8ca
and dword [ebp - 4], 0
xor edi, edi
inc edi
mov ebx, edi
jmp 0x50ad61
lea ecx, [ebp - 0x40]
call fcn.004062e4
xor edi, edi
inc edi
push 2
mov dword [ebp - 4], edi
pop ebx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x3e8], ebx
call fcn.004062e4
mov dword [ebp - 4], 2
test bl, 2
je 0x50ad8a
push 0
push edi
lea ecx, [ebp - 0x40]
and ebx, 0xfffffffd
call fcn.0040779d
mov byte [ebp - 4], 4
test bl, 1
je 0x50ad9e
push 0
push edi
lea ecx, [ebp - 0x58]
call fcn.0040779d
push esi
lea ecx, [ebp - 0x28]
call fcn.00407ad1
mov edx, dword [ebp - 0x3ec]
test eax, eax
setne cl
mov byte [ebp - 0x3e1], cl
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x3f4], eax
test eax, eax
jne 0x50ae04
test cl, cl
mov edx, 0x5b6a3c
mov eax, str.EXPAND_SZ
lea ecx, [ebp - 0x3e0]
cmove eax, edx
mov dword [ebp - 0x3ec], eax
lea eax, [ebp - 0x3ec]
push eax
push str.ORegistryKey.SetValue_failure:_Cannot_set___s__string._The_registry_key_is_closed_or_not_set
push 0x3a
call fcn.00509de5
push 0x5d6094
lea eax, [ebp - 0x3e0]
push eax
call fcn.004cea74
mov ebx, dword [ebp - 0x3f0]
cmp dword [ebx + 0x10], 0x3fff
jbe 0x50ae47
test cl, cl
mov eax, str.EXPAND_SZ
mov esi, 0x5b6a3c
lea ecx, [ebp - 0x3e0]
cmove eax, esi
mov dword [ebp - 0x3f0], eax
lea eax, [edx + 8]
push eax
lea eax, [ebp - 0x3f0]
push eax
push str.ORegistryKey.SetValue_failure:_Cannot_set___s__string_into_registry_key__s._The_value_name_is_too_long
push 0x1d
call fcn.00509f21
jmp 0x50adf3
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x50ae55
mov edx, 0x5b6bd8
jmp 0x50ae61
cmp dword [esi + 0x14], 8
jb 0x50ae5f
mov edx, dword [esi]
jmp 0x50ae61
mov edx, esi
cmp dword [ebx + 0x14], 8
jb 0x50ae74
mov eax, dword [ebx]
mov dword [ebp - 0x3e8], eax
mov eax, dword [esi + 0x10]
jmp 0x50ae7a
mov dword [ebp - 0x3e8], ebx
lea eax, [eax*2 + 2]
push eax
xor eax, eax
test cl, cl
push edx
setne al
inc eax
push eax
push 0
push dword [ebp - 0x3e8]
push dword [ebp - 0x3f4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x50aee9
cmp byte [ebp - 0x3e1], 0
mov edx, 0x5b6a3c
mov ecx, str.EXPAND_SZ
cmove ecx, edx
mov dword [ebp - 0x3f4], ecx
mov ecx, dword [ebp - 0x3ec]
add ecx, 8
push ecx
push esi
push ebx
lea ecx, [ebp - 0x3f4]
push ecx
push str.ORegistryKey.SetValue_failure:_Cannot_set___s__string_name___s__value___s__into_registry_key__s.
push eax
push 0xf
lea ecx, [ebp - 0x3e0]
call fcn.00509e74
jmp 0x50adf3
push 0
push edi
lea ecx, [ebp - 0x28]
call fcn.0040779d
call fcn.004cd128
ret 0xc
Function at 0x50aefc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
je 0x50af8d
cmp dword [esi + 0x10], 0x3fff
jbe 0x50af39
push str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._value_name_is_too_long
push 0x1d
lea ecx, [ebp - 0x38c]
call fcn.00509cca
jmp 0x50af9f
cmp dword [esi + 0x14], 8
jb 0x50af43
mov eax, dword [esi]
jmp 0x50af45
mov eax, esi
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x50af7b
lea ecx, [edi + 8]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push esi
push str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_name___s__value___i__in_registry_key__s
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.00509d41
jmp 0x50af9f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004cd104
mov esp, ebp
pop ebp
ret 8
push str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._The_registry_key_is_closed_or_not_set
push 0x3a
lea ecx, [ebp - 0x38c]
call fcn.00506047
push 0x5d6094
lea eax, [ebp - 0x38c]
push eax
call fcn.004cea74
int3
Function at 0x514fcb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x390], 0
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0xffffffff
je 0x515092
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x390]
push 0
push ecx
push esi
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x515044
lea eax, [ebp - 0x390]
mov dword [ebp - 0x394], esi
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x394]
push eax
push str.Failed_to_read__d_bytes_from__s._Number_of_bytes_read___d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.00514638
jmp 0x5150a4
mov eax, dword [ebp - 0x390]
cmp eax, esi
je 0x515080
cmp byte [ebp + 0x10], 0
je 0x515080
lea eax, [ebp - 0x390]
mov dword [ebp - 0x394], esi
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x394]
push eax
push str.Failed_to_read__d_bytes_from__s._Number_of_bytes_read___d
push 0x21
lea ecx, [ebp - 0x38c]
call fcn.00514596
jmp 0x5150a4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004cd104
mov esp, ebp
pop ebp
ret 0xc
push str.trying_to_read_from_a_file_thats_not_open
push 0x15
lea ecx, [ebp - 0x38c]
call fcn.004080df
push 0x5d6094
lea eax, [ebp - 0x38c]
push eax
call fcn.004cea74
int3

Function at 0x5178e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.00517bb0
test al, al
jne 0x517964
cmp dword [esi + 4], 0xffffffff
je 0x517916
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x18]
push eax
xor eax, eax
push eax
push edi
push dword [esi + 0x10]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x51794b
push str.Failed_to_start_thread.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.005150b6
jmp 0x517976
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x14], 0x103
xor ecx, ebp
pop esi
call fcn.004cd104
mov esp, ebp
pop ebp
ret 4
push 0x5ba550
push 0x53
lea ecx, [ebp - 0x38c]
call fcn.00515439
push 0x5d6094
lea eax, [ebp - 0x38c]
push eax
call fcn.004cea74
int3