joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4363f0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43642f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43642f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43642f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43642f
cmp dword [ecx + 0x74], 0xe
jbe 0x43642f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x437b00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e65d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45c040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45c098]
cmp eax, 0xffffffff
jne 0x437b34
xor ebx, ebx
jmp 0x437b3d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x437c1d
nop
cmp dword [ebx + 0x18], 0
jne 0x437b65
cmp dword [ebx + 0xc], 0
je 0x437bf8
mov esi, dword [ebx + 0xc]
jmp 0x437b70
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x437bb2
nop dword [eax]
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x437b9b
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x437b70
cmp dword [ebx + 0x18], 0
je 0x437b56
mov eax, dword [ebx + 0x14]
mov esi, dword [eax]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x437bd5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x437bd5
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea ecx, [ebx + 0x14]
call fcn.00436ca0
push 0x20
push eax
call fcn.00435beb
add esp, 8
mov byte [ebp - 4], 0
cmp dword [ebx + 0x18], 0
jne 0x437bb8
jmp 0x437b50
push 0x437250
push 0x45eb60
call fcn.00437030
mov eax, dword [0x45c098]
add esp, 8
cmp eax, 0xffffffff
je 0x437c1d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 2
test ebx, ebx
je 0x437c4a
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x437c4a
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x437c60
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x437cc0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x437c8a
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x437ca8
cmp eax, 0xffffffff
je 0x437ca8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x10f24
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and 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 4

Function at 0x132da
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
je 0x133d6
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x133d6
cmp dword [0x3a7d0], 1
jne 0x13305
call fcn.00013286
mov eax, dword [ebp + 8]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x133b9
mov edx, edi
shr edx, 3
push ebx
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x425d0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x425d0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x425d0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x425d0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x425d0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x425d0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x425d0]
inc esi
movzx ebx, byte [esi]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x425d0]
inc esi
sub edi, 8
dec edx
jne 0x1331e
pop ebx
test edi, edi
je 0x133d2
movzx edx, byte [esi]
xor edx, eax
and edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x425d0]
inc esi
dec edi
jne 0x133bd
not eax
jmp 0x133d8
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1962e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x14
push 0x39650
call fcn.00032db0
xor edx, edx
mov ecx, dword [ebp + 8]
cmp ecx, edx
je 0x196b7
mov dword [ebp - 4], edx
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov esi, dword [eax + 0x78]
add esi, ecx
mov edi, dword [esi + 0x1c]
add edi, ecx
mov ebx, dword [esi + 0x20]
add ebx, ecx
mov eax, dword [esi + 0x24]
add eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edx
cmp edx, dword [esi + 0x14]
jae 0x196b0
mov ecx, dword [ebx + edx*4]
add ecx, dword [ebp + 8]
movzx eax, word [eax + edx*2]
mov eax, dword [edi + eax*4]
add eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push 0x3529c
push ecx
call dword [0x35d20]
pop ecx
pop ecx
test eax, eax
jne 0x1969e
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp + 8]
mov dword [ebp - 4], 0xfffffffe
jmp 0x196b9
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
jmp 0x19665
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.00032df5
ret 4
Function at 0x1c130
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
push esi
test edx, edx
je 0x1c21f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1c21f
mov eax, dword [ebp + 8]
push edi
not eax
mov ecx, 0xff
cmp esi, 8
jb 0x1c201
mov edi, esi
shr edi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x3dfd8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x3dfd8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x3dfd8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x3dfd8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x3dfd8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x3dfd8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x3dfd8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x3dfd8]
inc edx
sub esi, 8
dec edi
jne 0x1c166
pop ebx
test esi, esi
je 0x1c21a
movzx edi, byte [edx]
xor edi, eax
and edi, ecx
shr eax, 8
xor eax, dword [edi*4 + 0x3dfd8]
inc edx
dec esi
jne 0x1c205
not eax
pop edi
jmp 0x1c221
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x1da40
Capabilities:
Parse pe header

Disassembly:
push 0x3c
push 0x39758
call fcn.00033328
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x4c], ecx
xor ecx, ecx
mov dword [eax], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
lea ebx, [esi + 0x3c]
mov edi, dword [0x35df0]
cmp esi, ecx
je 0x1dc3a
push esi
call edi
test al, al
je 0x1dc3a
push ebx
call edi
test al, al
je 0x1dc3a
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1dc3a
mov ebx, dword [ebx]
add ebx, esi
je 0x1dc1c
push ebx
call edi
test al, al
je 0x1dc1c
lea eax, [ebx + 0xf8]
push eax
call edi
test al, al
je 0x1dc1c
cmp dword [ebx], 0x4550
jne 0x1dc1c
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x38], eax
mov esi, dword [esi + 0x28]
cmp esi, eax
jae 0x1dae9
push 0
push 0
push esi
push 0x1900135
push eax
jmp 0x1dc72
movzx eax, word [ebx + 0x14]
lea eax, [eax + ebx + 0x18]
mov dword [ebp - 0x34], eax
and dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x2c]
cmp cx, word [ebx + 6]
jae 0x1dc77
movzx ecx, cx
mov dword [ebp - 0x40], ecx
imul ecx, ecx, 0x28
lea esi, [ecx + eax]
lea ecx, [esi + 0x28]
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x1dbfa
push eax
call edi
test al, al
je 0x1dbfa
push dword [ebp - 0x3c]
call edi
test al, al
je 0x1dbfa
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
cmp byte [esi], 0x2e
jne 0x1dbef
cmp byte [esi + 1], 0x74
jne 0x1dbef
cmp byte [esi + 2], 0x65
jne 0x1dbef
cmp byte [esi + 3], 0x78
jne 0x1dbef
cmp al, 0x74
jne 0x1dbef
cmp byte [esi + 5], 0
jne 0x1dbef
cmp byte [esi + 6], 0
jne 0x1dbef
cmp byte [esi + 7], 0
jne 0x1dbef
mov ecx, dword [esi + 0xc]
mov eax, dword [ebp - 0x38]
cmp eax, ecx
jbe 0x1dbdd
mov edx, dword [esi + 0x10]
add edx, ecx
cmp eax, edx
jae 0x1dbdd
mov dword [ebp - 0x30], 1
mov edx, dword [esi + 0x14]
sub edx, ecx
add edx, eax
mov ecx, dword [ebp - 0x44]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x1dc77
add eax, 0x400000
mov ecx, dword [ecx]
cmp eax, ecx
je 0x1dc77
push 0
push eax
push ecx
push 0x1900178
push dword [ebp - 0x40]
call fcn.0001c84e
and dword [ebp - 0x30], 0
jmp 0x1dc77
push dword [esi + 0x10]
push ecx
push eax
push 0x1900180
push dword [ebp - 0x40]
call fcn.0001c84e
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
jmp 0x1daf8
push 0
push dword [ebp - 0x3c]
call edi
movzx eax, al
push eax
push dword [ebp - 0x34]
call edi
movzx eax, al
push eax
push 0x190014b
movzx eax, word [ebp - 0x2c]
jmp 0x1dae3
push 0
lea eax, [ebx + 0xf8]
push eax
call edi
movzx eax, al
push eax
push ebx
call edi
movzx eax, al
push eax
push 0x190012a
push ebx
jmp 0x1dc72
push 0
push ebx
call edi
movzx eax, al
push eax
push esi
call edi
movzx eax, al
push eax
push 0x190011a
push esi
jmp 0x1dc72
call fcn.0001c84e
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
call fcn.00033370
ret 0xc
Function at 0x1e276
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x3f93c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.00032d44
add esp, 0xc
mov eax, 0x42fb0
push 0
push 0x42fb8
mov dword [0x42fb4], eax
mov dword [0x42fb0], eax
call dword [0x35d74]
xor esi, esi
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00032d44
push 0x3f
push dword [esi + 0x3e454]
lea eax, [ebp - 0x84]
push eax
call dword [0x35cf8]
lea eax, [ebp - 0x84]
add esp, 0x18
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1e2f9
sub eax, ecx
sar eax, 1
push 0
pop ecx
je 0x1e31a
xor word [ebp + ecx*2 - 0x84], 0x7b
inc ecx
cmp ecx, eax
jb 0x1e30c
lea eax, [ebp - 0x84]
push eax
call fcn.0001e0bc
add esi, 4
cmp esi, 0x24
jb 0x1e2c5
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00032cd3
leave
ret

Function at 0x25272
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push 0x18
push 0x39c18
call fcn.00032db0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
cmp ebx, eax
je 0x2536a
push ebx
mov edi, dword [0x35df0]
call edi
test al, al
je 0x2536a
lea esi, [ebx + 0x3c]
push esi
call edi
test al, al
je 0x2536a
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x2536a
mov esi, dword [esi]
add esi, ebx
je 0x2536a
push esi
call edi
test al, al
je 0x2536a
cmp dword [esi], 0x4550
jne 0x2536a
movzx eax, word [esi + 0x14]
lea edi, [eax + esi + 0x18]
mov dword [ebp - 0x28], edi
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x1c], eax
movzx eax, word [esi + 6]
mov dword [ebp + 8], eax
mov ebx, dword [esi + 0x3c]
dec ebx
mov esi, dword [esi + 0x38]
dec esi
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x20], eax
jae 0x2533c
test edi, edi
je 0x2536a
push edi
call dword [0x35df0]
test al, al
je 0x2536a
mov eax, dword [edi + 0xc]
test esi, eax
jne 0x2536a
test dword [edi + 0x10], ebx
jne 0x2536a
cmp dword [ebp - 0x1c], eax
jb 0x25358
mov ecx, dword [edi + 8]
add ecx, eax
cmp dword [ebp - 0x1c], ecx
jae 0x25358
mov ecx, dword [edi + 0x14]
sub ecx, eax
add dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x2534f
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov dword [ebp - 0x24], 1
jmp 0x25371
inc dword [ebp - 0x20]
add edi, 0x28
mov dword [ebp - 0x28], edi
jmp 0x25302
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x24]
call fcn.00032df5
ret 8
Function at 0x18040d9
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [0x18122f0], edi
mov dword [ebp - 8], ebx
jbe 0x180411a
xor esi, esi
push dword [ebp + 8]
mov eax, dword [0x18179a4]
push dword [esi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1804124
inc ebx
add esi, 0x14
cmp ebx, dword [0x18122f0]
mov dword [ebp - 8], ebx
jb 0x18040f4
mov eax, 0x490
jmp 0x18042c9
cmp dword [0x18122ec], edi
jbe 0x1804151
xor esi, esi
mov eax, dword [0x18179a8]
cmp dword [esi + eax + 0x30], ebx
jne 0x1804143
push edi
call fcn.01804005
dec edi
sub esi, 0x48
inc edi
add esi, 0x48
cmp edi, dword [0x18122ec]
jb 0x180412e
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x18041b8
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push 0x180138c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x180419b
mov ecx, dword [0x18179a4]
lea eax, [ebx + ebx*4]
push dword [ecx + eax*4 + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x18041b8
push dword [ebp + 8]
push 0x3e9
push dword [0x1813978]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
mov eax, esi
jmp 0x18042c9
mov eax, dword [0x18179a4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea ebx, [ebx + ebx*4]
shl ebx, 2
push dword [ebx + eax]
push edi
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
mov eax, dword [0x18179a4]
and dword [ebx + eax], 0
mov eax, dword [0x18179a4]
push dword [ebx + eax + 4]
push 0
call esi
push eax
call edi
mov eax, dword [0x18179a4]
and dword [ebx + eax + 4], 0
mov eax, dword [0x18122f0]
lea eax, [eax + eax*4 - 5]
shl eax, 2
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp + 8], eax
jne 0x1804222
push 8
pop eax
jmp 0x18042c9
mov esi, dword [0x18179a4]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x18122f0]
mov esi, dword [0x18179a4]
sub ecx, edx
dec ecx
lea ecx, [ecx + ecx*4]
shl ecx, 2
lea edi, [ebx + eax]
mov eax, ecx
shr ecx, 2
lea esi, [ebx + esi + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
dec dword [0x18122f0]
xor edi, edi
xor esi, esi
cmp dword [0x18122ec], edi
jbe 0x1804296
xor ecx, ecx
mov eax, dword [0x18179a8]
lea eax, [ecx + eax + 0x30]
cmp dword [eax], edx
jbe 0x180428a
dec dword [eax]
inc esi
add ecx, 0x48
cmp esi, dword [0x18122ec]
jb 0x180427b
mov eax, dword [0x18179a4]
add ebx, eax
cmp dword [ebx + 8], edi
je 0x18042ab
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x18179a4]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 8]
mov dword [0x18179a4], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x180470b
Capabilities:
Persist via netsh registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x18122c8]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
cmp dword [0x18122f0], ebx
mov dword [ebp - 0xa8], eax
jbe 0x1804762
xor esi, esi
push dword [ebp - 0xa8]
mov eax, dword [0x18179a4]
push dword [esi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1804857
inc edi
add esi, 0x14
cmp edi, dword [0x18122f0]
jb 0x1804738
push ebx
lea eax, [ebp - 0xac]
push eax
push ebx
push 0xf003f
push ebx
push 0x1801424
push ebx
push 0x180138c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x180483c
push dword [ebp - 0xa8]
call dword [sym.imp.msvcrt.dll__wcsdup]
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x18047b8
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 8
pop eax
jmp 0x1804872
mov esi, dword [sym.imp.msvcrt.dll_wcsrchr]
push 0x2f
push edi
mov ebx, edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x18047d6
push 0x5c
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x18047d9
lea ebx, [eax + 2]
lea eax, [ebp - 0xa4]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0xa4]
push 0x2e
push eax
call esi
add esp, 0x10
test eax, eax
je 0x18047fd
and word [eax], 0
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xac]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.msvcrt.dll_free]
test esi, esi
pop ecx
je 0x1804857
push dword [ebp - 0xa8]
push 0x3e8
push dword [0x1813978]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
jmp 0x1804870
push dword [ebp - 0xa8]
lea eax, [ebp - 0xa4]
push eax
call fcn.018045a3
mov esi, eax
call fcn.01803092
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.018086c6
leave
ret 4
Function at 0x1804886
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x20019
push ebx
push 0x180138c
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jne 0x1804995
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1804995
cmp dword [ebp - 0x10], ebx
je 0x1804995
mov eax, dword [ebp - 0x1c]
push edi
lea eax, [eax + eax + 2]
push eax
push 8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x180491f
push 0x68
push dword [0x1813978]
call sym.NETSH.EXE_PrintMessageFromModule
pop ecx
pop ecx
jmp 0x1804994
mov eax, dword [ebp - 0x18]
inc eax
push eax
push 8
call esi
push eax
call edi
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x14], edi
jne 0x1804943
push dword [ebp - 4]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180490e
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
jbe 0x1804994
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
je 0x1804980
cmp eax, 0x103
je 0x1804994
jmp 0x1804989
push edi
push dword [ebp - 4]
call fcn.018045a3
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jb 0x180494b
pop edi
cmp dword [ebp - 8], ebx
je 0x18049a3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x18049b5
push dword [ebp - 4]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x14], ebx
je 0x18049c7
push dword [ebp - 0x14]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.01803092
pop esi
pop ebx
leave
ret
Function at 0x1805f6a
Capabilities:
Connect network resource
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x18122c8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x210], eax
mov eax, dword [0x18122f4]
xor esi, esi
cmp eax, esi
push edi
mov edi, dword [ebp + 8]
je 0x1805fb1
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.01805f20
cmp edi, esi
je 0x1805fee
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [0x18122f4], eax
jne 0x1805fe2
push 8
pop eax
jmp 0x180612d
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x1805ff4
mov dword [0x18122f4], esi
push 0x1801380
call fcn.01804ce7
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push dword [0x18122f4]
call fcn.01808634
mov edi, eax
cmp edi, esi
jge 0x1806065
mov eax, dword [0x18122f4]
cmp eax, esi
jne 0x1806048
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x20c]
push eax
push 0xb4
push dword [0x1813978]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
push edi
push esi
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
mov eax, dword [0x18122f4]
cmp eax, esi
je 0x180612b
cmp dword [ebp - 0x214], esi
jne 0x1806086
cmp dword [ebp - 0x210], esi
je 0x180612b
push eax
lea eax, [ebp - 0x20c]
push 0x1801578
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 8
pop ecx
xor eax, eax
push 0x808
push dword [ebp - 0x214]
lea edi, [ebp - 0x238]
push dword [ebp - 0x210]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x21c], esi
call sub.MPR.dll_WNetAddConnection2W
cmp eax, esi
jne 0x1806122
push 0x208
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [0x18122f8], eax
jne 0x180610a
push 0xe
push esi
call sym.NETSH.EXE_PrintMessageFromModule
jmp 0x1806129
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
jmp 0x180612b
push eax
push esi
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.018086c6
leave
ret 0xc