joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473468
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff00
mov ebx, edx
mov esi, eax
push esp
call sub.user32.dll_GetKeyboardState
mov eax, ebx
mov edx, 2
call fcn.00404cd0
push 0
mov eax, ebx
call fcn.00404b9c
push eax
lea eax, [esp + 8]
push eax
push 0
movzx edi, si
push edi
call sub.user32.dll_MapVirtualKeyA
push eax
push edi
call sub.user32.dll_ToAscii
sub eax, 1
jb 0x4734b4
je 0x4734bd
dec eax
je 0x4734d2
jmp 0x4734cb
mov eax, ebx
call fcn.00404684
jmp 0x4734d2
mov eax, ebx
mov edx, 1
call fcn.00404cd0
jmp 0x4734d2
mov eax, ebx
call fcn.00404684
add esp, 0x100
pop edi
pop esi
pop ebx
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x4029e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4e5a1c], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x402a9a
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x4e5a18], eax
inc ebx
cmp ebx, 0x100
jb 0x402a00
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x402ac6
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4e5a18]
sub edi, 1
jne 0x402aa5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x402af8
nop dword [eax]
cmp cl, 0x23
jne 0x402adf
cmp byte [esi], cl
jne 0x402adf
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x4e5a18]
test cl, cl
jne 0x402ad0
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x403000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x403012
mov dword [ebx], 0
mov edx, 0x4d7568
call fcn.00402eb0
mov esi, eax
test esi, esi
jne 0x403026
pop esi
pop ebx
pop ebp
ret
push edi
push 2
push 0
push esi
call fcn.00497883
add esp, 0xc
test eax, eax
jne 0x4030f0
push esi
call fcn.00496bd4
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x4030f0
push 0
push 0
push esi
call fcn.00497883
add esp, 0xc
test eax, eax
jne 0x4030f0
mov ecx, dword [0x4e3ef0]
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
mov eax, dword [ecx + 0xbc]
inc dword [ecx + 0x310]
call eax
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x4030f0
push esi
push edi
push 1
push eax
call fcn.0049ba91
add esp, 0x10
cmp eax, edi
je 0x4030c1
push esi
call fcn.00497530
mov eax, dword [0x4e3ef0]
mov ecx, dword [ebp + 8]
push ecx
dec dword [eax + 0x310]
mov eax, dword [eax + 0xc0]
call eax
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x4030d9
push eax
mov eax, dword [ebp + 8]
add eax, edi
push 0
push eax
call fcn.00493020
add esp, 0xc
push esi
call fcn.00497530
add esp, 4
test ebx, ebx
je 0x4030e8
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.00497530
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41a910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ecx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebx + 0xc], ecx
jle 0x41aaf6
mov esi, dword [ebx + 8]
mov eax, 0x100
add esi, 0x14
xorps xmm0, xmm0
mov dword [ebp - 0x10], esi
movss xmm1, dword [esi - 0x14]
comiss xmm1, xmm0
jbe 0x41a99e
mov esi, dword [edx + 4]
mov edi, dword [edx + 0x1c]
cwde
movzx ecx, byte [edi + esi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
add cx, ax
mov eax, 0x100
movsx edx, cx
movzx ecx, byte [edi + esi + 4]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
mov esi, dword [ebp - 0x10]
add cx, ax
movsx eax, cx
sub eax, edx
movd xmm0, eax
jmp 0x41a9c1
mov eax, dword [ebp - 8]
mov edx, dword [edx + 0x14]
xorps xmm1, xmmword [0x4dc870]
mov eax, dword [eax + 4]
movzx ecx, byte [edx + eax + 0x12]
movzx eax, byte [edx + eax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov ecx, dword [ebp - 0xc]
xor edi, edi
cvtdq2ps xmm0, xmm0
movzx eax, byte [ecx + 0x18]
mov byte [esi], al
movzx eax, byte [ecx + 0x1c]
divss xmm1, xmm0
mov byte [esi + 1], al
movss dword [ebp - 0x14], xmm1
cmp dword [esi - 8], edi
jle 0x41aad8
mov eax, dword [ebp - 4]
mov ecx, dword [ebx + 0x10]
shl eax, 4
add ecx, 6
add eax, ecx
mov dword [ebp - 0x10], eax
nop dword [eax]
mov edx, dword [esi - 0xc]
test edx, edx
jne 0x41aa0e
mov edx, dword [esi - 0x10]
add edx, edi
jmp 0x41aa11
mov edx, dword [edx + edi*4]
mov ecx, dword [ebp - 8]
call fcn.004153f0
mov ecx, dword [ebp - 0xc]
mov edx, eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ecx + 0x1c]
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 4], 0
mov dword [esp], 0
addsd xmm0, qword [eax*8 + 0x4dc840]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 8]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm3, xmm1
addsd xmm0, qword [eax*8 + 0x4dc840]
cvtpd2ps xmm2, xmm0
mulss xmm2, xmm1
call fcn.00417790
mov ecx, dword [ebp - 0xc]
inc edi
mov edx, dword [ebp - 0x10]
add esp, 0x18
movss xmm1, dword [ebp - 0x14]
movzx eax, word [ecx + 0x18]
sub ax, word [ebp - 0x18]
dec ax
add ax, word [ecx + 0x14]
add ax, word [ebp - 0x1c]
mov word [edx - 2], ax
movzx eax, word [ecx + 0x1c]
sub ax, word [ebp - 0x20]
dec ax
add ax, word [ecx + 0x14]
add ax, word [ebp - 0x24]
mov ecx, dword [ebp - 4]
mov word [edx], ax
inc ecx
add edx, 0x10
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
cmp edi, dword [esi - 8]
jl 0x41aa00
jmp 0x41aadb
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
add esi, 0x18
sub dword [ebx + 0xc], 1
xorps xmm0, xmm0
mov dword [ebp - 0x10], esi
mov eax, 0x100
jne 0x41a950
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x41f220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb3e6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e3040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 2
mov eax, 0x3f
mov dword [esi + 4], 0x3f800000
mov word [esi + 0x3c], ax
call fcn.0041f380
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4242a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb79d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4e3040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], 0
push 0x40
mov dword [ebp - 4], 0
call fcn.00439137
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
push esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0042ec10
lea esi, [edi + 0x18]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x42431f
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
push 8
mov dword [ebp - 4], 0
call fcn.00439137
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], edi
mov dword [eax + 4], 0x424120
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
push ecx
push 0
push eax
push 0x436bd0
push 0
push 0
call fcn.004a0c4a
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4243ab
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4243b9
push ecx
push eax
call fcn.0043acbb
add esp, 8
test eax, eax
jne 0x4243b9
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x424390
mov edx, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438c87
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x18], 0
call fcn.00439d67
push 1
call fcn.00439d67
int3
Function at 0x424d10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x4e3040]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x424d56
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00438c87
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x424dbb
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
mov eax, str.Game.exe
lea ecx, [esp + 0x34]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x424da0
test dl, dl
je 0x424d9c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x424da0
add ecx, 2
add eax, 2
test dl, dl
jne 0x424d80
xor eax, eax
jmp 0x424da5
sbb eax, eax
or eax, 1
test eax, eax
je 0x424db7
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x424d74
jmp 0x424dbb
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00438c87
mov esp, ebp
pop ebp
ret
Function at 0x4285a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbead
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x150
mov eax, dword [0x4e3040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
push 0
push 2
mov dword [ebp - 0x15c], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x428618
mov edx, str.Error_creating_process_snapshot
mov ecx, 0x4e4e00
call fcn.00432880
push eax
call fcn.00432b20
add esp, 4
jmp 0x42876c
lea eax, [ebp - 0x158]
mov dword [ebp - 0x158], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x428650
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, str.Error_getting_first_process
jmp 0x428600
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x134]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428670
sub eax, edx
lea ecx, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00433f10
push ecx
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0042e8f0
cmp eax, 0xffffffff
je 0x428718
push dword [ebp - 0x150]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x428712
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Killed_process_with_name
mov ecx, 0x4e4d18
call fcn.0042cf20
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x2c]
mov ecx, eax
call fcn.00435fe0
add esp, 4
push dword [ebp - 0x150]
push ecx
push str._and_PID
mov ecx, eax
call fcn.0042cf20
add esp, 4
mov ecx, eax
call fcn.0042d270
push eax
call fcn.00432b20
add esp, 4
mov esi, dword [ebp - 0x15c]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x42874f
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x428745
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42878c
push ecx
push edx
call fcn.004390b0
add esp, 8
lea eax, [ebp - 0x158]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x428650
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00438c87
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004a1e6d
int3
Function at 0x42dc80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x42dcb2
jl 0x42dca5
test ecx, ecx
jne 0x42dcb2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x42dd72
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00430bb0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x42dd1e
jg 0x42dcdd
test esi, esi
je 0x42dd1e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x42dcf5
mov eax, dword [esp + 0x10]
jl 0x42dcef
cmp eax, esi
jae 0x42dcf5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004931f0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x42dd3f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x42dd5b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x42dcc4
jl 0x42dd5b
test ecx, ecx
jne 0x42dcc4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x42ddb6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x42ddb6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004931f0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x42de27
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x42dddc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x42de12
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0049ba91
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x42de27
cmp edi, eax
ja 0x42ddf0
test edi, edi
je 0x42de27
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0049ba91
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x431f20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc8b0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e3040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00439137
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043a48e
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00431e80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
movzx eax, byte [esi]
cmp byte [eax + 0x4dc080], 0
je 0x43802e
nop dword [eax + eax]
movzx eax, byte [esi + 1]
inc esi
cmp byte [eax + 0x4dc080], 0
jne 0x438020
mov dword [edi], esi
mov ecx, esi
mov dl, byte [esi]
movzx eax, dl
mov dword [ebp - 4], ecx
cmp byte [eax + 0x4dbc80], 0
je 0x4381bb
cmp dl, 0x26
jne case.0x438067.36
movsx eax, byte [esi + 1]
add eax, 0xffffffdd
cmp eax, 0x4e
ja case.0x438067.36
movzx eax, byte [eax + 0x4381f8]
jmp dword [eax*4 + 0x4381e0]
mov al, byte [esi + 2]
cmp al, 0x6d
jne 0x438095
cmp byte [esi + 3], 0x70
jne case.0x438067.36
cmp byte [esi + 4], 0x3b
jne case.0x438067.36
mov byte [ecx], 0x26
inc ecx
add esi, 5
jmp 0x4381a6
cmp al, 0x70
jne case.0x438067.36
cmp byte [esi + 3], 0x6f
jne case.0x438067.36
cmp byte [esi + 4], 0x73
jne case.0x438067.36
cmp byte [esi + 5], 0x3b
jne case.0x438067.36
mov byte [ecx], 0x27
inc ecx
add esi, 6
jmp 0x4381a6
cmp byte [esi + 2], 0x75
jne case.0x438067.36
cmp byte [esi + 3], 0x6f
jne case.0x438067.36
cmp byte [esi + 4], 0x74
jne case.0x438067.36
cmp byte [esi + 5], 0x3b
jne case.0x438067.36
mov byte [ecx], 0x22
inc ecx
add esi, 6
jmp 0x4381a6
cmp byte [esi + 2], 0x74
jne case.0x438067.36
cmp byte [esi + 3], 0x3b
jne case.0x438067.36
mov byte [ecx], 0x3e
inc ecx
add esi, 4
jmp 0x4381a6
cmp byte [esi + 2], 0x74
jne case.0x438067.36
cmp byte [esi + 3], 0x3b
jne case.0x438067.36
mov byte [ecx], 0x3c
inc ecx
add esi, 4
jmp 0x4381a6
mov cl, byte [esi + 2]
xor edx, edx
cmp cl, 0x78
jne 0x438168
movzx eax, byte [esi + 3]
add esi, 3
mov al, byte [eax + 0x4dbb80]
cmp al, 0xff
je 0x43818f
nop
inc esi
movzx eax, al
shl edx, 4
add edx, eax
movzx eax, byte [esi]
mov al, byte [eax + 0x4dbb80]
cmp al, 0xff
jne 0x438150
jmp 0x43818f
movzx eax, cl
add esi, 2
mov al, byte [eax + 0x4dbb80]
cmp al, 0xff
je 0x43818f
movzx eax, al
lea ecx, [edx + edx*4]
inc esi
lea edx, [eax + ecx*2]
movzx eax, byte [esi]
mov al, byte [eax + 0x4dbb80]
cmp al, 0xff
jne 0x438178
lea ecx, [ebp - 4]
call fcn.00438930
cmp byte [esi], 0x3b
jne 0x4381c5
mov ecx, dword [ebp - 4]
inc esi
jmp 0x4381a9
mov byte [ecx], dl
inc ecx
inc esi
mov dword [ebp - 4], ecx
mov dl, byte [esi]
movzx eax, dl
cmp byte [eax + 0x4dbc80], 0
jne 0x438047
mov dword [edi], esi
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push str.expected__
lea ecx, [ebp - 0x18]
call fcn.00422950
push 0x4e1a4c
mov eax, ecx
push eax
call fcn.0049317a
xor al, 0x81
inc ebx
add byte [esi - 0x80], ch
inc ebx
add bl, bh
add byte [ebx], 0x1b
add dword [ebx], case.0x438067.113
mov byte [0x4381], al
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215041
add eax, 84214277
add eax, 84214533
add eax, -859044859
int3