joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005a8d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10090014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax]
or ebx, 0xffffffff
mov edi, dword [eax + 0x134]
push 1
push 0
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x10
call fcn.10049410
mov ecx, eax
add esp, 0xc
test ecx, ecx
js 0x1005a945
nop
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push edi
call fcn.10055bd0
add esp, 0xc
cmp eax, 0xffffffff
je 0x1005a9f9
test eax, eax
jne 0x1005a969
push 1
push eax
push esi
call fcn.10049410
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x1005a910
push str.Timeout_while_waiting_for_server_connect
push esi
call fcn.10048b20
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a6d9
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1005a994
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
mov edi, dword [ebp - 0x1c]
push edi
call fcn.10049110
add esp, 8
cmp ebx, 0xffffffff
jne 0x1005a9ca
push str.Error_accept__ing_server_connect
push esi
call fcn.10048b20
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a6d9
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push esi
call fcn.10048bc0
push 1
push ebx
mov dword [edi + 0x134], ebx
call fcn.10061e50
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a6d9
mov esp, ebp
pop ebp
ret
push str.Error_while_waiting_for_server_connect
push esi
call fcn.10048b20
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x1e
pop edi
pop esi
pop ebx
call fcn.1000a6d9
mov esp, ebp
pop ebp
ret

Function at 0x1005ccc0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x1005ccef
push str.Couldnt_set_desired_mode
push edx
call fcn.10048b20
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x1005cd06
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.10048bc0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x1005cd1d
push edi
call fcn.1005c800
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x1005cd31
push edi
call fcn.1005c2f0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x1005cd45
push edi
call fcn.1005c760
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x1005cd55
push edi
call fcn.1005c7e0
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x1005fec0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10090014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.10038f13
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x1005ff24
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x1005ff24
lea eax, [ebp - 0x108]
push eax
call dword [0x100909fc]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a6d9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1000a6d9
mov esp, ebp
pop ebp
ret

Function at 0x1005ff40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005fec0
Function at 0x100630c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x10063d70
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x100909f0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10063d9d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x10063de4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x10063dea
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x10063e4b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x10063e10
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x10063e77
mov eax, dword [esi + 4]
push 1
push 0x10085894
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x10085895
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x10063e50
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10063ea0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x10063ed3
push 0x2e
push edi
call fcn.100197a0
add esp, 8
test eax, eax
je 0x10063ed1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x100648d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x10090014]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.100191c0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x10064942
cmp dword [ebp - 0x118], 2
jg 0x10064942
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a6d9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1000a6d9
mov esp, ebp
pop ebp
ret

Function at 0x100649a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x100649cc
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x100649bd
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x10064a00
cmp dword [esi + 8], 0
jne 0x100649f0
push 0x10077904
push dword [eax + 8]
call fcn.1002af44
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x100649f0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.100706b2
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10064a22
mov eax, dword [esi + 8]
test eax, eax
je 0x10064a1c
push eax
call fcn.10029c4a
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10066440
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100741c3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10090014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x10092888
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x10092888
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x10075dd8
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10069fb0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1006cbe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x100928c0], ecx
inc eax
cmp eax, 0x100
jb 0x1006cbe2
cmp eax, 0x800
jae 0x1006ccb3
nop
mov edx, dword [eax*4 + 0x100924c0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x100928c0]
mov dword [eax*4 + 0x100928c0], edx
inc eax
cmp eax, 0x800
jb 0x1006cc90
mov dword [0x10092894], 0x1006da50
call fcn.1006d880
mov ecx, dword [0x10092894]
test eax, eax
mov edx, 0x1006daf0
cmove ecx, edx
mov dword [0x10092894], ecx
ret
Function at 0x1006ddd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x1006ddf0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x1006de22
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x1006de1f
inc esi
cmp esi, edx
jb 0x1006de10
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x1006df4c
cmp ecx, 3
jbe 0x1006de62
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x1006dea0
cmp cl, 0xff
je 0x1006dea0
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x1006de04
dec ecx
shl eax, cl
and eax, 7
je 0x1006de3a
movzx ecx, byte [eax + 0x100863b8]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x100863b0], 0
mov cl, byte [edx + 4]
je 0x1006de8a
test cl, cl
je 0x1006de8a
cmp cl, 0xff
jne 0x1006de3a
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x1006de04
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x1006dece
lea edx, [edi + ebx]
add edx, esi
jmp 0x1006ded4
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x1006df12
movzx edi, byte [eax + 0x100863b8]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x1006defe
cmp cl, 0xff
jne 0x1006df12
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x1006dec1
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x1006de04
pop edi
pop esi
cmp ecx, 3
jbe 0x1006df61
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d433
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040d0e1
Function at 0x10002567
Capabilities:
Clear file content
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x1001103c
call fcn.1000a62c
sub esp, 0x40
mov eax, dword [0x100162d0]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.dgewq
mov dword [ebp - 0x10], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push str.ehsc
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.10002413
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.100024bd
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], ebx
jae 0x100025c4
lea eax, [ebp - 0x44]
push edi
mov edi, 0x2001f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x4c]
call fcn.100012b8
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jne 0x1000260b
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x100025ef
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x10002605
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call esi
lea ecx, [ebp - 0x4c]
call fcn.100012a1
push edi
push str.CLSID
push SysReAllocString
lea ecx, [ebp - 0x4c]
call fcn.100012b8
test eax, eax
pop edi
jne 0x1000263d
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x10002637
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call esi
lea ecx, [ebp - 0x4c]
call fcn.100012a1
lea ecx, [ebp - 0x4c]
call fcn.100012a1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001da4
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.10001da4
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.1000986e
leave
ret
Function at 0x10002679
Capabilities:
Get disk information
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
push esi
push esi
push str.ymxs
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.100022bf
push esi
lea ecx, [ebp - 0x74]
mov ebx, eax
mov dword [ebp - 0x5c], 0xf
call fcn.1000159f
lea eax, [ebp - 0x58]
push eax
mov ecx, edi
call fcn.10002413
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100024bd
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.100023c1
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 0x10
jae 0x100026f6
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x78]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
push 0x10012395
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.10001da4
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.10001da4
push esi
push edi
lea ecx, [ebp - 0x58]
call fcn.10001da4
push esi
push edi
lea ecx, [ebp - 0x74]
call fcn.10001da4
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.1000986e
leave
ret 4

Function at 0x10002849
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10002863
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x1000288c
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10002897
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x100028f5
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2f8]
sub esp, 0x378
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
mov dword [ebp + 0x2f4], eax
mov esi, ecx
call dword [0x10016050]
mov ebx, dword [0x100179e4]
mov dword [ebp - 0x80], eax
mov edi, 0x104
push edi
lea eax, [ebp + 0xe8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002944
call fcn.10001269
jmp 0x10002a84
cmp eax, edi
jne 0x10002952
mov eax, 0x8007007a
jmp 0x10002a84
test ebx, ebx
je 0x1000296a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp ebx, eax
je 0x1000296a
lea ecx, [ebp + 0xe8]
jmp 0x100029a8
lea eax, [ebp + 0xe8]
push eax
lea eax, [ebp + 0x1ed]
push eax
mov byte [ebp + 0x1ec], 0x22
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [ebp + eax + 0x1ec], 0x22
mov byte [ebp + eax + 0x1ed], 0
lea ecx, [ebp + 0x1ec]
mov eax, dword [esi]
push ecx
push str.Module
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x10002a84
mov eax, dword [esi]
lea ecx, [ebp + 0xe8]
push ecx
push str.Module_Raw
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x10002a84
lea eax, [ebp - 0x7c]
push eax
push 0x10016e90
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x10002a84
mov ebx, dword [ebp - 0x7c]
test ebx, ebx
jne 0x100029f8
xor eax, eax
jmp 0x10002a1d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.10009800
mov eax, esp
push dword [ebp - 0x80]
push edi
push ebx
push eax
call fcn.1000119a
mov ecx, dword [esi]
push eax
push str.MODULEGUID
push esi
call dword [ecx + 0x14]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jge 0x10002a3c
mov eax, edi
jmp 0x10002a84
push 0x2000
push 0x160
lea eax, [ebp - 0x78]
push eax
push 0
lea eax, [ebp + 0xe8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
mov eax, dword [esi]
jne 0x10002a66
push str.InprocServer32
jmp 0x10002a6b
push str.LocalServer32
push str.MODULETYPE
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x10002a84
mov ecx, dword [0x10016ea0]
mov eax, dword [ecx]
push esi
call dword [eax + 0x14]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x2f4]
call fcn.1000986e
pop edi
pop esi
pop ebx
add ebp, 0x2f8
leave
ret
Function at 0x10002ccb
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x100162d0]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.100012b8
cmp eax, esi
jne 0x10002d53
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10002d1c
lea eax, [ebp - 0x70]
push eax
call fcn.10002ccb
cmp eax, esi
jne 0x10002d52
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x10002d0f
call fcn.100012a1
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.100012a1
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.1000986e
add ebp, 0x94
leave
ret 4

Function at 0x100050d0
Capabilities:
Copy file

Disassembly:
mov eax, 0x100111e4
call fcn.1000a62c
sub esp, 0x3c
mov eax, dword [0x100162d0]
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 0x10], eax
mov esi, ecx
call fcn.100061fd
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x48]
call fcn.1000237e
add esi, 0xa8
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.1000237e
cmp dword [ebp - 0x30], 0x10
mov ecx, dword [ebp - 0x44]
jae 0x1000511b
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x10005127
lea eax, [ebp - 0x28]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001da4
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.10001da4
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.1000986e
leave
ret