joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x429040]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov dword [esp + 0x2c], 0x52000
xor ecx, ecx
mov esi, 0x1a
nop dword [eax]
mov eax, ecx
mov byte [esp + ecx + 0x38], cl
xor edx, edx
div esi
mov al, byte [edx + 0x47bac0]
mov byte [esp + ecx + 0x138], al
inc ecx
cmp ecx, 0x100
jl 0x402210
xor esi, esi
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
mov dl, byte [esp + esi + 0x38]
movzx eax, byte [esp + esi + 0x138]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x402263
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x38]
mov byte [esp + esi + 0x38], al
inc esi
mov byte [esp + edi + 0x38], dl
cmp esi, 0x100
jl 0x402240
xor eax, eax
mov edi, 0x3e8
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
cmp eax, esi
je 0x4022a4
mov dword [eax], 0x52000
add eax, 4
mov dword [esp + 0x18], eax
jmp 0x4022bb
lea ecx, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004043b0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub edi, 1
jne 0x402291
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], esi
cmp dword [ebx], edi
jle 0x4023aa
xor esi, esi
inc esi
and esi, 0x800000ff
jns 0x4022e3
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esp + esi + 0x38]
mov eax, dword [esp + 0x10]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x4022fe
dec eax
or eax, 0xffffff00
inc eax
mov dword [esp + 0x10], eax
mov al, byte [esp + eax + 0x38]
mov byte [esp + esi + 0x38], al
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x38], cl
movzx eax, byte [esp + esi + 0x38]
add eax, edx
movzx eax, al
mov dword [esp + 0x28], eax
call fcn.00403530
mov dword [esp + 0x20], eax
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax + 0x30]
mov eax, dword [ecx + 4]
mov ecx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov edx, dword [eax]
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
call fcn.00403390
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x34], al
test ecx, ecx
je 0x402379
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x402379
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
call fcn.00403fb0
mov ecx, dword [esp + 0x20]
call fcn.00403d10
mov eax, dword [esp + 0x28]
mov al, byte [esp + eax + 0x38]
xor byte [edi + 0x429ac0], al
inc edi
cmp edi, dword [ebx]
jl 0x4022d2
mov esi, dword [esp + 0x24]
sub esi, ebx
mov eax, ebx
and esi, 0xfffffffc
cmp esi, 0x1000
jb 0x4023c9
mov ebx, dword [eax - 4]
add esi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023e8
push esi
push ebx
call fcn.00407d42
mov ecx, dword [esp + 0x244]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407cff
mov esp, ebp
pop ebp
ret
call fcn.0040ca03
int3
Function at 0x402610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
mov eax, dword [0x429040]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [0x47d230]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x20], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [esp + 0x1c], eax
test eax, eax
je 0x402726
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x34], 0
mov eax, edx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x24], xmm0
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402678
sub eax, ebp
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.004039d0
lea ecx, [esp + 0x24]
call fcn.004023f0
cmp eax, dword [esp + 0x18]
je 0x4026d9
mov ecx, dword [esp + 0x38]
add edi, 4
cmp ecx, 0xf
jbe 0x4026d0
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4026c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40273f
push ecx
push edx
call fcn.00407d42
add esp, 8
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x402657
jmp 0x402726
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 0xf
jbe 0x402726
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40271c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40273f
push ecx
push edx
call fcn.00407d42
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407cff
add esp, 0x34
ret
call fcn.0040ca03
int3

Function at 0x4031f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push 4
call fcn.00407d12
add esp, 4
lea ecx, [esp + 4]
mov dword [eax], 0x4031d0
push ecx
push 0
push eax
push 0x4045e0
push 0
push 0
call fcn.0040c5ff
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x40328b
cmp dword [esp + 4], 0
je 0x40329a
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x4032a1
push 0
push ecx
push dword [esp + 8]
call fcn.00407779
add esp, 0xc
test eax, eax
jne 0x4032a8
xorps xmm0, xmm0
movlpd qword [esp], xmm0
cmp dword [esp], 0x1a4cc
jne 0x40326a
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0x10
mov edx, str.Catching_n
mov ecx, 0x47c2d8
call fcn.00403730
push 0
call dword [sym.imp.GDI32.dll_GdiSetBatchLimit]
xor eax, eax
cmp dword [esp + 4], eax
jne 0x4032af
jmp 0x403264
push 6
mov dword [esp + 8], 0
call fcn.0040499d
push 1
call fcn.0040499d
push 5
call fcn.0040499d
push 2
call fcn.0040499d
call fcn.0040c690
int3
Function at 0x405ad7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x405af8
jl 0x405aef
test edi, edi
jne 0x405af8
xor eax, eax
xor edx, edx
jmp 0x405bb9
cmp dword [ebx + 0x38], 0
je 0x405b0d
push eax
push edi
push dword [ebp + 8]
call fcn.00405bbf
jmp 0x405bb9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405b54
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x405b54
cmp eax, edi
jb 0x405b2e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408fe0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x405b5a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x405bae
mov ecx, ebx
call fcn.00405327
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x405b99
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040d771
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x405bae
jmp 0x405b6c
test edx, edx
je 0x405bae
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040d771
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40897d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4089bc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4089bc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4089bc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4089bc
cmp dword [ecx + 0x74], 0xe
jbe 0x4089bc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41305a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422024
push 0x42201c
push str.FlsAlloc
push 0x1e
call fcn.00412f03
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41308e
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f14c]
call esi
jmp 0x413094
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4130d8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422034
push 0x42202c
push str.FlsGetValue
push 0x20
call fcn.00412f03
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41310f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x414bda
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041487c

Function at 0x414be5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414a0b

Function at 0x414fdf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408af0
mov eax, dword [0x429040]
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.00413a71
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x415021
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41517d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041e3d0
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 + 0x47cf08]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004161b0
mov ecx, dword [esi*4 + 0x47cf08]
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 0x415176
cmp eax, dword [edi + ecx + 0x24]
jne 0x415176
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 0x415176
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004161b0
add esp, 0x14
test edx, edx
jl 0x415176
jg 0x4150ec
test eax, eax
jb 0x415176
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x415176
jl 0x415106
cmp dword [ebp - 0x1008], eax
ja 0x415176
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x415124
test ebx, ebx
je 0x41515d
cmp ecx, edi
jae 0x41515d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41513e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41514a
cmp byte [ecx + 1], 0xa
jne 0x41514a
inc ecx
jmp 0x41514a
movzx eax, al
movsx eax, byte [eax + 0x4292f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x415124
cmp edx, ebx
jne 0x415124
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41517b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407cff
leave
ret
Function at 0x41564d
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 + 0x47cf08]
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 0x41568d
cmp byte [ebx], 0xa
jne 0x41568d
or byte [eax + edi + 0x28], 4
jmp 0x415692
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x415790
mov al, byte [edx]
cmp al, 0x1a
je 0x415772
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4156c1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4156e6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4156f0
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 0x4156a3
jmp 0x415790
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 0x41576d
cmp dword [ebp - 0xc], 0
je 0x41576d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47cf08]
test byte [eax + edi + 0x28], 0x48
je 0x415747
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x415732
mov byte [esi], dl
jmp 0x415743
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47cf08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x415790
cmp byte [ebp - 1], 0xa
jne 0x415756
cmp esi, ebx
jne 0x415756
mov byte [esi], 0xa
jmp 0x41578f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004161ce
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x415790
mov byte [esi], 0xd
jmp 0x41578f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47cf08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41578c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415790
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415799
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 + 0x47cf08]
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 0x4157dc
cmp word [esi], dx
jne 0x4157dc
or byte [edi + eax + 0x28], 4
jmp 0x4157e1
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 0x415934
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 0x415914
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x415823
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415859
cmp eax, edx
jae 0x415865
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 0x4157fb
jmp 0x415934
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 0x415910
cmp dword [ebp - 0x14], 0
je 0x415910
mov eax, dword [ebx*4 + 0x47cf08]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4158e8
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4158b1
mov word [esi], cx
jmp 0x4158e4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47cf08]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47cf08]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47cf08]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x415934
pop ebx
cmp word [ebp - 4], bx
jne 0x4158f9
cmp esi, dword [ebp + 0xc]
jne 0x4158f9
mov word [esi], bx
jmp 0x415931
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004161ce
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415934
push 0xd
jmp 0x41592d
mov ecx, dword [ebx*4 + 0x47cf08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41592b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415934
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 0x4186fe
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x429040]
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 0x418749
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041889d
test al, al
jne 0x418743
sub edx, 2
cmp edx, edi
jne 0x418729
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41876b
lea eax, [edi + 2]
cmp edx, eax
je 0x41876b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041864a
add esp, 0x10
jmp 0x418865
push esi
lea ecx, [ebp - 0x255]
call fcn.0041889d
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 0x4187ae
push dword [ebp - 0x25c]
jmp 0x41875b
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 0x4187eb
cmp word [ebp - 0x226], 0
je 0x41880c
cmp word [ebp - 0x226], ax
jne 0x4187eb
cmp word [ebp - 0x224], 0
je 0x41880c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041864a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x418858
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4187c5
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x418840
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x418865
push 0x41847a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041c530
add esp, 0x10
jmp 0x418835
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.00407cff
leave
ret

Function at 0x41e390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e3bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e3bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10008b30
Capabilities:
Check os version

Disassembly:
sub esp, 0x104
push ebp
mov ebp, dword [esp + 0x11c]
push edi
xor edi, edi
test ebp, 0x200
je 0x10008b57
pop edi
mov eax, 1
pop ebp
add esp, 0x104
ret
push ebx
mov ebx, dword [esp + 0x128]
test ebx, ebx
push esi
jne 0x10008b91
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push ebp
push eax
mov eax, dword [esp + 0x120]
push ecx
push edx
push eax
call fcn.10009430
add esp, 0x14
mov esi, eax
jmp 0x10008bdd
mov al, byte [ebx]
mov esi, dword [esp + 0x118]
test al, 1
je 0x10008bb0
lea ecx, [ebx + 0x264]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10008bd7
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
push ebx
push ebp
push 0
push 0
push edx
push eax
push ecx
push esi
call fcn.10009250
add esp, 0x20
mov esi, dword [ebx + 0x368]
test ebp, 0x7f000000
jne 0x10008c60
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x20]
cmp eax, 2
jne 0x10008c23
mov eax, dword [esp + 0x14]
cmp eax, 5
jb 0x10008c12
and esi, 0x30000000
jmp 0x10008c62
cmp eax, 4
jne 0x10008cc2
shr esi, 0x1b
and esi, 1
jmp 0x10008c68
cmp eax, 1
jne 0x10008cc2
mov eax, dword [esp + 0x14]
cmp eax, 5
jae 0x10008c58
cmp eax, 4
jne 0x10008c50
mov eax, dword [esp + 0x18]
cmp eax, 0x5a
jae 0x10008c58
cmp eax, 0xa
jb 0x10008c50
shr esi, 0x19
and esi, 1
jmp 0x10008c68
shr esi, 0x18
and esi, 1
jmp 0x10008c68
shr esi, 0x1a
and esi, 1
jmp 0x10008c68
and esi, ebp
neg esi
sbb esi, esi
neg esi
mov edi, esi
test edi, edi
je 0x10008cc2
test ebp, 0x8000
je 0x10008cc2
xor edi, edi
test ebx, ebx
je 0x10008cc2
mov eax, dword [ebx + 0x374]
test eax, eax
je 0x10008cc2
mov esi, 1
mov ecx, dword [ebx + 0x374]
lea eax, [esp + 0x10]
push 0x104
push eax
push esi
push ecx
call fcn.10004f30
test eax, eax
je 0x10008cc2
lea edx, [esp + 0x10]
push str.POSTSCRIPT
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edi, eax
neg edi
sbb edi, edi
inc edi
inc esi
test edi, edi
je 0x10008c8b
pop esi
mov eax, edi
pop ebx
pop edi
pop ebp
add esp, 0x104
ret
Function at 0x1000a400
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov ebx, dword [esp + 0x128]
mov ebp, eax
push ebx
call edi
add ebp, eax
lea eax, [esp + 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x1c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, eax
je 0x1000a48e
mov al, byte [esi]
xor ebx, ebx
xor al, dl
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x18]
and eax, 0xff
mov edi, eax
and edi, 0xf
shr eax, 4
mov bx, word [edi*2 + 0x1001d40c]
xor edi, edi
mov di, word [eax*2 + 0x1001d42c]
shr edx, 8
xor edx, ebx
xor edx, edi
inc esi
dec ecx
jne 0x1000a456
and edx, 0xffff
lea ecx, [esp + 0x10]
push edx
push str._04x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, al
lea esi, [esp + 0x10]
je 0x1000a4ca
movsx edx, al
push edx
call fcn.10017057
add esp, 4
mov byte [esi], al
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1000a4b4
cmp bp, 0x14
jbe 0x1000a4d5
mov byte [esp + 0x30], 0
mov cl, byte [esp + 0x1c]
lea eax, [esp + 0x1c]
test cl, cl
je 0x1000a4f1
cmp byte [eax], 0x20
jne 0x1000a4e9
mov byte [eax], 0x5f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000a4e1
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
mov ecx, dword [esp + 0x130]
cmp ecx, eax
jbe 0x1000a57d
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret