joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c60e
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0xf0000000
push 1
xor esi, esi
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov edi, eax
cmp edi, esi
je 0x1001c683
cmp dword [ebp - 8], esi
je 0x1001c683
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x8004
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, eax
cmp edi, esi
je 0x1001c683
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edi, eax
cmp edi, esi
je 0x1001c683
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x1001c691
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
je 0x1001c6a0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop esi
leave
ret 0x10
Function at 0x1001de48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
xor eax, eax
push 0x40e
mov word [ebp - 0x41c], ax
xor ebx, ebx
lea eax, [ebp - 0x41a]
push ebx
push eax
call fcn.10131950
push dword [ebp + 8]
call fcn.101319ca
push dword [ebp + 0xc]
mov esi, eax
call fcn.101319ca
lea edi, [esi + eax]
mov esi, str.SOFTWAREHebcaUSBKey
push esi
call fcn.101319ca
lea eax, [eax + edi + 3]
mov edi, 0x208
add esp, 0x18
cmp eax, edi
ja 0x1001df37
push dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push dword [ebp + 8]
push esi
push str._s_s_s
push eax
call fcn.10131892
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x41c]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x1001df37
cmp dword [ebp - 8], 1
jne 0x1001df37
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 4]
and eax, 0xfffffffe
cmp eax, edi
jae 0x1001df37
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x104
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 4]
jmp 0x1001df3f
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov word [ecx], ax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1001df46
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
xor eax, eax
push 0x40e
mov word [ebp - 0x41c], ax
xor edi, edi
lea eax, [ebp - 0x41a]
push edi
push eax
call fcn.10131950
push dword [ebp + 8]
call fcn.101319ca
push dword [ebp + 0xc]
mov esi, eax
call fcn.101319ca
lea ebx, [esi + eax]
mov esi, str.SOFTWAREHebcaUSBKey
push esi
call fcn.101319ca
lea eax, [eax + ebx + 3]
add esp, 0x18
cmp eax, 0x208
ja 0x1001e011
push dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push dword [ebp + 8]
push esi
push str._s_s_s
push eax
call fcn.10131892
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x41c]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
push 4
pop ecx
mov dword [ebp - 0xc], ecx
cmp eax, edi
jne 0x1001e011
cmp dword [ebp - 8], ecx
jne 0x1001e011
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
xor eax, eax
inc eax
jmp 0x1001e018
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1001e01f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
xor eax, eax
push 0x40e
mov word [ebp - 0x41c], ax
xor ebx, ebx
lea eax, [ebp - 0x41a]
push ebx
push eax
call fcn.10131950
push dword [ebp + 8]
call fcn.101319ca
push dword [ebp + 0xc]
mov esi, eax
call fcn.101319ca
lea edi, [esi + eax]
mov esi, str.SOFTWAREHebcaUSBKey
push esi
call fcn.101319ca
lea eax, [eax + edi + 3]
add esp, 0x18
cmp eax, 0x208
ja 0x1001e0e8
push dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push dword [ebp + 8]
push esi
push str._s_s_s
push eax
call fcn.10131892
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x41c]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
mov edi, str.image
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1001e0e8
cmp dword [ebp - 8], 3
jne 0x1001e0e8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1001e0e8
inc eax
jmp 0x1001e0ef
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1001e217
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
cmp dword [esi + 0x74], ebx
je 0x1001e23b
xor edi, edi
cmp dword [esi + 0x7c], ebx
jle 0x1001e23b
mov eax, dword [esi + 0x74]
mov eax, dword [eax + edi*4]
call fcn.1001cf90
inc edi
cmp edi, dword [esi + 0x7c]
jl 0x1001e22a
push dword [esi + 0x50]
call fcn.101317e9
push dword [esi + 0x54]
mov dword [esi + 0x50], ebx
call fcn.101317e9
push dword [esi + 0x58]
mov dword [esi + 0x54], ebx
call fcn.101317e9
push dword [esi + 0x60]
mov dword [esi + 0x58], ebx
call fcn.101317e9
mov eax, dword [esi + 0x70]
add esp, 0x10
mov dword [esi + 0x60], ebx
cmp eax, ebx
je 0x1001e29f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001e285
call edi
push 0xffffffffffffffff
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1001e29f
call edi
lea edi, [esi + 0x90]
cmp dword [edi], ebx
je 0x1001e2b2
mov ecx, esi
call fcn.1001e580
mov dword [edi], ebx
lea edi, [esi + 0x88]
mov eax, dword [edi]
cmp eax, ebx
je 0x1001e2c7
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], ebx
add esi, 0x84
push dword [esi]
call fcn.101317e9
pop ecx
pop edi
mov dword [esi], ebx
pop esi
pop ebx
ret
Function at 0x1001eb99
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x1014f133
call fcn.1014e6d8
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
push str.CP11Driver::Begin_Reload_Device
push 3
call fcn.10001f42
pop ecx
pop ecx
mov eax, dword [esi + 0x78]
mov eax, dword [eax + 0xc]
call fcn.100118db
xor ebx, ebx
test eax, eax
je 0x1001ebdb
cmp dword [esi + 0x3c], ebx
jne 0x1001ebdb
xor eax, eax
inc eax
jmp 0x1001ed5c
push 0x1018db60
push dword [esi + 0x50]
call fcn.10134641
pop ecx
pop ecx
test eax, eax
jne 0x1001ec06
mov eax, dword [esi + 0x78]
mov eax, dword [eax + 0xc]
call fcn.100118db
test eax, eax
je 0x1001ec06
call fcn.1001e2db
test eax, eax
jne 0x1001ebd3
xor edi, edi
cmp dword [esi + 0x7c], ebx
jle 0x1001ec1e
mov eax, dword [esi + 0x74]
mov eax, dword [eax + edi*4]
call fcn.1001cf90
inc edi
cmp edi, dword [esi + 0x7c]
jl 0x1001ec0d
mov dword [esi + 0x7c], ebx
mov dword [ebp - 0x14], ebx
push ebx
lea eax, [esi + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.1001e5c8
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1001ed4c
lea edi, [esi + 0x80]
cmp eax, dword [edi]
jb 0x1001ec76
mov dword [edi], eax
push dword [esi + 0x74]
call fcn.101317e9
pop ecx
xor ecx, ecx
mov eax, dword [edi]
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101317de
pop ecx
mov dword [esi + 0x74], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101317de
pop ecx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1001e5c8
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jae 0x1001ed43
push 0x28
call fcn.10134753
pop ecx
cmp eax, ebx
je 0x1001ecd2
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 4], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
jmp 0x1001ecd4
xor eax, eax
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x74]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + eax*4]
mov dword [eax + 8], esi
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ecx + edx*4]
mov dword [eax + 0xc], ecx
mov dword [ebp - 4], ebx
push ebx
push ebx
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + eax*4]
call fcn.1001c808
cmp eax, ebx
jne 0x1001ed5c
or dword [ebp - 4], 0xffffffff
jmp 0x1001ed2a
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + eax*4]
call fcn.1001cf7f
inc dword [esi + 0x7c]
inc dword [ebp - 0x18]
jmp 0x1001ec9b
push dword [ebp - 0x1c]
call fcn.101317e9
pop ecx
push str.CP11Driver::End_Reload_Device
push 3
call fcn.10001f42
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10025ae4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10025afb
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10025b30
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10025b2c
cmp edi, eax
jae 0x10025b30
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10025b1e
cmp edi, eax
jb 0x10025b34
xor eax, eax
jmp 0x10025b3d
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x10025e12
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
push ebx
mov eax, 0x400
push eax
push eax
push ebx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
mov eax, dword [ebp + 8]
add eax, 0x68
push eax
push ebx
push esi
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
mov dword [esp + 0x14], eax
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x10025f2b
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10025f36
cmp dword [esp + 0x10], 0xffffffff
je 0x10025f62
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x18]
imul eax, eax, 0xc
cmp ecx, dword [eax + 0x1019c460]
jne 0x10025ec0
push dword [esp + 0x20]
push 1
mov eax, dword [esi + 4]
call fcn.10025d4e
pop ecx
pop ecx
test eax, eax
jne 0x10025eb9
mov dword [esi + 0x10], 1
push dword [esi + 0xc]
call edi
jmp 0x10025f11
cmp ecx, dword [eax + 0x1019c464]
jne 0x10025ed0
push dword [esp + 0x20]
push 2
jmp 0x10025ea4
cmp ecx, dword [eax + 0x1019c468]
je 0x10025f7b
cmp ecx, 0x10
je 0x10025ee6
cmp ecx, 2
jne 0x10025efb
mov eax, dword [esi + 4]
push ebx
push 4
call fcn.10025d4e
pop ecx
pop ecx
test eax, eax
jne 0x10025fbd
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x10025e6e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [esi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0xc]
call esi
push 0xe00b102a
mov eax, 0x1018a694
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
jmp 0x10025f2d
mov eax, dword [esi + 4]
push ebx
push 3
call fcn.10025d4e
pop ecx
pop ecx
push 0xe00b1015
mov eax, 0x1018a910
jmp 0x10025f51
push dword [esi + 0xc]
call edi
push 0xffffffffffffffff
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
push ebx
push 3
call fcn.10025d4e
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
pop ecx
push dword [esi + 0xc]
call edi
push dword [esp + 0xc]
call edi
cmp dword [esp + 0x20], ebx
je 0x10025f2b
push dword [esp + 0x20]
lea eax, [esi + 0x14]
jmp 0x10025f51
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100269e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
push esi
xor esi, esi
cmp eax, esi
je 0x10026aec
cmp dword [eax + 4], esi
je 0x10026aec
test byte [eax + 0x1c], 2
je 0x10026aec
cmp dword [ebp + 0xc], esi
jne 0x10026a22
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x10026af6
push ebx
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x10026a61
push 0xe00b100f
push 0x1018af0c
push 0x1018af8c
mov eax, 0x1018a974
call fcn.10004ead
jmp 0x10026acf
push edi
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp dword [ebp + 8], esi
je 0x10026a92
push 0xe00b1010
push 0x1018af0c
push 0x1018af8c
mov eax, 0x1018a968
call fcn.10004ead
jmp 0x10026ace
cmp edi, 0x8000000
ja 0x10026a77
lea eax, [edi + 8]
push eax
call fcn.101317de
pop ecx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [ebp - 4]
cmp esi, edi
jb 0x10026aa6
push dword [ebp + 0x10]
push ebx
call fcn.10011bc6
pop edi
push ebx
mov esi, eax
call fcn.101317e9
cmp dword [ebp + 0xc], 0xffffffff
pop ecx
pop ebx
je 0x10026ae8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10026b05
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
pop esi
leave
ret 0xc
Function at 0x10026b0a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x10026c2a
cmp dword [eax + 4], ebx
je 0x10026c2a
test byte [eax + 0x1c], 4
je 0x10026c2a
cmp dword [ebp + 0xc], ebx
je 0x10026c1e
cmp dword [ebp + 0x10], ebx
je 0x10026c1e
push edi
push dword [ebp + 0x10]
call fcn.101319ca
shr eax, 2
imul eax, eax, 3
add eax, 0x10
push eax
mov dword [ebp + 8], eax
call fcn.101317de
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0x10]
call fcn.10026568
mov dword [ebp + 0x10], eax
cmp eax, ebx
jne 0x10026c11
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x10026bbf
push 0xe00b100f
push 0x1018af0c
push 0x1018af8c
mov eax, 0x1018a974
call fcn.10004ead
mov dword [ebp + 0x10], eax
jmp 0x10026c11
push esi
mov dword [ebp - 4], ebx
xor esi, esi
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [ebp - 4]
cmp eax, ebx
je 0x10026beb
cmp esi, dword [ebp + 8]
jb 0x10026bc5
jmp 0x10026c07
push 0xe00b1012
push 0x1018af0c
push 0x1018af8c
mov eax, 0x1018a940
call fcn.10004ead
mov dword [ebp + 0x10], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push edi
call fcn.101317e9
mov eax, dword [ebp + 0x10]
pop ecx
pop edi
jmp 0x10026c43
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x10026c34
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
pop ebx
leave
ret 0xc
Function at 0x10027007
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
sub esp, 0x104
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x10027236
cmp dword [eax + 4], edi
je 0x10027236
test byte [eax + 0x1c], 0x40
je 0x10027236
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x1002718e
cmp dword [ebp + 0x10], edi
je 0x1002718e
push 0x24
push esi
push str.HKEY_CLASSES_ROOT
xor ebx, ebx
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x10027079
push str.HKEY_CLASSES_ROOT_
mov ebx, closesocket
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0xa
push esi
push str.HKCR
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x100270a0
push str.HKCR_
mov ebx, closesocket
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0x24
push esi
push str.HKEY_CURRENT_USER
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x100270c7
push str.HKEY_CURRENT_USER_
mov ebx, reloc.WS2_32.dll_accept
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0xa
push esi
push str.HKCU
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x100270ee
push str.HKCU_
mov ebx, reloc.WS2_32.dll_accept
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0x26
push esi
push str.HKEY_LOCAL_MACHINE
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x10027115
push str.HKEY_LOCAL_MACHINE_
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0xa
push esi
push str.HKLM
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x1002713c
push str.HKLM_
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0x16
push esi
push str.HKEY_USERS
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x10027163
push str.HKEY_USERS_
mov ebx, reloc.WS2_32.dll_closesocket
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0x28
push esi
push str.HKEY_CURRENT_CONFIG
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x1002718a
push str.HKEY_CURRENT_CONFIG_
mov ebx, reloc.WS2_32.dll_getpeername
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
test ebx, ebx
jne 0x1002719d
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x10027240
lea eax, [ebp + 8]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp + 8], 0
jne 0x100271be
push 0xe00b1016
mov eax, 0x1018a8fc
jmp 0x10027240
cmp word [ebp + 0x14], 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x10027210
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
call fcn.1000c50e
mov edi, dword [ebp - 0x104]
push edi
call fcn.101319ca
pop ecx
add eax, eax
push eax
push edi
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x100]
cmp dword [ebp - 0x104], eax
je 0x10027210
push dword [ebp - 0x104]
call fcn.10133c16
pop ecx
cmp word [ebp + 0x14], 3
jne 0x10027229
push 4
lea eax, [ebp + 0x1c]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1002724f
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x10027256
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x108]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x1002741a
cmp dword [eax + 4], edi
je 0x1002741a
test byte [eax + 0x1c], 0x80
je 0x1002741a
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x100273d7
cmp dword [ebp + 0x10], edi
je 0x100273d7
push 0x24
push esi
push str.HKEY_CLASSES_ROOT
xor ebx, ebx
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x100272c2
push str.HKEY_CLASSES_ROOT_
mov ebx, closesocket
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0xa
push esi
push str.HKCR
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x100272e9
push str.HKCR_
mov ebx, closesocket
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0x24
push esi
push str.HKEY_CURRENT_USER
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x10027310
push str.HKEY_CURRENT_USER_
mov ebx, reloc.WS2_32.dll_accept
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0xa
push esi
push str.HKCU
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x10027337
push str.HKCU_
mov ebx, reloc.WS2_32.dll_accept
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0x26
push esi
push str.HKEY_LOCAL_MACHINE
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x1002735e
push str.HKEY_LOCAL_MACHINE_
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0xa
push esi
push str.HKLM
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x10027385
push str.HKLM_
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0x16
push esi
push str.HKEY_USERS
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x100273ac
push str.HKEY_USERS_
mov ebx, reloc.WS2_32.dll_closesocket
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
push 0x28
push esi
push str.HKEY_CURRENT_CONFIG
call fcn.10132596
add esp, 0xc
test eax, eax
jne 0x100273d3
push str.HKEY_CURRENT_CONFIG_
mov ebx, reloc.WS2_32.dll_getpeername
call fcn.101319ca
pop ecx
lea edi, [esi + eax*2]
test ebx, ebx
jne 0x100273e3
push 0xe00b1001
mov eax, 0x1018aa68
jmp 0x10027424
lea eax, [ebp + 8]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp + 8], 0
jne 0x10027401
push 0xe00b1016
mov eax, 0x1018a8fc
jmp 0x10027424
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10027433
push 0xe00b101b
mov eax, 0x1018a898
push 0x1018af0c
push 0x1018af8c
call fcn.10004ead
pop edi
pop esi
pop ebx
pop ebp
ret 0xc