joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4074a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x407500
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x42928c]
test esi, esi
jle 0x407620
mov eax, dword [0x429290]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x407534
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4075b7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x407520
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x407647
mov eax, dword [0x429290]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x429290]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x407627
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4075b0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x4075c0
add dword [0x42928c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x429290]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4075b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40753e
mov eax, dword [0x429290]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x407b60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4292a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4292a0]
sub esp, 4
test ebx, ebx
je 0x407bb5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x407bae
test eax, eax
jne 0x407bae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x407b90
mov dword [esp], 0x4292a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x407ef0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x407f15
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x407f20
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x407f15
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x407f68
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x407f5e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x407f6a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x407f50
xor eax, eax
pop ebx
pop esi
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x403e59
pop dword [ebp - 0x28]
mov eax, 0xeced9620
sub eax, 0xecad57c7
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x915e7ab2
add dword [ebp - 0x38], 0xbcf3ca99
mov dword [ebp - 0x34], 0xe45206b7
sub dword [ebp - 0x34], 0xb21eba72
mov dword [ebp - 0x30], 0xace377e1
add dword [ebp - 0x30], 0x9f68cc4d
mov dword [ebp - 0x2c], 0xd252be40
add dword [ebp - 0x2c], 0x2dad41c0
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xbc73d2b
add dword [ebp - 0x38], 0x68ab2c2b
mov dword [ebp - 0x34], 0xe526e419
sub dword [ebp - 0x34], 0xa3ba82a4
mov dword [ebp - 0x30], 0x108b87c
sub dword [ebp - 0x30], 0x9d994c10
mov dword [ebp - 0x2c], 0xb067c566
sub dword [ebp - 0x2c], 0xb067c566
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x9cd3fa38
sub eax, 0x9c937964
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x354cd
push 0
call eax
mov ecx, 0xc56c18e7
add ecx, 0x3a94294f
mov edi, eax
mov esi, 0x411000
add esi, dword [ebp - 0x28]
mov ebx, 0x39f5b23d
sub ebx, 0x681a8d95
xor dword [ebp - 0x14], 0x7fcd75e6
mov edx, dword [esi]
xor dword [ebp - 0x24], ecx
xor edx, ebx
mov dword [edi], edx
sub dword [ebp - 4], edx
add edi, 0x8b4f7502
add edi, 0x74b08b02
add esi, 4
loop 0x403f70
add eax, 0x5fe35606
sub eax, 0x5fe25a5b
xor ebx, ebx
add ebx, eax
add eax, 0xe1eebf77
add eax, 0x1e11408e
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x402250
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0xc]
xor eax, 1
inc eax
imul eax, eax, 0x80000000
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, eax
or edi, 0x40000000
cmp byte [ebp + 0x10], 0
cmove edi, eax
cmp ebx, 2
jne 0x4022c3
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x402288
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 8
test eax, eax
jne 0x4022c3
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4022a2
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4022c3
pop edi
pop esi
mov dword [0x4a8ed8], 0xd
pop ebx
pop ebp
ret 0x10
cmp dword [esi + 0x14], 8
jb 0x4022cb
mov esi, dword [esi]
push 0
push 0x80
push ebx
push 0
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4022f6
xor eax, eax
cmp ebx, 3
sete al
add eax, 3
mov dword [0x4a8ed8], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x402490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40249e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4024b6
mov dword [0x4a8ed8], 0xb
or eax, eax
pop ebp
ret 4

Function at 0x4024c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4024ce
mov eax, dword [eax]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4024e2
mov al, 1
pop ebp
ret 8
mov dword [0x4a8ed8], 0xd
xor al, al
pop ebp
ret 8
Function at 0x402cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0xa8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi + 0x1c], 0
je 0x402d17
mov edi, 0x28
mov eax, str.VFSHelper::Init___VFSHelper
jmp 0x402d6e
push dword [ebp + 8]
lea ecx, [edi + 0x78]
call fcn.00414eb0
push 0
push 0
lea ebx, [edi + 0xc0]
mov dword [ebx + 0x10], edi
push ebx
push 0x413820
push 0
push 0
mov byte [ebx + 0x39], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x34], eax
test eax, eax
je 0x402d64
mov byte [ebx + 0x38], 1
mov bl, 1
push esi
mov byte [edi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
mov edi, 0x3f
mov eax, str.VFSHelper::Init___FileLoader
push eax
call fcn.004136e0
add esp, 4
mov dword [0x4a8ed8], edi
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x40e160
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4726f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a4284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040e2b0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x40e1ce
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 8
test eax, eax
je 0x40e1ce
lea ecx, [ebp - 0x28]
call fcn.0040e160
test al, al
jne 0x40e1ce
xor bl, bl
jmp 0x40e1e5
cmp dword [esi + 0x14], 8
jb 0x40e1d6
mov esi, dword [esi]
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
add esp, 4
test eax, eax
sete bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40e221
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e217
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e217
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0046e3ec
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e3fa
mov esp, ebp
pop ebp
ret
Function at 0x410840
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4726f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a4284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00410720
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 8
test eax, eax
jne 0x4108a9
mov dword [0x4a8ed8], 0x17
xor bl, bl
jmp 0x410901
cmp byte [ebp + 0xc], 0
je 0x4108da
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
add esp, 4
test eax, eax
jne 0x4108cc
mov bl, 1
jmp 0x410901
mov dword [0x4a8ed8], 3
xor bl, bl
jmp 0x410901
mov eax, dword [esi + 0x3c]
lea ecx, [ebp - 0x28]
push 1
push 1
push 0
push ecx
lea ecx, [esi + 0x3c]
xor bl, bl
call dword [eax + 4]
mov ecx, eax
test ecx, ecx
je 0x410901
mov eax, dword [esi + 0x3c]
mov bl, 1
push ecx
lea ecx, [esi + 0x3c]
call dword [eax + 0x14]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41093d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410933
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410933
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0046e3ec
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e3fa
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410ad0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x60
mov eax, dword [0x4a4284]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00410720
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
push 0
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 8
test eax, eax
je 0x410b21
mov dword [0x4a8ed8], 0x2a
xor cl, cl
jmp 0x410ba5
cmp dword [esp + 0x1c], 8
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0xc]
mov dword [esp + 0x44], 0
cmovae eax, dword [esp + 0xc]
xorps xmm0, xmm0
push 0
push eax
movaps xmmword [esp + 0x2c], xmm0
movaps xmmword [esp + 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x410b74
test byte [esp + 0x20], 0x10
je 0x410b74
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrmdir]
jmp 0x410b89
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
add esp, 4
mov edx, 0xc
test eax, eax
mov eax, dword [0x4a8ed8]
sete cl
test cl, cl
cmove eax, edx
mov dword [0x4a8ed8], eax
mov edx, dword [esp + 0x1c]
mov byte [esp + 7], cl
cmp edx, 8
jb 0x410be7
mov ecx, dword [esp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410bdd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410bdd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0046e3ec
add esp, 8
mov ecx, dword [esp + 0x5c]
mov al, byte [esp + 7]
xor ecx, esp
call fcn.0046e3fa
mov esp, ebp
pop ebp
ret 4
Function at 0x4136e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0046ef50
mov eax, dword [0x4a4284]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.00401e20
add esp, 0x14
lea eax, [ebp - 0x100c]
push 0x800
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
push str._VFS__ERROR_
push str._s_s_n
lea eax, [ebp - 0x100c]
push 0x400
push eax
call fcn.00401e60
add esp, 0x14
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046e3fa
mov esp, ebp
pop ebp
ret

Function at 0x41a850
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4a4284]
xor eax, esp
mov dword [esp + 0x68], eax
mov edx, dword [ebp + 8]
lea ecx, [esp + 4]
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00423530
add esp, 4
lea ecx, [esp + 0x19]
xor edx, edx
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [esp + edx + 0x64], al
movzx eax, byte [ecx - 4]
mov byte [esp + edx + 0x65], al
movzx eax, byte [ecx - 3]
mov byte [esp + edx + 0x66], al
movzx eax, byte [ecx - 2]
mov byte [esp + edx + 0x67], al
add edx, 4
cmp edx, 8
jb 0x41a8b0
mov edx, dword [esp + 0x18]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
mov edx, 0x4a4310
cmovae eax, ecx
lea ecx, [esp + 8]
push eax
call fcn.00423530
push 8
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x10]
call fcn.00423530
lea edx, [esi + 1]
add esp, 8
lea eax, [esp + 9]
mov esi, 4
movzx ecx, byte [eax - 1]
lea eax, [eax + 4]
mov byte [edx - 1], cl
lea edx, [edx + 4]
movzx ecx, byte [eax - 4]
mov byte [edx - 4], cl
movzx ecx, byte [eax - 3]
mov byte [edx - 3], cl
movzx ecx, byte [eax - 2]
mov byte [edx - 2], cl
sub esi, 1
jne 0x41a926
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
call fcn.0046e3fa
mov esp, ebp
pop ebp
ret 0x10
Function at 0x422b50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov eax, dword [edi]
test bl, 3
je 0x422b7f
test esi, esi
je 0x422b7f
movzx ecx, byte [ebx]
inc ebx
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4860b0]
dec esi
jmp 0x422b60
cmp esi, 4
jb 0x422bd1
mov edx, esi
shr edx, 2
nop dword [eax]
xor eax, dword [ebx]
sub esi, 4
movzx ecx, al
add ebx, 4
shr eax, 8
xor eax, dword [ecx*4 + 0x4860b0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4860b0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4860b0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4860b0]
sub edx, 1
jne 0x422b90
test esi, esi
je 0x422bef
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4860b0]
sub esi, 1
jne 0x422bd5
mov dword [edi], eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x423120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [eax], 0
mov edi, ecx
test esi, esi
je 0x4231bd
cmp dword [ebp + 0xc], 0
je 0x4231bd
push esi
call fcn.00423300
cmp eax, 0xffffffff
je 0x4231bd
lea ecx, [eax + eax*2]
mov eax, dword [edi + 4]
push 1
push 0
push 0
lea eax, [eax + ecx*4]
mov ecx, edi
mov dword [ebp + 8], eax
mov eax, dword [edi]
push esi
mov eax, dword [eax + 0x10]
call eax
mov edi, eax
cmp edi, 0xffffffff
je 0x4231bd
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
cmp edi, edx
jl 0x42317d
xor ecx, ecx
jmp 0x42318b
mov ecx, dword [ebp + 0x10]
lea eax, [edi + ecx]
cmp eax, edx
jbe 0x42318b
mov ecx, edx
sub ecx, edi
push esi
push ecx
push 1
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [ebp + 0x14]
push esi
mov dword [ecx], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 0x14
test eax, eax
jne 0x4231b3
pop edi
mov al, 1
pop esi
pop ebp
ret 0x10
mov dword [0x4a8ed8], 5
pop edi
xor al, al
pop esi
pop ebp
ret 0x10
Function at 0x424490
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a4284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dl, 1
nop word [eax + eax]
movzx eax, dl
mov cl, dl
sar cl, 7
and cl, 0x1b
mov byte [ebp + ebx - 0x204], dl
mov byte [ebp + eax - 0x104], bl
mov al, dl
add al, al
inc ebx
xor cl, al
xor dl, cl
cmp ebx, 0x100
jl 0x4244b0
mov cl, 1
mov edx, 0x4aa7c0
movzx eax, cl
shl eax, 0x18
mov dword [edx], eax
mov al, cl
sar al, 7
add cl, cl
and al, 0x1b
add edx, 4
xor cl, al
cmp edx, 0x4aa7e8
jl 0x4244e1
mov dword [0x4a97c0], 0x63
mov esi, 1
mov dword [0x4aa14c], 0
nop dword [eax + eax]
movzx eax, byte [ebp + esi - 0x104]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov dl, byte [ecx]
mov cl, dl
rol cl, 1
xor dl, cl
rol cl, 1
xor dl, cl
rol cl, 1
mov al, cl
rol al, 1
xor al, cl
xor al, dl
xor al, 0x63
movzx eax, al
mov dword [esi*4 + 0x4a97c0], eax
mov dword [eax*4 + 0x4a9fc0], esi
inc esi
cmp esi, 0x100
jl 0x424520
mov ebx, 0xff
xor edi, edi
mov dword [ebp - 0x20c], ebx
nop
mov dl, byte [edi + 0x4a97c0]
mov cl, dl
mov al, dl
add al, al
sar cl, 7
and cl, 0x1b
xor cl, al
movzx eax, dl
movzx esi, cl
shl esi, 8
xor esi, eax
shl esi, 8
xor esi, eax
movzx eax, cl
shl esi, 8
xor esi, eax
movzx eax, dl
xor esi, eax
mov al, byte [edi + 0x4a9fc0]
mov dword [edi + 0x4abc00], esi
ror esi, 8
mov dword [edi + 0x4ab800], esi
ror esi, 8
mov dword [edi + 0x4aac00], esi
ror esi, 8
mov dword [edi + 0x4aa3c0], esi
test al, al
je 0x424644
movzx eax, al
xor edx, edx
movzx ecx, byte [ebp + eax - 0x104]
mov eax, dword [ebp - 0xf9]
movzx eax, al
add eax, ecx
div ebx
mov eax, dword [ebp - 0xf7]
movzx eax, al
add eax, ecx
movzx esi, byte [ebp + edx - 0x204]
xor edx, edx
div ebx
mov eax, dword [ebp - 0xfb]
movzx eax, al
add eax, ecx
movzx ebx, byte [ebp + edx - 0x204]
xor edx, edx
div dword [ebp - 0x20c]
movzx eax, byte [ebp + edx - 0x204]
xor edx, edx
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0xf6]
movzx eax, al
add eax, ecx
mov ecx, 0xff
div ecx
movzx eax, byte [ebp + edx - 0x204]
jmp 0x424650
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x208], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 0x208]
shl eax, 8
xor eax, ebx
mov ebx, 0xff
shl eax, 8
xor eax, esi
mov dword [edi + 0x4ab000], eax
ror eax, 8
mov dword [edi + 0x4aa800], eax
ror eax, 8
mov dword [edi + 0x4ac000], eax
ror eax, 8
mov dword [edi + 0x4a93c0], eax
add edi, 4
cmp edi, 0x400
jl 0x424570
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e3fa
mov esp, ebp
pop ebp
ret
Function at 0x42c3d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
or edx, 0x100
mov ecx, edx
mov eax, edx
shr ecx, 7
add edx, edx
shr eax, 8
and ecx, 1
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx esi, word [ebx + eax*2]
mov eax, dword [ebp + 8]
shr esi, 4
xor esi, ecx
add edi, dword [eax + esi*4]
cmp edx, 0x10000
jb 0x42c3e0
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x42c420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, 0x100
mov dword [ebp - 4], ecx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
or edx, esi
add edi, edi
mov ecx, esi
and ecx, edi
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add ebx, dword [eax + ecx*4]
mov ecx, edx
xor ecx, edi
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x42c436
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
movzx esi, word [edi]
movzx ecx, word [edi + 2]
mov eax, esi
shr eax, 4
xor esi, 0x7f0
shr esi, 4
mov eax, dword [ebx + eax*4]
mov dword [ebp - 0xc], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [ebx + eax*4]
add eax, dword [ebx + esi*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + ecx*4]
add eax, dword [ebx + esi*4]
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x10], esi
cmp esi, dword [ebp + 8]
jae 0x42c8b4
mov edx, esi
mov dword [ebp - 8], 0
mov esi, dword [ebp - 8]
or edx, 8
nop dword [eax]
mov eax, dword [ebp - 4]
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
sar edx, 4
and edx, 0x7f
lea eax, [ecx + eax*8]
movzx eax, word [edi + eax*2 + 4]
shr eax, 4
xor eax, edx
mov edx, ecx
add esi, dword [ebx + eax*4]
cmp edx, 1
jne 0x42c7b0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
add eax, esi
mov esi, dword [ebp + 0x10]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 0x10], esi
cmp esi, 8
jb 0x42c794
cmp esi, 0x10
jae 0x42c85a
lea eax, [esi - 8]
mov dword [ebp - 8], eax
nop dword [eax + eax]
cmp esi, dword [ebp + 8]
jae 0x42c8b4
mov edx, eax
xor esi, esi
or edx, 8
mov eax, dword [ebp - 4]
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
sar edx, 4
and edx, 0x7f
lea eax, [ecx + eax*8]
movzx eax, word [edi + eax*2 + 0x104]
shr eax, 4
xor eax, edx
mov edx, ecx
add esi, dword [ebx + eax*4]
cmp edx, 1
jne 0x42c810
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add eax, esi
mov esi, dword [ebp + 0x10]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], eax
cmp esi, 0x10
jb 0x42c800
cmp esi, dword [ebp + 8]
jae 0x42c8b4
lea eax, [esi - 0x10]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 0x14]
xor edi, edi
or eax, 0x100
nop
mov edx, eax
and eax, 1
shr edx, 1
neg eax
sar eax, 4
and eax, 0x7f
movzx ecx, word [esi + edx*2 + 0x204]
shr ecx, 4
xor ecx, eax
mov eax, edx
add edi, dword [ebx + ecx*4]
cmp eax, 1
jne 0x42c870
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], eax
cmp esi, dword [ebp + 8]
jb 0x42c865
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret