joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460fdc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x46100a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x461011
cmp ebx, dword [eax + 4]
jae 0x461011
xor eax, eax
jmp 0x461201
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x461022
xor eax, eax
inc eax
jmp 0x461200
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x461038
cmp ecx, edx
jae 0x46117d
cmp dword [eax + 4], 0
je 0x461041
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x461029
cmp dword [ebp + 8], 0
je 0x461063
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x46117d
cmp eax, esi
jae 0x46117d
mov eax, dword [0x497b78]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x461088
cmp dword [esi*4 + 0x497b80], edi
je 0x461181
inc esi
cmp esi, eax
jl 0x461076
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4611fd
cmp dword [ebp - 8], 0x1000000
jne 0x4611fd
test byte [ebp - 0xc], 0xcc
je 0x461106
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4611fd
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4611fd
cmp word [eax + 0x18], 0x10b
jne 0x4611fd
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4611fd
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x461106
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x461106
test byte [ecx + 0x27], 0x80
jne 0x46117d
push 1
push 0x497bc0
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x46101a
mov ecx, dword [0x497b78]
test ecx, ecx
mov edx, ecx
jle 0x46113a
lea eax, [ecx*4 + 0x497b7c]
cmp dword [eax], edi
je 0x46113a
dec edx
sub eax, 4
test edx, edx
jg 0x46112e
test edx, edx
jne 0x46116b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x461147
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x46115f
lea eax, [edx*4 + 0x497b80]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x46114d
cmp ecx, 0x10
jge 0x46116b
inc ecx
mov dword [0x497b78], ecx
push 0
push 0x497bc0
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x46101a
xor eax, eax
jmp 0x461200
test esi, esi
jle 0x46101a
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x497bc0
call ebx
test eax, eax
jne 0x46101a
cmp dword [esi*4 + 0x497b80], edi
je 0x4611d7
mov eax, dword [0x497b78]
lea esi, [eax - 1]
test esi, esi
jl 0x4611c5
cmp dword [esi*4 + 0x497b80], edi
je 0x4611c1
dec esi
jns 0x4611b5
test esi, esi
jge 0x4611d5
cmp eax, 0x10
jge 0x4611d0
inc eax
mov dword [0x497b78], eax
lea esi, [eax - 1]
jmp 0x4611d7
je 0x4611ef
xor ecx, ecx
test esi, esi
jl 0x4611ef
lea eax, [ecx*4 + 0x497b80]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4611dd
push 0
push 0x497bc0
call ebx
jmp 0x46101a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4626e9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4628bd
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x498260]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4628bd
test cl, 0x48
je 0x462754
cmp byte [eax + 5], 0xa
je 0x462754
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4627a6
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x46278e
call fcn.0046054f
mov dword [eax], 9
call fcn.00460558
mov dword [eax], esi
jmp 0x46279e
cmp eax, 0x6d
je 0x4628bd
push eax
call fcn.00460561
pop ecx
or eax, 0xffffffff
jmp 0x4628bf
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4628b8
test eax, eax
je 0x4627cd
cmp byte [ebx], 0xa
jne 0x4627cd
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4627d6
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4628b2
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4628a2
cmp al, 0xd
je 0x462808
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x462894
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x462822
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x46281d
add dword [ebp + 0x10], 2
jmp 0x462876
mov dword [ebp + 0x10], eax
jmp 0x462890
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x46284a
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x462890
cmp dword [ebp - 0xc], 0
je 0x462890
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x46286b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x462876
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x462893
cmp ebx, dword [ebp + 0xc]
jne 0x46287b
cmp byte [ebp - 1], 0xa
jne 0x46287b
mov byte [ebx], 0xa
jmp 0x462893
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00462ad0
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x462894
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4627ec
jmp 0x4628b2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4628b2
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4628bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4640a1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x492508]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4640d2
xor eax, eax
jmp 0x46425b
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x498260]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x46410e
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00469c00
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4641e9
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x464227
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x464172
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x464163
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x464143
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4641b2
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4641bb
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x464134
jmp 0x4641bd
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x464256
cmp dword [ebp - 0x6c], edi
je 0x464227
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x46421c
call fcn.0046054f
mov dword [eax], 9
call fcn.00460558
mov dword [eax], esi
jmp 0x464251
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x464211
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4641bd
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4641bd
push dword [ebp - 0x6c]
call fcn.00460561
pop ecx
jmp 0x464251
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x46423f
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x46423f
xor eax, eax
jmp 0x464259
call fcn.0046054f
mov dword [eax], 0x1c
call fcn.00460558
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x464259
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00468e5e
add ebp, 0x3a0
leave
ret
Function at 0x465c5c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x492508]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x492c90]
je 0x465c91
inc eax
cmp eax, 0x13
jb 0x465c82
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x492c90]
jne 0x465db7
mov eax, dword [0x497b00]
cmp eax, 1
je 0x465d8f
cmp eax, edx
jne 0x465cc1
cmp dword [0x492364], 1
je 0x465d8f
cmp ecx, 0xfc
je 0x465db7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x465cf7
lea eax, [ebp - 0x80]
push 0x47c614
push eax
call fcn.00462300
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00460160
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x465d2b
mov eax, edi
push eax
call fcn.00460160
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x47c610
push edi
call fcn.0045f260
add esp, 0x10
push edi
call fcn.00460160
push dword [esi + 0x492c94]
mov ebx, eax
call fcn.00460160
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0045e3a0
mov ebx, esp
push 0x47c5f4
push ebx
call fcn.00462300
push edi
push ebx
call fcn.00462310
push 0x47c5f0
push ebx
call fcn.00462310
push dword [esi + 0x492c94]
push ebx
call fcn.00462310
push 0x12010
push 0x47c5c8
push ebx
call fcn.0046ab24
add esp, 0x2c
jmp 0x465db7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x492c94]
push dword [esi]
call fcn.00460160
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00468e5e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x46ab24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x497ef0], ebx
push esi
push edi
jne 0x46aba4
push 0x47d264
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46abdf
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x47d258
push edi
call esi
test eax, eax
mov dword [0x497ef0], eax
je 0x46abdf
push 0x47d248
push edi
call esi
push 0x47d234
push edi
mov dword [0x497ef4], eax
call esi
cmp dword [0x497b30], 2
mov dword [0x497ef8], eax
jne 0x46aba4
push 0x47d218
push edi
call esi
test eax, eax
mov dword [0x497f00], eax
je 0x46aba4
push 0x47d200
push edi
call esi
mov dword [0x497efc], eax
mov eax, dword [0x497efc]
test eax, eax
je 0x46abe9
call eax
test eax, eax
je 0x46abd0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x497f00]
test eax, eax
je 0x46abd0
test byte [ebp - 8], 1
jne 0x46abe9
cmp dword [0x497b3c], 4
jb 0x46abe3
or byte [ebp + 0x12], 0x20
jmp 0x46ac08
xor eax, eax
jmp 0x46ac18
or byte [ebp + 0x12], 4
jmp 0x46ac08
mov eax, dword [0x497ef4]
test eax, eax
je 0x46ac08
call eax
mov ebx, eax
test ebx, ebx
je 0x46ac08
mov eax, dword [0x497ef8]
test eax, eax
je 0x46ac08
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x497ef0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46b2a4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0045e3a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x46b33f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x497b30]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x46b33f
cmp eax, 1
je 0x46b360
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x46b33f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x46b30c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x46b33b
xor eax, eax
inc eax
jmp 0x46b37f
cmp edi, eax
jae 0x46b343
xor eax, eax
jmp 0x46b37f
cmp eax, esi
jae 0x46b34a
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x497b30]
jmp 0x46b363
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46b97b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0045e3a0
mov eax, dword [0x492508]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00462ad0
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x46baae
push 2
push esi
push dword [ebp + 8]
call fcn.00462ad0
add esp, 0xc
cmp eax, ebx
je 0x46baae
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x46ba4e
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004671c0
push 0x8000
push dword [ebp + 8]
call fcn.0046be4e
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x46ba04
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004640a1
add esp, 0xc
cmp eax, 0xffffffff
je 0x46ba24
sub edi, eax
test edi, edi
jg 0x46b9fc
jmp 0x46ba3c
call fcn.00460558
cmp dword [eax], 5
jne 0x46ba39
call fcn.0046054f
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0046be4e
pop ecx
pop ecx
jmp 0x46ba96
jge 0x46ba96
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00462ad0
push dword [ebp + 8]
call fcn.00467a38
add esp, 0x10
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x46ba96
call fcn.0046054f
mov dword [eax], 0xd
call fcn.00460558
mov edi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00462ad0
add esp, 0xc
mov eax, esi
pop edi
jmp 0x46bab0
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00468e5e
leave
ret

Function at 0x46c170
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x46c210
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x46c1c2
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4935ac]
xor eax, edx
inc esi
cmp esi, edi
jl 0x46c1a3
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x46c1eb
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4935ac]
xor eax, edx
inc esi
cmp esi, edi
jl 0x46c1ce
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x46cd60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46cd80
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.00460561
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x46cda3
test byte [esp + 8], 2
je 0x46cda3
call fcn.0046054f
mov dword [eax], 0xd
call fcn.00460558
mov dword [eax], 5
jmp 0x46cd7c
xor eax, eax
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40560d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40561c
pop dword [ebp - 0x50]
mov eax, 0x880ba450
add eax, 0x7834b1cc
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xa8e641c7
sub dword [ebp - 0x60], 0x5a93fc7c
mov dword [ebp - 0x5c], 0xe792ad00
sub dword [ebp - 0x5c], 0xb55f60bb
mov dword [ebp - 0x58], 0xb545c032
sub dword [ebp - 0x58], 0x68f97c04
mov dword [ebp - 0x54], 0x24e75d4d
add dword [ebp - 0x54], 0xdb18a2b3
lea eax, [ebp - 0x60]
push eax
mov eax, 0xcdcb4cac
add eax, 0x327583a8
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x479615a
sub dword [ebp - 0x60], 0x9006f804
mov dword [ebp - 0x5c], 0x30f9a8fe
sub dword [ebp - 0x5c], 0xef8d4789
mov dword [ebp - 0x58], 0x1086a172
sub dword [ebp - 0x58], 0xad173506
mov dword [ebp - 0x54], 0x3ef0472b
add dword [ebp - 0x54], 0xc10fb8d5
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xd49a6e42
sub eax, 0xd4599df6
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3f5fb
push 0
call eax
mov ecx, 0x3dfb6632
add ecx, 0xc204f939
xor edi, edi
add edi, eax
mov ebx, 0xe52839ad
add ebx, 0x1b197653
add ebx, dword [ebp - 0x50]
mov edx, 0xbca98aaf
sub edx, 0x665c88ce
mov esi, dword [ebx]
xor dword [ebp - 0x20], 0xf16e527a
sub esi, edx
mov dword [edi], esi
add edi, 0x6bcf57ba
sub edi, 0x6bcf57b6
add ebx, 4
loop 0x405740
add eax, 0x1707f
xor ebx, ebx
add ebx, eax
add eax, 0xf3c3d305
sub eax, 0xf3c3d300
mov ecx, 0x1bf7d5ac
add ecx, 0xe4482a54
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40322d
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40324b
mov eax, 0x56cb4b
push eax
push 1
mov ebx, 0x4977d0
call fcn.00497128
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403275
mov eax, 0
jmp 0x4032e9
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x4032d6
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x4032bf
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4032ae
xor ecx, eax
xor edx, ebx
dec edi
jne 0x40329f
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
mov esp, ebp
pop ebp
ret 4
Function at 0x417600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
jmp 0x417615
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push ebx
mov ebx, 1
mov ebx, 2
mov ebx, 4
mov ebx, 2
mov ebx, 5
mov ebx, 4
mov ebx, 2
mov ebx, 5
mov ebx, 5
pop ebx
push edx
push ecx
push esi
xor esi, esi
mov eax, dword [ebp + 8]
lea ecx, ds:[esi*4]
mov ecx, dword [eax + ecx]
xor ecx, 0x1dd3dd25
xor ecx, 0x26e047b8
xor ecx, 0x6d957022
xor ecx, 0x4622b17
xor ecx, 0x34a8eb58
xor ecx, 0x54fc27ec
xor ecx, 0x7ad397f2
xor ecx, 0x162401a
xor ecx, 0x6115aa23
xor ecx, 0x48cb360e
xor ecx, 0x3a2caf15
xor ecx, 0x27074599
xor ecx, 0x1bd532bd
xor ecx, 0x67b8bedd
xor ecx, 0x3651722e
xor ecx, 0x6cdfb3bb
xor ecx, 0x229a0309
xor ecx, 0x66aab7e0
xor ecx, 0x1e31a6ee
xor ecx, 0x3a87cc5f
xor ecx, 0x314536de
xor ecx, 0x482d5ffb
xor ecx, 0x29250d51
xor ecx, 0x1c3f64c1
xor ecx, 0x48205dbb
xor ecx, 0x4b54b699
xor ecx, 0x41ddc7de
xor ecx, 0x119d59d0
xor ecx, 0x1a3f73a9
nop
nop
nop
nop
nop
nop
lea edx, ds:[esi*4]
mov dword [eax + edx], ecx
add esi, 1
cmp esi, dword [ebp + 0xc]
jne 0x41767b
pop esi
pop ecx
pop edx
nop
push ecx
push eax
mov eax, 1
mov ecx, 2
mov eax, 4
mov ecx, 2
pop eax
pop ecx
nop
jmp 0x41777e
mov esp, ebp
pop ebp
ret 8

Function at 0x417784
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
jmp 0x417799
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push ebx
mov ebx, 1
mov ebx, 2
mov ebx, 4
mov ebx, 2
mov ebx, 5
mov ebx, 4
mov ebx, 2
mov ebx, 5
mov ebx, 5
pop ebx
push edx
push ecx
push esi
xor esi, esi
mov eax, dword [ebp + 8]
lea ecx, ds:[esi*4]
mov ecx, dword [eax + ecx]
xor ecx, 0x23b50d08
xor ecx, 0x6383ac69
xor ecx, 0x7b85b49c
xor ecx, 0x26d85ca1
xor ecx, 0x47a34e95
xor ecx, 0x33441630
xor ecx, 0x21b3620d
xor ecx, 0x6c35551a
xor ecx, 0x5bc395f4
xor ecx, 0x4f6f3d60
xor ecx, 0x6759eaf4
xor ecx, 0x61d932a8
xor ecx, 0x5528c6e4
xor ecx, 0x5c7068e3
xor ecx, 0x15f3dded
xor ecx, 0x2342a08e
xor ecx, 0x6d8bc8cd
xor ecx, 0x7bab4443
xor ecx, 0x3ff88a50
xor ecx, 0x655c6453
xor ecx, 0x49460487
xor ecx, 0x3fffd8b5
xor ecx, 0x446f397b
xor ecx, 0x7ed8147e
xor ecx, 0x46db4ad4
xor ecx, 0x1a3f73a9
xor ecx, 0x119d59d0
xor ecx, 0x41ddc7de
xor ecx, 0x4b54b699
nop
nop
nop
nop
nop
nop
lea edx, ds:[esi*4]
mov dword [eax + edx], ecx
add esi, 1
cmp esi, dword [ebp + 0xc]
jne 0x4177ff
pop esi
pop ecx
pop edx
nop
push ecx
push eax
mov eax, 1
mov ecx, 2
mov eax, 4
mov ecx, 2
pop eax
pop ecx
nop
jmp 0x417902
mov esp, ebp
pop ebp
ret 8