joyce8/EMBER2024-capa huggingface dataset:
Function at 0x67ae1e60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x67b03bfd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x67b19c6c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], 0
mov esi, dword [edi + 0xc]
neg esi
sbb esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x38], 1
push 0x67b08f6c
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [esp + 0x38], 2
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.67ae1070
mov byte [esp + 0x38], 4
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
test esi, esi
je 0x67ae1f80
jmp 0x67ae1ef0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.67ae1250
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.67ae10e0
mov byte [esp + 0x38], 5
push 0x67b08f6c
mov ecx, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_1472]
test eax, eax
setne bl
mov byte [esp + 0x38], 4
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
test bl, bl
je 0x67ae1f75
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
call fcn.67ae10e0
mov byte [esp + 0x38], 6
mov ecx, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call sub.ImLookU.dll_Ordinal_994
mov ecx, eax
call sub.ImLookU.dll_Ordinal_1382_1
mov byte [esp + 0x38], 4
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp dword [esp + 0x10], 0
jne 0x67ae1ef0
mov byte [esp + 0x38], 1
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov dword [esp + 0x38], 0xffffffff
mov ecx, edi
call fcn.67ae1950
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x67ae54a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x67ae54ad
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x3c]
push ebx
push ebp
push edi
mov ebx, dword [eax + esi + 0x78]
xor edi, edi
add ebx, esi
mov ebp, dword [ebx + 0x20]
add ebp, esi
cmp dword [ebx + 0x18], edi
jbe 0x67ae54e1
mov eax, dword [ebp + edi*4]
push dword [esp + 0x18]
add eax, esi
push eax
call fcn.67ae553e
pop ecx
pop ecx
test al, al
jne 0x67ae54e8
inc edi
cmp edi, dword [ebx + 0x18]
jb 0x67ae54c5
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x67ae54e3

Function at 0x67ae54ff
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, dword [eax + 0xc]
add esi, 0xc

Function at 0x67ae7880
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc20]
test eax, eax
mov dword [esp + 4], 0
jne 0x67ae78a9
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc20], eax
jmp 0x67ae78b0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0xc20]
lea edx, [esp + 4]
push edx
push 0
push eax
push 0x67ae41f0
push 0
push 0
mov dword [eax + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc1c], eax
pop esi
pop ecx
ret 4
Function at 0x402635
Capabilities:
Terminate process

Disassembly:
jmp 0x43fdec
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x43fdfd
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00403ad0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4026d5
Capabilities:
Query environment variable

Disassembly:
jmp 0x44bc48
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44bc59
pop esi
ret
push ebx
push edi
push esi
call fcn.0044bb2f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402c16
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44bc81
push ebx
push esi
push edi
call fcn.00403990
add esp, 0xc
push 0
call fcn.00403fd0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x403a03
Capabilities:
Parse pe header

Disassembly:
jmp 0x4089e4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408a23
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408a23
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408a23
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408a23
cmp dword [ecx + 0x74], 0xe
jbe 0x408a23
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x449cde
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x478100]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x449d29
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044a15d
test al, al
jne 0x449d23
sub edx, 2
cmp edx, edi
jne 0x449d09
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x449d4b
lea eax, [edi + 2]
cmp edx, eax
je 0x449d4b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004498d7
add esp, 0x10
jmp 0x449e45
push esi
lea ecx, [ebp - 0x255]
call fcn.0044a15d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x449d8e
push dword [ebp - 0x25c]
jmp 0x449d3b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x449dcb
cmp word [ebp - 0x226], 0
je 0x449dec
cmp word [ebp - 0x226], ax
jne 0x449dcb
cmp word [ebp - 0x224], 0
je 0x449dec
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004498d7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x449e38
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x449da5
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x449e20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x449e45
push 0x4492bf
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403896
add esp, 0x10
jmp 0x449e15
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004022f2
leave
ret
Function at 0x45c610
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47a1b8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45c650
cmp byte [ebx], 0xa
jne 0x45c650
or byte [eax + edi + 0x28], 4
jmp 0x45c655
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x45c753
mov al, byte [edx]
cmp al, 0x1a
je 0x45c735
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x45c684
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x45c6a9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x45c6b3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x45c666
jmp 0x45c753
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45c730
cmp dword [ebp - 0xc], 0
je 0x45c730
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47a1b8]
test byte [eax + edi + 0x28], 0x48
je 0x45c70a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x45c6f5
mov byte [esi], dl
jmp 0x45c706
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47a1b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45c753
cmp byte [ebp - 1], 0xa
jne 0x45c719
cmp esi, ebx
jne 0x45c719
mov byte [esi], 0xa
jmp 0x45c752
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040153c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45c753
mov byte [esi], 0xd
jmp 0x45c752
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47a1b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45c74f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45c753
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45c7af
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47a1b8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45c7f2
cmp word [esi], dx
jne 0x45c7f2
or byte [edi + eax + 0x28], 4
jmp 0x45c7f7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x45c94a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x45c92a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x45c839
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45c86f
cmp eax, edx
jae 0x45c87b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x45c811
jmp 0x45c94a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45c926
cmp dword [ebp - 0x14], 0
je 0x45c926
mov eax, dword [ebx*4 + 0x47a1b8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x45c8fe
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x45c8c7
mov word [esi], cx
jmp 0x45c8fa
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47a1b8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47a1b8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47a1b8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x45c94a
pop ebx
cmp word [ebp - 4], bx
jne 0x45c90f
cmp esi, dword [ebp + 0xc]
jne 0x45c90f
mov word [esi], bx
jmp 0x45c947
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040153c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x45c94a
push 0xd
jmp 0x45c943
mov ecx, dword [ebx*4 + 0x47a1b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45c941
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45c94a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0xb973cd
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00b973cd
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x23b41f9f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..pdata
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x27de3cf7
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10001000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
push ebx
xor ebx, ebx
cmp eax, 0xffffffff
je 0x1000101c
cmp dword [0x10012484], 6
jb 0x10001025
test eax, eax
jne 0x10001025
push eax
call fcn.10009860
add esp, 4
cmp eax, 0xffffffff
je 0x100010c5
push esi
push edi
push eax
call fcn.1000d180
mov edi, dword [esp + 0x34]
mov esi, eax
add esp, 4
test esi, esi
je 0x10001059
push edi
push esi
call fcn.1000d230
add esp, 8
push esi
mov ebx, eax
call sub.NTDLL.dll_NtClose
test ebx, ebx
jne 0x100010bc
test edi, edi
je 0x100010bc
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0
push 0
push 1
push edi
mov dword [esp + 0x28], 0x690057
mov dword [esp + 0x2c], 0x53006e
mov dword [esp + 0x30], 0x610074
mov dword [esp + 0x34], 0x5c0030
mov dword [esp + 0x38], 0x650044
mov dword [esp + 0x3c], 0x610066
mov dword [esp + 0x40], 0x6c0075
mov dword [esp + 0x44], 0x74
call fcn.10006370
add esp, 0x1c
pop edi
pop esi
pop ebx
add esp, 0x20
ret
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
mov eax, ebx
pop ebx
add esp, 0x20
ret

Function at 0x100010d0
Capabilities:
Impersonate user

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
xor edi, edi
push edi
push 2
push ecx
push edx
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
mov esi, eax
test esi, esi
jne 0x10001109
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x52f
jne 0x1000111c
mov edi, 1
test esi, esi
je 0x1000111c
mov ecx, dword [esp + 8]
push ecx
call sub.NTDLL.dll_NtClose
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x10002030
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [0x10012114]
sub esp, 0x210
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
push eax
push reloc.WS2_32.dll_closesocket
call esi
mov ecx, dword [0x10012054]
push ecx
push closesocket
call esi
cmp dword [0x10012148], 0
mov edi, dword [esp + 0x21c]
je 0x100020b3
mov edx, dword [0x10012054]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 0
call fcn.10007e50
mov eax, dword [0x10012148]
add esp, 4
test eax, eax
je 0x100020b3
cmp dword [0x100120c0], 0
jne 0x10002097
test edi, edi
je 0x100020b3
mov ecx, dword [0x10012040]
push 1
push str.Wpn_User_Service_6ac92
push str.Wpn_User_Service_6ac92
push ecx
push eax
call fcn.1000be30
add esp, 0x14
cmp dword [0x100120e8], 0
jne 0x100020c0
test edi, edi
je 0x100020c5
call fcn.10007f40
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0x800
push 8
call edi
push eax
call fcn.10007d60
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, eax
test esi, esi
je 0x10002130
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.NTDLL.dll_RtlRandom]
mov ecx, dword [0x10012120]
push ecx
push 0xa
push eax
push ecx
push str._c_ren___s.__.._lu.bak__ping_1.1.1.1__n__u__rmdir___s___q__s
push esi
call ebx
push 0
push 0
push 0
push esi
push str.cmd.exe
push 0
call fcn.100075a0
add esp, 0x30
push esi
push 0
call edi
push eax
call fcn.100049f0
push 0x4b
push str.GlobalRMSServerGlobal
lea eax, [esp + 0x18]
push str._s_c
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
pop ebx
test esi, esi
je 0x10002169
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call sub.NTDLL.dll_NtClose
pop edi
pop esi
add esp, 0x210
ret

Function at 0x100023e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
je 0x100023f9
mov ecx, dword [esp + 4]
mov edi, edi
xor byte [eax + ecx], 0xab
inc eax
cmp eax, edx
jb 0x100023f0
ret
Function at 0x10002480
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x21c
push esi
mov esi, dword [esp + 0x224]
test esi, esi
jne 0x100024ab
mov eax, dword [0x100121d8]
push str.URLN
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop esi
add esp, 0x21c
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x100121d8]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.URLN
push ecx
mov dword [esp + 0x2c], 0x20a
mov dword [esp + 0x28], 1
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100024fc
push esi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000251b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [0x100121d8]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.URLN
push ecx
call edi
mov al, byte [esp + 0x230]
test al, al
je 0x1000253d
cmp al, 0xfe
jbe 0x10002534
mov dword [esp + 0xc], 0xfe
jmp 0x10002545
movzx edx, al
mov dword [esp + 0xc], edx
jmp 0x10002545
mov dword [esp + 0xc], 0xc
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x100121d8]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.Next
mov esi, 4
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x10002586
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0xc]
je 0x1000259c
mov eax, dword [0x100121d8]
push esi
lea edx, [esp + 0x10]
push edx
push esi
push 0
push str.Next
push eax
call edi
pop edi
pop ebx
pop esi
add esp, 0x21c
ret

Function at 0x100025c0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x100
xor eax, eax
jmp 0x100025d0
mov byte [esp + eax], al
inc eax
cmp eax, 0x100
jl 0x100025d0
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
movzx ebx, byte [esp + ecx + 0x10]
movzx eax, word [ebp + edx*2]
add eax, ebx
add esi, eax
and esi, 0x800000ff
jns 0x10002614
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x10]
mov byte [esp + ecx + 0x10], dl
inc ecx
mov byte [esp + esi + 0x10], bl
cmp ecx, 0x100
jl 0x100025f1
mov edx, dword [esp + 0x120]
xor esi, esi
xor edi, edi
xor eax, eax
test edx, edx
jle 0x10002698
mov ebp, dword [esp + 0x11c]
inc esi
and esi, 0x800000ff
jns 0x10002652
dec esi
or esi, 0xffffff00
inc esi
movzx ecx, byte [esp + esi + 0x10]
add edi, ecx
and edi, 0x800000ff
jns 0x10002669
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + edi + 0x10], cl
movzx ebx, byte [esp + esi + 0x10]
add ebx, ecx
and ebx, 0x800000ff
jns 0x1000268c
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x10]
xor byte [eax + ebp], cl
inc eax
cmp eax, edx
jl 0x10002641
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x100
ret
Function at 0x100026b0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x100
xor eax, eax
jmp 0x100026c0
mov byte [esp + eax], al
inc eax
cmp eax, 0x100
jl 0x100026c0
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
movzx ebx, byte [esp + ecx + 0x10]
movzx eax, byte [edx + ebp]
add eax, ebx
add esi, eax
and esi, 0x800000ff
jns 0x10002703
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x10]
mov byte [esp + ecx + 0x10], dl
inc ecx
mov byte [esp + esi + 0x10], bl
cmp ecx, 0x100
jl 0x100026e1
mov edx, dword [esp + 0x120]
xor esi, esi
xor edi, edi
xor eax, eax
test edx, edx
jle 0x10002787
mov ebp, dword [esp + 0x11c]
inc esi
and esi, 0x800000ff
jns 0x10002741
dec esi
or esi, 0xffffff00
inc esi
movzx ecx, byte [esp + esi + 0x10]
add edi, ecx
and edi, 0x800000ff
jns 0x10002758
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + edi + 0x10], cl
movzx ebx, byte [esp + esi + 0x10]
add ebx, ecx
and ebx, 0x800000ff
jns 0x1000277b
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x10]
xor byte [eax + ebp], cl
inc eax
cmp eax, edx
jl 0x10002730
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x100
ret
Function at 0x10004300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x3c]
push ebp
push esi
mov esi, dword [eax + ebx + 0x78]
mov ebp, dword [esi + ebx + 0x24]
mov ecx, dword [esi + ebx + 0x20]
add esi, ebx
push edi
add ecx, ebx
xor edi, edi
add ebp, ebx
mov dword [esp + 0x10], ecx
cmp dword [esi + 0x18], edi
jbe 0x10004373
mov dword [esp + 0x18], 0x100125a0
movzx edx, word [ebp + edi*2]
mov eax, dword [esi + 0x10]
add eax, edx
cmp eax, 0x1e
je 0x1000434a
cmp eax, 0x20
je 0x1000434a
cmp eax, 0x22
jne 0x1000436d
mov ecx, dword [ecx + edi*4]
mov edx, dword [0x1001259c]
add ecx, ebx
push ecx
push edx
call fcn.1000d390
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
add ecx, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
inc edi
cmp edi, dword [esi + 0x18]
jb 0x10004331
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100045b0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor ebp, ebp
push 0xf003f
push ebp
push ebp
mov dword [esp + 0x18], ebp
call esi
mov ebx, eax
test ebx, ebx
jne 0x100045e1
push 1
push eax
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x10004677
mov eax, dword [esp + 0x30]
push edi
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x1000466f
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x18], 1
je 0x10004648
lea edx, [esp + 0x14]
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10004664
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x18], 1
je 0x10004648
push 0x3e8
call ebp
inc esi
cmp esi, 0x3c
jl 0x10004626
jmp 0x10004664
cmp dword [esp + 0x38], 0
jne 0x10004659
mov dword [esp + 0x10], 1
jmp 0x10004664
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [esp + 0x10], eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [esp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret