joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5f8
Capabilities:
Create http request
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov byte [ebp - 8], dl

Function at 0x40b768
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
call fcn.004c208d
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], eax
mov eax, 0x4c79ac
call fcn.004b66dc
mov dword [ebp - 0xc], 4
cmp byte [ebp - 0x29], 0
jl 0x40b7e2
mov word [ebp - 0x18], 8
mov edx, dword [ebp - 4]
cmp dword [edx + 0x30], 0
je 0x40b7aa
mov ecx, dword [ebp - 4]
push dword [ecx + 0x30]
call sub.WININET.DLL_InternetCloseHandle
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x40b7c0
push 0
mov edx, dword [ebp - 4]
push dword [edx + 0x38]
call sub.KERNEL32.DLL_TerminateThread
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x44], 0
je 0x40b7d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004c174c
sub dword [ebp - 0xc], 4
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00436800
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
cmp byte [ebp - 0x29], 0
jle 0x40b7fa
mov eax, dword [ebp - 4]
call fcn.004c2080
mov esp, ebp
pop ebp
ret
Function at 0x40ba78
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x50]
mov edx, dword [ebp + 8]
push dword [edx + 0x4c]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x48]
push dword [ebp + 8]
call sym.Project1.exe__TcmDownloader_DownLoad_qpct1i
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp - 4]
mov eax, dword [ebp + 8]
push dword [eax + 0x4c]
push 0x401
mov edx, dword [ebp + 8]
push dword [edx + 0x44]
call sub.USER32.DLL_PostMessageA
test eax, eax
je 0x40ba9c
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x40], 0
mov eax, dword [ebp + 8]
push dword [eax + 0x38]
call sub.KERNEL32.DLL_SuspendThread
pop ecx
pop ebp
ret

Function at 0x40bae4
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x40], 0
jne 0x40bb3b
mov edx, dword [ebp + 8]
cmp dword [edx + 0x38], 0
je 0x40bb3b
cmp dword [ebp + 0xc], 0
je 0x40bb3b
cmp dword [ebp + 0x10], 0
je 0x40bb3b
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x40], 1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x48], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax + 0x4c], ecx
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x50], edx
mov eax, dword [ebp + 8]
push dword [eax + 0x38]
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
ja 0x40bb27
mov al, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40c2cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 1]
call fcn.0040c320
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x40c2ee
lea eax, [ebp - 1]
xor edx, edx
call fcn.0040c354
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x40c304
lea eax, [ebp - 1]
mov dl, 2
call fcn.0040c354
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x40c31a
lea eax, [ebp - 1]
mov dl, 1
call fcn.0040c354
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x40c8e4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x4cf294]
mov edx, dword [eax]
push dword [edx + 0x30]
call sub.USER32.DLL_IsIconic
test eax, eax
jne 0x40c940
mov ecx, dword [0x4cf294]
mov eax, dword [ecx]
call fcn.00484c3c
push 0
mov edx, dword [0x4cf294]
mov ecx, dword [edx]
push dword [ecx + 0x30]
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp - 4]
cmp word [eax + 0x24a], 0
je 0x40c940
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24c]
call dword [ebx + 0x248]
pop ebx
pop ecx
pop ebp
ret

Function at 0x40c944
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x4cf294]
mov edx, dword [eax]
push dword [edx + 0x30]
call sub.USER32.DLL_IsIconic
test eax, eax
je 0x40c9af
mov ecx, dword [0x4cf294]
mov eax, dword [ecx]
call fcn.00484cec
push 9
mov edx, dword [0x4cf294]
mov ecx, dword [edx]
push dword [ecx + 0x30]
call sub.USER32.DLL_ShowWindow
mov eax, dword [0x4cf294]
mov edx, dword [eax]
push dword [edx + 0x30]
call sub.USER32.DLL_SetForegroundWindow
mov ecx, dword [ebp - 4]
cmp word [ecx + 0x252], 0
je 0x40c9af
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x254]
call dword [ebx + 0x250]
pop ebx
pop ecx
pop ebp
ret
Function at 0x40dfe8
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x40dff7
cmp dword [ebp + 0x10], 0
jne 0x40dffb
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 8]
mov word [edx + 0x64], 2
push 0
push dword [ebp + 0xc]
call sym.Project1.exe__TcmSocket_get_ip_data_qpc11TcmCastMode
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x68], eax
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov edx, dword [ebp + 8]
mov word [edx + 0x66], ax
push str.connect___failed
push 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x64
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x98]
call sub.WSOCK32.DLL_connect
push eax
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
inc eax
setne al
and eax, 1
pop ebp
ret

Function at 0x40e05c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov eax, 0x4c8c14
call fcn.004b66dc
cmp byte [ebp + 0xc], 0
je 0x40e0ed
mov dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x64
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x98]
call sub.WSOCK32.DLL_getsockname
inc eax
je 0x40e0ed
mov edx, dword [ebp + 8]
mov cx, word [edx + 0x66]
push ecx
call sub.WSOCK32.DLL_ntohs
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x90], eax
mov word [ebp - 0x18], 8
mov ecx, dword [ebp + 8]
push dword [ecx + 0x68]
call sub.WSOCK32.DLL_inet_ntoa
mov edx, eax
lea eax, [ebp - 4]
call fcn.004c1820
inc dword [ebp - 0xc]
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
add eax, 0x88
call fcn.004c1a64
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c1a34
mov ecx, dword [ebp + 8]
cmp word [ecx + 0x42], 0
je 0x40e106
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
call dword [ebx + 0x40]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
je 0x40e1ed
mov eax, dword [ebp + 8]
cmp dword [eax + 0x98], 0xffffffff
jne 0x40e1f1
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x18], 0
jg 0x40e202
mov eax, dword [ebp + 0x14]
call fcn.0043be68
mov dword [ebp + 0x18], eax
mov edx, dword [ebp + 8]
mov word [edx + 0x64], 2
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + 0x68], ecx
mov dx, word [ebp + 0x10]
push edx
call sub.WSOCK32.DLL_htons
mov ecx, dword [ebp + 8]
mov word [ecx + 0x66], ax
push str.send_to___failed
push 0x10
mov eax, dword [ebp + 8]
add eax, 0x64
push eax
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push dword [edx + 0x98]
call sub.WSOCK32.DLL_sendto
push eax
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
inc eax
setne al
and eax, 1
pop ebp
ret
Function at 0x40e28c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
je 0x40e2a1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x98], 0xffffffff
jne 0x40e2a5
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x14], 0
jg 0x40e2b6
mov eax, dword [ebp + 0x10]
call fcn.0043be68
mov dword [ebp + 0x14], eax
push str.send___failed
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.WSOCK32.DLL_send
push eax
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
cmp eax, dword [ebp + 0x14]
sete al
and eax, 1
pop ebp
ret

Function at 0x40e304
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp dword [ebp + 0xc], 0
jne 0x40e317
xor eax, eax
jmp 0x40e3c6
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40e329
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x98]
mov dword [ebp + 0x14], ecx
cmp dword [ebp + 0x18], 0
jne 0x40e355
push str.recv___failed
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call sub.WSOCK32.DLL_recv
push eax
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x40e3b9
mov dword [ebp - 8], 0x10
push str.recvfrom___failed
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call sub.WSOCK32.DLL_recvfrom
push eax
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
cmp byte [edx + 0x61], 5
je 0x40e399
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x61], 4
jne 0x40e3b9
push str.getpeername___failt_
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call sub.WSOCK32.DLL_getpeername
push eax
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
cmp dword [ebp - 4], 0xffffffff
jne 0x40e3c3
xor eax, eax
jmp 0x40e3c6
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40e888
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
cmp byte [0x4c7cfc], 0
jne 0x40e8bf
mov word [ebp - 2], 0x202
lea eax, [ebp - 0x194]
push eax
mov dx, word [ebp - 2]
push edx
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
sete cl
and ecx, 1
mov byte [0x4c7cfc], cl
mov al, byte [0x4c7cfc]
mov esp, ebp
pop ebp
ret
Function at 0x40e940
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, 0x4c8c7c
call fcn.004b66dc
mov word [ebp - 0x1c], 0x14
mov edx, 0x4c7e97
lea eax, [ebp - 4]
call fcn.004c1820
inc dword [ebp - 0x10]
mov word [ebp - 0x1c], 8
call sym.Project1.exe__TcmSocket_wsa_startup_qv
test al, al
jne 0x40e999
or eax, 0xffffffff
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c1a34
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x40ea58
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_isValidIP_qpc
pop ecx
test al, al
je 0x40e9b3
push dword [ebp + 8]
call sub.WSOCK32.DLL_inet_addr
mov dword [ebp - 0x30], eax
jmp 0x40ea27
cmp dword [ebp + 8], 0
je 0x40e9c1
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
jne 0x40e9ff
mov word [ebp - 0x1c], 0x20
lea eax, [ebp - 8]
call fcn.0040a760
push eax
inc dword [ebp - 0x10]
call sym.Project1.exe__TcmSocket_HostName_qv
pop ecx
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004c1a64
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004c1a34
lea eax, [ebp - 4]
call fcn.0040a740
mov dword [ebp + 8], eax
push dword [ebp + 8]
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x34], eax
mov word [ebp - 0x1c], 8
cmp dword [ebp - 0x34], 0
je 0x40ea22
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
jmp 0x40ea24
xor edx, edx
mov dword [ebp - 0x30], edx
cmp byte [ebp + 0xc], 1
jne 0x40ea39
push dword [ebp - 0x30]
call sym.Project1.exe__TcmSocket_IP_UnicastToBroadcast_qul
pop ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c1a34
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40ead4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov eax, 0x4c8d78
call fcn.004b66dc
call sym.Project1.exe__TcmSocket_wsa_startup_qv
test al, al
jne 0x40eb41
mov word [ebp - 0x20], 8
mov edx, 0x4c7e98
lea eax, [ebp - 4]
call fcn.004c1820
inc dword [ebp - 0x14]
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004c1a64
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x14
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c1a34
pop eax
mov word [ebp - 0x20], 8
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40ebec
push 0x20
lea ecx, [ebp - 0x50]
push ecx
call sub.WSOCK32.DLL_gethostname
inc eax
jne 0x40eba0
mov word [ebp - 0x20], 0x20
mov edx, 0x4c7e99
lea eax, [ebp - 8]
call fcn.004c1820
inc dword [ebp - 0x14]
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004c1a64
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x2c
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004c1a34
pop eax
mov word [ebp - 0x20], 0x20
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40ebec
mov word [ebp - 0x20], 0x38
lea edx, [ebp - 0x50]
lea eax, [ebp - 0xc]
call fcn.004c1820
mov edx, eax
inc dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004c1a64
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x44
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004c1a34
pop eax
mov word [ebp - 0x20], 0x38
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x411644
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 8
lea eax, [ebp - 0x10]
push eax
push 1
push 0x800
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
je 0x41168d
cmp byte [ebp - 0x10], 0x30
jne 0x41168d
cmp byte [ebp - 0xf], 0x38
jne 0x41168d
cmp byte [ebp - 0xe], 0x30
jne 0x41168d
cmp byte [ebp - 0xd], 0x34
jne 0x41168d
cmp byte [ebp - 0xc], 0
jne 0x41168d
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x41270c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 8
lea eax, [ebp - 0x10]
push eax
push 1
push 0x800
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
je 0x412755
cmp byte [ebp - 0x10], 0x30
jne 0x412755
cmp byte [ebp - 0xf], 0x38
jne 0x412755
cmp byte [ebp - 0xe], 0x30
jne 0x412755
cmp byte [ebp - 0xd], 0x34
jne 0x412755
cmp byte [ebp - 0xc], 0
jne 0x412755
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x417f5c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x417fad
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x417f94
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x417f84
jmp 0x417fad
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x417f95
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419864
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jle 0x4198ac
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor eax, 0xff
imul dword [ebp - 8]
shr eax, 8
add eax, dword [ebp - 0xc]
call sym.Project1.exe__Cmbitmap_CMIntToByte_qqri
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x11c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x41987e
jmp 0x4198e1
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cdq
xor eax, edx
sub eax, edx
imul dword [ebp - 0xc]
shr eax, 8
push eax
mov eax, dword [ebp - 0xc]
pop edx
sub eax, edx
call sym.Project1.exe__Cmbitmap_CMIntToByte_qqri
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x11c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x4198b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
test eax, eax
jle 0x41996c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
test eax, eax
jle 0x419958
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
mov al, byte [ebp + eax - 0x11c]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 1]
mov al, byte [ebp + eax - 0x11c]
mov edx, dword [ebp - 0x14]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 2]
mov al, byte [ebp + eax - 0x11c]
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], al
add dword [ebp - 0x14], 3
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x419912
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x4198fe
mov esp, ebp
pop ebp
ret
Function at 0x41a2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
dec eax
test eax, eax
jl 0x41a364
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
test eax, eax
jl 0x41a350
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
xor byte [eax], 0xff
mov eax, dword [ebp - 0x10]
xor byte [eax + 1], 0xff
mov eax, dword [ebp - 0x10]
xor byte [eax + 2], 0xff
add dword [ebp - 0x10], 3
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x41a330
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x41a318
mov esp, ebp
pop ebp
ret

Function at 0x423bb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, 0x4c9a1c
call fcn.004b66dc
mov dword [ebp - 0x2c], 0x100
mov dword [ebp - 0x30], 0x100
push dword [ebp - 0x30]
call fcn.004b5d00
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x423c25
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x100
jbe 0x423c25
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.004b5d20
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x423c25
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
cmp dword [ebp - 0x30], 0
je 0x423c42
cmp dword [ebp - 0x34], 0
je 0x423c42
mov edx, dword [ebp - 0x34]
jmp 0x423c47
mov edx, 0x4c9690
lea eax, [ebp - 4]
call fcn.004c1820
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x20
push dword [ebp - 0x34]
call fcn.004b5d10
pop ecx
mov word [ebp - 0x18], 0x2c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004c1a64
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x38
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c1a34
pop eax
mov word [ebp - 0x18], 0x20
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x423cc5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437838
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4cff74
cmp dword [edi], 0
jne 0x4378b4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4cff70]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ca68c
mov ecx, 2
call fcn.0044b6e4
mov edx, 0x437810
lea eax, [esi + 5]
call fcn.00437830
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00437830
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x437889
mov dword [0x4cff70], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x438dec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004389e8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0044d3d8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x438e4a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4cf090]
mov dl, 1
mov eax, dword [0x4388e0]
call fcn.0043ede8
call fcn.0044cb88
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x438e54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0044d3d8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x438eac
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4cf088]
mov dl, 1
mov eax, dword [0x4388e0]
call fcn.0043ede8
call fcn.0044cb88
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00438a18
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43bb88
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0044d3d8
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebx
ret

Function at 0x43bb9c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0044d3d8
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x43bbbe
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret