joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40100f
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
jmp 0x402850
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
mov dword [0x412be8], 0
je 0x4028d1
push ebx
push 0x1e4
call fcn.00405027
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 8], ebx
je 0x4028c2
push edi
xor eax, eax
mov ecx, 0x79
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, str._UNKNOWN_
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402891
push ebp
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4029d2
cmp word [esp + 0x1c], 0
push esi
je 0x4028db
push str.Cant_parse__s_as_an_IP_address
call fcn.0040105f
push 0x1e4
push str.Hmalloc_
call fcn.0040105f
push str.gethostpoop_fuxored
call fcn.0040105f
call sub.WSOCK32.dll_gethostbyname
mov ebp, eax
test ebp, ebp
jne 0x4028f7
call sub.WSOCK32.dll_WSAGetLastError
push eax
push esi
push str._s:_forward_host_lookup_failed:_h_errno__d
call fcn.0040105f
mov eax, dword [ebp]
push 0x100
push eax
push ebx
call fcn.00405370
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add esp, 0xc
test ecx, ecx
je 0x402956
xor esi, esi
lea edi, [ebx + 0x100]
add ebx, 0x1c0
cmp esi, 0x20
jge 0x402952
mov ecx, dword [esi + eax]
mov eax, dword [ecx]
push 0x18
push eax
mov dword [ebx], eax
call sub.WSOCK32.dll_inet_ntoa
push eax
push edi
call fcn.00405370
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + eax + 4]
add esi, 4
add esp, 0xc
add edi, 0x18
add ebx, 4
test ecx, ecx
jne 0x402920
mov ebx, dword [esp + 0x10]
cmp word [0x412bbc], 0
je 0x402a84
mov eax, dword [ebx + 0x1c0]
lea esi, [ebx + 0x1c0]
xor ebp, ebp
test eax, eax
je 0x402a84
lea edi, [ebx + 0x100]
cmp ebp, 8
jge 0x402a84
push 2
push 4
push esi
call sub.WSOCK32.dll_gethostbyaddr
test eax, eax
je 0x4029a8
cmp dword [eax], 0
je 0x4029a8
push eax
push ebx
call fcn.00401028
add esp, 8
jmp 0x4029bc
call sub.WSOCK32.dll_WSAGetLastError
push eax
push edi
push 0x40f754
call fcn.0040107d
add esp, 0xc
mov eax, dword [esi + 4]
add esi, 4
inc ebp
add edi, 0x18
test eax, eax
jne 0x402980
pop ebp
pop edi
mov eax, ebx
pop ebx
pop esi
pop ecx
ret
mov dword [ebx + 0x1c0], eax
mov edx, dword [esp + 0x18]
push 0xc0
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebx + 0x100]
push eax
call fcn.00405370
add esp, 0xc
cmp word [esp + 0x1c], 0
jne 0x402a84
cmp word [0x412bbc], 0
je 0x402a84
push 2
push 4
lea ecx, [esp + 0x20]
push ecx
call sub.WSOCK32.dll_gethostbyaddr
test eax, eax
jne 0x402a3b
call sub.WSOCK32.dll_WSAGetLastError
push eax
push esi
push str._s:
call fcn.0040107d
add esp, 0xc
pop ebp
pop edi
mov eax, ebx
pop ebx
pop esi
pop ecx
ret
mov edx, dword [eax]
push 0xfe
push edx
push ebx
call fcn.00405370
add esp, 0xc
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x402a70
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x402a70
push eax
push ebx
call fcn.00401028
add esp, 8
pop ebp
pop edi
mov eax, ebx
pop ebx
pop esi
pop ecx
ret
call sub.WSOCK32.dll_WSAGetLastError
push eax
push ebx
push 0x40f6f4
call fcn.0040107d
add esp, 0xc
pop ebp
pop edi
mov eax, ebx
pop ebx
pop esi
pop ecx
ret
Function at 0x401023
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
jmp 0x401f80
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.00401de0
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor ebx, ebx
lea ecx, [esp + 0xc]
push ecx
push ebx
mov esi, eax
mov eax, dword [esp + 0x34]
push esi
push 0x401b90
push ebx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push edx
mov dword [esi + 0xc], eax
call edi
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x402000
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xa
push 0x412f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ac4c
add esp, 0xc
push eax
push 0x40f280
call fcn.0040107d
add esp, 0x1c
pop edi
mov dword [esi + 0xc], 0xffffffff
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
push ebx
push esi
push 0x401d00
push ebx
lea ecx, [esp + 0x24]
push ecx
call edi
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x40205f
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xa
push 0x412f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ac4c
add esp, 0xc
push eax
push 0x40f24c
call fcn.0040107d
mov edx, dword [esi + 0x14]
add esp, 0x1c
push ebx
push edx
mov dword [esi + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x10]
push 0xffffffffffffffff
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x14]
push ebx
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ecx
mov edx, dword [esi + 8]
push eax
push 3
mov dword [esp + 0x34], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebx
push ebx
je 0x4020e0
dec eax
je 0x4020ce
dec eax
je 0x4020b9
push ebx
push ebx
push ebx
push ebx
push 0xa
push 0x412f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ac4c
add esp, 0xc
push eax
push str.WaitForMultipleObjects
call fcn.0040107d
add esp, 0x1c
jmp 0x4020f6
mov ecx, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push ecx
call edi
mov edx, dword [esi + 0x10]
push ebx
push edx
call edi
jmp 0x4020f6
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push 1
push ecx
jmp 0x4020f0
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov edx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push edx
call ebx
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 4]
push ecx
call ebx
mov edx, dword [esi + 4]
push edx
call edi
mov eax, dword [esi + 0x10]
push eax
call edi
mov ecx, dword [esi + 0x14]
push ecx
call edi
mov edx, dword [esi + 8]
push edx
call edi
push esi
call fcn.00404ff8
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x40105f
Capabilities:
Terminate process

Disassembly:
jmp 0x402650
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
mov word [0x412bbc], 1
call fcn.0040107d
mov ecx, dword [0x411a4c]
add esp, 0x1c
push ecx
call sub.WSOCK32.dll_closesocket
push 1
call fcn.004052c8
add esp, 4
push 1
call fcn.004051d5
int3

Function at 0x401064
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x403490
mov eax, dword [0x412e98]
push esi
mov esi, dword [esp + 8]
push 0
push 1
push eax
push esi
call sub.WSOCK32.dll_send
cmp eax, 1
je 0x4034be
mov ecx, dword [0x412be8]
push ecx
push str.udptest
call fcn.0040107d
add esp, 8
mov eax, dword [0x412bc0]
test eax, eax
je 0x4034d2
push eax
call fcn.004052c8
add esp, 4
jmp 0x403516
mov edx, dword [esp + 0xc]
push 0
push 0
push 0x7a69
push edx
mov word [0x412bb8], 0
mov dword [0x412bc0], 5
call fcn.00401050
add esp, 0x10
test eax, eax
jle 0x403505
push eax
call sub.WSOCK32.dll_closesocket
inc word [0x412bb8]
mov dword [0x412bc0], 0
mov eax, dword [0x412e98]
push 0
push 1
push eax
push esi
mov dword [0x412be8], 0
call sub.WSOCK32.dll_send
cmp eax, 1
jne 0x403539
mov eax, esi
pop esi
ret
push esi
call sub.WSOCK32.dll_closesocket
or eax, 0xffffffff
pop esi
ret

Function at 0x401a80
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
xor esi, esi
push esi
push 1
push 2
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov word [esp + 0x58], si
mov dword [esp + 0x5c], esi
mov word [esp + 0x5a], si
mov dword [esp + 0x54], 0x101
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edi
call ebx
push eax
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [0x412bc8]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401b20
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
add esp, 0x54
ret
push esi
push esi
push esi
push esi
push esi
push 0xa
push 0x412f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ac4c
add esp, 0xc
push eax
push 0x40f160
call fcn.0040107d
add esp, 0x1c
mov eax, esi
pop esi
pop ebx
add esp, 0x54
ret
Function at 0x401de0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x14
push esi
push edi
xor edi, edi
push 0x18
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
call fcn.00405027
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x401e07
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
push ebx
push ebp
push edi
lea eax, [esp + 0x1c]
mov dword [esi], edi
mov dword [esi + 4], edi
push eax
lea ecx, [esp + 0x1c]
lea ebx, [esi + 4]
push ecx
mov dword [esp + 0x28], edi
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push esi
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x30], 1
call edi
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
jne 0x401e6b
push 0
push 0
push 0
push 0
push 0xa
push 0x412f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ac4c
add esp, 0xc
push eax
push 0x40f1ec
jmp 0x401ed5
lea edx, [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x401e9f
push eax
push eax
push eax
push eax
push eax
push 0xa
push 0x412f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ac4c
add esp, 0xc
push eax
push 0x40f1c4
jmp 0x401ed5
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
call fcn.00401a80
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebp
mov eax, dword [esi + 8]
test eax, eax
jne 0x401f18
push 0
push 0
push 0
push 0
push 0
push 0
push 0x40f1b4
call fcn.0040107d
mov eax, dword [esp + 0x2c]
add esp, 0x1c
test eax, eax
je 0x401ee8
push eax
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401ef3
push eax
call ebp
mov eax, dword [esi]
test eax, eax
je 0x401efc
push eax
call ebp
mov eax, dword [ebx]
test eax, eax
je 0x401f05
push eax
call ebp
push esi
call fcn.00404ff8
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
pop ebp
pop ebx
pop edi
mov dword [esi + 0xc], 0xffffffff
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x4084f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412018
cmp edx, dword [eax]
je 0x408517
add eax, 8
inc ecx
cmp eax, 0x4120a8
jl 0x408508
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412018]
jne 0x408645
mov eax, dword [0x412c58]
cmp eax, 1
je 0x40861f
test eax, eax
jne 0x408548
cmp dword [0x411d44], 1
je 0x40861f
cmp edx, 0xfc
je 0x408645
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40857f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a0e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405ac0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4085c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405ac0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x410300
push edi
call fcn.00405370
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a0e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a0f0
lea eax, [ebp - 0xa0]
push 0x4102e0
push eax
call fcn.0040a0f0
push dword [esi + 0x41201c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a0f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a505
add esp, 0x2c
pop edi
jmp 0x408645
lea eax, [ebp + 8]
lea esi, [esi + 0x41201c]
push 0
push eax
push dword [esi]
call fcn.00405ac0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0xf01bc0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf01bca
pushal
call 0xf01bd0
pop ebp
sub ebp, 0x10
sub ebp, 0xb01bc0
jmp 0xf01be6
mov eax, 0xb01bc0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ca
mov edx, 0x60247037
xor byte [eax], dl
inc eax
dec ecx
jne 0xf01bfd
jmp 0xf01c10
mov esp, 0xbbebcfa
aaa
aaa
aaa
mov dh, 0xf6
iretd
Function at 0x401037
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x812608]
mov dword [ebp - 0x28], eax
mov eax, dword [0x81260c]
xor ebx, ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call fcn.00401030
mov eax, dword [0x812610]
add dword [ebp - 0x14], 0x23f
mov dword [ebp - 0x30], eax
mov eax, dword [0x812614]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x1e031cc], 0xc
mov dword [ebp - 4], eax
jne 0x4010b9
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x43c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [0x1e031cc]
cmp eax, 0xfa9
jne 0x4010d5
mov dword [0x1e031c8], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ed
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x1e0311c], ebx
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1e031c4], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 8], eax
sub esi, dword [ebp - 8]
cmp dword [0x1e031cc], 0xc
mov dword [ebp - 4], eax
jne 0x40114e
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x61c88647
sub edi, eax
dec dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
jne 0x401089
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x40693e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8117a0]
jne 0x406948
repz ret
jmp fcn.0040b95e

Function at 0x40b1f2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406a3c
and dword [ebp - 4], 0
cmp dword [0x81b698], 0
mov ebx, eax
jne 0x40b2a3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b354
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b354
push eax
call fcn.004069ca
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x81b698], eax
call esi
push eax
call fcn.004069ca
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x81b69c], eax
call esi
push eax
call fcn.004069ca
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x81b6a0], eax
call esi
push eax
call fcn.004069ca
pop ecx
mov dword [0x81b6a8], eax
test eax, eax
je 0x40b2a3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004069ca
pop ecx
mov dword [0x81b6a4], eax
mov eax, dword [0x81b6a4]
cmp eax, ebx
je 0x40b2fb
cmp dword [0x81b6a8], ebx
je 0x40b2fb
push eax
call fcn.00406a45
push dword [0x81b6a8]
mov esi, eax
call fcn.00406a45
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b2fb
test edi, edi
je 0x40b2fb
call esi
test eax, eax
je 0x40b2f2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b2f2
test byte [ebp - 0xc], 1
jne 0x40b2fb
or dword [ebp + 0x10], 0x200000
jmp 0x40b334
mov eax, dword [0x81b69c]
cmp eax, ebx
je 0x40b334
push eax
call fcn.00406a45
pop ecx
test eax, eax
je 0x40b334
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b334
mov eax, dword [0x81b6a0]
cmp eax, ebx
je 0x40b334
push eax
call fcn.00406a45
pop ecx
test eax, eax
je 0x40b334
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x81b698]
call fcn.00406a45
pop ecx
test eax, eax
je 0x40b354
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b356
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x401443
pop dword [ebp - 0x50]
mov eax, 0x401443
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xd9f2050f
add dword [ebp - 0x60], 0x7460403c
mov dword [ebp - 0x5c], 0xd1aaa161
add dword [ebp - 0x5c], 0x6088aae4
mov dword [ebp - 0x58], 0xa62f2754
add dword [ebp - 0x58], 0xa61d1cda
mov dword [ebp - 0x54], 0x4a58cace
add dword [ebp - 0x54], 0xb5a73532
lea eax, [ebp - 0x60]
push eax
mov eax, 0x17d6cd65
add eax, 0xe869b39f
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xd7700be9
add dword [ebp - 0x60], 0x9d025d6d
mov dword [ebp - 0x5c], 0xf7ba61c3
sub dword [ebp - 0x5c], 0xb64e004e
mov dword [ebp - 0x58], 0xd4edb2ef
sub dword [ebp - 0x58], 0x717e4683
mov dword [ebp - 0x54], 0x832acd83
add dword [ebp - 0x54], 0x7cd5327d
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x53281aee
sub eax, 0x52e799ee
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3c0ba
push 0
call eax
mov ecx, 0x3f89622c
add ecx, 0xc076f4d9
xor esi, esi
add esi, eax
mov edx, 0x6364dc0
sub edx, 0x5ef69c0
add edx, dword [ebp - 0x50]
mov ebx, 0xa57562fa
sub ebx, 0x6660fc81
add dword [ebp - 0x30], 0xb9a8ac0d
mov edi, dword [edx]
xor dword [ebp - 8], ecx
add edi, ebx
sub dword [ebp - 0x28], ebx
mov dword [esi], edi
sub dword [ebp - 0x2c], eax
add esi, 0x3b9f9a1d
sub esi, 0x3b9f9a19
add edx, 0xb46eb647
add edx, 0x4b9149bd
loop 0x401562
add eax, 0xc58972ea
add eax, 0x3a77dbfd
xor ebx, ebx
add ebx, eax
add eax, 0x3dde0b8
sub eax, 0x3dde0b3
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x10004b0a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
push edx
push ecx
call fcn.1001878c
mov dword [esp + 0x18], 0x7d0d
lea edi, [esi + 4]
shl dword [esp + 0x18], 0xe
xor edx, edx
imul eax, dword [esp + 0x18], 0x1b
push 0x67
pop ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
div ecx
mov dword [esp + 0x18], eax
xor dword [esp + 0x18], 0xbd2c92
mov dword [esp + 0x28], 0x60c2
add dword [esp + 0x28], 0xfffffc96
shr dword [esp + 0x28], 1
xor dword [esp + 0x28], 0xabcf9355
xor dword [esp + 0x28], 0xabcffeb0
mov ecx, dword [esi]
mov eax, dword [edi]
add edi, 4
xor eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
lea esi, [eax + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, esi
call fcn.1000acad
mov ebx, eax
mov dword [esp + 0x20], ebx
pop ecx
test ebx, ebx
je 0x10004c07
shr esi, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0x10004bfe
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc ebp
mov byte [edx - 1], cl
cmp ebp, esi
jb 0x10004bd5
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
pop ebp
mov byte [ebx + eax], 0
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret