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

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x4cddb2
lea esp, [esp]
test cl, 3
je 0x4cddb2
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4dac88]
add ecx, 1
sub esi, 1
jne 0x4cdd90
cmp esi, 0x20
push ebx
push edi
jb 0x4cdf9c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4db088]
xor edx, dword [ebx*4 + 0x4db488]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dac88]
add ecx, 4
xor edx, dword [eax*4 + 0x4db888]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4db088]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4db488]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4dac88]
add ecx, 4
xor eax, dword [edx*4 + 0x4db888]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4db088]
xor edx, dword [ebx*4 + 0x4db488]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dac88]
xor edx, dword [eax*4 + 0x4db888]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4db088]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4db488]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4dac88]
xor eax, dword [edx*4 + 0x4db888]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4db088]
xor edx, dword [ebx*4 + 0x4db488]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dac88]
xor edx, dword [eax*4 + 0x4db888]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4db088]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4db488]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4dac88]
and edx, 0xff
xor eax, dword [edx*4 + 0x4db888]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4db088]
xor edx, dword [ebx*4 + 0x4db488]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dac88]
add ecx, 4
xor edx, dword [eax*4 + 0x4db888]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4db088]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4db488]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4dac88]
and edx, 0xff
xor eax, dword [edx*4 + 0x4db888]
sub edi, 1
jne 0x4cddc2
cmp esi, 4
jb 0x4cdfe9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4db088]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4db488]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4dac88]
and eax, 0xff
xor edi, dword [eax*4 + 0x4db888]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x4cdfa6
test esi, esi
pop edi
pop ebx
je 0x4ce00d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4dac88]
add ecx, 1
sub esi, 1
jne 0x4cdff0
not eax
pop esi
ret
Function at 0x4ce3ce
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x53d028]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004ce30d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4ce41d
cmp dword [ebp - 0x1c], 5
jb 0x4ce435
jmp 0x4ce431
cmp dword [ebp - 0x10], 1
jne 0x4ce435
cmp dword [ebp - 0x1c], 4
ja 0x4ce431
jne 0x4ce435
cmp dword [ebp - 0x18], 0
jbe 0x4ce435
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4da5a8
call fcn.0042e733
test eax, eax
jge 0x4ce456
mov byte [0x5454f8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004ced78
add ebp, 0x78
leave
ret

Function at 0x4ce6d5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x543950], 0
push esi
jne 0x4ce648
call fcn.004ce573
test eax, eax
je 0x4ce68b
mov eax, dword [0x543950]
cmp eax, 1
jne 0x4ce669
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4ce68b
pop esi
ret
push eax
call dword [0x543958]
test eax, eax
jne 0x4ce6d3
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4ce68f
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x543950]
call dword [0x543958]
mov edi, eax
test edi, edi
je 0x4ce6b6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4ce6d2
lea edi, [esi + 0xff0]
push esi
push dword [0x543950]
call dword [0x543954]
add esi, 0x10
cmp esi, edi
jb 0x4ce6bc
mov eax, esi
pop edi
pop esi
ret
jmp 0x4ce635

Function at 0x4ced78
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x53d028]
jne 0x4ced82
repz ret
jmp fcn.004cf13e

Function at 0x4d0040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6307
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x53d028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], vtable.Json::StyledWriter.0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esi + 0x4c], 0x4a
mov dword [esi + 0x50], 3
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 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10003500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [eax], ebx
mov dword [ebp - 4], edx
lea eax, [edi + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x10003541
cmp ecx, edi
jb 0x10003541
mov ecx, esi
sub edi, esi
mov edx, 0x10
mov edi, edi
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x10003530
mov edx, dword [ebp - 4]
jmp 0x10003551
movdqu xmm1, xmmword [esi]
movdqu xmm0, xmmword [edi]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
mov eax, dword [ebp + 0xc]
cmp edx, 0x10
jbe 0x100035ba
lea edi, [edx - 0x11]
shr edi, 4
inc edi
mov dword [ebp + 0x14], edi
push eax
push ebx
push esi
call 0x10001020
mov edx, ebx
add esi, 0x10
add esp, 0xc
add ebx, 0x10
lea eax, [edx + 0xf]
cmp esi, eax
ja 0x100035a1
lea eax, [esi + 0xf]
cmp eax, edx
jb 0x100035a1
mov eax, esi
sub edx, esi
mov edi, 0x10
lea ecx, [ecx]
mov cl, byte [eax + edx]
lea eax, [eax + 1]
xor byte [eax - 1], cl
dec edi
jne 0x10003590
mov edi, dword [ebp + 0x14]
jmp 0x100035b1
movdqu xmm1, xmmword [esi]
movdqu xmm0, xmmword [edx]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
mov eax, dword [ebp + 0xc]
dec edi
mov dword [ebp + 0x14], edi
jne 0x10003563
push eax
push ebx
push esi
call 0x10001020
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x78c95c7b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..text_1
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x64152b1e
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3d737e52
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x63e71411
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4070f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d468
cmp edx, dword [eax]
je 0x407117
add eax, 8
inc ecx
cmp eax, 0x40d4f8
jl 0x407108
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d468]
jne 0x407245
mov eax, dword [0x40e498]
cmp eax, 1
je 0x40721f
test eax, eax
jne 0x407148
cmp dword [0x40d39c], 1
je 0x40721f
cmp edx, 0xfc
je 0x407245
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40717f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404350
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004041a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4071c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004041a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b5ec
push edi
call fcn.00408c80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404350
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404360
lea eax, [ebp - 0xa0]
push 0x40b5cc
push eax
call fcn.00404360
push dword [esi + 0x40d46c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404360
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408bf2
add esp, 0x2c
pop edi
jmp 0x407245
lea eax, [ebp + 8]
lea esi, [esi + 0x40d46c]
push 0
push eax
push dword [esi]
call fcn.004041a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x444421e3
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..reloc_1
nop
nop
nop
nop
cmp eax, 0
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x159b1681
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x431004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x732330dc
nop
nop
nop
nop
nop
test eax, eax
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0xcc4334c
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402521
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov eax, dword [esp + 0x18]
push ebx
movzx ebx, cx
push ebp
push esi
mov esi, dword [0x466fd4]
movzx ebp, word [eax + ebx*2 + 0x50]
mov al, byte [0x466fc4]
movzx eax, al
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x18], ebx
mov eax, dword [eax + ebx*8]
mov dword [esp + 0x20], eax
lea eax, [ecx - 1]
movzx eax, ax
add eax, 2
mov ecx, dword [esp + 0x38]
imul eax, eax, 0xc
mov dword [esp + 0x10], ebp
mov ax, word [eax + edi]
or ax, word [0x466fd8]
movzx eax, ax
mov dword [esp + 0x14], eax
mov eax, 0xb4d
div dword [ebx + esi*4 + 0x14]
imul edx, dword [0x466fc0], 3
mov ebx, dword [0x466fac]
movzx ecx, byte [edx + ecx]
xor edx, edx
sub eax, ecx
movzx ecx, byte [0x466fc5]
div ecx
inc esi
mov byte [0x466fc5], al
mov eax, dword [0x466fc0]
add eax, eax
mov dword [0x466fd4], esi
mov edx, dword [edi + eax*8 + 0x94]
mov eax, dword [esp + 0x40]
mov edi, dword [0x466fc8]
mov dword [esp + 0x3c], edx
movzx eax, word [eax + ebx*2 + 2]
cmp edx, eax
jge 0x4026b0
mov esi, dword [0x466fe8]
movzx eax, bp
mov dword [esp + 0x30], eax
movzx edx, dx
inc ebx
mov ebp, dword [0x466fc0]
mov ecx, edx
or ecx, dword [0x466fd0]
mov dword [0x466fac], ebx
lea eax, [edx + 1]
movzx eax, ax
sub ecx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
xor ecx, edx
add dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
movzx edx, word [ecx + eax*8]
mov ecx, dword [esp + 0x18]
mov eax, dword [0x466fc0]
sub eax, dword [esp + 0x30]
xor edx, eax
mov eax, dword [ecx]
or edx, dword [ebp + eax*4]
dec esi
mov ebp, dword [esp + 0x10]
add ebp, 0xffff
mov dword [esp + 0x20], edx
movzx eax, bp
xor edx, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
div esi
mov eax, dword [esp + 0x40]
mov dword [0x466fe8], esi
mov dword [esp + 0x10], ebp
mov ebp, edx
xor edx, edx
movzx eax, word [eax + 0x2fce]
or ebp, eax
mov eax, dword [esp + 0x30]
or ebp, dword [ecx + eax*4]
mov eax, edi
div dword [0x467000]
mov edx, dword [esp + 0x3c]
or byte [0x466fc4], al
inc edi
mov eax, dword [esp + 0x40]
inc edx
mov dword [0x467004], ebp
mov dword [0x466fc8], edi
mov dword [esp + 0x3c], edx
movzx eax, word [eax + ebx*2 + 2]
cmp edx, eax
jl 0x4025ee
jmp 0x4026ba
mov ebp, dword [0x467004]
mov ecx, dword [esp + 0x18]
mov si, word [esp + 0x1c]
inc ebx
mov edx, dword [esp + 0x50]
mov dword [0x466fac], ebx
mov eax, dword [ecx]
mov ax, word [ecx + eax*4 + 0x20]
mov ecx, dword [esp + 0x10]
xor ax, si
add word [0x466fe4], ax
add ecx, edi
imul eax, ebx, 0xc
pop edi
or cx, word [eax + edx + 4]
xor edx, edx
mov eax, dword [esp + 0x10]
add si, cx
movzx eax, ax
div dword [0x466ff4]
mov eax, dword [esp + 0x14]
add word [0x466fd0], dx
mov edx, dword [0x466fbc]
imul ecx, dword [eax], 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [ecx + eax]
or ecx, ebp
movzx eax, si
and ecx, eax
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
or dword [edx + eax*8 + 0xc], ecx
mov eax, dword [0x466fec]
add esp, 0x14
ret
Function at 0x40ccb1
Capabilities:
Set current directory

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
lea edx, [ecx - 0xb89]
push esi
mov esi, dword [esp + 0x14]
add ebp, 0x7f4
push edi
lea edi, [ebx - 0x51a]
mov dword [esp + 0x1c], edx
xor ebx, 0x301
cmp ecx, edx
jl 0x40cd5c
lea eax, [ebx - 0x806]
cmp edx, eax
jle 0x40cd5c
lea eax, [ecx - 0xed5]
cmp ebp, eax
je 0x40cd47
lea eax, [edi + 0x72d]
push eax
lea eax, [ebp - 0x8d5]
push eax
mov eax, edi
xor eax, 0x15
push esi
push eax
lea eax, [edi + 0x81b]
push eax
call fcn.00409840
push esi
lea ecx, [edi + 0x13ef]
xor ebp, 0x156d
push ecx
mov ecx, dword [esp + 0x38]
mov ebx, eax
add ecx, 0x4f0
push ecx
lea ecx, [edi + 0x866]
push ecx
push ebp
call fcn.0042994f
add esp, 0x28
jmp 0x40cd5c
mov eax, dword [esi + 0x68]
cmp eax, dword [esi + 4]
jb 0x40cd5c
mov eax, edi
or eax, 0x3076
mov dword [esi + 0x84], eax
lea eax, [edi + 0xd56]
cmp ebx, eax
jne 0x40cda8
mov ebp, 0x32ad
or edi, ebp
xor edi, 0x40a5
cmp dword [esi + 0xa0], edi
jae 0x40cda8
mov edi, dword [esi + 0xe4]
jmp 0x40cd9b
mov eax, dword [esi + 0xe4]
or eax, dword [esi + 0x84]
or eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add edi, 3
mov eax, dword [esi + 0x4c]
xor eax, dword [esi + 0xdc]
cmp edi, eax
je 0x40cd83
pop edi
pop esi
xor ebx, 0x182
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x40ff80
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x14]
add edx, 0xffffbfb2
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, ebx
lea esi, [ecx - 0x377b]
xor ebx, 0xc7b
mov dword [esp + 0x20], esi
xor ecx, 0xab9
xor edi, 0x4e
xor ebp, 0x1e1
mov dword [esp + 0x2c], ecx
lea eax, [ebx - 0x629]
cmp esi, eax
jg 0x410161
lea eax, [edx + 0x3f6f]
cmp edi, eax
jge 0x410161
lea eax, [ebx + 0x4ec]
cmp edx, eax
jge 0x410099
mov esi, dword [esp + 0x28]
xor edi, 0x1f76
cmp dword [esi + 0x50], 0xdb89
ja 0x41000c
mov eax, dword [esi + 4]
add eax, 0xc4a3b
mov dword [esi + 0xb0], eax
jmp 0x410020
mov eax, dword [esi + 0xe8]
xor eax, dword [esi + 0x64]
add eax, 0x8916
add dword [esi + 0xdc], eax
mov eax, dword [esi + 0xac]
add edx, 0x40a5
cmp eax, dword [esi + 0xc0]
jb 0x41003e
mov eax, dword [esi + 0x64]
add eax, 0x1abdda
jmp 0x410047
mov eax, dword [esi + 0x50]
sub eax, dword [esi + 0xac]
mov dword [esi + 0x50], eax
sub ebp, 0xb05
xor ebx, 0x8a0
lea eax, [edi + 0x851]
push ebx
push eax
lea eax, [ebp + 0x13da]
xor ecx, 0xf90
push eax
push edx
push esi
lea eax, [ebp + 0xd6b]
add ecx, 0xe53
push eax
push ecx
call fcn.0041de20
mov eax, dword [esi + 0xa0]
add esp, 0x1c
add eax, 0x4fd34
xor dword [esi + 0xe4], eax
jmp 0x410161
mov ecx, esi
mov esi, dword [esp + 0x28]
mov eax, ecx
sub eax, dword [esi + 0x5c]
cmp edi, eax
jae 0x4100dc
mov eax, dword [esi + 0xc8]
sub eax, ecx
cmp dword [esi + 0xa0], eax
jbe 0x4100dc
mov eax, ebx
and eax, ecx
add eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x20]
and eax, dword [esi + 4]
xor eax, dword [esi + 0xe8]
sub dword [esi + 0xd8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x10]
add eax, ebp
cmp edi, eax
jne 0x410161
lea eax, [ebp - 0x309a]
mov edx, edi
imul eax, eax, 0x40a5
xor edx, 0x2a02
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
imul eax, ecx, 0xfffff8d6
and eax, 0x3dc2
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x20]
sub ebx, dword [esi + 0xc0]
add eax, edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
imul eax, dword [esi], 0x34ad
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esi + 0xe8]
sub ecx, dword [esi + 0x20]
push esi
and eax, dword [esi + 0xa0]
push eax
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x24]
call fcn.0042994f
mov ecx, dword [esi + 0x10]
add edi, 2
mov edx, dword [esp + 0x30]
add ecx, ebp
add esp, 0x14
mov ebx, eax
cmp edi, ecx
je 0x410110
pop edi
pop esi
lea eax, [ebp + 0x13da]
pop ebp
pop ebx
ret
Function at 0x41016c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov ecx, dword [0x466fec]
xor edx, edx
mov eax, 0x170
div ecx
movzx eax, byte [0x466fc5]
inc ecx
mov dword [esp + 8], eax
imul eax, dword [0x466ff4]
mov dword [0x466fec], ecx
imul ecx, dword [0x466fac], 3
push ebx
push ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x1c]
push esi
movzx esi, word [0x466fdc]
dec ebp
movzx eax, byte [ecx + eax + 1]
or eax, dword [0x466fb0]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
push edi
movzx ecx, word [eax]
mov eax, dword [esp + 0x28]
movzx edi, si
mov esi, dword [esp + 0x2c]
movzx ebx, word [eax + ecx*2]
mov eax, dword [0x466ffc]
or ebx, dword [0x466fd8]
movzx ecx, word [eax + ecx*2]
mov eax, dword [0x466fe0]
and ebp, ecx
cdq
mov dword [esp + 0x28], ecx
movzx ecx, word [esi + edi*4]
idiv ecx
mov edx, dword [esp + 0x44]
mov word [esi + edi*4], ax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov ecx, dword [0x466fac]
movzx eax, word [eax]
mov al, byte [edi + eax*2 + 8]
add al, bl
mov ebx, dword [esp + 0x18]
xor byte [ecx + edx], al
xor edx, edx
mov eax, dword [esp + 0x10]
mov ecx, dword [0x466fac]
add eax, 0xffff
movzx esi, ax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
movzx eax, word [eax + ecx*2 + 0xe]
div dword [ebx + ecx*4]
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x10]
add ebx, 0xffff
xor dx, word [eax + esi*4]
mov eax, dword [esp + 0x14]
xor word [eax + esi*2], dx
xor edx, edx
imul eax, dword [0x466fc8], 6
movzx esi, bx
mov ecx, esi
sub ecx, dword [0x467000]
movzx eax, word [eax + ebp]
or eax, ecx
imul ecx, dword [0x466fd4], 0xc
div esi
mov eax, dword [esp + 0x40]
mov dword [ecx + eax], edx
xor edx, edx
mov eax, dword [0x466fd4]
mov ecx, 0x1b8c
movzx eax, word [edi + eax*2]
div ecx
or eax, 0xbe4
movzx ecx, word [0x466fe4]
add ebx, 0xffff
add ecx, dword [0x466fcc]
mov esi, dword [esp + 0x28]
add eax, ecx
movzx ecx, bx
mov dword [0x466fcc], eax
mov esi, dword [esi + ecx*4]
cmp esi, 0xf96
jne 0x41036f
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x1c]
imul ebx, ebp, 0xf96
lea edi, [eax + ecx*2]
mov ecx, dword [0x466fb0]
lea edi, [edi - 2]
mov eax, 0x147e
mov word [0x466fe4], ax
mov eax, ebx
cdq
add ebx, ebp
idiv ecx
cdq
idiv dword [0x467004]
inc ecx
xor edx, edx
mov dword [0x467004], eax
mov eax, 0x5c3
mov dword [0x466fb0], ecx
movzx ecx, byte [0x466fc5]
div ecx
mov ecx, dword [esp + 0x44]
mov byte [0x466fc5], al
mov eax, dword [0x466fac]
movzx eax, byte [eax + ecx]
mov ecx, dword [esp + 0x28]
imul eax, ebp
xor eax, dword [esp + 0x3c]
xor dword [ecx + esi*4], eax
mov edx, dword [0x466fd4]
mov ecx, dword [0x466fbc]
add edx, edx
movzx eax, word [edi]
or dword [ecx + edx*8], eax
inc dword [0x466fd4]
inc esi
cmp esi, 0xf96
je 0x4102ea
pop edi
pop esi
pop ebp
mov eax, 0x1738
pop ebx
add esp, 0x10
ret