joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406870
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x124
xor ecx, ecx
mov dword [esp + 8], ecx
push esi
lea edx, [esp + 8]
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
push edx
mov word [esp + 0xd], ax
push 0x4d000001
xor esi, esi
mov byte [esp + 0x10], 0
mov byte [esp + 0x13], al
mov byte [esp + 0x20], cl
mov dword [esp + 0xc], ecx
call fcn.00402e50
lea eax, [esp + 0x18]
push eax
push 1
call fcn.00402e50
mov edx, dword [esp + 0x140]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.00402e50
add esp, 0x18
push 0xff
lea eax, [esp + 0x2c]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x406a20
lea ecx, [esp + 0x28]
push ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4068fb
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov esi, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push esi
call fcn.00402e50
mov eax, dword [esp + 0x134]
push 0x11
lea edx, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x2c], 1
call fcn.004027a0
add esp, 0x14
test eax, eax
je 0x406933
mov eax, 0xe40001
pop esi
add esp, 0x124
ret
push ebx
push ebp
lea ecx, [esp + 0x24]
push edi
push ecx
or ebx, 0xffffffff
call fcn.0041283f
add esp, 4
xor ebp, ebp
jmp 0x406950
mov esi, dword [esp + 0x140]
mov ecx, dword [esp + 0x138]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x14]
push eax
push esi
push ecx
call fcn.004029c0
add esp, 0x10
test eax, eax
jne 0x4069e7
mov esi, dword [esp + 0x10]
push esi
call fcn.00402e20
add esp, 4
cmp eax, 0x4d000003
jne 0x4069c5
lea edx, [esi + 4]
push edx
call fcn.00402e20
add esi, 8
push esi
mov edi, eax
call fcn.00402e20
mov ecx, dword [esp + 0x144]
add esp, 8
cmp edi, ecx
jne 0x4069c5
cmp eax, 0x10000
jne 0x4069b7
xor ebx, ebx
jmp 0x4069c0
cmp eax, 0x2bad2bad
jne 0x4069c5
mov ebx, eax
mov ebp, 1
mov eax, dword [esp + 0x10]
push eax
call fcn.00402de0
add esp, 4
test ebp, ebp
je 0x406950
pop edi
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 0x124
ret
cmp eax, 0xfffffff4
je 0x4069da
cmp eax, 0xfffffff5
je 0x4069da
cmp eax, 0xffffff9d
je 0x4069da
lea ecx, [esp + 0x2c]
push ecx
call fcn.0041283f
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x2c]
add esp, 4
cmp edx, esi
jle 0x406950
pop edi
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 0x124
ret
or eax, 0xffffffff
pop esi
add esp, 0x124
ret
Function at 0x406a30
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x2b0
mov eax, dword [esp + 0x2b4]
push ebx
xor ebx, ebx
test eax, eax
mov dword [esp + 4], 1
je 0x406bbc
cmp byte [eax], 0
je 0x406bbc
push esi
push edi
push eax
call sub.WS2_32.dll_inet_addr
push ebx
push 1
push 2
mov edi, eax
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x406ab4
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x276d
jne 0x406b1e
lea eax, [esp + 0x12c]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x406b1e
push eax
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x406b19
mov ebx, 1
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x18], 1
call sub.WS2_32.dll_ioctlsocket
mov edx, dword [esp + 0x2c4]
push edx
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], edi
call sub.WS2_32.dll_htons
mov word [esp + 0x1a], ax
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x406b2b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x406b2b
push 2
push esi
call sub.WS2_32.dll_shutdown
push esi
call sub.WS2_32.dll_closesocket
test ebx, ebx
je 0x406b1e
call fcn.0040e8f2
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x2b0
ret
mov eax, dword [esp + 0x2c8]
xor ecx, ecx
cmp eax, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 1
mov dword [esp + 0x14], ecx
jl 0x406b53
mov dword [esp + 0x10], eax
jmp 0x406b5b
mov dword [esp + 0x14], 0x30d40
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x30]
push eax
push 0
push 0
call sub.WS2_32.dll_select
push 2
push esi
mov edi, eax
call sub.WS2_32.dll_shutdown
push esi
call sub.WS2_32.dll_closesocket
test ebx, ebx
je 0x406b89
call fcn.0040e8f2
cmp edi, 0xffffffff
je 0x406b1e
lea ecx, [esp + 0x28]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x406bb0
test edi, edi
jle 0x406bb0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2b0
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2b0
ret
or eax, 0xffffffff
pop ebx
add esp, 0x2b0
ret
Function at 0x408f30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
push esi
push edi
mov ecx, 0xb
mov esi, str.SystemCurrentControlSetServicesVxDKaseya
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x20]
push ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40903a
mov eax, dword [0x420244]
mov ecx, dword [0x420248]
mov edx, dword [str.ConfigurationFile]
mov esi, dword [esp + 0x98]
mov dword [esp + 0x18], eax
mov ax, word [0x420250]
mov dword [esp + 0x1c], ecx
mov word [esp + 0x24], ax
mov dword [esp + 0x14], edx
mov edx, dword [0x42024c]
xor eax, eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push esi
mov dword [esp + 0x28], edx
lea edx, [esp + 0x18]
push edx
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x24], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40900e
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409000
sub eax, edx
cmp eax, 1
jae 0x409064
mov eax, dword [str..kaseyad.ini]
mov dword [esi], eax
mov ecx, dword [0x420234]
mov dword [esi + 4], ecx
mov edx, dword [0x420238]
mov dword [esi + 8], edx
mov ax, word [0x42023c]
pop edi
mov word [esi + 0xc], ax
pop esi
add esp, 0x8c
ret
mov edx, dword [str..kaseyad.ini]
mov ecx, dword [esp + 0x98]
mov dword [ecx], edx
mov eax, dword [0x420234]
mov dword [ecx + 4], eax
mov edx, dword [0x420238]
mov dword [ecx + 8], edx
mov ax, word [0x42023c]
mov word [ecx + 0xc], ax
pop edi
pop esi
add esp, 0x8c
ret
Function at 0x409450
Capabilities:
Check os version
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x160c
call fcn.00412890
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x218], bl
mov ecx, 0x4ff
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x7c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x409613
cmp dword [esp + 0x7c], 6
jb 0x409613
push str.Kernel32.dll
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x409613
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSGetActiveConsoleSessionId
push esi
call edi
mov dword [esp + 0x1c], eax
call fcn.0040b0a0
test eax, eax
je 0x409523
push str.Wow64DisableWow64FsRedirection
push esi
call edi
push str.Wow64RevertWow64FsRedirection
push esi
mov ebx, eax
call edi
test ebx, ebx
mov dword [esp + 0xc], eax
je 0x409523
test eax, eax
je 0x409523
lea ecx, [esp + 0x14]
push ecx
call ebx
test eax, eax
je 0x409523
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4095f0
call eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4095f0
xor edx, edx
xor eax, eax
mov dword [esp + 0x20], edx
mov ecx, 0x11
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov word [esp + 0x60], ax
mov dword [esp + 0x24], edx
push 0x104
lea eax, [esp + 0x114]
mov dword [esp + 0x2c], edx
mov edi, 1
push eax
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], edi
mov dword [esp + 0x34], edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4095f0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push ebx
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x228]
push str._smsg.exe__d__TIME:_d__W__s
push ecx
call fcn.00412696
add esp, 0x18
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x238]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4095f0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x24]
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409601
mov ecx, dword [esp + 0x14]
push ecx
call dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409d10
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
xor ebp, ebp
test eax, eax
push edi
je 0x409d20
mov dword [eax], ebp
mov edi, dword [esp + 0x14]
test edi, edi
je 0x409e78
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x409e78
mov esi, dword [esp + 0x1c]
cmp esi, 1
jl 0x409e78
push str._ProgramW6432_
push edi
call fcn.0040b150
add esp, 8
test eax, eax
jne 0x409d69
push str._CommonProgramW6432_
push edi
call fcn.0040b150
add esp, 8
test eax, eax
je 0x409d6e
mov ebp, 1
push 0x25
push edi
call fcn.004129d0
add esp, 8
test eax, eax
je 0x409dc1
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x409db3
cmp eax, esi
jg 0x409db7
push 0x25
push ebx
call fcn.004129d0
add esp, 8
test eax, eax
je 0x409df4
push esi
push ebx
call fcn.00409900
add esp, 8
test eax, eax
jge 0x409df4
or edi, 0xffffffff
jmp 0x409e67
cmp eax, esi
jle 0x409dab
mov edi, 1
jmp 0x409e67
lea eax, [esi - 1]
push eax
push edi
push ebx
call fcn.00412010
mov eax, edi
add esp, 0xc
mov byte [ebx + esi - 1], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409de0
sub eax, edx
cmp eax, esi
jl 0x409df4
mov edi, 1
jmp 0x409e67
push str._sysnative
push ebx
xor edi, edi
call fcn.0040b150
add esp, 8
test eax, eax
je 0x409e67
mov cl, byte [eax + 0xa]
test cl, cl
lea esi, [eax + 0xa]
je 0x409e17
cmp cl, 0x5c
jne 0x409e55
mov edx, dword [str._system32]
mov ecx, eax
mov dword [ecx], edx
mov edx, dword [0x420338]
mov dword [ecx + 4], edx
mov dx, word [0x42033c]
mov word [ecx + 8], dx
mov edx, esi
mov cl, byte [edx]
add eax, 9
test cl, cl
mov ebp, 1
mov esi, eax
je 0x409e52
mov byte [eax], cl
mov cl, byte [edx + 1]
inc eax
inc edx
test cl, cl
jne 0x409e47
mov byte [eax], 0
push str._sysnative
push esi
call fcn.0040b150
add esp, 8
test eax, eax
jne 0x409e08
mov eax, dword [esp + 0x20]
test eax, eax
je 0x409e71
mov dword [eax], ebp
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x40a220
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push 0
or edx, 0xf003f
push edx
push 0
push 0
push 0
push eax
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40a294
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xfffffffe
pop esi
pop ecx
ret
or eax, 0xffffffff
pop ecx
ret

Function at 0x40a2d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
or edx, 0x20019
push edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push 0
push eax
push ecx
mov dword [esp + 0x18], 0
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a3a9
mov ecx, dword [esi]
mov edx, dword [esp + 0x24]
push ebx
mov ebx, ecx
shr ecx, 2
push edi
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40a385
lea ecx, [esp + 0x10]
push ecx
push edx
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x30]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40a36c
pop edi
pop ebx
mov eax, 0xfffffffe
pop esi
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [edx], eax
pop ebx
mov dword [esi], ecx
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], 0x1020001
pop ebx
mov dword [esi], 0
xor eax, eax
pop esi
add esp, 8
ret
or eax, 0xffffffff
pop esi
add esp, 8
ret
Function at 0x40a3f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x270
push esi
push edi
mov byte [esp + 0x28], 0
xor eax, eax
mov ecx, 0x43
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
xor esi, esi
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
mov dword [esp + 0xc], esi
call fcn.00402200
mov edx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
push 0x10e
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.00409d10
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, 1
jne 0x40a455
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a455
lea ecx, [esp + 0x10]
call fcn.00402280
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40a483
lea ecx, [esp + 0x10]
mov esi, 0x4010
call fcn.004022c0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a4c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40a4ba
lea ecx, [esp + 0x10]
mov esi, 0x400f
call fcn.004022c0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
mov esi, 0x4010
je 0x40a4c9
mov esi, 0x4021
lea ecx, [esp + 0x10]
call fcn.004022c0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a4e0
Capabilities:
Check os version
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [esp + 0xc]
push eax
or ecx, 0xf003f
push ecx
xor edi, edi
push edi
push ebx
push edx
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x40a64a
mov ecx, dword [esp + 0xc]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
push edi
push edi
push edi
push ecx
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
cmp esi, edi
jne 0x40a59d
mov edi, dword [esp + 0x10]
dec edi
js 0x40a59d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea esp, [esp]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x34], 0x104
call ebx
mov esi, eax
test esi, esi
jne 0x40a59a
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.0040a4e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40a59a
dec edi
jns 0x40a550
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40a648
mov eax, dword [0x4292cc]
test eax, eax
jne 0x40a619
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov esi, 1
je 0x40a613
mov eax, dword [esp + 0x24]
cmp eax, 5
ja 0x40a5f3
jne 0x40a613
cmp dword [esp + 0x28], esi
jb 0x40a613
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40a613
push str.RegDeleteKeyExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4292d0], eax
mov dword [0x4292cc], esi
mov eax, dword [0x4292d0]
test eax, eax
je 0x40a636
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push 0
push edx
push ebx
push ecx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a660
Capabilities:
Delete registry value

Disassembly:
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40a6bd
cmp byte [esi], 0
je 0x40a6bd
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
or ecx, 0x20006
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a6b8
mov ecx, dword [esp + 0x14]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40a6df
mov eax, 0xfffffffe
pop esi
ret
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
call fcn.0040a4e0
add esp, 0xc
test eax, eax
je 0x40a6df
mov eax, 0xfffffffd
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x40ad00
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x2c]
test edi, edi
mov dword [esp + 4], 0
jg 0x40ad33
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
add esp, 0x14
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push esi
mov dword [esp + 0x10], edx
lea edx, [esp + 8]
push edx
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 0x40acd0
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
push 0
push 0
mov dword [esp + 0x30], ecx
call fcn.004127b4
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40add1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
imul edi, edi, 0x3e8
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x40adaf
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
pop esi
pop edi
add esp, 0x14
ret
push 0xffffffffffffff9c
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
mov dword [esp + 0x34], 0xffffff9c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
pop esi
pop edi
add esp, 0x14
ret
pop esi
or eax, 0xffffffff
pop edi
add esp, 0x14
ret
Function at 0x40ade0
Capabilities:
Delete file
Get common file path
Query or enumerate registry value

Disassembly:
mov al, byte [0x4292d8]
sub esp, 0xc
test al, al
jne 0x40ae4a
push esi
push edi
push 0x4292d8
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x4292d8
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ae04
mov ax, word [0x41f890]
mov word [edi], ax
mov eax, dword [esp + 0x18]
mov edx, eax
jmp 0x40ae20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ae20
mov edi, 0x4292d8
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40ae30
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x4292d8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp]
push ecx
push 0x20019
push 0
push str.SOFTWAREKaseyaRelay
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aeb3
mov ecx, dword [esp]
mov eax, 4
lea edx, [esp + 4]
push edx
push 0x4292ac
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0
push str.TraceOptions
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret

Function at 0x40aec0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov al, byte [0x4292d8]
test al, al
je 0x40af32
push esi
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push 0x4292d8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40af31
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40af2a
mov edx, dword [esp + 0xc]
mov eax, edx
push edi
lea edi, [eax + 1]
jmp 0x40af10
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40af10
push 0
lea ecx, [esp + 0xc]
push ecx
sub eax, edi
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret

Function at 0x40b0a0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push eax
xor ebx, ebx
mov dword [esp + 0x34], 0x9c
call esi
test eax, eax
jne 0x40b0f1
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x94
call esi
test eax, eax
jne 0x40b0f1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x34]
cmp eax, 6
jae 0x40b106
cmp eax, 5
jne 0x40b140
cmp dword [esp + 0x38], 2
jne 0x40b140
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b133
lea ecx, [esp + 0xc]
push ecx
call eax
cmp word [esp + 0xc], 9
jne 0x40b140
mov ebx, 1
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret