joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004dc0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
mov dword [esi], edi
call fcn.01003112
push 0x10181bc
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
push 0xa
mov ecx, ebx
call fcn.010031ca
cmp eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jl 0x1004e50
mov ebx, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push 0x64
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi], eax
jne 0x1004e23
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x1004e59
call edi
jmp 0x1004e65
push edi
push 1
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x48], eax
je 0x1004e13
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1004daa
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x4c], eax
je 0x1004e13
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
call edi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x1004e50

Function at 0x1004f5b
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x1018234], 1
push ebx
push esi
push edi
jne 0x1004f80
or dword [0x1018234], 1
call fcn.01004f05
mov dword [0x1018230], eax
push 4
pop eax
call fcn.01008280
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005015
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x1018184]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x1005015
cmp eax, 1
je 0x1005036
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005015
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1004fe2
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1005011
xor eax, eax
inc eax
jmp 0x1005055
cmp edi, eax
jae 0x1005019
xor eax, eax
jmp 0x1005055
cmp eax, esi
jae 0x1005020
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1018184]
jmp 0x1005039
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100603e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10180ac]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x108], esi
call fcn.0100533e
cmp eax, esi
jne 0x10060df
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1006096
lea eax, [ebp - 0x104]
push eax
call fcn.0100603e
cmp eax, esi
jne 0x10060de
lea eax, [ebp - 0x118]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x108]
mov dword [ebp - 0x10c], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x108]
je 0x1006086
call fcn.010052cb
push dword [ebp - 0x110]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x108]
mov esi, eax
call fcn.010052cb
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.01007f54
leave
ret 4
Function at 0x1007916
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
je 0x1007978
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x1007961
push esi
call fcn.01005062
test al, al
je 0x1007961
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01008280
mov eax, esp
jmp 0x100796a
push esi
lea ecx, [ebp - 4]
call fcn.010061d3
push esi
push dword [ebp + 8]
push eax
call fcn.0100518d
cmp eax, ebx
jne 0x1007982
mov esi, 0x8007000e
jmp 0x1007a84
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], esi
jne 0x10079bf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10079aa
call esi
mov esi, eax
jmp 0x1007a84
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1007a84
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x10079e0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
jne 0x1007a05
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10079f3
call esi
jmp 0x1007a79
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1007a7b
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov eax, esi
je 0x1007a62
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x1007a3f
push edi
call fcn.01005062
test al, al
je 0x1007a3f
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.01008280
mov eax, esp
jmp 0x1007a48
push edi
lea ecx, [ebp - 4]
call fcn.010061d3
test eax, eax
je 0x1007a66
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebx], 0
test eax, eax
jne 0x1007a6d
mov esi, 0x8007000e
jmp 0x1007a7b
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.010075ed
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 4]
call fcn.01005ed3
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100806c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001920
call fcn.01008320
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x10080bf
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x10080bf
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x10080d7
cmp ecx, 0x20b
je 0x10080c4
mov dword [ebp - 0x1c], ebx
jmp 0x10080eb
cmp dword [eax + 0x84], 0xe
jbe 0x10080bf
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x10080e5
cmp dword [eax + 0x74], 0xe
jbe 0x10080bf
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x1018664], edi
mov dword [0x1018668], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1018260]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101825c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1018660], eax
call fcn.01005ef2
cmp dword [0x10180b0], ebx
jne 0x1008148
push fcn.01005ef2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010083a1
push 0x1018034
push 0x1018030
call sub.msvcrt.dll__initterm
mov eax, dword [0x1018258]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1018254]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x101802c
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x10081d3
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x10081b3
cmp cl, 0x22
jne 0x10081a4
cmp byte [eax], 0x22
jne 0x10081bc
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x10081c7
cmp cl, 0x20
jbe 0x10081b8
test byte [ebp - 0x54], 1
je 0x10081de
movzx ecx, word [ebp - 0x50]
jmp 0x10081e1
cmp byte [eax], 0x20
jbe 0x10081bc
inc eax
mov dword [ebp - 0x20], eax
jmp 0x10081d3
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01007d53
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10081ff
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x100823b
mov eax, esi
jmp 0x100824f
call fcn.0100835b
ret
Function at 0x100a436
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x10180ac]
push ebx
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x120]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001de8
push closesocket
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x100a48f
jg 0x100a483
mov esi, eax
jmp 0x100a525
and eax, 0xffff
or eax, 0x80070000
jmp 0x100a47c
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
push 0x1001dc8
push dword [ebp - 0x120]
mov dword [ebp - 0x124], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x100a512
jle 0x100a4d0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x100a525
xor eax, eax
inc eax
cmp dword [ebp - 0x114], 5
ja 0x100a508
jne 0x100a525
cmp dword [ebp - 0x110], eax
jb 0x100a525
mov dword [ebp - 0x11c], eax
xor esi, esi
jmp 0x100a525
mov esi, dword [ebp - 0x128]
sub esi, 4
neg esi
sbb esi, esi
and esi, 0x8000ffff
cmp dword [ebp - 0x120], ebx
je 0x100a539
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jge 0x100a543
mov dword [ebp - 0x11c], ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x11c], ebx
pop esi
setne al
pop ebx
call fcn.01007f54
leave
ret

Function at 0x100af8b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
jne 0x100afa6
mov eax, 0x80004005
jmp 0x100b00d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], 4
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
test eax, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [edi]
jg 0x100afe7
call esi
jmp 0x100aff3
call esi
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
pop esi
jl 0x100b00d
cmp dword [ebp - 4], 4
je 0x100b005
mov eax, 0xc00d002f
jmp 0x100b00d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
pop edi
pop ebx
leave
ret 8
Function at 0x100b84c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
jne 0x100b867
mov eax, 0x80004005
jmp 0x100b91e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [ebp + 0x10]
push edi
push ecx
lea edx, [ebp - 4]
push edx
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
call esi
push edi
push 0
test eax, eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
jg 0x100b898
call esi
jmp 0x100b8a4
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x100b91c
cmp dword [ebp - 4], 3
je 0x100b8b5
mov eax, 0xc00d002f
jmp 0x100b91c
push dword [edi]
mov ecx, dword [ebp + 0xc]
call fcn.01003150
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
test edx, edx
jne 0x100b8cf
mov eax, 0x8007000e
jmp 0x100b91c
mov ecx, dword [edi]
push dword [ebp + 0x10]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0xc]
push dword [edi]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call esi
push dword [ebp + 0x10]
test eax, eax
push dword [edi]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
jg 0x100b910
call esi
jmp 0x100b91c
call esi
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100bdbd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10180ac]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x11c], eax
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x118], ecx
jne 0x100bdfe
mov eax, 0x80004005
jmp 0x100bf44
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x110]
push edx
push edi
lea edx, [ebp - 0x114]
push edx
push edi
push ecx
push eax
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], edi
call ebx
test eax, eax
lea eax, [ebp - 0x110]
push eax
push edi
lea eax, [ebp - 0x114]
push eax
push edi
push dword [ebp - 0x118]
push dword [esi]
jg 0x100be47
call ebx
mov esi, eax
jmp 0x100be57
call ebx
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x100bf41
cmp dword [ebp - 0x114], 1
je 0x100be72
mov esi, 0xc00d002f
jmp 0x100bf41
mov eax, dword [ebp - 0x110]
add eax, 2
push eax
lea ecx, [ebp - 0x10c]
call fcn.010035b9
cmp dword [ebp - 0x10c], edi
jne 0x100be99
mov esi, 0x8007000e
jmp 0x100bf36
mov ecx, dword [ebp - 0x110]
mov edi, dword [ebp - 0x10c]
add ecx, 2
mov esi, dword [ebp - 0x120]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x10c]
lea eax, [ebp - 0x114]
push eax
xor edi, edi
push edi
push dword [ebp - 0x118]
push dword [esi]
call ebx
test eax, eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x10c]
lea eax, [ebp - 0x114]
push eax
push edi
push dword [ebp - 0x118]
push dword [esi]
jg 0x100bf06
call ebx
mov esi, eax
jmp 0x100bf16
call ebx
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x100bf36
mov esi, dword [ebp - 0x11c]
push 0xffffffffffffffff
push dword [ebp - 0x10c]
mov ecx, esi
mov dword [esi + 4], edi
mov dword [esi], edi
call fcn.0100360f
mov esi, dword [esi]
lea ecx, [ebp - 0x10c]
call fcn.01002b58
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01007f54
leave
ret 8
Function at 0x100ce50
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
push 0x1018298
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [0x1018298], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1002104
push closesocket
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
push 4
pop edi
jne 0x100cee4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x10020ec
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x100cee4
cmp dword [ebp - 8], edi
jne 0x100cee4
cmp dword [ebp - 0xc], esi
je 0x100cee4
mov ebx, esi
jmp 0x100cf49
cmp dword [0x10182a8], 2
jne 0x100cf02
cmp dword [0x101829c], edi
jbe 0x100cf02
cmp dword [0x10182a0], esi
jbe 0x100cf02
push 3
pop edi
jmp 0x100cf67
push 0x10020e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
je 0x100cf49
push 0x10020c8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x10183bc], eax
je 0x100cf49
lea eax, [ebp - 0x10]
push eax
call fcn.0100cded
test eax, eax
jl 0x100cf43
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x100cf43
call fcn.0100ce38
jmp 0x100cf54
mov dword [0x10183bc], esi
xor edi, edi
cmp dword [0x10182a8], 1
jne 0x100cf57
xor edi, edi
inc edi
cmp ebx, esi
je 0x100cf67
cmp edi, 1
je 0x100cf67
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x10180c8], edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100dd34
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x1001558
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x100dd8a
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push eax
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x100dd98
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 0x10
Function at 0x100dda5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x14]
cmp esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
je 0x100ddc8
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x100ddd0
push 0x57
pop eax
jmp 0x100de8c
push edi
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
je 0x100de0a
cmp edi, 2
jne 0x100de7b
push esi
mov dword [esi], ebx
call fcn.0100da57
mov edi, eax
cmp edi, ebx
jne 0x100de7b
xor edi, edi
jmp 0x100de72
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call edi
cmp eax, ebx
je 0x100de2b
cmp eax, 0x7a
jne 0x100de64
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [esi], eax
jne 0x100de3f
push 0xe
pop edi
jmp 0x100de7b
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call edi
mov edi, eax
cmp edi, ebx
je 0x100de7b
mov eax, dword [esi]
cmp eax, ebx
je 0x100de64
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push esi
mov dword [esi], ebx
call fcn.0100da57
mov edi, eax
cmp edi, ebx
jne 0x100de7b
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
cmp dword [ebp - 4], ebx
je 0x100de89
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x100e38e
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
je 0x100e3a9
cmp dword [ebp + 0xc], esi
jne 0x100e3ae
push 0x57
pop eax
jmp 0x100e42c
push 2
push 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
mov eax, dword [ebp - 0x18]
cmp eax, esi
jbe 0x100e429
mov esi, dword [sym.imp.ADVAPI32.dll_DeleteAce]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push edi
lea edi, [eax - 1]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x100e3f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100e421
mov eax, dword [ebp - 8]
mov cl, byte [eax]
test cl, cl
je 0x100e40a
cmp cl, 1
je 0x100e40a
cmp cl, 2
jne 0x100e421
add eax, 8
push eax
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x100e421
push edi
push dword [ebp + 8]
call esi
and dword [ebp - 4], 0
dec edi
dec dword [ebp - 0xc]
jne 0x100e3da
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x100e5c5
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x100e641
cmp word [ebx + 8], 2
jne 0x100e61d
cmp word [ebx + 0xa], 4
jne 0x100e61d
mov esi, dword [ebx + 0xc]
jmp 0x100e617
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0100e558
test eax, eax
mov dword [edi], eax
je 0x100e63c
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x100e5fb
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x100e667
push 8
pop eax
jmp 0x100e667
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x100e667
dec ecx
je 0x100e662
dec ecx
je 0x100e65b
dec ecx
jmp 0x100e667
mov eax, 0x2afb
jmp 0x100e667
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x100ecbd
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x1018404], 0
mov eax, dword [0x10180ac]
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], 0x10021f0
mov dword [ebp - 0x22c], 0x100e86a
mov dword [ebp - 0x228], 0x10021e4
mov dword [ebp - 0x224], 0x100eaec
mov dword [ebp - 0x220], 0x10021d4
mov dword [ebp - 0x21c], fcn.0100e824
jne 0x100ee3e
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100ee34
xor eax, eax
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x100ed35
push edi
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100ed50
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, 0x10021cc
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x110]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x100ed93
push 0x10021f0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100ed8f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x100edea
xor eax, eax
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x100ed95
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100edaf
mov esi, 0x10021c4
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x110]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x100ee31
push 0x10021f0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100ede6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x100ee31
xor edi, edi
push dword [ebp + edi*8 - 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + edi*8 - 0x22c], eax
je 0x100ee0d
inc edi
cmp edi, 3
jl 0x100edec
jmp 0x100ee16
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x100ee31
xor eax, eax
mov ecx, dword [ebp + eax - 0x22c]
mov dword [eax + 0x1018104], ecx
add eax, 8
cmp eax, 0x18
jl 0x100ee1c
pop esi
pop ebx
pop edi
mov dword [0x1018404], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax*8 + 0x1018104]
call fcn.01007f54
leave
ret 4