joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e1c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x100e1c80
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp + 0xc], edx
add esi, ebx
mov dword [ebp - 4], esi
cmp esi, edx
jae 0x100e1cb2
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x100e1caf
inc esi
cmp esi, edx
jb 0x100e1ca0
mov dword [ebp - 4], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x100e1dda
cmp ecx, 3
jbe 0x100e1cf2
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x100e1d30
cmp cl, 0xff
je 0x100e1d30
mov edx, dword [ebp + 0xc]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x100e1c94
dec ecx
shl eax, cl
and eax, 7
je 0x100e1cca
cmp byte [eax + 0x10281e14], 0
je 0x100e1d1d
movzx ecx, byte [eax + 0x10281e1c]
mov edx, esi
sub edx, ecx
mov cl, byte [edx + 4]
test cl, cl
je 0x100e1d1a
cmp cl, 0xff
jne 0x100e1cca
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
and eax, 3
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x100e1c94
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x100e1d5e
lea edx, [edi + ebx]
add edx, esi
jmp 0x100e1d64
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x100e1da2
movzx edi, byte [eax + 0x10281e1c]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x100e1d8e
cmp cl, 0xff
jne 0x100e1da2
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x100e1d51
mov esi, dword [ebp - 4]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
neg cl
mov byte [esi + 1], dl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp + 0xc]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x100e1c94
pop edi
pop esi
cmp ecx, 3
jbe 0x100e1def
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100efbb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [0x1034c238], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x100efc25
test edi, edi
je 0x100efc25
mov eax, dword [0x1034c23c]
test eax, eax
jne 0x100efc1f
mov esi, dword [esp + 0x1c]
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.100ef9b0
add esp, 0x10
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.102613f3
add esp, 4
push eax
call fcn.100ee0c0
push dword [0x1034c234]
call fcn.102562cb
add esp, 0x18
call fcn.1025c8ad
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x1034c23c], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test edi, edi
je 0x100efc58
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.RECV__s:_d_recv__lu____ld_n
call fcn.100ef9b0
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret

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

Disassembly:
cmp byte [0x1034c238], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x100efd05
test edi, edi
je 0x100efd05
mov eax, dword [0x1034c23c]
test eax, eax
jne 0x100efcff
mov esi, dword [esp + 0x1c]
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.100ef9b0
add esp, 0x10
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.102613f3
add esp, 4
push eax
call fcn.100ee0c0
push dword [0x1034c234]
call fcn.102562cb
add esp, 0x18
call fcn.1025c8ad
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x1034c23c], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test edi, edi
je 0x100efd38
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.SEND__s:_d_send__lu____ld_n
call fcn.100ef9b0
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret
Function at 0x10108010
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c4
mov eax, dword [0x103440b4]
xor eax, esp
mov dword [esp + 0x1c0], eax
cmp byte [0x1034c314], 0
push ebx
mov ebx, dword [esp + 0x1cc]
mov dword [esp + 0x10], ebx
jne 0x10108049
call fcn.10182f00
test eax, eax
je 0x10108061
mov byte [0x1034c314], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.100e5dee
add esp, 0x1c4
ret
mov eax, dword [ebx + 0x9f8]
test eax, eax
je 0x10108082
push 0x400
push eax
call fcn.10183bc0
add esp, 8
call fcn.10182f00
test eax, eax
jne 0x10108049
push ebp
push esi
push edi
nop word [eax + eax]
mov ebx, 2
mov dword [esp + 0x18], 4
lea eax, [esp + 0x90]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
nop dword [eax]
lea eax, [esp + 0x40]
push eax
call fcn.100f5950
push 0
push 1
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x3c], xmm0
movups xmmword [esp + 0x2c], xmm0
call fcn.100feff0
lea eax, [esp + 0x5c]
push eax
call fcn.100f5950
mov esi, dword [eax + 8]
lea eax, [esp + 0x70]
push eax
call fcn.100f5950
add esp, 0x14
lea ebp, [ebx + 1]
mov ecx, eax
mov eax, esi
cdq
push 0
add eax, dword [ecx]
push ebp
adc edx, dword [ecx + 4]
push edx
push eax
call fcn.100e6d10
movups xmm1, xmmword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov edi, eax
mov ebx, edx
dec esi
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 4
movd ecx, xmm0
shld ebx, edi, 8
push ecx
push eax
push 0
push esi
shl edi, 8
call fcn.100e6d10
xor edi, eax
xor ebx, edx
lea eax, [esp + 0x70]
mov dword [esp + 0x20], edi
push eax
mov dword [esp + 0x28], ebx
call fcn.100f5950
lea esi, [eax + 8]
lea eax, [esp + 0x84]
push eax
call fcn.100f5950
mov edx, dword [esp + 0x18]
add esp, 8
mov ebx, ebp
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
add ecx, dword [esi]
lea eax, [edx + 2]
imul edx, dword [esp + 0x28]
imul ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 0x10
xor ecx, edx
mov dword [esp + 0x28], ecx
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
jne 0x101080b0
movsd xmm0, qword [0x1028a600]
lea eax, [esp + 0x90]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.10182d30
add esp, 0x10
call fcn.10182f00
test eax, eax
je 0x10108090
lea eax, [esp + 0xd0]
mov byte [esp + 0xd0], 0
push 0x100
push eax
call fcn.10183a00
add esp, 8
cmp byte [esp + 0xd0], 0
pop edi
pop esi
pop ebp
je 0x10108214
lea eax, [esp + 0xc4]
push 0x400
push eax
call fcn.10183bc0
add esp, 8
call fcn.10182f00
test eax, eax
jne 0x10108049
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [esp + 0x14]
call fcn.100ff1d0
add esp, 8
call fcn.10182f00
mov ecx, dword [esp + 0x1c4]
neg eax
pop ebx
sbb eax, eax
xor ecx, esp
and eax, 0xffffffdd
add eax, 0x23
call fcn.100e5dee
add esp, 0x1c4
ret
Function at 0x1010d100
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x1028a608
push 0x2d
lea esi, [ebp + 1]
push esi
push ebp
call fcn.100efae0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1010d15d
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x1010d17b
cmp esi, ebx
je 0x1010d17b
cmp esi, 0x8000
ja 0x1010d17b
cmp esi, ebx
jb 0x1010d174
push 0x1028a608
push 0x2d
push esi
push edi
call fcn.100efae0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1010d120
push 0x1028a608
push 0x2f
push ebp
call fcn.100ef970
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x1028a608
push 0x3a
push edi
call fcn.100ef970
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x101e6140
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x101e6154
mov dword [esp + 0x18], fcn.101e4920
jmp fcn.101ddc90
mov dword [esp + 0x18], fcn.101e3bc0
jmp fcn.101dd990
Function at 0x1023cce5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x1026c8fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1026c779

Function at 0x10275873
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10275533
Function at 0x401150
Capabilities:
Read file on windows

Disassembly:
movzx eax, word [0x5c9f24]
mov ecx, dword [0x5c9eac]
push 0x5c9f00
push 0x5c9f7c
push eax
push 0x5c9ee0
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [0x5c9f18]
push 0xbb8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4011a3
mov eax, dword [0x5c9eac]
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [0x5c9eb0], 0
mov ecx, dword [0x5c9f18]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x5c9eb0]
ret

Function at 0x402d00
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5befac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push esi
push eax
xor esi, esi
mov dword [ebp - 8], 4
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x402d46
push dword [ebp - 8]
call fcn.0054acaf
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test esi, esi
je 0x402d8f
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._0.2X__0.2X__0.2X__0.2X__0.2X__0.2X
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.005485ed
add esp, 0x24
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005428fa
mov esp, ebp
pop ebp
ret 4
Function at 0x402db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5befac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.00545a70
push 0x80
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00545a70
push 0x80
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00545a70
add esp, 0x24
lea eax, [ebp - 0x88]
push eax
call fcn.00402d00
lea ecx, [ebp - 0x224]
call fcn.004028b0
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x402e23
mov ecx, dword [ecx]
lea edx, [ebp - 0x108]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x402e30
lea ecx, [ebp - 0x224]
call fcn.00408840
lea edx, [ebp - 0x208]
mov dword [ebp - 0x20c], 0xf0238755
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x402e60
lea edi, [ebp - 0x88]
sub edx, ecx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x402e72
lea ebx, [ebp - 0x108]
sub edi, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402e84
sub ebx, ecx
xor esi, esi
test edx, edx
jle 0x402eae
mov eax, esi
lea ecx, [ebp - 0x20c]
and eax, 3
add ecx, eax
mov al, byte [ebp + esi - 0x208]
inc esi
xor byte [ecx], al
cmp esi, edx
jl 0x402e93
xor edx, edx
test edi, edi
jle 0x402ecf
mov eax, edx
lea ecx, [ebp - 0x20c]
and eax, 3
add ecx, eax
mov al, byte [ebp + edx - 0x88]
inc edx
xor byte [ecx], al
cmp edx, edi
jl 0x402eb4
xor edx, edx
test ebx, ebx
jle 0x402ef0
mov eax, edx
lea ecx, [ebp - 0x20c]
and eax, 3
add ecx, eax
mov al, byte [ebp + edx - 0x108]
inc edx
xor byte [ecx], al
cmp edx, ebx
jl 0x402ed5
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005428fa
mov esp, ebp
pop ebp
ret
Function at 0x4035b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x5befac]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.00418a91
push dword [esi + 0xd0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x80
push dword [esi + 0x20]
call ebx
push dword [esi + 0xd0]
push 0
push 0x80
push dword [esi + 0x20]
call ebx
push 8
call fcn.00401420
add esp, 4
cmp eax, 0x8620
jne 0x403629
push ecx
call fcn.00403e50
dec al
movzx eax, al
neg eax
sbb eax, eax
add eax, 2
mov dword [esi + 0xd4], eax
jmp 0x403633
mov dword [esi + 0xd4], 0
mov ecx, esi
call fcn.00403c60
mov ecx, esi
call fcn.00403900
lea eax, [esp + 0x10]
push eax
call fcn.0054ad39
add esp, 4
push dword [esp + 0x10]
call fcn.0054ad7b
add esp, 4
call fcn.00404c00
test al, al
jne 0x40367f
push 0
push 0
push str.Error___11101
call fcn.0041a50b
cmp eax, 1
jne 0x4037ca
jmp 0x4037e4
mov ecx, esi
call fcn.00404cc0
test al, al
jne 0x403695
push 0
push 0
push str.Error___11102
jmp 0x40366c
call fcn.00408120
test al, al
jne 0x4036a9
push 0
push 0
push str.Error___11103
jmp 0x40366c
call fcn.004080b0
test al, al
jne 0x4036bd
push 0
push 0
push str.Error___11104
jmp 0x40366c
push str.MegaLock_P
mov ecx, esi
call fcn.00423803
push str.1.43
lea ecx, [esi + 0xe0]
call fcn.00409f10
mov eax, dword [0x5c9adc]
mov dword [esi + 0xe4], eax
mov eax, dword [0x5c9ad8]
mov dword [esi + 0xe8], eax
mov eax, dword [0x5c9572]
mov dword [esi + 0x170], eax
mov eax, dword [0x5c9d6a]
mov ecx, dword [0x5c9d66]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x4037eb
mov eax, dword [ecx]
xor edi, edi
mov dword [esp + 0xc], eax
cmp dword [eax], edi
jle 0x403761
nop
push 0x40
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00545a70
add esp, 0xc
lea eax, [esp + 0x18]
inc edi
push edi
push 0x5a2860
push eax
call fcn.004095c0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0
push 0x143
push dword [esi + 0x10c]
call ebx
mov eax, dword [esp + 0xc]
cmp edi, dword [eax]
jl 0x403720
mov eax, dword [0x5c9cec]
push 0
test eax, eax
jne 0x40376f
push eax
jmp 0x403771
dec eax
push eax
push 0x14e
push dword [esi + 0x10c]
call ebx
push 0
mov ecx, esi
call fcn.0042158b
push 1
mov ecx, esi
call fcn.0042158b
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
xor esi, esi
nop dword [eax + eax]
push 0x80
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00545a70
add esp, 0xc
lea eax, [esp + 0x18]
inc esi
push esi
push 0x5a2860
push eax
call edi
add esp, 0xc
cmp esi, 0x3c
jl 0x4037a0
mov ecx, dword [esp + 0x9c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005428fa
mov esp, ebp
pop ebp
ret
push 0
call fcn.0054afdf
push str.invalid_vector_T__subscript
call fcn.00543f3c
int3
Function at 0x403e50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5befac]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00545a70
add esp, 0xc
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x110], 0x18
push eax
lea eax, [ebp - 0x120]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareVallyPoker
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404020
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 0x5a2618
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404020
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x110], 4
push eax
lea eax, [ebp - 0x120]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareVallyPoker
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404020
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0x5a2630
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404020
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
lea eax, [ebp - 0x118]
push eax
push str.Check
push ecx
call fcn.004041c0
test al, al
je 0x404020
lea ecx, [ebp - 0x10c]
mov eax, str.Yamapo
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403fc0
test dl, dl
je 0x403fbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403fc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x403fa0
xor eax, eax
jmp 0x403fc5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404020
call fcn.00402db0
mov edx, dword [ebp - 0x114]
cmp edx, eax
jne 0x404020
movsx ecx, byte [ebp - 0x10c]
movsx eax, byte [ebp - 0x108]
imul ecx, edx
add ecx, eax
movsx eax, byte [ebp - 0x105]
add ecx, eax
movsx eax, byte [ebp - 0x101]
add ecx, eax
movsx eax, byte [ebp - 0x100]
add ecx, eax
cmp dword [ebp - 0x118], ecx
jne 0x404020
mov al, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005428fa
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor al, al
xor ecx, ebp
call fcn.005428fa
mov esp, ebp
pop ebp
ret 4
Function at 0x404040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5befac]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00545a70
add esp, 0xc
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + str.Yamapo]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x105], al
test al, al
jne 0x404070
call fcn.00402db0
movsx ecx, byte [ebp - 0x104]
imul ecx, eax
mov dword [ebp - 0x108], eax
movsx eax, byte [ebp - 0x100]
add ecx, eax
movsx eax, byte [ebp - 0xfd]
add ecx, eax
movsx eax, byte [ebp - 0xf9]
add ecx, eax
movsx eax, byte [ebp - 0xf8]
add ecx, eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10c], ecx
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareVallyPoker
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4041ae
push 0x18
lea eax, [ebp - 0x104]
push eax
push 3
push 0
push 0x5a2618
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4041ae
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareVallyPoker
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4041ae
push 4
lea eax, [ebp - 0x108]
push eax
push 3
push 0
push 0x5a2630
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4041ae
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
lea eax, [ebp - 0x10c]
push eax
push str.Check
push ecx
call fcn.00404250
test al, al
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005428fa
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.005428fa
mov esp, ebp
pop ebp
ret 4

Function at 0x4041c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5befac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push edi
mov edi, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareVallyPoker
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404215
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005428fa
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp + 0x14]
push eax
push edi
push 0
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404201
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.005428fa
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404250
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5befac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push edi
mov edi, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareVallyPoker
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4042a5
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005428fa
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push edi
push 3
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x404291
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.005428fa
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4042e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5befac]
xor eax, ebp
mov dword [ebp - 4], eax
push 8
call fcn.00401420
add esp, 4
test eax, eax
je 0x404305
cmp eax, 0x8620
je 0x404315
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005428fa
mov esp, ebp
pop ebp
ret
push 0
call fcn.00401760
add esp, 4
test al, al
jne 0x404305
push ebx
push 0x30
push 0x3a
call fcn.004015e0
xor eax, eax
mov byte [ebp - 0x14], 0
add esp, 8
mov dword [ebp - 0xb], 0
xorps xmm0, xmm0
mov byte [ebp - 7], 0
xor bl, bl
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 0x18], 0
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x1c], bl
nop dword [eax]
push 0xff
push dword [ebp - 0x1c]
call fcn.004016a0
movzx ecx, bl
add esp, 8
mov byte [ebp + ecx - 0x14], al
cmp al, 0x20
je 0x404387
inc bl
mov byte [ebp - 0x1c], bl
cmp bl, 0xd
jb 0x404360
jmp 0x404398
movzx eax, bl
cmp eax, 0xe
jae 0x40449f
mov byte [ebp + eax - 0x14], 0
push esi
mov bl, 0xd
lea esi, [ebp - 0x18]
push edi
mov byte [ebp - 0x1c], bl
mov edi, esi
nop dword [eax]
nop dword [eax + eax]
push 0xff
push dword [ebp - 0x1c]
call fcn.004016a0
inc bl
mov byte [edi], al
add esp, 8
mov byte [ebp - 0x1c], bl
lea edi, [edi + 1]
cmp bl, 0x10
jb 0x4043b0
lea ecx, [ebp - 0x14]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4043d5
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push str.Yamapo
push eax
call fcn.0054c0b0
add esp, 0xc
test eax, eax
jne 0x404408
lea eax, [ebp - 0x18]
push eax
call fcn.0054c084
movzx eax, ax
add esp, 4
test ax, ax
jne 0x40441b
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005428fa
mov esp, ebp
pop ebp
ret
dec eax
mov dword [ebp - 0x18], 0
xor edx, edx
movzx eax, ax
mov ecx, 0xa
div ecx
add dl, 0x30
movzx eax, ax
mov byte [ebp - 0x16], dl
test ax, ax
je 0x40444c
xor edx, edx
div ecx
add dl, 0x30
movzx eax, ax
mov byte [ebp - 0x17], dl
jmp 0x404450
mov byte [ebp - 0x17], 0x20
test ax, ax
je 0x404464
xor edx, edx
movzx eax, ax
div ecx
add dl, 0x30
mov byte [ebp - 0x18], dl
jmp 0x404468
mov byte [ebp - 0x18], 0x20
mov bl, 0xd
mov byte [ebp - 0x1c], bl
nop dword [eax]
movzx eax, byte [esi]
push eax
push dword [ebp - 0x1c]
call fcn.004015e0
inc bl
lea esi, [esi + 1]
add esp, 8
mov byte [ebp - 0x1c], bl
cmp bl, 0x10
jb 0x404470
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005428fa
mov esp, ebp
pop ebp
ret
call fcn.00542cc7
int3