joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f343
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00454270
mov eax, dword [0x4a4100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0046add5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x45f385
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x45f4e1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047a200
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4a5e70]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00461b08
mov ecx, dword [esi*4 + 0x4a5e70]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x45f4da
cmp eax, dword [edi + ecx + 0x24]
jne 0x45f4da
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45f4da
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00461b08
add esp, 0x14
test edx, edx
jl 0x45f4da
jg 0x45f450
test eax, eax
jb 0x45f4da
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x45f4da
jl 0x45f46a
cmp dword [ebp - 0x1008], eax
ja 0x45f4da
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x45f488
test ebx, ebx
je 0x45f4c1
cmp ecx, edi
jae 0x45f4c1
mov al, byte [ecx]
cmp al, 0xd
jne 0x45f4a2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x45f4ae
cmp byte [ecx + 1], 0xa
jne 0x45f4ae
inc ecx
jmp 0x45f4ae
movzx eax, al
movsx eax, byte [eax + 0x4a41f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45f488
cmp edx, ebx
jne 0x45f488
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x45f4df
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045360d
leave
ret
Function at 0x4603e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4a5e70]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x460428
cmp byte [ebx], 0xa
jne 0x460428
or byte [eax + edi + 0x28], 4
jmp 0x46042d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46052b
mov al, byte [edx]
cmp al, 0x1a
je 0x46050d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46045c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x460481
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46048b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46043e
jmp 0x46052b
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x460508
cmp dword [ebp - 0xc], 0
je 0x460508
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4a5e70]
test byte [eax + edi + 0x28], 0x48
je 0x4604e2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4604cd
mov byte [esi], dl
jmp 0x4604de
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a5e70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46052b
cmp byte [ebp - 1], 0xa
jne 0x4604f1
cmp esi, ebx
jne 0x4604f1
mov byte [esi], 0xa
jmp 0x46052a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00461b26
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46052b
mov byte [esi], 0xd
jmp 0x46052a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4a5e70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x460527
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46052b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x460534
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4a5e70]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x460577
cmp word [esi], dx
jne 0x460577
or byte [edi + eax + 0x28], 4
jmp 0x46057c
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4606cf
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4606af
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4605be
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4605f4
cmp eax, edx
jae 0x460600
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x460596
jmp 0x4606cf
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4606ab
cmp dword [ebp - 0x14], 0
je 0x4606ab
mov eax, dword [ebx*4 + 0x4a5e70]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x460683
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46064c
mov word [esi], cx
jmp 0x46067f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4a5e70]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4a5e70]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4a5e70]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4606cf
pop ebx
cmp word [ebp - 4], bx
jne 0x460694
cmp esi, dword [ebp + 0xc]
jne 0x460694
mov word [esi], bx
jmp 0x4606cc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00461b26
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4606cf
push 0xd
jmp 0x4606c8
mov ecx, dword [ebx*4 + 0x4a5e70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4606c6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4606cf
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x470df0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x488024
push 0x48801c
push str.FlsAlloc
push 0x1e
call fcn.00470c71
mov esi, eax
add esp, 0x10
test esi, esi
je 0x470e24
push dword [ebp + 8]
mov ecx, esi
call dword [0x483430]
call esi
jmp 0x470e2a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x470e6e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x488034
push 0x48802c
push str.FlsGetValue
push 0x20
call fcn.00470c71
mov esi, eax
add esp, 0x10
test esi, esi
je 0x470ea5
push dword [ebp + 8]
mov ecx, esi
call dword [0x483430]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x471450
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004713cc
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4715c8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4715c8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x471577
jg 0x4714a9
test eax, eax
je 0x47156d
push 1
push 0x1000
call fcn.00470ae1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4714cf
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x471564
push 0x8000
push ebx
call fcn.0046cc18
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4714fb
jg 0x4714f6
cmp ecx, 0x1000
jb 0x4714fb
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0046247c
add esp, 0x10
cmp eax, 0xffffffff
je 0x471540
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4714f6
jl 0x471527
test ecx, ecx
jne 0x4714e8
push dword [ebp - 0xc]
push ebx
call fcn.0046cc18
push esi
call fcn.0046f461
add esp, 0xc
xor edi, edi
jmp 0x4715d9
cmp byte [edi + 0x24], 0
je 0x471557
cmp dword [edi + 0x20], 5
jne 0x471557
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x471562
mov edi, dword [edi + 0x18]
jmp 0x471564
xor edi, edi
push esi
call fcn.0046f461
pop ecx
jmp 0x4715d9
test ecx, ecx
jg 0x471539
jl 0x471577
test eax, eax
jae 0x471539
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00461b26
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47159a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x471539
jmp 0x4715d1
push ebx
call fcn.0046c06a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x471539
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4715d9
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4715d6
mov edi, dword [edi + 0x18]
jmp 0x4715d9
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00461b26
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x471fde
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00471e4f
Function at 0x473665
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4a4100]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4736b0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00473804
test al, al
jne 0x4736aa
sub edx, 2
cmp edx, edi
jne 0x473690
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4736d2
lea eax, [edi + 2]
cmp edx, eax
je 0x4736d2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004735b1
add esp, 0x10
jmp 0x4737cc
push esi
lea ecx, [ebp - 0x255]
call fcn.00473804
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x473715
push dword [ebp - 0x25c]
jmp 0x4736c2
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x473752
cmp word [ebp - 0x226], 0
je 0x473773
cmp word [ebp - 0x226], ax
jne 0x473752
cmp word [ebp - 0x224], 0
je 0x473773
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004735b1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4737bf
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x47372c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4737a7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4737cc
push 0x4733e1
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00479250
add esp, 0x10
jmp 0x47379c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045360d
leave
ret

Function at 0x4740d7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4740e8
pop esi
ret
push ebx
push edi
push esi
call fcn.004740a0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046f49b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x474110
push ebx
push esi
push edi
call fcn.00455260
add esp, 0xc
push 0
call fcn.0046f461
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4744d4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00474125
Function at 0x47a050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47a07d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47a07d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40c7b3
Capabilities:
Encode data using xor

Disassembly:
sbb dword [esi], edx
invalid
jae 0x40c75b
lodsd eax, dword [esi]
sbb al, 0x86
invalid
xor dword ss:[0x3c755c9d], edi
pop esp
jne 0x40c7f2
loop 0x40c7af
daa
cmc
jge 0x40c7a6
imul esi, esp, 0xffffffb7
push ds
cmpsd dword [esi], dword es:[edi]
lds ecx, [ecx]
popfd
add byte [edi*8 + 0xbf9ad51], ch
adc eax, 0x70ac154a
pop ebx
in eax, 0x41
jge 0x40c7bd
hlt
mov eax, 0xe4c4259c
in eax, 0xba
leave
sub eax, 0x74fb3bb4
fld xword [ebx - 0x65]
into
in al, 0
invalid
insd dword es:[edi], dx
sbb al, 0xbd
jnp 0x40c801
movsd dword es:[edi], dword [esi]
sub byte [ebp + 0x6d], ch
ret 0x330c
inc edx
sub byte [ebp - 0x52], 0x54
les ebp, [edi]
jle 0x40c846
fld qword [esi]
into
or al, 0x5b
sub bl, dh
mov eax, eax
dec ebp
out 0x4c, eax
dec esp
inc ebx
and byte [ebx + 0x3a], ch
fstp st(4)
pop eax
push ds
adc esp, dword [esi]
movsd dword es:[edi], dword [esi]
sbb dl, byte [esi + 0xf39ad56]
lodsb al, byte [esi]
cmp byte [esp + esi*4 + 0x5f], cl
enter 0xffffffffffffa836, 0xffffffffffffffed
sahf
lodsb al, byte gs:[esi]
loop 0x40c8a4
pop es
retf
pushfd
push es
and cl, byte [edi + ecx - 0x14]
rcr dword [edi + 6], cl
movsd dword es:[edi], dword [esi]
inc ecx
retf 0xdad6
sub eax, 0xd1e27e3
cmp dword [ebp - 0x33], 0x33
mov edx, 0x5398cc03
jns 0x40c924
mov ch, 0xeb
add dword [edi], 0x73
fidivr word [ebx + 0x24]
das
jmp 0xfd714a0e
fidivr word [edx + edx*8 + 0x2180f8ec]
dec ebx
push dword [edi - 0x35]
lodsb al, byte [esi]
mov ebp, 0x422facae
add dh, al
hlt
pushfd
out dx, eax
in al, dx
pop ss
pop ebp
xchg esi, eax
push ecx
push cs
push ss
arpl word [ebp + 0x229eadcc], bp
cld
xchg dword [ebx + eax*4 - 0x2eb392c7], esp
inc eax
sub al, 0x72
scasd eax, dword es:[edi]
in al, dx
lodsb al, byte [esi]
out dx, eax
sub al, 0xcc
sar ah, 1
jae 0x40c8e6
dec ebp
cld
add esp, dword [eax - 0x18aab3a4]
test al, 0xf9
inc ebx
jmp 0xb1c21307

Function at 0x4119a4
Capabilities:
Encode data using xor

Disassembly:
out 0x44, al
movsb byte es:[edi], byte [esi]
test byte [esi + 0xa42f04e], 0x4e
push esp
push 0x34
sbb ch, byte [esi + 0x1b9c0cf4]
sub dword [edx - 0x66], ecx
movhps xmm4, qword [eax + 0x37]
add eax, 0x5f85fab5
and al, 0x97
sub dh, byte [ebp - 0x7f7666ef]
out dx, eax
inc ebx
inc esp
shl byte [eax + esi*8], 0x4d
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
dec eax
pop edi
loop 0x411a4a
ret

Function at 0x44ec53
Capabilities:
Encode data using xor

Disassembly:
xor esp, esi
push ebp
out 0x55, al
xor dword [edx], eax
adc al, 0x8d
inc edx
imul esi, dword [ebp + 0x46], 0xb25553ff
add al, 0x11
loop 0x44ec54
popfd
aam 0xbd
ret

Function at 0x44f8d3
Capabilities:
Encode data using xor

Disassembly:
sbb esi, dword [esi + 0x2b709d88]
xor al, 0x4b
xor byte [ecx + esi - 0xf4a6ef3], dl
pop ebx
push eax
scasd eax, dword es:[edi]
xor edi, dword [eax - 0x47ce2493]
stosb byte es:[edi], al
sub byte gs:[ecx + 0x39], 0xb4
mov eax, dword [0xf3d22a76]
std
invalid

Function at 0x469e88
Capabilities:
Encode data using xor

Disassembly:
dec edx
lds ebp, [eax - 0x445b272f]
call 0xd460c4ba
cmpsd dword [esi], dword es:[edi]
div byte [ebx + 0x21c74b06]
invalid
Function at 0x4bb075
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33d0
cmp edx, dword [eax]
je 0x4bb097
add eax, 8
inc ecx
cmp eax, 0x4c3460
jl 0x4bb088
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33d0]
jne 0x4bb1c5
mov eax, dword [0x4c7d64]
cmp eax, 1
je 0x4bb19f
test eax, eax
jne 0x4bb0c8
cmp dword [0x4c32fc], 1
je 0x4bb19f
cmp edx, 0xfc
je 0x4bb1c5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb0ff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bba60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbef0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb142
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbef0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0814
push edi
call fcn.004bddc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bba60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bba70
lea eax, [ebp - 0xa0]
push 0x4c07f4
push eax
call fcn.004bba70
push dword [esi + 0x4c33d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bba70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bdd34
add esp, 0x2c
pop edi
jmp 0x4bb1c5
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33d4]
push 0
push eax
push dword [esi]
call fcn.004bbef0
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 0x5e82e9
Capabilities:
Encode data using xor

Disassembly:
neg ecx
dec ebp
xchg byte [edi + 0x3c95075f], dh
or al, 0x65
cmpsd dword [esi], dword es:[edi]
cmpsd dword gs:[esi], dword es:[edi]
xchg esp, eax
fucomi st(5)
xor eax, 0xa803d4ec
xchg dword [edx - 0x78620db], eax
mov byte [0x20d2f9f7], al
cmc
xor byte [eax], cl
mov esp, dword [eax + 0x19c69b4e]
out dx, eax
mov ah, 0xb4
jb 0x5e82f3
mov ebp, 0xda19ba0f
sbb ax, 0x9585
cmpsb byte [esi], byte es:[edi]
invalid
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x8ccb9d
Capabilities:
Encode data using xor

Disassembly:
push 0x8cc92e
pop edi
mov ecx, 0x1adaf105
call fcn.008ccbd7
inc ecx
push ecx
pop edx
xor dword [ebx], edi
and ecx, edx
inc ebx
add edx, 0xca1c93cd
add edx, 0x863e75a4
sub ecx, edx
cmp ebx, esi
jne fcn.008ccb9d
dec edx
or ecx, ecx
sub ecx, ecx
ret

Function at 0x40892f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop ebx
call fcn.0040895d
xor dword [edi], ebx
add esi, 0xbaea05a7
add edi, 1
dec eax
cmp edi, ecx
jne fcn.0040892f
or esi, eax
ret
Function at 0x401290
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4612c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], 0
push 0
push str.c0058e6fb3b534b578250feb8233dee
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4012c3
jmp 0x4013a5
lea eax, [ebp - 0x148]
push eax
push 0x450520
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
jne 0x4012e9
jmp 0x4013a5
cmp dword [ebp - 0x258], 0
jne 0x401398
push 0
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401352
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x40132e
jmp 0x4013a5
mov ecx, dword [ebp - 0x25c]
and ecx, 1
jne 0x401350
mov edx, dword [ebp - 0x25c]
or edx, 1
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x401362
push str.86ef05d7354d13c55
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
jmp 0x4013a5
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401393
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x401391
mov dword [ebp - 0x258], 1
jmp 0x401393
jmp 0x4013a5
jmp 0x4012e9
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449600
mov esp, ebp
pop ebp
ret