joyce8/EMBER2024-capa huggingface dataset:
Function at 0x640531cb
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x640b7274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x34], edi
push ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], edi
push ecx
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x78]
call fcn.64054084
add esp, 0x1c
push edi
push edi
push edi
push edi
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push dword [esi + 0x78]
call dword [sym.imp.WS2_32.dll_WSAConnect]
push 3
pop ebx
cmp eax, 0xffffffff
jne 0x64053327
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2740
cmp eax, ecx
jg 0x640532ea
je 0x640532dd
sub eax, 0x271d
je 0x640532d8
sub eax, 9
je 0x64053265
sub eax, 0xd
je 0x6405326b
sub eax, 1
je 0x640532c4
sub eax, 1
jne 0x6405331e
push 8
push 0xb
jmp 0x640532e1
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], edi
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], 4
push eax
push 0x1007
push 0xffff
push dword [esi + 0x78]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x640532c4
mov eax, dword [ebp - 0x34]
cmp eax, 0x274d
jne 0x640532a3
push 0xd
push edi
jmp 0x64053314
cmp eax, 0x274c
jne 0x640532ae
push 0xc
jmp 0x64053312
cmp eax, 0x2751
jne 0x640532b9
push 9
jmp 0x64053312
cmp eax, 0x2741
jne 0x640532c4
push 0xf
jmp 0x64053312
push 8
push 0xb
mov ecx, esi
call fcn.6405228a
mov dword [esi + 0x58], 2
jmp 0x6405331e
push 0xb
push ebx
jmp 0x64053314
push 0xe
push 7
mov ecx, esi
call fcn.6405228a
jmp 0x6405331e
sub eax, 0x2743
je 0x64053310
sub eax, 5
je 0x6405330b
sub eax, 4
je 0x64053307
sub eax, 1
je 0x6405329e
sub eax, 4
jne 0x6405331e
jmp 0x640532b5
push 0xc
jmp 0x640532df
mov dword [esi + 0x58], ebx
jmp 0x6405331e
push 0xa
push 7
mov ecx, esi
call fcn.6405228a
mov dword [esi + 0x58], edi
cmp dword [esi + 0x58], ebx
je 0x64053327
xor al, al
jmp 0x6405332c
mov dword [esi + 0x58], ebx
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6405813a
leave
ret 8

Function at 0x6405371e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
or esi, 0xffffffff
push ebx
push ebx
mov dword [ebp - 8], eax
mov edi, esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ecx + 0x78]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, esi
jne 0x64053783
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x64053790
add eax, 0xffffd8bb
cmp eax, 1
ja 0x6405379a
xorps xmm0, xmm0
movlpd qword [ebp + 0xc], xmm0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
jmp 0x6405379a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x64053795
push 0xfffffffffffffffe
pop edi
jmp 0x6405379a
mov edi, dword [ebp + 8]
mov esi, ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x640537a5
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x9c
mov eax, dword [0x640b7274]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb0]
push ebx
push ebp
mov ebp, dword [esp + 0xb4]
mov ebx, ecx
push esi
mov esi, dword [esp + 0xac]
push edi
mov dword [esp + 0x1c], eax
mov edi, 0x80
xor eax, eax
push edi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.6405b600
add esp, 0xc
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0xb4]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
push eax
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], esi
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], edi
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x3c]
push eax
push dword [ebx + 0x78]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
or esi, 0xffffffff
cmp eax, esi
jne 0x6405386b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
jne 0x6405385c
mov esi, dword [esp + 0xb8]
xor eax, eax
cmp eax, esi
jl 0x6405386d
jg 0x64053873
cmp dword [esp + 0x10], edi
ja 0x64053873
jmp 0x6405386d
push 0x13
push 7
mov ecx, ebx
call fcn.6405228a
mov edi, esi
jmp 0x64053873
xor eax, eax
mov edi, dword [esp + 0x10]
mov esi, eax
push ebp
push dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
push dword [ebx + 0x78]
call fcn.64053f2d
mov ecx, dword [esp + 0xb8]
add esp, 0x10
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.6405813a
add esp, 0x9c
ret 0x14
Function at 0x640538db
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x2a4]
sub esp, 0x324
mov eax, dword [0x640b7274]
xor eax, ebp
mov dword [ebp + 0x2a0], eax
mov eax, dword [ebp + 0x2b8]
push ebx
mov bl, byte [ebp + 0x2b0]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x2bc]
mov dword [ebp - 0x78], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x2ac]
test bl, bl
je 0x64053902
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x64053902
cmp byte [ecx + 0x10], 0
je 0x64053902
push 0
mov bh, 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSocketNotifier::setEnabled_bool_]
jmp 0x64053904
xor bh, bh
push 0x104
lea eax, [ebp + 0x98]
push 0
push eax
call fcn.6405b600
add esp, 0xc
test bl, bl
je 0x64053931
mov eax, dword [esi + 0x78]
mov dword [ebp + 0x98], 1
mov dword [ebp + 0x9c], eax
push 0x104
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.6405b600
and dword [ebp + 0x19c], 0
add esp, 0xc
cmp byte [ebp + 0x2b4], 0
mov ecx, dword [esi + 0x78]
je 0x6405396c
xor eax, eax
mov dword [ebp - 0x68], ecx
inc eax
mov dword [ebp + 0x1a0], ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp + 0x19c], eax
mov eax, edi
mov dword [ebp - 0x70], 0x3e8
cdq
idiv dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
imul eax, edx, 0x3e8
xor edx, edx
test edi, edi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
cmovs eax, edx
push eax
lea eax, [ebp + 0x19c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x98]
push eax
lea eax, [ecx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
test edi, edi
jle 0x640539c6
lea eax, [ebp + 0x19c]
push eax
push dword [esi + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x640539c6
dec edi
test bh, bh
je 0x640539d5
mov ecx, dword [esi + 0x7c]
push 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSocketNotifier::setEnabled_bool_]
test edi, edi
jle 0x64053a08
lea eax, [ebp + 0x98]
push eax
push dword [esi + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [ebp - 0x74]
test eax, eax
setne al
mov byte [ecx], al
lea eax, [ebp - 0x6c]
push eax
push dword [esi + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [ebp - 0x78]
test eax, eax
setne al
mov byte [ecx], al
mov ecx, dword [ebp + 0x2a0]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6405813a
add ebp, 0x2a4
leave
ret 0x14
Function at 0x64053b46
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x640b7274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 0x34]
xor esi, esi
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], esi
push ecx
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], esi
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x78]
call fcn.64054084
mov ecx, dword [ebp + 0xc]
add esp, 0x1c
mov eax, ecx
mov dword [ebp - 0x40], edi
or eax, dword [ebp + 0x10]
jne 0x64053b98
mov dword [ebp - 0x40], esi
push esi
push esi
push dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x44], ecx
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], esi
push esi
push eax
push 1
lea eax, [ebp - 0x44]
push eax
push dword [ebx + 0x78]
call dword [sym.imp.WS2_32.dll_WSASendTo]
or edi, 0xffffffff
cmp eax, edi
jne 0x64053be8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x64053bd5
push 7
pop eax
push 0x12
jmp 0x64053bda
push 6
pop eax
push 0x11
pop ecx
push ecx
push eax
mov ecx, ebx
call fcn.6405228a
mov esi, edi
jmp 0x64053beb
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
mov edx, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.6405813a
leave
ret 0x14

Function at 0x6405514f
Capabilities:
Read file on windows

Disassembly:
push 8
mov eax, 0x6406f512
call fcn.64058182
mov esi, ecx
mov ecx, esi
call fcn.6405453d
cmp byte [esi + 0xde], 0
mov edi, eax
jne 0x64055256
mov ecx, dword [esi + 0xb0]
test edi, edi
mov ebx, dword [esi + 0xb4]
mov eax, 0x1000
cmove edi, eax
mov eax, ecx
or eax, ebx
je 0x640551b8
mov eax, dword [esi + 0xcc]
cdq
sub ecx, eax
sbb ebx, edx
xor eax, eax
cmp eax, ebx
jl 0x640551b8
jg 0x640551a6
cmp edi, ecx
jbe 0x640551b8
mov edi, dword [esi + 0xb0]
sub edi, dword [esi + 0xcc]
je 0x64055256
push edi
lea ecx, [esi + 0xb8]
call fcn.6400d531
lea ecx, [esi + 0x94]
mov byte [esi + 0xdc], 1
push ecx
xor ebx, ebx
push ebx
push edi
push eax
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x640551f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xe9
je 0x64055246
sub eax, 1
jne 0x6405520e
mov ecx, esi
call fcn.640546ee
cmp byte [esi + 0xdc], bl
je 0x6405515d
jmp 0x64055256
sub eax, 0x2fb
je 0x64055256
push str.QLocalSocketPrivate::startAsyncRead
lea ecx, [ebp - 0x14]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QLatin1String::constructor_char_const__]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QLatin1String_const__]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
call fcn.64054e8e
lea ecx, [ebp - 0x10]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
jmp 0x64055256
mov ecx, dword [esi + 4]
mov byte [esi + 0xde], 1
call dword [sym.imp.QtCore4.dll_protected:_void___thiscall_QIODevice::readChannelFinished_void_]
call fcn.6405814b
ret
Function at 0x64055585
Capabilities:
Connect pipe
Create pipe

Disassembly:
push 0x2c
mov eax, 0x6407a0b6
call fcn.64058182
mov ebx, ecx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
lea esi, [ebx + 0x4c]
push eax
mov ecx, esi
call fcn.640556c4
mov ecx, esi
call fcn.640557cc
mov ecx, esi
call dword [sym.imp.QtCore4.dll_public:_void_____thiscall_QListData::end_void_const]
lea ecx, [ebx + 0x5c]
mov edi, dword [eax - 4]
xor eax, eax
push eax
push 0xbb8
push eax
push eax
push 0xff
push eax
push 0x40000003
call dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x6405562b
push str.QLocalServerPrivate::addListener
lea ecx, [ebp - 0x18]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QLatin1String::constructor_char_const__]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QLatin1String_const__]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.64055ba0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov ecx, esi
call fcn.64055b78
xor al, al
jmp 0x640556be
push 0x14
lea esi, [edi + 4]
push 0
push esi
call fcn.6405b600
mov eax, dword [ebx + 0x50]
add esp, 0xc
mov dword [edi + 0x14], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x640556b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x640556af
cmp eax, 0x3e5
je 0x640556a9
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.QLocalServerPrivate::addListener
lea ecx, [ebp - 0x1c]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QLatin1String::constructor_char_const__]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QLatin1String_const__]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.64055ba0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebx + 0x4c]
jmp 0x6405561f
mov byte [edi + 0x18], 0
jmp 0x640556bc
mov byte [edi + 0x18], 1
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
call fcn.6405814b
ret
Function at 0x640566bc
Capabilities:
Contain obfuscated stackstrings
Inspect section memory permissions

Disassembly:
add eax, esi
mov dword [ebp - 0x44], eax
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x64056713
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x64056703
sub eax, 1
je 0x640566fa
sub eax, 1
je 0x640566f1
sub eax, 1
jne 0x64056713
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push dword [eax + 8]
mov eax, dword [eax + 4]
push dword [eax]
call fcn.6401efc1
pop ebp
ret
mov ecx, dword [ebp + 8]
pop ebp
jmp 0x6401f155
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.6401e8ff
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 4]
push dword [eax]
call fcn.6401e880
pop ebp
ret
Function at 0x64057a23
Capabilities:
Check http status code
Reference http user-agent string

Disassembly:
mov eax, dword [ecx + 4]
mov byte [eax + 0x97], 0
jmp fcn.6404614b
mov eax, dword [ecx + 4]
cmp byte [eax + 0x90], 0
mov byte [eax + 0x95], 0
jne fcn.6404632b
ret
mov eax, dword [ecx + 4]
cmp byte [eax + 0x91], 0
mov byte [eax + 0x96], 0
jne fcn.6404646e
ret
mov eax, dword [ecx + 4]
cmp dword [eax + 0x88], 2
jne 0x64047332
cmp byte [eax + 0x91], 0
jne fcn.64046b98
ret
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne case.default.0x64057a34
mov eax, dword [ebp + 0x10]
cmp eax, 8
ja case.default.0x64057a34
jmp dword [eax*4 + 0x64057a9f]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.64047333
mov ecx, dword [ebp + 8]
pop ebp
jmp sym.QtNetwork4.dll_public_virtual:_void___thiscall_QNetworkReply::ignoreSslErrors_void_
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.6404778c
mov ecx, dword [ebp + 8]
pop ebp
jmp 0x64047319
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 4]
push dword [eax]
call fcn.640475ee
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 4]
push dword [eax]
call sym.QtNetwork4.dll_public_virtual:_void___thiscall_QNetworkSessionPrivate::setALREnabled_bool_
pop ebp
ret
mov ecx, dword [ebp + 8]
pop ebp
jmp 0x64046a30
mov ecx, dword [ebp + 8]
pop ebp
jmp 0x64046a48
mov ecx, dword [ebp + 8]
pop ebp
jmp 0x64046a21
Function at 0x1000252a
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x1001081c
call fcn.1000a04c
sub esp, 0x40
mov eax, dword [0x100162d0]
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x48]
push eax
mov esi, ecx
call fcn.100023d6
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.10002480
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x1000256a
lea eax, [ebp - 0x44]
push edi
mov edi, 0x2001f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x4c]
call fcn.100012c1
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jne 0x100025b1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x10002595
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 0x100025ab
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call esi
lea ecx, [ebp - 0x4c]
call fcn.100012aa
push edi
push str.CLSID
push SysReAllocString
lea ecx, [ebp - 0x4c]
call fcn.100012c1
test eax, eax
pop edi
jne 0x100025e3
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x100025dd
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call esi
lea ecx, [ebp - 0x4c]
call fcn.100012aa
lea ecx, [ebp - 0x4c]
call fcn.100012aa
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001d67
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.10001d67
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.1000928e
leave
ret

Function at 0x10002620
Capabilities:
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
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov edi, ecx
call fcn.10002282
push esi
lea ecx, [ebp - 0x74]
mov ebx, eax
mov dword [ebp - 0x5c], 0xf
call fcn.10001560
lea eax, [ebp - 0x58]
push eax
mov ecx, edi
call fcn.100023d6
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.10002480
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10002384
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 0x10
jae 0x10002686
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 0x10012332
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.10001d67
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.10001d67
push esi
push edi
lea ecx, [ebp - 0x58]
call fcn.10001d67
push esi
push edi
lea ecx, [ebp - 0x74]
call fcn.10001d67
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.1000928e
leave
ret 4

Function at 0x100027aa
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 0x100027c4
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 0x100027ed
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 0x100027f8
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 0x10002856
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 0x100028a5
call fcn.10001269
jmp 0x100029e5
cmp eax, edi
jne 0x100028b3
mov eax, 0x8007007a
jmp 0x100029e5
test ebx, ebx
je 0x100028cb
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp ebx, eax
je 0x100028cb
lea ecx, [ebp + 0xe8]
jmp 0x10002909
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 0x100029e5
mov eax, dword [esi]
lea ecx, [ebp + 0xe8]
push ecx
push str.Module_Raw
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x100029e5
lea eax, [ebp - 0x7c]
push eax
push 0x10016e90
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x100029e5
mov ebx, dword [ebp - 0x7c]
test ebx, ebx
jne 0x10002959
xor eax, eax
jmp 0x1000297e
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.10009220
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 0x1000299d
mov eax, edi
jmp 0x100029e5
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 0x100029c7
push str.InprocServer32
jmp 0x100029cc
push str.LocalServer32
push str.MODULETYPE
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x100029e5
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.1000928e
pop edi
pop esi
pop ebx
add ebp, 0x2f8
leave
ret
Function at 0x10002bf4
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.100012c1
cmp eax, esi
jne 0x10002c7c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10002c45
lea eax, [ebp - 0x70]
push eax
call fcn.10002bf4
cmp eax, esi
jne 0x10002c7b
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], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x10002c38
call fcn.100012aa
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.100012aa
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.1000928e
add ebp, 0x94
leave
ret 4

Function at 0x10004fa2
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100109c4
call fcn.1000a04c
sub esp, 0x4c
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
push 0x10012332
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], eax
call fcn.10004ed7
movzx esi, byte [0x10012942]
and dword [ebp - 4], 0
and dword [ebp - 0x4c], 0
lea ebx, [esi + 1]
push ebx
call fcn.10008d5b
push ebx
xor ebx, ebx
mov edi, eax
push ebx
push edi
call fcn.10009340
push esi
push str.jnmcv
push edi
call fcn.10009440
push 0x1001282c
push esi
push edi
call fcn.1000755f
add esp, 0x28
push edi
lea ecx, [ebp - 0x48]
call fcn.10002367
push edi
call fcn.10009abd
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10002384
mov eax, dword [ebp - 0x28]
add esp, 0x10
cmp dword [ebp - 0x14], 0x10
jae 0x10005034
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x50]
push ecx
push 0xf003f
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor esi, esi
inc esi
test eax, eax
jne 0x10005090
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push str.Start
push dword [ebp - 0x50]
mov dword [ebp + 8], 0x50
mov dword [ebp - 0x54], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005087
cmp dword [ebp - 0x58], 2
jne 0x10005087
mov dword [ebp - 0x4c], esi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001d67
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.10001d67
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x4c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.1000928e
leave
ret 4