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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4022c
call fcn.0040bd70
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40220], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x40224]
push eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x4020c]
push eax
push dword [edi]
mov byte [ebp - 0x4020d], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402cdb
cmp dword [ebp - 0x40224], esi
jne 0x402cdb
push 4
lea eax, [ebp - 0x4010b]
push 0x40ebb4
push eax
call fcn.00409cd8
add esp, 0xc
test eax, eax
jne 0x402c5a
mov eax, dword [ebp - 0x40220]
mov byte [eax], 1
mov al, 1
jmp 0x402cdd
push 5
lea eax, [ebp - 0x4010b]
push 0x40ebac
push eax
call fcn.00409cd8
add esp, 0xc
test eax, eax
jne 0x402cdb
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.00402625
add eax, 0x10
mov dword [ebp - 0x40214], eax
push 0x40ec48
lea eax, [ebp - 0x40214]
push eax
call fcn.00402e14
lea eax, [ebp - 0x4020c]
push eax
lea eax, [ebp - 0x40214]
push eax
call fcn.00402e14
mov esi, dword [ebp - 0x40214]
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40220], eax
cmp eax, 0xffffffff
jne 0x402ced
lea eax, [esi - 0x10]
call fcn.004010b5
xor al, al
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004088de
leave
ret 4
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0040bfca
add esp, 0xc
push 1
push ebx
push ebx
push dword [edi]
mov esi, eax
mov dword [ebp - 0x40218], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add eax, dword [ebp - 0x40218]
neg esi
and esi, 0x1ff
add esi, eax
mov dword [ebp - 0x40228], esi
cmp dword [ebp - 0x40218], ebx
jbe 0x402da8
mov ecx, dword [ebp - 0x40218]
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x402d4c
mov dword [ebp - 0x4021c], ecx
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402da2
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402da2
mov eax, dword [ebp - 0x4021c]
sub dword [ebp - 0x40218], eax
jne 0x402d31
jmp 0x402da8
mov byte [ebp - 0x4020d], bl
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4020d], bl
je 0x402deb
cmp byte [edi + 8], bl
je 0x402dd7
lea esi, [edi + 0xc]
lea ebx, [ebp - 0x40214]
call fcn.00402291
mov esi, dword [ebp - 0x40228]
xor ebx, ebx
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x402deb
push dword [ebp - 0x40214]
push dword [edi + 0x1c]
call eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x402dfb
push ebx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x40214]
add eax, 0xfffffff0
call fcn.004010b5
mov al, byte [ebp - 0x4020d]
jmp 0x402cdd
Function at 0x406a73
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040595e
and dword [ebp - 4], 0
cmp dword [0x4112c0], 0
mov ebx, eax
jne 0x406b24
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406bd5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406bd5
push eax
call fcn.004058ec
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4112c0], eax
call esi
push eax
call fcn.004058ec
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4112c4], eax
call esi
push eax
call fcn.004058ec
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4112c8], eax
call esi
push eax
call fcn.004058ec
pop ecx
mov dword [0x4112d0], eax
test eax, eax
je 0x406b24
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004058ec
pop ecx
mov dword [0x4112cc], eax
mov eax, dword [0x4112cc]
cmp eax, ebx
je 0x406b7c
cmp dword [0x4112d0], ebx
je 0x406b7c
push eax
call fcn.00405967
push dword [0x4112d0]
mov esi, eax
call fcn.00405967
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406b7c
test edi, edi
je 0x406b7c
call esi
test eax, eax
je 0x406b73
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406b73
test byte [ebp - 0xc], 1
jne 0x406b7c
or dword [ebp + 0x10], 0x200000
jmp 0x406bb5
mov eax, dword [0x4112c4]
cmp eax, ebx
je 0x406bb5
push eax
call fcn.00405967
pop ecx
test eax, eax
je 0x406bb5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406bb5
mov eax, dword [0x4112c8]
cmp eax, ebx
je 0x406bb5
push eax
call fcn.00405967
pop ecx
test eax, eax
je 0x406bb5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4112c0]
call fcn.00405967
pop ecx
test eax, eax
je 0x406bd5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406bd7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4088de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4109f8]
jne 0x4088e8
repz ret
jmp fcn.0040b705

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4056ca
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ror byte [ebp - 0x12a43], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004047c8
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
invalid
invalid
cmpsd dword [esi], dword es:[edi]
cld
invalid
Function at 0x40699e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [ebx + 0x708b0c40], cl
sbb al, 0xad
cmp byte [eax + 0x1c], 0x18
je 0x4069ae
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.004047ea
mov ecx, 0x8b77dd59
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.004047ea
add bh, byte [ecx - 0x74b69046]
xor al, 0x8b
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x4069d7
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x4069d7
call fcn.004047ea
push ebp
invalid

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45fdec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x45fde8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fde8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x2a2107c3
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xbb77463
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x102f9b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x102fa10
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x102fa02
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x102f9fe
cmp esi, eax
jae 0x102fa02
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x102f9f0
cmp esi, eax
jb 0x102fa06
xor eax, eax
jmp 0x102fa0f
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x102fe61
Capabilities:
Get token membership

Disassembly:
push 0x20
mov eax, 0x105d3c4
call fcn.0104dd12
xor ebx, ebx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
jne 0x102feec
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], ebx
call edi
cmp eax, ebx
jle 0x102feca
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x102fed5
mov esi, 0x80004005
push 0x1001690
push 0x100167c
call edi
push eax
call fcn.01048d15
add esp, 0xc
jmp 0x102ff60
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x102ff5b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, ebx
jle 0x102ff14
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x102ff1f
mov esi, 0x80004005
push 0x1001638
push 0x1001624
jmp 0x102fedf
mov eax, dword [ebp - 0x24]
mov dword [edi], eax
cmp dword [ebp - 0x20], ebx
je 0x102ff6e
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
call fcn.0104dd7d
ret 4
Function at 0x1030372
Capabilities:
Check mutex on windows

Disassembly:
push 0xc
mov eax, 0x105d3f6
call fcn.0104dc9c
and dword [ebp - 4], 0
push 0x1066af4
lea ecx, [ebp - 0x14]
call fcn.010442ec
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 1
test esi, esi
jne 0x10303b9
push 0x1001828
mov eax, 0x80070057
push 0x100181c
push eax
mov esi, eax
call fcn.01048c52
add esp, 0xc
jmp 0x103046e
push 0x10017a8
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x1030403
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jle 0x10303e4
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x10303ef
mov esi, 0x80004005
push 0x100176c
push 0x1001760
call edi
push eax
call fcn.01048d15
jmp 0x10303b1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ecx, 0xb7
cmp eax, ecx
jne 0x103045c
push 0x1001720
push 0x1001714
push ecx
call fcn.01048dd8
add esp, 0xc
mov esi, 0x800700b7
jmp 0x103046e
call esi
test eax, eax
jle 0x103046c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov eax, esi
call fcn.0104dd50
ret 8
Function at 0x1033c2e
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x10667c0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x238], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
jne 0x1033c70
push 0x1003dc8
mov edi, 0x80070057
push 0x1003db0
push edi
call fcn.01048c52
add esp, 0xc
jmp 0x1033d56
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, esi
jb 0x1033ca6
push 0x1003cc8
push 0x1003cac
push 0x7a
call fcn.01048dd8
add esp, 0xc
mov edi, 0x8007007a
jmp 0x1033d55
test eax, eax
jne 0x1033ce2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1033cc0
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jl 0x1033ccb
mov edi, 0x80004005
push 0x1003c68
push 0x1003c4c
call esi
push eax
call fcn.01048d15
add esp, 0xc
jmp 0x1033d55
lea eax, [ebp - 0x234]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x1033d03
cmp word [eax + 2], 0
jne 0x1033d03
xor ecx, ecx
mov word [eax], cx
mov esi, 0x1003c24
push esi
push 0x230
lea eax, [ebp - 0x234]
push eax
call fcn.01033770
mov edi, eax
lea eax, [ebp - 0x234]
push eax
test edi, edi
jge 0x1033d3d
push esi
push 0x1003be4
push 0x1003bcc
push edi
call fcn.01048c52
add esp, 0x14
jmp 0x1033d55
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1033d4d
xor eax, eax
inc eax
jmp 0x1033d53
mov eax, dword [ebp - 0x238]
mov dword [ebx], eax
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0104dc4f
leave
ret 4
Function at 0x10346a8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x105d888
call fcn.0104dc64
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x3c], 0x1003aa8
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jne 0x10346fa
push 0x1004258
mov eax, 0x80070057
push 0x1004240
push eax
mov dword [ebp - 0x10], eax
call fcn.01048c52
add esp, 0xc
jmp 0x1034888
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
mov esi, 0x1004228
push esi
mov edi, 0x80000002
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x10347f1
push 0x1066af4
lea ecx, [ebp + 8]
call fcn.010442ec
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.010455d0
cmp eax, ebx
mov dword [ebp - 0x10], eax
jge 0x1034762
push 0x10041f4
push 0x10041dc
push eax
call fcn.01048c52
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0102fb3e
jmp 0x1034888
push 0x5c
lea ecx, [ebp + 8]
call fcn.01030b8e
push 0x5c
lea ecx, [ebp + 8]
call fcn.01030944
push 0x10041a4
lea ecx, [ebp + 8]
call fcn.01030c38
push ebx
push 0x20028
lea ecx, [ebp - 0x3c]
call fcn.01033488
push ebx
push ebx
push 0x1004180
lea ecx, [ebp - 0x3c]
call fcn.010345a9
push ebx
push ebx
push 0x1004158
lea ecx, [ebp - 0x3c]
call fcn.010345a9
push dword [ebp + 8]
mov dword [ebp - 0x1c], 1
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
push dword [ebp + 8]
mov esi, eax
push 0x1004110
push 0x10040f4
push esi
call fcn.01048dd8
add esp, 0x10
cmp esi, ebx
jle 0x10347e9
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x10], esi
jmp 0x103474f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
mov edi, 0x10040d4
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x103484b
cmp eax, 2
je 0x1034880
push esi
push edi
push 0x1004060
push 0x1004044
push eax
call fcn.01048dd8
mov eax, dword [ebp - 0x20]
add esp, 0x14
cmp eax, ebx
jle 0x1034846
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
jmp 0x1034888
cmp dword [ebp - 0x24], 4
jne 0x1034861
cmp dword [ebp - 0x18], 4
jne 0x1034861
xor eax, eax
cmp dword [ebp - 0x28], ebx
setne al
jmp 0x1034883
push esi
push edi
push 0x1003fc0
push 0x1003fa8
push 0xd
call fcn.01048dd8
add esp, 0x14
mov dword [ebp - 0x10], 0x8007000d
jmp 0x1034888
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 0x14], ebx
je 0x1034899
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x1c], ebx
je 0x10348bc
push ebx
push ebx
push 0x1004180
lea ecx, [ebp - 0x3c]
call fcn.010345fa
push ebx
push ebx
push 0x1004158
lea ecx, [ebp - 0x3c]
call fcn.010345fa
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x1003aa8
call fcn.010334cc
mov eax, dword [ebp - 0x10]
call fcn.0104dd50
ret 4
Function at 0x1041acc
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 4
pop ebx
xor edi, edi
push ebx
push edi
push 0x1010330
push 0x80000002
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1041b20
mov esi, eax
jle 0x1041b14
and esi, 0xffff
or esi, 0x80070000
push 0x1010300
push 0x10102e4
jmp 0x1041b90
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
lea ecx, [ebp - 8]
push ecx
push edi
push ebx
push edi
push edi
push edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x1041b59
mov esi, eax
jle 0x1041b4d
and esi, 0xffff
or esi, 0x80070000
push 0x10102a8
push 0x101028c
jmp 0x1041b90
push edi
lea eax, [ebp - 4]
push eax
push edi
push 2
push edi
push edi
push edi
push 0x101026c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x1041b9e
mov esi, eax
jle 0x1041b86
and esi, 0xffff
or esi, 0x80070000
push 0x1010228
push 0x1010208
push eax
call fcn.01048dd8
add esp, 0xc
jmp 0x1041ce9
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x10101e8
push dword [ebp - 4]
call edi
test eax, eax
je 0x1041bd8
mov esi, eax
jle 0x1041bc9
and esi, 0xffff
or esi, 0x80070000
push 0x1010198
push 0x1010178
jmp 0x1041cde
push ebx
lea eax, [ebp + 0x10]
push eax
push ebx
push 0
push 0x101015c
push dword [ebp - 4]
call edi
test eax, eax
je 0x1041c0d
mov esi, eax
jle 0x1041bfe
and esi, 0xffff
or esi, 0x80070000
push 0x1010110
push 0x10100f4
jmp 0x1041cde
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push 0
push 0x10100d8
push dword [ebp - 4]
call edi
test eax, eax
je 0x1041c42
mov esi, eax
jle 0x1041c33
and esi, 0xffff
or esi, 0x80070000
push 0x101009c
push 0x1010080
jmp 0x1041cde
push ebx
lea eax, [ebp + 0x18]
push eax
push ebx
push 0
push 0x1010060
push dword [ebp - 4]
call edi
test eax, eax
je 0x1041c74
mov esi, eax
jle 0x1041c68
and esi, 0xffff
or esi, 0x80070000
push 0x1010010
push 0x100fff0
jmp 0x1041cde
cmp dword [ebp + 0x1c], esi
je 0x1041c80
mov dword [ebp - 0x10], 1
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push 0x100ffd4
push dword [ebp - 4]
call edi
test eax, eax
je 0x1041cb2
mov esi, eax
jle 0x1041ca6
and esi, 0xffff
or esi, 0x80070000
push 0x100ff88
push 0x100ff68
jmp 0x1041cde
push 0x100ff5c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1041ce7
mov esi, eax
jle 0x1041cd4
and esi, 0xffff
or esi, 0x80070000
push 0x100ff20
push 0x100ff04
push eax
call fcn.01048dd8
add esp, 0xc
xor edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
je 0x1041cfc
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], edi
cmp dword [ebp - 8], edi
je 0x1041d09
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
je 0x1041d13
push dword [ebp - 0xc]
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1041e03
Capabilities:
Delete file

Disassembly:
push 0x2c
mov eax, 0x105e862
call fcn.0104dc9c
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
lea ebx, [esi + 2]
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.01033530
movzx eax, al
test eax, eax
jne 0x1041e6e
push 0x1010454
push 0x1010448
push 0x8007000e
call fcn.01048c52
add esp, 0xc
push dword [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
call fcn.0104dd50
ret 4
mov eax, dword [edi]
push esi
push eax
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.01041d21
test eax, eax
jge 0x1041e96
push 0x1010400
push 0x10103f0
push eax
call fcn.01048c52
add esp, 0xc
push ebx
jmp 0x1041e5c
lea eax, [ebx + esi*2]
xor ecx, ecx
mov word [eax + 2], cx
mov word [eax], cx
mov eax, 0x414
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, dword [edi]
push eax
push edi
push 0x1002428
push 0x10103cc
push 0x4000000
call fcn.01048e9b
add esp, 0x14
jmp 0x1041e93