joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x414a9f
pop dword [ebp - 0x48]
mov eax, 0x3f32baf1
sub eax, 0x3ef17052
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3b583
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x3fe1
mov ebx, eax
mov edx, 0x206fb3e5
add edx, 0xdfd3ac1b
add edx, dword [ebp - 0x48]
mov edi, 0xddc2ec1c
xor dword [ebp - 0x2c], eax
mov esi, dword [edx]
mov dword [ebp - 0x20], 0xe0bf44a3
xor esi, edi
mov dword [ebp - 0x30], 0x5c4b112a
mov dword [ebx], esi
sub dword [ebp - 0x3c], 0x4b226800
add ebx, 4
add edx, 4
loop 0x414aed
add eax, 0x9edc2c93
add eax, 0x6124c5c4
mov ebx, eax
add eax, 0x375bc333
add eax, 0xc8a43cd2
mov ecx, 0x16f0b49
add ecx, 0xfed0f4b7
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x402078
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
jne 0x402096
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x402096
mov esp, ebp
pop ebp
ret 4
mov eax, 0
jmp 0x4020a0
mov esp, ebp
pop ebp
ret 4

Function at 0x4039be
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00403809
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x403a35
mov eax, 0
jmp 0x403b0a
cmp dword [ebp - 0xc], 0xfffffdd8
jne 0x403a97
push dword [ebp - 4]
call fcn.00403b10
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp - 4]
call fcn.00403b55
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x403a82
push 6
call fcn.004138cc
add esp, 4
push 0xc
push dword [ebp - 0x10]
call fcn.00403546
mov dword [ebp - 0x14], eax
jmp 0x403af4
cmp dword [ebp - 0xc], 0xfffffdd9
jne 0x403af4
push dword [ebp - 4]
call fcn.00403b10
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp - 4]
call fcn.00403b55
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push 5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x403ae4
push 6
call fcn.004138cc
add esp, 4
push 0x10
push dword [ebp - 0x10]
call fcn.00403546
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403b00
push dword [ebp - 0x10]
call eax
mov eax, 0
jmp 0x403b0a
mov esp, ebp
pop ebp
ret 8

Function at 0x409a25
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, 1
cmp esi, eax
jl 0x409a51
mov ecx, dword [esp + 8]
push ebx
mov bl, byte [ecx]
mov edx, eax
and edx, 3
mov dl, byte [esp + edx + 0x14]
xor bl, dl
inc eax
mov byte [ecx], bl
inc ecx
cmp eax, esi
jle 0x409a38
pop ebx
pop esi
ret

Function at 0x412c01
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push 4
push eax
call fcn.00412c54
mov edi, dword [esp + 0x18]
add esp, 8
xor eax, eax
test edi, edi
jbe 0x412c4d
push ebx
push esi
mov esi, dword [esp + 0x14]
mov ecx, eax
mov dl, byte [esi]
and ecx, 3
mov bl, byte [esp + ecx + 0xc]
lea ecx, [esp + ecx + 0xc]
xor bl, dl
inc eax
inc esi
cmp eax, edi
mov byte [ecx], bl
jb 0x412c28
mov eax, dword [esp + 0xc]
pop esi
pop ebx
pop edi
pop ecx
ret
mov eax, dword [esp + 4]
pop edi
pop ecx
ret
Function at 0x413ce0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x413d49
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00413a60
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x4140c0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4140ea
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4140ea
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret

Function at 0x4140f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x414182
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x414174
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x41416c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x414135
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x4141e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4141fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4141f3
pop esi
ret
Function at 0x4147a0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x4147b3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.00417130
add esp, 4
test eax, eax
jne 0x4147c5
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x4147d4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x41482b
mov ebx, dword [ebx + 4]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41480e
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.004170f0
push ebp
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x41486d
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.00413a60
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x41486a
push esi
call fcn.00413af0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x414880
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1010
call fcn.00417910
mov eax, dword [esp + 0x1014]
push ebx
push ebp
mov ebp, dword [esp + 0x1020]
push esi
push edi
xor edi, edi
push 1
push edi
push edi
push eax
mov dword [ebp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x414982
jmp 0x4148bf
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x1024]
xor esi, esi
lea ecx, [esp + 0x18]
push esi
push ecx
lea edx, [esp + 0x28]
push 0x1000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41499f
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], esi
cmp eax, esi
jbe 0x41490b
mov cl, byte [esp + esi + 0x20]
test cl, cl
je 0x414902
inc esi
cmp esi, eax
jb 0x4148f3
jmp 0x41490b
inc esi
mov dword [esp + 0x14], 1
mov eax, dword [ebp]
mov ebx, edi
add edi, esi
test eax, eax
mov dword [esp + 0x1c], edi
je 0x414927
inc edi
push edi
push eax
call fcn.00413ab0
add esp, 8
jmp 0x414931
inc edi
push edi
call fcn.00413a60
add esp, 4
mov edi, eax
lea ecx, [esp + 0x20]
add edi, ebx
push esi
push ecx
push edi
mov dword [ebp], eax
call sub.MSVCRT.dll_strncpy
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
mov byte [edi + esi], 0
jne 0x4149b8
cmp dword [esp + 0x18], 0x1000
jb 0x4149eb
mov edx, dword [esp + 0x1024]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4148bb
mov eax, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
mov dword [eax], 0
mov eax, 1
pop ebx
add esp, 0x1010
ret
mov ecx, dword [esp + 0x102c]
pop edi
mov eax, 1
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x1010
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1024]
push 0
add esi, edx
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
mov dword [ecx], 1
xor eax, eax
pop ebx
add esp, 0x1010
ret
mov edx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
mov dword [edx], 1
mov eax, 1
pop ebx
add esp, 0x1010
ret

Function at 0x414a10
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edi
mov dword [esi], 0
call ebx
test eax, eax
je 0x414a9c
cmp dword [esp + 0x14], 4
jb 0x414a9c
mov edx, dword [esp + 0x10]
add edx, 8
push edx
call fcn.00413a60
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi], eax
push 0
push ecx
add eax, 8
push edx
push eax
push edi
call ebx
test eax, eax
je 0x414a8b
mov esi, dword [esi]
mov dword [esi], 1
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x10]
jne 0x414a9c
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edx, dword [esi]
push edx
call fcn.00413af0
add esp, 4
mov dword [esi], 0
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x422a7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x422a8c
pop dword [ebp - 0x20]
mov eax, 0x422a8c
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3ce67
push 0
mov eax, 0xb1888d70
add eax, 0x4eb9c4a8
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0xea988e67
add ecx, 0x1567b624
xor edx, edx
add edx, eax
mov edi, 0x435400
add edi, dword [ebp - 0x20]
mov esi, 0xf41a6052
sub esi, 0x5b916910
add dword [ebp - 0x18], edx
mov ebx, dword [edi]
xor dword [ebp - 8], 0xcc982847
sub ebx, esi
mov dword [edx], ebx
xor dword [ebp - 0x1c], 0x45951323
add edx, 0x4d08930c
sub edx, 0x4d089308
add edi, 0xa7dd18fb
add edi, 0x5822e709
loop 0x422ae2
add eax, 0x104ff
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x56ebd2
add ecx, 0xffe9142e
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
jne 0x401053
cmp dword [esi + 4], 0
jne 0x40105c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x401057
mov edx, dword [esi + 0x40]
push edx
mov dword [esi + 0x3c], 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
add esp, 4
test eax, eax
je 0x401053
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
dec dword [esi + 4]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
ret

Function at 0x401070
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, eax
push edi
mov edi, dword [esi + 4]
cmp edi, 2
jae 0x4010e5
test edi, edi
je 0x401089
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov dl, byte [eax]
mov byte [ecx], dl
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, edi
push eax
mov eax, dword [esi + 0x44]
mov edx, 0x4000
sar edx, cl
add eax, edi
push edx
push 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4010cf
mov ecx, dword [esi + 0x40]
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
add esp, 4
test eax, eax
je 0x4010cf
mov dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x44]
mov dword [esi], edx
cmp eax, 2
jae 0x4010e5
pop edi
mov dword [esi + 0x58], eax
pop esi
ret
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x4011be
cmp byte [eax + 1], 0x8b
jne 0x4011be
add dword [esi + 4], 0xfffffffe
add eax, 2
push ebx
mov dword [esi], eax
call fcn.00401000
mov edi, eax
call fcn.00401000
mov ebx, eax
cmp edi, 8
jne 0x4011b3
test bl, 0xe0
jne 0x4011b3
mov edi, 6
lea esp, [esp]
call fcn.00401000
sub edi, 1
jne 0x401130
test bl, 4
je 0x401161
call fcn.00401000
mov edi, eax
call fcn.00401000
shl eax, 8
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x401161
call fcn.00401000
cmp eax, 0xffffffff
jne 0x401150
test bl, 8
je 0x401174
call fcn.00401000
test eax, eax
je 0x401174
cmp eax, 0xffffffff
jne 0x401166
test bl, 0x10
je 0x40118e
lea esp, [esp]
call fcn.00401000
test eax, eax
je 0x40118e
cmp eax, 0xffffffff
jne 0x401180
test bl, 2
je 0x4011a2
mov edi, 2
call fcn.00401000
sub edi, 1
jne 0x401198
mov ecx, dword [esi + 0x3c]
neg ecx
sbb ecx, ecx
pop ebx
and ecx, 0xfffffffd
pop edi
mov dword [esi + 0x38], ecx
pop esi
ret
pop ebx
pop edi
mov dword [esi + 0x38], 0xfffffffd
pop esi
ret
pop edi
mov dword [esi + 0x58], 1
pop esi
ret
Function at 0x401280
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40132b
cmp byte [esi + 0x5c], 0x77
jne 0x40132b
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov dword [esi], ebp
mov dword [esi + 4], edi
test edi, edi
je 0x401311
lea ebx, [ebx]
cmp dword [esi + 0x10], 0
jne 0x4012da
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp eax, 0x4000
jne 0x40130a
mov dword [esi + 0x10], eax
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x10]
add dword [esi + 0x64], edx
add dword [esi + 0x68], eax
push 0
push esi
call fcn.004017e0
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
sub dword [esi + 0x64], ecx
sub dword [esi + 0x68], edx
add esp, 8
mov dword [esi + 0x38], eax
test eax, eax
jne 0x401311
test ecx, ecx
jne 0x4012b0
jmp 0x401311
mov dword [esi + 0x38], 0xffffffff
mov eax, dword [esi + 0x4c]
push edi
push ebp
push eax
call fcn.004033d0
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
sub eax, dword [esi + 4]
pop edi
pop ebp
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x401340
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x4013f4
cmp byte [esi + 0x5c], 0x77
jne 0x4013f4
mov dword [esi + 4], ebx
push edi
lea esp, [esp]
mov edi, 0x4000
sub edi, dword [esi + 0x10]
je 0x40138e
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp eax, edi
jne 0x4013ea
mov edx, dword [esi + 0x48]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x4000
test ebx, ebx
jne 0x4013da
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push ecx
push esi
call fcn.004017e0
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x4013bb
cmp eax, 0xfffffffb
jne 0x4013bb
mov dword [esi + 0x38], edi
test ecx, ecx
jne 0x4013c9
cmp dword [esi + 0x38], 1
je 0x4013c9
xor ebx, ebx
jmp 0x4013ce
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x401360
cmp eax, 1
je 0x401360
mov esi, dword [esi + 0x38]
mov eax, esi
dec eax
neg eax
sbb eax, eax
pop edi
and eax, esi
pop esi
pop ebx
ret
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x402390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x40240e
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x4023e1
sub eax, ebx
jmp 0x4023e3
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x4023d2
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x402402
sub eax, ebx
jmp 0x402404
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x4023f3
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x402469
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.00402090
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x402455
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x402469
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x402396
pop esi
pop ebp
pop ebx
ret
Function at 0x44cfbb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x44cfca
pop dword [ebp - 0x50]
mov eax, 0x44cfca
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xa858d04b
sub dword [ebp - 0x60], 0x5a068b00
mov dword [ebp - 0x5c], 0x7ffbad71
sub dword [ebp - 0x5c], 0x4dc8612c
mov dword [ebp - 0x58], 0xf15bd0bc
sub dword [ebp - 0x58], 0xa50f8c8e
mov dword [ebp - 0x54], 0xa7ac57c2
add dword [ebp - 0x54], 0x5853a83e
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x27c1acc3
sub dword [ebp - 0x60], 0xb34f436d
mov dword [ebp - 0x5c], 0xb7da4dd4
sub dword [ebp - 0x5c], 0x766dec5f
mov dword [ebp - 0x58], 0x8e7bc807
sub dword [ebp - 0x58], 0x2b0c5b9b
mov dword [ebp - 0x54], 0xbc8de585
sub dword [ebp - 0x54], 0xbc8de585
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x7eb57fee
sub eax, 0x7e6b0e5a
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x66028
push 0
call eax
mov ecx, 0x5f46
xor edi, edi
add edi, eax
mov ebx, 0xf00ab24a
sub ebx, 0xefbd7a4a
add ebx, dword [ebp - 0x50]
mov edx, 0xcaa818d2
sub edx, 0xce2d873e
xor dword [ebp - 0x4c], 0xb8712de6
mov esi, dword [ebx]
xor dword [ebp - 0x30], esi
sub esi, edx
add dword [ebp - 0x2c], 0xc1650726
mov dword [edi], esi
sub dword [ebp - 0x38], esi
add edi, 0xabe6caba
add edi, 0x5419354a
add ebx, 0x17f8c664
sub ebx, 0x17f8c660
loop 0x44d0de
add eax, 0x16feb
mov ebx, eax
add eax, 5
mov ecx, 0x80ba559
add ecx, 0xf8345aa7
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x4694e0
Capabilities:
Write file on windows

Disassembly:
push 0x14
mov eax, 0x4a0596
call fcn.0049f9fc
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x469508
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x4695b7
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esi
mov eax, dword [eax]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x469527
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x469529
xor eax, eax
cdq
mov dword [ebp - 0x10], eax
mov ecx, edx
mov dword [ebp - 0x14], ecx
test edi, edi
jl 0x4695ad
jg 0x46953c
test esi, esi
je 0x4695ad
test ecx, ecx
jl 0x46958f
jg 0x469546
test eax, eax
je 0x46958f
cmp edi, ecx
jg 0x469558
jl 0x469550
cmp esi, eax
jae 0x469558
mov eax, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
push eax
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [ebp - 0x14]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x4695ad
jg 0x469592
test esi, esi
je 0x4695ad
jmp 0x469592
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x4695ad
push dword [ebx + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
sub eax, esi
sbb edx, edi
call fcn.0049f9ca
ret 0xc
Function at 0x4695d0
Capabilities:
Read file on windows

Disassembly:
push 8
mov eax, 0x4a05b3
call fcn.0049f9fc
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x4695f8
jl 0x4695ef
test edi, edi
jne 0x4695f8
xor eax, eax
xor edx, edx
jmp 0x4696bc
cmp dword [ecx + 0x38], 0
je 0x46960e
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x4696bc
mov eax, dword [ecx + 0x1c]
mov ebx, edi
mov edx, dword [eax]
test edx, edx
je 0x469656
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x469656
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
push esi
push edx
push ebx
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov ecx, dword [ebp - 0x14]
add ebx, esi
mov dword [ebp - 0x10], ebx
add esp, 0xc
mov ebx, edi
sub ebx, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x46965c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x4c], 0
mov edx, ebx
je 0x4696b3
call fcn.00469f98
mov edx, ebx
jmp 0x469690
push dword [ecx + 0x4c]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add dword [ebp - 0x10], eax
sub ebx, eax
add esp, 0x10
mov edx, ebx
cmp eax, 0xfff
jne 0x4696c4
mov ecx, dword [ebp - 0x14]
mov eax, 0xfff
cmp ebx, eax
ja 0x46966d
test edx, edx
je 0x4696b3
push dword [ecx + 0x4c]
push ebx
push 1
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, ebx
add esp, 0x10
sub edx, eax
sub edi, edx
sbb esi, 0
mov eax, edi
mov edx, esi
call fcn.0049f9ca
ret 0xc
sub edi, ebx
jmp 0x4696b5