joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418ffc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 8
call fcn.0041fef8
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x419048
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov word [ebx], 1
jmp 0x419056
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov word [ebx], 0
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov word [ebx], 0
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 4]
push eax
push 4
call fcn.0041fef8
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
call dword [sym.imp.KERNEL32.dll_LocalSize]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4190c1
push 0xcd
push 0x4088e99
push 6
call fcn.0041ff04
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
call fcn.0041fefe
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
mov eax, dword [ebp - 4]
push eax
push 4
call fcn.0041fef8
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push 0x80
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_setsockopt]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x419155
push 0x10c
push 0x4088e99
push 6
call fcn.0041ff04
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
call fcn.0041fefe
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
mov eax, 0
sete al
jmp 0x419190
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.0041fefe
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4191a4
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esp
push 0
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4191e2
push 0x47
push 0x4088ea9
push 6
call fcn.0041ff04
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 1
push dword [ebp - 8]
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_setsockopt]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x419223
push 0x47
push 0x4088ea9
push 6
call fcn.0041ff04
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
mov eax, 0
sete al
jmp 0x419237
mov esp, ebp
pop ebp
ret 8
Function at 0x41923d
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esp
push 0
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x41927b
push 0x47
push 0x4088e9e
push 6
call fcn.0041ff04
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 1
push dword [ebp - 8]
push 0xa
push 0
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_setsockopt]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4192bc
push 0x47
push 0x4088e9e
push 6
call fcn.0041ff04
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
mov eax, 0
sete al
jmp 0x4192d0
mov esp, ebp
pop ebp
ret 8

Function at 0x4192d6
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esp
push 0
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x419314
push 0x47
push 0x4088ea2
push 6
call fcn.0041ff04
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 4
push dword [ebp - 8]
push 0x1002
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_setsockopt]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x419355
push 0x47
push 0x4088ea2
push 6
call fcn.0041ff04
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
mov eax, 0
sete al
jmp 0x419369
mov esp, ebp
pop ebp
ret 8
Function at 0x419bb5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push dword [ebp + 8]
call fcn.00419cac
mov dword [ebp - 4], eax
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x42f3c0]
fstp qword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00419d17
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp + 8]
mov eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
fld qword [ebp - 0x14]
call fcn.00401164
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x419c4f
push 0x8e
push 0x4088e33
push 6
call fcn.0041ff04
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x419c9c
mov dword [ebp - 4], esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x419c85
push 0xed
push 0x4088e33
push 6
call fcn.0041ff04
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
mov eax, 0
sete al
jmp 0x419ca6
mov eax, 1
jmp 0x419ca6
mov esp, ebp
pop ebp
ret 4
Function at 0x41be86
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x41bed0
push 0x19
push 0x4088791
push 6
call fcn.0041ff04
add esp, 0xc
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0
jle 0x41bf28
cmp dword [ebp + 0x24], 0
je 0x41bf28
push 0xffffffff
mov ebx, dword [ebp + 0x14]
push dword [ebx]
call fcn.0041bf41
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 0x14]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x41bf28
push 0xd0
push 0x4088791
push 6
call fcn.0041ff04
add esp, 0xc
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0
mov eax, 0
setne al
jmp 0x41bf3b
mov esp, ebp
pop ebp
ret 0x24
Function at 0x41bf41
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
push 0xc
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x41bf99
push 0x19
push 0x4088796
push 6
call fcn.0041ff04
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], esp
push 4
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x41bfd1
push 0x3f
push 0x4088796
push 6
call fcn.0041ff04
add esp, 0xc
fild dword [ebp - 4]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x42e4d6]
fstp qword [ebp - 0x20]
mov dword [ebp - 0x24], esp
push 4
lea eax, [ebp + 0xc]
push eax
fld qword [ebp - 0x20]
call fcn.00401164
push eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x41c01e
push 0x7b
push 0x4088796
push 6
call fcn.0041ff04
add esp, 0xc
mov dword [ebp - 0x14], esp
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
push 0x41c25d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x41c06a
push 0xc8
push 0x4088796
push 6
call fcn.0041ff04
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x41c127
mov dword [ebp - 0x14], esp
push 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x41c0a8
push 0x16e
push 0x4088796
push 6
call fcn.0041ff04
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0
mov ebx, 0x350
call fcn.00421dc0
add esp, 4
cmp dword [ebp - 0xc], 0
jne 0x41c077
mov dword [ebp - 0x14], esp
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x41c0f3
push 0x1dc
push 0x4088796
push 6
call fcn.0041ff04
add esp, 0xc
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x41c11f
push 0x1fd
push 0x4088796
push 6
call fcn.0041ff04
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x41c15d
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x41c153
push 0x233
push 0x4088796
push 6
call fcn.0041ff04
add esp, 0xc
mov eax, 0xffffffff
jmp 0x41c15d
mov esp, ebp
pop ebp
ret 8
Function at 0x421130
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x4211ae
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4211ae
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call fcn.00423ab0
add esp, 4
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4211a2
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov eax, esi
pop edi
pop esi
ret

Function at 0x4217d0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x42183a
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x42180a
push esi
xor edi, edi
call fcn.00423ab0
add esp, 4
test eax, eax
je 0x421855
push eax
push esi
call fcn.00423eb0
add esp, 8
mov edi, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x120afe9
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 1
mov eax, dword fs:[0x30]
push dword [eax + 8]
push dword [esp + 0xc]
jmp 0x120c750
mov eax, dword [esp + 8]
sub eax, 0
je 0x120c77c
dec eax
jne 0x120c781
mov eax, dword [esp + 4]
mov dword [0x120f700], eax
call fcn.0120c790
call fcn.0120d310
mov dword [0x120f708], eax
mov eax, 1
ret 0xc
call fcn.0120c7a0
mov eax, 1
ret 0xc

Function at 0x120cc10
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x120cc2e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x120cc23
pop esi
ret
Function at 0x4026f0
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebx
push ebp
push esi
push edi
mov ecx, 0x12
mov esi, 0x46e260
mov edi, 0x514f24
mov ebp, dword [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x400
mov esi, 0x46e2a8
mov edi, 0x514f6c
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
xor esi, esi
mov edi, 0x514f24
lea eax, [esi + 1]
xor ebx, ebx
cdq
idiv ebp
lea eax, [esi + 2]
add edi, 4
mov bl, byte [edx + ecx]
cdq
idiv ebp
mov bh, byte [esi + ecx]
xor eax, eax
shl ebx, 8
mov al, byte [edx + ecx]
or ebx, eax
lea eax, [esi + 3]
cdq
idiv ebp
xor eax, eax
shl ebx, 8
mov al, byte [edx + ecx]
or ebx, eax
mov eax, dword [edi - 4]
xor eax, ebx
mov dword [edi - 4], eax
lea eax, [esi + 4]
cdq
idiv ebp
cmp edi, 0x514f6c
mov esi, edx
jl 0x402725
xor eax, eax
mov esi, 0x514f28
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00401db0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esi - 4], eax
mov dword [esi], ecx
add esi, 8
add esp, 8
cmp esi, 0x514f70
jl 0x40277d
mov esi, 0x514f70
mov edi, 0x80
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00401db0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esi - 4], ecx
mov dword [esi], edx
add esp, 8
add esi, 8
dec edi
jne 0x4027b1
cmp esi, 0x515f70
jl 0x4027ac
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x404480
Capabilities:
Check for time delay via gettickcount
Read file on windows
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x2c], 0x4b0
je 0x4044a4
mov eax, dword [edi + 0x114]
cmp eax, 2
je 0x4044a4
cmp eax, 3
jne 0x4044ac
add dword [esp + 0x34], 0x1f4
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
call ebx
mov ecx, dword [esp + 0x34]
lea ebp, [eax + ecx]
mov dword [esp + 0x34], ebp
call ebx
mov ebx, dword [esp + 0x2c]
cmp eax, ebp
ja 0x404633
mov eax, dword [edi + 0x114]
test eax, eax
je 0x404561
cmp eax, 1
je 0x404561
mov eax, dword [edi + 0x38]
lea edx, [esp + 0x10]
push edx
push 0x4004667f
push eax
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jne 0x40461b
mov ecx, dword [esp + 0x10]
test ecx, ecx
jbe 0x40461b
mov ebp, dword [esp + 0x30]
mov eax, ebp
sub eax, esi
cmp ecx, eax
jae 0x404517
mov eax, ecx
mov edx, dword [edi + 0x38]
push 0
lea ecx, [esi + ebx]
push eax
push ecx
push edx
mov dword [esp + 0x38], eax
call sub.WSOCK32.dll_recv
add esi, dword [esp + 0x28]
cmp byte [esi + ebx - 1], 0xa
jne 0x404554
mov al, byte [edi + 0x33]
test al, al
jne 0x404548
cmp esi, 2
ja 0x404633
jmp 0x404554
cmp esi, dword [0x60b8adc]
ja 0x404633
cmp esi, ebp
je 0x404633
jmp 0x404623
mov edx, dword [edi]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x40461b
mov eax, dword [esp + 0x30]
sub eax, esi
cmp ecx, eax
jae 0x40458c
mov eax, ecx
lea ebp, [edi + 0x18]
lea ecx, [esp + 0x28]
push ebp
push ecx
mov dword [esp + 0x30], eax
push eax
mov eax, dword [edi]
lea edx, [esi + ebx]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4045f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4045f2
mov ecx, dword [edi + 0x28]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4045d5
mov dword [esp + 0x28], 0
jmp 0x4045f2
mov eax, dword [edi]
lea edx, [esp + 0x28]
push 0
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 0x20]
add eax, ecx
mov dword [edi + 0x20], eax
add esi, dword [esp + 0x28]
cmp byte [esi + ebx - 1], 0xa
jne 0x404613
mov al, byte [edi + 0x33]
test al, al
jne 0x40460b
cmp esi, 2
ja 0x404633
jmp 0x404613
cmp esi, dword [0x60b8adc]
ja 0x404633
cmp esi, dword [esp + 0x30]
je 0x404633
jmp 0x404623
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x34]
jbe 0x4044cf
mov al, byte [edi + 0x33]
test al, al
je 0x40465e
mov ecx, dword [0x60b8adc]
xor eax, eax
cmp ecx, esi
jae 0x404652
mov dl, byte [ecx + ebx]
inc ecx
mov byte [eax + ebx], dl
inc eax
cmp ecx, esi
jb 0x404646
pop edi
pop esi
mov byte [eax + ebx], 0
pop ebp
pop ebx
add esp, 0x14
ret
mov byte [esi + ebx], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x405b80
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x10]
push ebx
add edx, 0xfffffffe
push ebp
xor cl, cl
xor eax, eax
push esi
push edi
test edx, edx
jle 0x405bad
mov esi, dword [esp + 0x1c]
mov bl, byte [eax + esi]
xor cl, bl
inc eax
cmp eax, edx
jl 0x405b93
cmp cl, 1
je 0x405bab
cmp cl, 0xd
jne 0x405bad
inc cl
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov esi, 0x46f2cc
mov byte [eax + edx], cl
lea eax, [edi + 0xf4]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x405beb
test cl, cl
je 0x405be7
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x405beb
add eax, 2
add esi, 2
test cl, cl
jne 0x405bc3
xor eax, eax
jmp 0x405bf0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405bfc
add dword [esp + 0x2c], 0xbb8
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edi
push edx
call fcn.004033a0
mov eax, dword [esp + 0x3c]
push eax
push ebx
push ebp
push edi
call fcn.00405370
add esp, 0x20
cmp eax, esi
je 0x405c4c
cmp eax, 9
je 0x405c4c
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x405c10
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
cmp ecx, 3
pop esi
pop ebp
setne al
pop ebx
ret

Function at 0x4062d0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor al, al
add edx, 0xfffffffe
xor ecx, ecx
push ebx
push esi
test edx, edx
jle 0x4062ef
mov esi, dword [esp + 0x10]
mov bl, byte [ecx + esi]
xor al, bl
inc ecx
cmp ecx, edx
jl 0x4062e5
push edi
mov edi, dword [esp + 0x10]
mov esi, 0x46f4bc
mov ecx, edi
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x40631f
test dl, dl
je 0x40631b
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x40631f
add ecx, 2
add esi, 2
test dl, dl
jne 0x4062fb
xor ecx, ecx
jmp 0x406324
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x40632a
not al
mov ecx, edi
mov esi, 0x46f4c4
pop edi
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x406356
test dl, dl
je 0x406352
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x406356
add ecx, 2
add esi, 2
test dl, dl
jne 0x406332
xor ecx, ecx
jmp 0x40635b
sbb ecx, ecx
sbb ecx, 0xffffffff
pop esi
pop ebx
test ecx, ecx
jne 0x406370
cmp al, 1
je 0x406378
cmp al, 4
je 0x406378
cmp al, 0xd
jne 0x40637a
inc al
ret
cmp al, 1
je 0x406378
cmp al, 0xd
jne 0x40637a
inc al
ret
Function at 0x407180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x51676c]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push edi
push edx
mov dword [esp + 0x28], 3
mov dword [esp + 0x24], 0x2000
call ebx
test eax, eax
jne 0x40720f
mov eax, dword [0x51676c]
test eax, eax
je 0x40720f
mov eax, dword [esp + 0xc]
add eax, 0x400
push eax
mov dword [esp + 0x10], eax
call fcn.0045f913
mov edx, dword [0x51676c]
add esp, 4
mov esi, eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
test eax, eax
jne 0x40720f
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
pop edi
mov dword [ecx], eax
mov byte [esi + eax], 0
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x407220
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x51676c]
test eax, eax
je 0x407243
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret
Function at 0x407a40
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ebp, ebp
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x1c], 0x1c
xor eax, eax
mov al, byte [esi + str.91__]
dec eax
mov ecx, eax
and ecx, 0x80000007
jns 0x407a71
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, 0x80
sar edx, cl
mov ecx, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
and eax, 0xff
mov al, byte [eax + edi]
test al, cl
je 0x407a9a
mov edx, bind
mov ecx, esi
shr edx, cl
or ebp, edx
xor eax, eax
mov al, byte [esi + 0x46f654]
dec eax
mov ecx, eax
and ecx, 0x80000007
jns 0x407ab2
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, 0x80
sar edx, cl
mov ecx, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
and eax, 0xff
mov al, byte [eax + edi]
test al, cl
je 0x407adb
mov edx, bind
mov ecx, esi
shr edx, cl
or ebx, edx
mov eax, dword [esp + 0x1c]
inc esi
dec eax
mov dword [esp + 0x1c], eax
jne 0x407a59
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], 0
add eax, 4
mov dword [esp + 0x14], 0x46f628
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0x10
jmp 0x407b18
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x10]
push ebp
call fcn.00407a20
mov esi, eax
push ebx
mov dword [esp + 0x34], esi
call fcn.00407a20
mov ecx, dword [esp + 0x1c]
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
cmp byte [ecx], 2
jne 0x407b53
push esi
call fcn.00407a20
push edi
mov dword [esp + 0x34], eax
call fcn.00407a20
add esp, 8
mov dword [esp + 0x10], eax
xor ebp, ebp
mov eax, 0x46f670
mov dword [esp + 0x20], 4
xor dl, dl
xor esi, esi
mov edi, 6
mov cl, byte [eax]
mov ebx, bind
dec ecx
shr ebx, cl
mov ecx, dword [esp + 0x2c]
test ecx, ebx
je 0x407b88
mov ebx, 0x20
mov ecx, esi
sar ebx, cl
or dl, bl
inc esi
inc eax
dec edi
jne 0x407b6b
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
add ecx, ebp
inc ebp
mov byte [ecx + esi], dl
mov ecx, dword [esp + 0x20]
dec ecx
mov dword [esp + 0x20], ecx
jne 0x407b62
mov ebp, dword [esp + 0x1c]
mov eax, 0x46f688
mov dword [esp + 0x20], 4
xor dl, dl
xor esi, esi
mov edi, 6
mov cl, byte [eax]
mov ebx, bind
sub ecx, 0x1d
shr ebx, cl
mov ecx, dword [esp + 0x10]
test ecx, ebx
je 0x407bdf
mov ebx, 0x20
mov ecx, esi
sar ebx, cl
or dl, bl
inc esi
inc eax
dec edi
jne 0x407bc0
mov ecx, dword [esp + 0x20]
mov byte [ebp], dl
inc ebp
dec ecx
mov dword [esp + 0x20], ecx
jne 0x407bb7
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov eax, 8
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x24]
inc esi
dec eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
jne 0x407b10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x407c30
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
xor edx, edx
mov esi, 0x20
mov cl, byte [edx + 0x46f8d0]
mov ebx, bind
dec ecx
shr ebx, cl
test edi, ebx
je 0x407c5d
mov ebx, bind
mov ecx, edx
shr ebx, cl
or eax, ebx
inc edx
dec esi
jne 0x407c40
pop edi
pop esi
pop ebx
ret