joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e17f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.advapi32.dll
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSecurityInfo
push esi
mov dword [ebp - 0x20], esi
call edi
push str.SetSecurityInfo
push esi
mov dword [ebp - 0xc], eax
call edi
push 0x476738
push esi
mov dword [ebp - 0x14], eax
call edi
push str.AllocateAndInitializeSid
push esi
mov dword [ebp - 0x1c], eax
call edi
mov edi, eax
cmp dword [ebp - 0xc], ebx
je 0x46e2f7
cmp dword [ebp - 0x14], ebx
je 0x46e2f7
cmp dword [ebp - 0x1c], ebx
je 0x46e2f7
cmp edi, ebx
je 0x46e2f7
push ebx
push 0x2000000
push 3
push ebx
push ebx
push 0x60000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x46e2f7
lea ecx, [ebp - 0x18]
push ecx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push 4
xor esi, esi
inc esi
push esi
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call dword [ebp - 0xc]
cmp dword [ebp - 8], ebx
jne 0x46e248
cmp dword [ebp - 0x10], ebx
jne 0x46e2d8
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x24], 0x500
call edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x48]
push eax
push esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], 0x10000000
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
cmp dword [ebp - 0xc], ebx
je 0x46e2c1
push ebx
push dword [ebp - 0xc]
push ebx
push ebx
push 4
push esi
push dword [ebp - 0x1c]
call dword [ebp - 0x14]
cmp dword [ebp - 8], ebx
je 0x46e2cf
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x46e301
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46e3ed
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46e3f2
sub eax, edx
je 0x46e438
mov cl, byte [esi + eax - 1]
cmp cl, 0x2e
je 0x46e41a
cmp cl, 0x78
je 0x46e41a
cmp cl, 0x58
je 0x46e41a
cmp cl, 0x30
jl 0x46e41d
cmp cl, 0x39
jg 0x46e41d
dec eax
jne 0x46e3fd
test eax, eax
je 0x46e438
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x46e434
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret
or eax, 0xffffffff
ret
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
ret

Function at 0x46e440
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
cmp dword [edi + 4], 0
push esi
jne 0x46e504
lea eax, [esp + 0x18]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
lea esi, [edi + 8]
cmp byte [esi], 0
jne 0x46e489
push dword [ebp + 8]
push pe_nt_image_headers32
push esi
call fcn.00438084
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [edi + 0x108], eax
mov al, byte [edi + 0x10c]
xor ecx, ecx
test al, al
sete cl
dec ecx
and ecx, 0xb
add ecx, 6
push ecx
xor ecx, ecx
test al, al
setne cl
inc ecx
push ecx
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [edi + 4], eax
test eax, eax
jne 0x46e4ba
xor al, al
jmp 0x46e506
push 2
pop eax
mov word [esp + 8], ax
call fcn.0046e3ed
mov dword [esp + 0xc], eax
movzx eax, word [edi + 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0xa], ax
push 0x10
lea eax, [esp + 0xc]
push eax
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x46e504
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_closesocket]
and dword [edi + 4], 0
mov byte [esi], 0
jmp 0x46e4b6
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x46e63c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
lea eax, [esi + 8]
push pe_nt_image_headers32
lea edi, [esi + 0x120]
push eax
mov byte [eax], bl
mov dword [esi + 0x108], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov byte [esi + 0x10c], 1
mov byte [esi + 0x124], 1
mov dword [edi], ebx
mov dword [esi + 0x11c], ebx
call fcn.00438084
mov eax, dword [ebp + 0xc]
push 8
push 8
mov dword [esi + 0x108], eax
call fcn.00438195
add esp, 0x14
push eax
mov dword [esi + 0x114], eax
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push ebx
push esi
push 0x46e5ff
push ebx
push ebx
mov dword [esi + 0x11c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x118], eax
mov eax, esi
pop ebx
pop ebp
ret 8
Function at 0x46f0e7
Capabilities:
Print debug messages

Disassembly:
push edi
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
push dword [esi]
call fcn.0046ed0c
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call edi
push str._DONE__r_n
call edi
push dword [esi + 4]
call fcn.004378da
pop ecx
push dword [esi + 8]
call fcn.004378da
pop ecx
push dword [esi + 0xc]
call fcn.004378da
pop ecx
push esi
call fcn.004378da
pop ecx
pop edi
ret

Function at 0x46f1a6
Capabilities:
Create http request
Create thread

Disassembly:
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push str.VIP_TRACKING
mov dword [esi + 8], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
push edi
push edi
push edi
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
lea eax, [esi + 4]
push eax
push edi
push ebx
push 0x46f12e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov eax, esi
pop ebx
ret
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4016d4
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4011d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4011e8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x40128c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x401287
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401680
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x401246
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401246
xor eax, eax
jmp 0x40128c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x4011df
mov esp, ebp
pop ebp
ret
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x402779
Capabilities:
Encode data using base64

Disassembly:
push ebp
cmp ebx, 0x10000
jae 0x402790
push 5
push 0xffffc060
push 0xfffffc60
jmp 0x40279c
push 8
push 0xffff8300
push 0xfffffb00
push 0xffffffffffffffff
xor edx, edx
xor ecx, ecx
lodsb al, byte [esi]
xor al, bl
stosb byte es:[edi], al
dec ebx
jle 0x40280b
call fcn.00402811
jae 0x4027a2
xor ebp, ebp
call fcn.0040281d
sub ecx, 3
jae 0x4027c2
mov eax, dword [esp]
inc ecx
jmp 0x4027e4
jmp 0x4221e6
call fcn.00402811
adc ecx, ecx
call fcn.00402811
adc ecx, ecx
jne 0x4027fc
call fcn.0040281d
add ecx, 2
add ecx, ebp
sub ebx, ecx
jb 0x40280b
push esi
lea esi, [eax + edi]
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4027a7
pop eax
pop eax
pop eax
pop eax
pop ebp
ret
Function at 0x1003701
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [0x1038250]
cmp ebx, 0x1038250
je 0x1003733
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, ebx
mov eax, dword [esi + 8]
mov ebx, dword [ebx]
cmp eax, dword [ebp + 8]
je 0x1003738
cmp ebx, 0x1038250
jne 0x100371d
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
test al, 2
jne 0x100c469
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlDeleteCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
jmp 0x1003729
push dword [esi + 0x34]
and eax, 0xfffffffd
mov dword [esi + 0x28], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
jmp 0x100374d
Function at 0x1005199
Capabilities:
Create thread

Disassembly:
or dword [0x10382cc], 0x100
jmp 0x1005231
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [esi + 0x314]
push eax
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x104]
push eax
push dword [esi + 0x100]
push esi
call fcn.010054ed
xor ebx, ebx
cmp eax, ebx
jl 0x1005231
cmp byte [esi + 0xf5], bl
je 0x1004337
push 0x10384e4
push ebx
push ebx
push 0x1003083
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x1010201
call fcn.01001530
push ebx
push ebx
push dword [0x1038084]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
call fcn.01001510
push esi
mov esi, dword [sym.imp.ntdll.dll_NtClose]
call esi
push dword [0x1038084]
call esi
mov eax, dword [0x1038e64]
cmp eax, ebx
mov dword [0x1038084], ebx
jl 0x1005231
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
mov eax, 0xc0000017
jmp 0x1005231
Function at 0x1005995
Capabilities:
Access peb ldr_data
Get process heap flags
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov ebx, dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea edi, [ebx + 0xc]
push edi
push dword [0x1038030]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x100fe04
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push 2
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, eax
test edi, edi
jl 0x1005a13
mov eax, dword [esi + 8]
cmp ebx, eax
jb 0x1005a31
push eax
lea eax, [esi + 0xc]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
jne 0x100fe0e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
mov edi, 0xc0000023
jmp 0x1005a13
mov eax, 0xc0000017
jmp 0x1005a2a
mov ecx, dword [esi + 8]
mov dword [eax], ecx
jmp 0x1005a13

Function at 0x1005a3d
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [ebp + 8]
call esi
lea eax, [eax + eax + 2]
mov ebx, 0x7ffe0030
push ebx
movzx edi, ax
call esi
add eax, eax
cmp dword [ebp + 0xc], 0
movzx esi, ax
je 0x1005b1e
push 1
push esi
push ebx
push dword [ebp + 8]
call fcn.01003a83
test eax, eax
jne 0x1005b1e
movzx eax, si
push 0x18
sub edi, esi
add dword [ebp + 8], eax
pop edx
mov ecx, dword [0x1038030]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx ebx, dx
movzx edx, di
add edx, ebx
push edx
add ecx, 0x100000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x1005afc
push ebx
push 0x1005b04
push esi
call dword [sym.imp.msvcrt.dll_memmove]
xor eax, eax
add esp, 0xc
add esi, ebx
cmp ax, di
jae 0x1005af9
dec di
shr di, 1
inc di
movzx eax, di
cmp dword [ebp + 0x10], 0
jne 0x1005b25
mov ecx, dword [ebp + 8]
mov cx, word [ecx]
add dword [ebp + 8], 2
mov word [esi], cx
inc esi
inc esi
dec eax
jne 0x1005ae1
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
xor edx, edx
jmp 0x1005a8d
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5c
jne 0x1005ae7
push 0x5f
pop ecx
jmp 0x1005aed
Function at 0x1005c9e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea edi, [ebx + eax + 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [0x1038030]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x100fe18
lea eax, [ebp - 4]
push eax
push edi
push esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov dword [ebp + 0x10], eax
test eax, eax
jl 0x1005d59
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.msvcrt.dll_memmove]
cmp ebx, eax
jb 0x1005d78
mov ebx, dword [ebp + 0x14]
push eax
lea eax, [esi + 0x14]
push eax
push ebx
call edi
mov eax, dword [esi + 0x10]
shr eax, 1
add esp, 0xc
xor ecx, ecx
mov word [ebx + eax*2], cx
cmp dword [ebp + 0x10], 0
jl 0x1005d81
mov eax, dword [esi + 0xc]
cmp dword [ebp + 0x18], eax
jb 0x1005d81
mov ebx, dword [ebp + 0x1c]
push eax
mov eax, dword [esi + 8]
add eax, esi
push eax
push ebx
call edi
add esp, 0xc
cmp dword [esi + 4], 1
jne 0x1005d59
mov eax, dword [esi + 0xc]
lea ecx, [eax + 2]
cmp ecx, dword [ebp + 0x18]
ja 0x100fe22
mov eax, dword [esi + 0xc]
mov byte [ebx + eax], 0
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
mov byte [ebx + eax], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x18
mov dword [ebp + 0x10], 0xc0000023
jmp 0x1005d15
mov dword [ebp + 0x10], 0xc0000023
jmp 0x1005d59
mov eax, 0xc0000017
jmp 0x1005d71
add eax, 0xfffffffe
mov dword [esi + 0xc], eax
jmp 0x1005d48

Function at 0x10063b3
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.01006424
xor esi, esi
cmp eax, esi
jl 0x100641a
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push 0x1f0003
push 0x1038084
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ntdll.dll_NtCreateEvent]
cmp eax, esi
jl 0x100641a
push esi
push esi
push dword [ebp + 8]
push 0x10015ba
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x10101f7
push eax
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
pop esi
leave
ret 4
mov eax, 0xc0000017
jmp 0x100641a