joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019a0
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
lea eax, [esp + 8]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
lea ecx, [esp + 8]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [esi + 0x64040]
cmp eax, 3
ja case.default.0x4019d4
jmp dword [eax*4 + 0x401b10]
mov eax, dword [esi + 0x64068]
test eax, eax
jne 0x4019ec
pop esi
add esp, 0x18
ret 8
mov ecx, dword [esp + 0x24]
push edi
lea edi, [esi + 0xc]
lea edx, [esp + 8]
push edi
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x2c]
push edx
push ecx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401a72
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x401a72
mov edx, dword [esi + 0x1c]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401a51
push 0x64
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x18
ret 8
mov ecx, dword [esi + 0x64068]
lea eax, [esp + 8]
push 0
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x14]
add eax, edx
mov dword [esi + 0x14], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x18
ret 8
mov esi, dword [esi + 0x64058]
test esi, esi
jbe case.default.0x4019d4
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
mov ecx, dword [eax]
push ecx
push edx
push esi
call sub.WSOCK32.dll_send
pop esi
add esp, 0x18
ret 8
mov eax, dword [esi + 0x64060]
mov word [esp + 0xc], 2
test eax, 0xff000000
jne 0x401ac4
or eax, 0xff000000
mov dword [esp + 0x10], eax
mov ax, word [esi + 0x64064]
push eax
call sub.WSOCK32.dll_htons
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc]
mov word [esp + 0xe], ax
push 0x10
mov eax, dword [edx]
mov edx, dword [esi + 0x64058]
push ecx
mov ecx, dword [esp + 0x28]
push 0
push eax
push ecx
push edx
call sub.WSOCK32.dll_sendto
pop esi
add esp, 0x18
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 0x18
ret 8
Function at 0x401b20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x64058]
test eax, eax
jbe 0x401b45
push eax
call sub.WSOCK32.dll_closesocket
mov eax, dword [esi + 0x64058]
push 2
push eax
call sub.WSOCK32.dll_shutdown
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dx, word [esi + 0x64064]
mov ecx, dword [esi + 0x64060]
push edx
mov dword [esi + 0x64058], eax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], ecx
call sub.WSOCK32.dll_htons
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov word [esp + 0xe], ax
mov dword [esp + 8], 0
mov ecx, dword [esi + 0x64058]
lea eax, [esp + 0xc]
push 0x10
push eax
push ecx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x401bdd
push 0x64
call edi
mov eax, dword [esp + 8]
inc eax
cmp eax, 5
mov dword [esp + 8], eax
jl 0x401b87
mov edx, dword [esi + 0x64058]
push edx
call sub.WSOCK32.dll_closesocket
mov eax, dword [esi + 0x64058]
push 2
push eax
call sub.WSOCK32.dll_shutdown
mov dword [esi + 0x64058], 0
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
mov edx, dword [esi + 0x64058]
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x14], 1
call sub.WSOCK32.dll_ioctlsocket
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret

Function at 0x401c10
Capabilities:
Create tcp socket
Create udp socket
Start tcp server

Disassembly:
sub esp, 0x28
push esi
mov esi, ecx
mov eax, dword [esi + 0x6405c]
test eax, eax
ja 0x401c73
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 0x6405c], eax
mov ax, word [esi + 0x64064]
push eax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], 0
call sub.WSOCK32.dll_htons
mov edx, dword [esi + 0x6405c]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
call sub.WSOCK32.dll_bind
mov eax, dword [esi + 0x6405c]
push 5
push eax
call sub.WSOCK32.dll_listen
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 8], 0
mov eax, dword [esi + 0x6405c]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
mov dword [esp + 0x18], 0x10
call sub.WSOCK32.dll_accept
cmp eax, 0xffffffff
mov dword [esi + 0x64058], eax
jne 0x401cbd
push 0x64
call edi
mov eax, dword [esp + 8]
inc eax
cmp eax, 0x32
mov dword [esp + 8], eax
jl 0x401c82
mov eax, dword [esi + 0x64058]
pop edi
cmp eax, 0xffffffff
jne 0x401ce1
push 0xffffffffffffffff
call sub.WSOCK32.dll_closesocket
mov dword [esi + 0x64058], 0
xor eax, eax
pop esi
add esp, 0x28
ret
mov ecx, dword [esi + 0x6405c]
push ecx
call sub.WSOCK32.dll_closesocket
mov edx, dword [esi + 0x6405c]
push 2
push edx
call sub.WSOCK32.dll_shutdown
mov ecx, dword [esi + 0x64058]
lea eax, [esp + 4]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x10], 1
call sub.WSOCK32.dll_ioctlsocket
mov eax, 1
pop esi
add esp, 0x28
ret
Function at 0x401d30
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x64058]
test eax, eax
jbe 0x401d46
push eax
call sub.WSOCK32.dll_closesocket
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 0x64058], eax
mov ax, word [esi + 0x64064]
push eax
mov word [esp + 0xc], 2
mov dword [esp + 0x10], 0
call sub.WSOCK32.dll_htons
mov edx, dword [esi + 0x64058]
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push edx
mov word [esp + 0x16], ax
mov dword [esp + 0x10], 1
call sub.WSOCK32.dll_ioctlsocket
mov ecx, dword [esi + 0x64058]
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call sub.WSOCK32.dll_bind
xor edx, edx
pop esi
test eax, eax
setge dl
mov eax, edx
add esp, 0x14
ret

Function at 0x401dc0
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
mov dword [esp + 8], 1
mov eax, dword [esi + 0x64058]
test eax, eax
jbe 0x401dde
push eax
call sub.WSOCK32.dll_closesocket
push 0xff
push 3
push 2
call sub.WSOCK32.dll_socket
lea ecx, [esp + 8]
push 4
push ecx
push 2
push 0
push eax
mov dword [esi + 0x64058], eax
call sub.WSOCK32.dll_setsockopt
mov ax, word [esi + 0x64064]
mov edx, dword [esi + 0x64060]
push eax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], edx
call sub.WSOCK32.dll_htons
mov edx, dword [esi + 0x64058]
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push edx
mov word [esp + 0x1a], ax
mov dword [esp + 0x10], 1
call sub.WSOCK32.dll_ioctlsocket
mov ecx, dword [esi + 0x64058]
lea eax, [esp + 0xc]
push 0x10
push eax
push ecx
mov dword [esp + 0x10], 1
call sub.WSOCK32.dll_bind
xor edx, edx
pop esi
test eax, eax
setge dl
mov eax, edx
add esp, 0x18
ret
Function at 0x405536
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov edi, edx
lea ecx, [ebp - 4]
push 0x2002
call fcn.00409249
test al, al
jne 0x40555d
xor bl, bl
jmp 0x405593
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x405559
push dword [ebp + 8]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x405559
and dword [ebp - 4], 0
mov bl, 1
lea ecx, [ebp - 4]
call fcn.0040926a
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x405b17
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x405b25
and edx, 0x3fff
jmp fcn.00405a89

Function at 0x405b2a
Capabilities:
Delete directory

Disassembly:
mov eax, 0x44cdc4
call fcn.0044c320
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040898e
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x405b59
push edi
call esi
test eax, eax
je 0x405b59
mov al, 1
jmp 0x405b9d
test ebx, ebx
je 0x405b9b
lea ecx, [ebp - 0x18]
call fcn.00402de7
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408a97
test al, al
push dword [ebp - 0x18]
je 0x405b95
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.0040386c
test esi, esi
pop ecx
setne al
jmp 0x405b9d
call fcn.0040386c
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405bac
Capabilities:
Move file

Disassembly:
mov eax, 0x44cde0
call fcn.0044c320
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.0040898e
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.0040898e
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x405bf5
cmp eax, ebx
je 0x405bf5
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x405bf5
mov al, bl
jmp 0x405c6c
test esi, esi
jne 0x405bfe
cmp dword [ebp - 0x14], esi
je 0x405c6a
lea ecx, [ebp - 0x30]
call fcn.00402de7
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402de7
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x405c1e
cmp dword [ebp - 0x14], ebx
jne 0x405c20
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00408fb2
test al, al
push dword [ebp - 0x24]
je 0x405c5b
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.0040386c
push dword [ebp - 0x30]
call fcn.0040386c
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x405c6c
call fcn.0040386c
push dword [ebp - 0x30]
call fcn.0040386c
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405d51
Capabilities:
Create directory

Disassembly:
mov eax, 0x44ce10
call fcn.0044c320
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040898e
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x405d8f
push 0
push edi
call esi
test eax, eax
je 0x405d82
mov al, 1
jmp 0x405dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405dd6
test ebx, ebx
je 0x405dd6
lea ecx, [ebp - 0x18]
call fcn.00402de7
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408a97
test al, al
je 0x405dcd
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.0040386c
test esi, esi
pop ecx
setne al
jmp 0x405dd8
push dword [ebp - 0x18]
call fcn.0040386c
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405f28
Capabilities:
Create directory

Disassembly:
mov eax, 0x44ce53
call fcn.0044c320
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040898e
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 1
je 0x405f6d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405f60
mov al, 1
jmp 0x406054
call ebx
cmp eax, 0xb7
je 0x406003
test edi, edi
je 0x406003
lea ecx, [ebp - 0x18]
call fcn.00402de7
and dword [ebp - 4], 0
cmp edi, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00408a97
test al, al
je 0x405ff6
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405fa9
mov bl, 1
jmp 0x405ff1
call ebx
cmp eax, 0xb7
je 0x405fb6
xor bl, bl
jmp 0x405ff1
lea ecx, [ebp - 0x50]
call fcn.004066f7
lea ecx, [ebp - 0x28]
call fcn.00402de7
push 0
lea ecx, [ebp - 0x50]
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00406c3d
test al, al
jne 0x405fdf
xor bl, bl
jmp 0x405fe8
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0040386c
pop ecx
push dword [ebp - 0x18]
jmp 0x40604c
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.0040386c
pop ecx
call ebx
cmp eax, 0xb7
je 0x406010
xor al, al
jmp 0x406054
lea ecx, [ebp - 0x88]
call fcn.004066f7
lea ecx, [ebp - 0x60]
call fcn.00402de7
push 0
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.00406c3d
test al, al
jne 0x406040
xor bl, bl
jmp 0x406049
mov ebx, dword [ebp - 0x68]
shr ebx, 4
and bl, 1
push dword [ebp - 0x60]
call fcn.0040386c
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40606d
Capabilities:
Delete file

Disassembly:
mov eax, 0x44ce68
call fcn.0044c320
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00406bc0
cmp eax, 0xffffffff
je 0x4060a1
test al, 0x10
jne 0x4060a1
test al, 1
je 0x4060a1
mov edx, eax
mov ecx, edi
and edx, 0xfffffffe
call fcn.00405a89
test al, al
je 0x406102
mov ecx, edi
call fcn.0040898e
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
cmp ebx, 1
je 0x4060c0
push edi
call esi
test eax, eax
je 0x4060c0
mov al, 1
jmp 0x406104
test ebx, ebx
je 0x406102
lea ecx, [ebp - 0x18]
call fcn.00402de7
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408a97
test al, al
push dword [ebp - 0x18]
je 0x4060fc
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.0040386c
test esi, esi
pop ecx
setne al
jmp 0x406104
call fcn.0040386c
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406bc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x44cf48
call fcn.0044c320
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040898e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x406bec
push edi
call esi
cmp eax, 0xffffffff
jne 0x406c2e
test ebx, ebx
je 0x406c2b
lea ecx, [ebp - 0x18]
call fcn.00402de7
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408a97
test al, al
push dword [ebp - 0x18]
je 0x406c25
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.0040386c
pop ecx
mov eax, esi
jmp 0x406c2e
call fcn.0040386c
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x407455
Capabilities:
Get disk information

Disassembly:
mov eax, 0x44d014
call fcn.0044c320
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00428193
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x40752b
mov eax, SysReAllocString
cmp ebx, eax
ja 0x407491
mov eax, ebx
add eax, eax
push eax
call fcn.00403838
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x407524
cmp ebx, dword [ebp - 0x18]
ja 0x407524
lea ecx, [ebp - 0x2c]
call fcn.00402de7
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x40750c
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x407501
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00402f6b
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.0042f227
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401519
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x4074cf
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.0040386c
push esi
call fcn.0040386c
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x40752d
push esi
call fcn.0040386c
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40762b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [ecx + 5], bl
push esi
je 0x40764d
cmp byte [ecx + 6], bl
je 0x40764d
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x40768d
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407671
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407671
xor al, al
jmp 0x40768f
push 1
push ebx
push ebx
push dword [ebp - 4]
call fcn.0044c610
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
pop ebx
leave
ret 4
Function at 0x4099ab
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
push edi
push 0x2001f
mov dword [ebp - 0xc], ecx
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
push dword [ecx]
lea ecx, [ebp - 4]
call fcn.00409950
cmp eax, esi
jne 0x409a42
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 8], 0x105
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x409a2f
lea eax, [ebp - 0x220]
lea ecx, [ebp - 4]
push eax
call fcn.004099ab
cmp eax, esi
jne 0x409a42
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x105
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 4]
jmp 0x4099f7
lea ecx, [ebp - 4]
call fcn.00409985
push dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
call fcn.0040999c
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00409985
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x409a93
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x409abd
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x40a81b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, SysReAllocStringLen
mov eax, dword [esi]
mov dword [esi + 4], ebx
lea ecx, [ebp - 0x14]
and byte [eax], bl
call fcn.0044c900
cmp dword [ebp - 0x14], 0x80000004
jb 0x40a874
lea edx, [ebx - 0x7ffffffe]
lea ecx, [ebp - 0x14]
call fcn.0044c900
lea edi, [ebp - 0x14]
mov dword [ebp - 4], 4
mov edx, dword [edi]
mov ecx, esi
call fcn.0040a8bf
add edi, 4
dec dword [ebp - 4]
jne 0x40a85d
inc ebx
cmp ebx, 3
jb 0x40a845
mov ecx, esi
call fcn.00402a04
mov ecx, esi
call fcn.004029c7
cmp dword [esi + 4], 0
jne 0x40a8ba
xor edx, edx
lea ecx, [ebp - 0x14]
call fcn.0044c900
push 1
pop edi
mov eax, edi
mov ecx, esi
shr eax, 1
xor eax, edi
mov edx, dword [ebp + eax*4 - 0x14]
call fcn.0040a8bf
inc edi
cmp edi, 4
jb 0x40a895
mov ecx, esi
call fcn.00402a04
mov ecx, esi
call fcn.004029c7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411f9e
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x44d727
call fcn.0044c320
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00402de7
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00402de7
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00402de7
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00402de7
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00402de7
and byte [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.00402de7
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 5
call fcn.00402de7
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4127b9
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x44d833
call fcn.0044c320
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00402eff
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.00402eff
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00402eff
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.00402eff
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.00402eff
mov al, byte [edi + 0x3c]
lea ecx, [esi + 0x40]
mov byte [esi + 0x3c], al
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.00402eff
add edi, 0x4c
lea ecx, [esi + 0x4c]
push edi
mov byte [ebp - 4], 5
call fcn.00402eff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41856c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 4]
push ebx
push esi
mov esi, dword [ecx]
xor edx, edx
push edi
test eax, eax
mov ebx, 0x159a55e5
mov edi, 0x1f123bb5
mov dword [ebp - 4], eax
jbe 0x4185bc
mov eax, 0xffff
mov ecx, ebx
and ecx, eax
imul ecx, ecx, 0x9069
shr ebx, 0x10
add ebx, ecx
mov ecx, edi
and ecx, eax
imul ecx, ecx, 0x4650
shr edi, 0x10
add edi, ecx
mov ecx, edi
xor cl, byte [ebp + 8]
mov byte [edx + esi], cl
inc edx
cmp edx, dword [ebp - 4]
jb 0x418590
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4185c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ecx + 4]
and dword [ebp - 4], 0
mov ecx, dword [ecx]
push ebx
push edi
push 1
pop edx
mov edi, 0x159a55e5
test eax, eax
mov ebx, 0x1f123bb5
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
jbe 0x418787
push esi
mov esi, 0xffff
jmp 0x418600
push 1
pop edx
mov eax, edi
and eax, esi
imul eax, eax, 0x9069
shr edi, 0x10
add edi, eax
mov eax, ebx
and eax, esi
imul eax, eax, 0x4650
shr ebx, 0x10
add ebx, eax
mov eax, edi
shl eax, 0x10
add eax, ebx
xor eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, edx
shr eax, 1
test ecx, ecx
mov dword [ebp - 8], eax
je 0x41876e
cmp dword [ebp - 4], 0x400
jb 0x41876e
lea ecx, [ebp - 8]
call fcn.0041878d
mov ecx, eax
mov eax, dword [ebp - 8]
shr dword [ebp - 8], 3
and eax, 7
inc ecx
test eax, eax
mov dword [ebp - 0xc], ecx
je 0x418737
lea ecx, [ebp - 8]
call fcn.0041878d
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
push 1
pop eax
shl eax, cl
cmp eax, dword [ebp - 4]
jae 0x41868c
push 1
inc ecx
pop eax
shl eax, cl
cmp eax, dword [ebp - 4]
jb 0x41867e
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
cmp eax, ecx
mov dword [ebp - 0x10], eax
jbe 0x418699
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x15
mov dword [ebp - 0x18], 5
ja 0x4186ad
mov dword [ebp - 0x18], 4
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
push 1
pop eax
shl eax, cl
mov ecx, edi
and ecx, esi
imul ecx, ecx, 0x9069
shr edi, 0x10
add edi, ecx
mov ecx, ebx
and ecx, esi
dec eax
imul ecx, ecx, 0x4650
shr ebx, 0x10
add ebx, ecx
mov ecx, edi
shl ecx, 0x10
add ecx, ebx
and eax, edx
xor ecx, dword [ebp + 0xc]
add eax, 6
cmp eax, dword [ebp - 0x10]
mov edx, ecx
mov dword [ebp - 8], edx
ja 0x4186b0
mov dword [ebp - 0x24], 1
mov ecx, eax
mov eax, dword [ebp - 0x24]
shl eax, cl
dec eax
and eax, edx
cmp eax, dword [ebp - 4]
jb 0x418730
mov eax, edi
and eax, esi
imul eax, eax, 0x9069
shr edi, 0x10
add edi, eax
mov eax, ebx
and eax, esi
mov edx, edi
imul eax, eax, 0x4650
shr ebx, 0x10
add ebx, eax
shl edx, 0x10
add edx, ebx
xor edx, dword [ebp + 0xc]
jmp 0x4186b0
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
cmp ecx, eax
jbe 0x418746
mov dword [ebp - 0xc], eax
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
add dword [ebp - 4], ecx
add eax, edx
mov dword [ebp - 0x24], eax
sub eax, dword [ebp - 0x18]
test ecx, ecx
jbe 0x41877a
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x24]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 0x10]
jne 0x418761
jmp 0x41877a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov byte [ecx + edx], al
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jb 0x4185fd
pop esi
pop edi
pop ebx
leave
ret 8