joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

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 0x5040d1
push 0x504088
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 0x445bf2
Capabilities:
Encode data using xor

Disassembly:
push edi
push dword [esp + 0x10]
call 0x3e1710
xor edi, edi
pop ecx
cmp dword [esp + 0xc], edi
jbe 0x445c1c
push esi
mov eax, dword [esp + 0xc]
lea esi, [edi + eax]
call 0x3e1880
xor byte [esi], al
inc edi
cmp edi, dword [esp + 0x10]
jb 0x445c06
pop esi
pop edi
ret 0xc

Function at 0x445c20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x290]
call fcn.004460f6
push 0
push dword [esi + 8]
push dword [esi]
call fcn.0044b2c8
add esp, 0xc
lea eax, [ebp - 0x398]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00445f02
test eax, eax
je 0x445c64
push 6
jmp 0x445cf3
push dword [esi]
lea eax, [ebp - 1]
push 1
pop ebx
push ebx
push ebx
push eax
call fcn.0044b221
push dword [esi]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.0044b221
push dword [esi]
mov edi, dword [ebp - 8]
lea eax, [ebp - 8]
xor edi, 0x45aa
push ebx
push 4
push eax
call fcn.0044b221
mov eax, dword [ebp - 8]
push dword [esi]
xor eax, 0x45aa
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0044b221
add esp, 0x40
lea eax, [ebp - 0x18]
push dword [esi]
push ebx
push 4
push eax
call fcn.0044b221
push dword [esi]
lea eax, [ebp - 0x1c]
push ebx
push 4
push eax
call fcn.0044b221
push dword [esi]
lea eax, [ebp - 0x20]
push ebx
push 4
push eax
call fcn.0044b221
push dword [ebp - 0xc]
call fcn.00446de3
add esp, 0x34
mov dword [ebp + 8], eax
test eax, eax
jne 0x445cf9
push 8
pop eax
jmp 0x445dd0
push edi
call fcn.00446de3
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x445d0f
push 8
pop esi
jmp 0x445dc5
push dword [esi]
push ebx
push edi
push eax
call fcn.0044b221
mov eax, dword [esi + 0x110]
add esp, 0x10
add eax, 0x22af
mov ecx, esi
push eax
push edi
mov edi, dword [ebp - 0x10]
push edi
call fcn.00445bf2
cmp byte [ebp - 1], bl
jne 0x445d73
lea ecx, [ebp - 0x290]
call fcn.004460f6
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x290], eax
call fcn.00446122
push edi
call fcn.004485bf
pop ecx
jmp 0x445d7f
push dword [ebp + 8]
call fcn.004485bf
pop ecx
mov dword [ebp + 8], edi
push 0x49c014
push dword [ebp + 0xc]
call fcn.0044a3c6
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x445d9b
push 7
jmp 0x445d09
push edi
push ebx
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0044a534
push edi
call fcn.0044a61b
add esp, 0x14
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.0044604e
xor esi, esi
push dword [ebp + 8]
call fcn.004485bf
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x445f02
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 1
pop ebx
mov esi, ecx
mov byte [ebp - 1], bl
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push ebx
push eax
call fcn.0044b221
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, esi
push 0x16fa
push 4
push eax
call fcn.00445bf2
and byte [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push 0x49c018
push eax
call fcn.0044b3e0
pop ecx
test eax, eax
pop ecx
jne 0x446033
push dword [esi]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.0044b221
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29bc
lea eax, [ebp - 0x11c]
push edi
push ebx
push eax
call fcn.0044b221
add esp, 0x20
lea eax, [edi + 0xa25e]
mov ecx, esi
push eax
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00445bf2
push dword [esi]
and byte [ebp + edi - 0x11c], 0
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.0044b221
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29ac
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0044b221
add esp, 0x20
lea eax, [edi + 0xf25e]
mov ecx, esi
push eax
push edi
push dword [ebp + 0xc]
call fcn.00445bf2
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
and byte [edi + eax], 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0044b3e0
pop ecx
test eax, eax
pop ecx
je 0x44604a
push ebx
push ebx
push dword [esi]
call fcn.0044b2c8
push dword [esi]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.0044b221
xor dword [ebp - 8], 0x45aa
push ebx
push 4
push dword [esi]
call fcn.0044b2c8
push ebx
push 0x10
push dword [esi]
call fcn.0044b2c8
push ebx
push dword [ebp - 8]
push dword [esi]
call fcn.0044b2c8
add esp, 0x40
jmp 0x446037
and byte [ebp - 1], 0
cmp byte [ebp - 1], bl
je 0x445f16
push 6
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x446043

Function at 0x44608e
Capabilities:
Hash data using crc32b

Disassembly:
mov eax, ecx
push esi
push edi
mov edi, eax
or dword [eax + 0x400], 0xffffffff
xor esi, esi
mov edx, esi
push 8
shl edx, 0x18
pop ecx
test edx, 0x80000000
je 0x4460b7
add edx, edx
xor edx, 0x4c11db7
jmp 0x4460b9
shl edx, 1
dec ecx
jne 0x4460a5
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x44609d
pop edi
pop esi
ret

Function at 0x446241
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x446266
mov eax, dword [esi + 0xc]
push 8
add eax, dword [esi + 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0044b470
add esp, 0xc
jmp 0x446279
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0044b221
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
shl eax, 8
or eax, ecx
add dword [esi + 0xc], 8
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
and byte [ebp - 4], 0
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
push 0x49c020
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
call fcn.0044b3e0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
pop esi
leave
ret 4
Function at 0x4685d0
Capabilities:
Encode data using xor

Disassembly:
mov cl, 9
add byte [eax - 0x53fff64f], bh
mov cl, 9
add byte [eax - 0x71fff64f], ah
mov cl, 9
add byte [eax - 0x4f], bh
or dword [eax], eax
mov cl, 9
add byte [esi - 0x4f], cl
or dword [eax], eax
inc edx
mov cl, 9
add byte [edx], ch
mov cl, 9
add byte [edx], dl
mov cl, 9
add byte [esi], al
push es
push es
mov cl, 9
add al, bh
mov al, 9
add dl, ch
mov al, 9
add dh, dl
mov al, 9
add dl, cl
mov al, 9
add byte [eax], ch
mov dl, 9
add byte [esi - 0x4e], al
or dword [eax], eax
pop edx
mov dl, 9
add byte [edx - 0x4e], ch
or dword [eax], eax
xor byte [edx - 0x4d71fff7], 9
add byte [esp + ebx*4], bl
or dword [eax], eax
adc al, 0x9c
or dword [eax], eax
cli
wait
or dword [eax], eax
loopne 0x4685a5
or dword [eax], eax
aam 0x9b
or dword [eax], eax
les ebx, [ebx - 0x644dfff7]
or dword [eax], eax
cwde
wait
or dword [eax], eax
mov ds, word [ebx - 0x6487fff7]
or dword [eax], eax
pushal
wait
or dword [eax], eax
push eax
wait
or dword [eax], eax
inc eax
wait
or dword [eax], eax
xor byte [ebx - 0x64ddfff7], bl
or dword [eax], eax
push cs
wait
or dword [eax], eax
cli
invalid
or dword [eax], eax
Function at 0x47ac00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48bebb
push eax
mov dword fs:[0], esp
sub esp, 0x100
cmp dword [0x49d328], 0
push ebx
push esi
push edi
je 0x47af8e
cmp dword [0x4a0bb0], 0
jne 0x47af8e
mov ecx, dword [0x4a1344]
mov ebx, dword [0x4a0bc4]
xor eax, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
jle 0x47ac66
lea edx, [ebx + 4]
mov esi, dword [ebp + 0xc]
cmp dword [edx], esi
je 0x47ac66
inc eax
add edx, 0xc
cmp eax, ecx
jl 0x47ac57
cmp eax, ecx
je 0x47af8e
mov ecx, dword [0x49d334]
lea eax, [eax + eax*2]
mov esi, dword [ebx + eax*4]
lea ebx, [ebx + eax*4]
mov eax, dword [0x4a0b94]
mov dword [esp + 0x14], esi
cmp eax, ecx
jl 0x47aca6
add ecx, 2
cmp eax, ecx
jge 0x47af8e
mov ecx, dword [esi + 4]
mov al, byte [ecx]
cmp al, 0xd8
je 0x47aca6
cmp al, 0xd3
jne 0x47af8e
mov dx, word [ebx + 8]
cmp dx, word [ebx + 0xa]
jge 0x47af8e
mov eax, dword [0x49d3c8]
cmp dword [eax + 0x2c], 0
jg 0x47af8e
mov ecx, dword [0x4a13a4]
mov edi, 1
push edi
call fcn.00479230
push 0x7f
push eax
lea ecx, [esp + 0x90]
push ecx
call 0x4f28e0
mov byte [esp + 0x113], 0
mov edx, dword [esi + 4]
movzx eax, byte [edx]
add esp, 0xc
push eax
push 0
push 0
mov al, 1
call fcn.0047afb0
mov eax, dword [ebp + 8]
add esp, 0xc
call 0x4e05d0
mov esi, dword [0x49d3c8]
mov dword [esi + 0xa0], eax
test eax, eax
je 0x47ad86
mov edi, eax
call fcn.004792d0
mov edi, eax
test edi, edi
je 0x47ad81
mov ecx, dword [edi + 8]
mov eax, dword [ebp + 8]
mov dword [esi + 0x44], ecx
mov edx, dword [edi + 8]
push eax
mov dword [esi + 0x4c], edx
call dword [0x48d614]
lea esi, [eax - 3]
cmp esi, dword [edi + 0xc]
jb 0x47ad5f
mov ecx, dword [ebp + 8]
push ecx
call dword [0x48d610]
test eax, eax
je 0x47ad5f
push eax
call dword [0x48d614]
lea esi, [eax - 3]
mov edi, dword [edi + 0xc]
mov eax, esi
cmp esi, edi
jb 0x47ad6d
mov eax, 0x2af8
mov esi, dword [0x49d3c8]
cmp eax, edi
mov edi, 1
jae 0x47ad86
mov dword [esi + 0x48], eax
jmp 0x47ad86
mov edi, 1
mov eax, dword [ebp + 0x18]
xor ecx, ecx
cmp eax, ecx
je 0x47ada1
mov edx, dword [eax + 0x14]
mov dword [esi + 0x3c], edx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x40], edx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x48]
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14]
lea edx, [esp + 0x58]
mov dword [esp + 0x3c], edx
cdq
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x68]
mov dword [esp + 0x40], eax
mov dword [esp + 0x68], edx
mov edx, dword [ebp + 8]
push ebp
or byte [ebp - 0x7687dbbc], cl
jl 0x47ae01
push eax
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x115473c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1154746
pushal
call 0x115474c
pop ebp
sub ebp, 0x10
sub ebp, 0xd5473c
jmp 0x1154762
mov eax, 0xd5473c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c1
mov edx, 0x1b97f233
xor byte [eax], dl
inc eax
dec ecx
jne 0x1154779
jmp 0x115478c
mov eax, 0xfbab8fe
xor esi, dword [ebx]
xor esi, dword [edx + 0x3333cbf2]
xor esi, dword [eax]
dec byte [ebx + 0x33333334]
mov dword [ebx], ebx
xor esi, dword [ebx]
xor eax, esp
sal dword [eax], 1
sti
mov eax, 0x33333fb2
xor esi, dword [eax]
mul byte [ebx - 0x42]
push edi
pop ss
iretd
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10e5e30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x774000]
mov dword [edi + 0xc65ed4], 0x161ef813
push edi
jmp 0x10e5e5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10e5e61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10e5e50
mov eax, 1
add ebx, ebx
jne 0x10e5e73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10e5e84
jne 0x10e5ea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10e5ea3
dec eax
add ebx, ebx
jne 0x10e5e90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10e5e68
add ebx, ebx
jne 0x10e5e9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10e5ef5
xor ecx, ecx
sub eax, 3
jb 0x10e5ebb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10e5f2a
sar eax, 1
mov ebp, eax
jmp 0x10e5ec6
add ebx, ebx
jne 0x10e5ec6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10e5e94
inc ecx
add ebx, ebx
jne 0x10e5ed4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10e5e94
add ebx, ebx
jne 0x10e5ee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10e5ed6
jne 0x10e5ef2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10e5ed6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10e5f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10e5f06
jmp 0x10e5e56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10e5f14
add edi, ecx
jmp 0x10e5e56
pop esi
mov edi, esi
mov ecx, 0x79c8c4
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x10e5f4f
cmp byte [edi], 0xb6
jne 0x10e5f34
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x10e5f32
lea edi, [esi + 0xcba000]
mov eax, dword [edi]
or eax, eax
je 0x10e5fa0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xce6754]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xce68a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10e5f55
mov ecx, edi
jns 0x10e5f84
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xce68b0]
or eax, eax
je 0x10e5f9a
mov dword [ebx], eax
add ebx, 4
jmp 0x10e5f72
call dword [esi + 0xce68ac]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10e5fd1
cmp al, 0xef
ja 0x10e5fc4
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10e5fa6
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10e5fb3
mov ebp, dword [esi + 0xce68b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10e6005
sub esp, 0xffffff80
jmp 0xb27446
Function at 0x406ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x71c
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x406cbd
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x406ccf
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push edi
mov edi, dword [sym.imp.MSVCR120.dll_fread]
lea eax, [ebp + 0xb]
push esi
push 1
push 1
push eax
call edi
push 0x200
lea eax, [ebp - 0x31c]
push 0
push eax
call sub.MSVCR120.dll_memset
mov edx, dword [ebp - 4]
add esp, 0x1c
add edx, 0x10
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 4], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406d05
sub eax, dword [ebp - 4]
push eax
push edx
lea eax, [ebp - 0x31c]
push eax
call sub.MSVCR120.dll_memcpy
push 0x100
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407bd0
add esp, 0x18
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jle 0x406dea
lea esp, [esp]
push esi
push 0x10
lea eax, [ebp - 0x71c]
push 1
push eax
call edi
add esp, 0x10
cmp eax, 0x10
jne 0x406e13
lea eax, [ebp - 0x71c]
push eax
push eax
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00406f10
movdqu xmm0, xmmword [ebp - 0x71c]
add esp, 0x10
xorps xmm1, xmm1
movdqu xmmword [ebx], xmm0
movdqu xmm2, xmmword [ebx]
add ebx, 0x10
paddb xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
paddb xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
paddb xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 2
paddb xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 1
paddb xmm2, xmm0
movd eax, xmm2
add byte [ebp + 0x14], al
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0x10]
jl 0x406d50
push esi
push 1
lea eax, [ebp + 0xf]
push 1
push eax
call edi
mov al, byte [ebp + 0xb]
add esp, 0x10
cmp al, byte [ebp + 0xf]
jne 0x406e13
cmp al, byte [ebp + 0x14]
jne 0x406e13
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4079a0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov edx, 1
push ebx
push esi
push edi
xor esi, esi
mov eax, edx
mov dword [ebp + esi*4 - 0x808], edx
and al, 0x80
mov dword [ebp + edx*4 - 0x408], esi
movsx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
inc esi
and ecx, 0x1b
xor ecx, eax
xor edx, ecx
and edx, 0xff
cmp esi, 0x100
jl 0x4079b3
mov esi, 1
mov edx, 0x6b4778
nop
mov eax, esi
mov dword [edx], esi
and al, 0x80
movsx ecx, al
neg ecx
sbb ecx, ecx
add esi, esi
and ecx, 0x1b
add edx, 4
xor esi, ecx
and esi, 0xff
cmp edx, 0x6b47a0
jl 0x4079f0
mov eax, 1
mov byte [0x6b2578], 0x63
mov byte [0x6b36db], 0
mov dword [ebp - 4], eax
jmp 0x407a30
mov ecx, dword [ebp + eax*4 - 0x408]
lea eax, [ebp - 0x40c]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
and ecx, 0xff
mov edx, ecx
xor ebx, ecx
sar edx, 7
lea eax, [ecx + ecx]
or edx, eax
and edx, 0xff
mov esi, edx
xor ebx, edx
sar esi, 7
lea eax, [edx + edx]
or esi, eax
and esi, 0xff
mov ecx, esi
sar ecx, 7
lea eax, [esi + esi]
or ecx, eax
mov eax, dword [ebp - 4]
xor ecx, 0x63
and ecx, 0xff
xor ecx, esi
xor ebx, ecx
mov byte [eax + 0x6b2578], bl
mov byte [ebx + 0x6b3678], al
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x100
jl 0x407a30
mov ebx, 0xff
xor esi, esi
mov dword [ebp - 8], ebx
movzx edx, byte [esi + 0x6b2578]
mov eax, edx
and al, 0x80
movsx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
and ecx, 0xff
mov eax, ecx
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, ecx
movzx ecx, byte [esi + 0x6b3678]
mov dword [esi*4 + 0x6b2678], eax
rol eax, 8
mov dword [esi*4 + 0x6b2a78], eax
rol eax, 8
mov dword [esi*4 + 0x6b2e78], eax
rol eax, 8
mov dword [esi*4 + 0x6b3278], eax
test ecx, ecx
je 0x407b70
mov ecx, dword [ebp + ecx*4 - 0x408]
mov eax, dword [ebp - 0x3d0]
add eax, ecx
cdq
idiv ebx
mov eax, dword [ebp - 0x3e4]
add eax, ecx
mov edi, dword [ebp + edx*4 - 0x808]
cdq
idiv ebx
mov eax, dword [ebp - 0x3d4]
add eax, ecx
mov ebx, dword [ebp + edx*4 - 0x808]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp + edx*4 - 0x808]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3dc]
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov eax, dword [ebp + edx*4 - 0x808]
jmp 0x407b79
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 4]
shl eax, 8
xor eax, ebx
mov ebx, 0xff
shl eax, 8
xor eax, edi
mov dword [esi*4 + 0x6b3778], eax
rol eax, 8
mov dword [esi*4 + 0x6b3b78], eax
rol eax, 8
mov dword [esi*4 + 0x6b3f78], eax
rol eax, 8
mov dword [esi*4 + 0x6b4378], eax
inc esi
cmp esi, 0x100
jl 0x407ab3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret