joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eb14
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 + 0x432aa8]
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 0x41eb54
cmp byte [ebx], 0xa
jne 0x41eb54
or byte [eax + edi + 0x28], 4
jmp 0x41eb59
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec57
mov al, byte [edx]
cmp al, 0x1a
je 0x41ec39
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb88
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ebad
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ebb7
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 0x41eb6a
jmp 0x41ec57
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 0x41ec34
cmp dword [ebp - 0xc], 0
je 0x41ec34
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x432aa8]
test byte [eax + edi + 0x28], 0x48
je 0x41ec0e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebf9
mov byte [esi], dl
jmp 0x41ec0a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x432aa8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec57
cmp byte [ebp - 1], 0xa
jne 0x41ec1d
cmp esi, ebx
jne 0x41ec1d
mov byte [esi], 0xa
jmp 0x41ec56
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416665
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec57
mov byte [esi], 0xd
jmp 0x41ec56
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x432aa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec53
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec57
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ec60
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 + 0x432aa8]
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 0x41eca3
cmp word [esi], dx
jne 0x41eca3
or byte [edi + eax + 0x28], 4
jmp 0x41eca8
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 0x41edfb
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 0x41eddb
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ecea
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ed20
cmp eax, edx
jae 0x41ed2c
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 0x41ecc2
jmp 0x41edfb
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 0x41edd7
cmp dword [ebp - 0x14], 0
je 0x41edd7
mov eax, dword [ebx*4 + 0x432aa8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41edaf
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed78
mov word [esi], cx
jmp 0x41edab
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x432aa8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x432aa8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x432aa8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edfb
pop ebx
cmp word [ebp - 4], bx
jne 0x41edc0
cmp esi, dword [ebp + 0xc]
jne 0x41edc0
mov word [esi], bx
jmp 0x41edf8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00416665
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edfb
push 0xd
jmp 0x41edf4
mov ecx, dword [ebx*4 + 0x432aa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edf2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edfb
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 0x4218d0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0xdd100a
jmp 0xdd300f
jmp fcn.00b3c058
Function at 0x770361
Capabilities:
Encode data using xor

Disassembly:
lock xor eax, dword [ecx - 0x4e69ada5]
imul dword [ebp + 0x57]
das
cli
dec esp
push 0x4f
ficom dword [ebx - 0x4d203e09]
sbb esp, ecx
in al, 0x72
enter 0x65a4, 0xffffffffffffff94
pushfd
adc byte [edi - 0x57fe80bd], ah
jg 0x770385
test al, 0xb2
push edi
mov dl, 0x57
lcall 0x5b34, 0x62e01f67
cmp dword [edi - 0x7e], esp
aam 0x36
jg 0x770395
mov eax, dword [0x5bcb6e11]
xchg edx, eax
mov ecx, dword [edi + 0x7b70bd4]
mov bh, 7
pop ebp
inc ebx
dec esp
inc ecx
mov esp, 0x4de0c699
stc
dec ebx
add al, 0x53
out dx, eax
mov al, byte [0x81be76e4]
lodsd eax, dword [esi]
pop es
wait
loop 0x770382
inc esp
pop ebp
pop esp
out 0x82, al
out 0xaa, eax
pop ecx
mov dh, 0xd8
pushal
pop ebx
mov ebx, 0x11dfa74b
xchg ecx, eax
add bh, byte [ebp + 0x31b434ae]
mov eax, dword [0x788b2ef5]
jnp 0x7703b9
in eax, dx
xor dword [ebp - 0x744e497c], esi
pushal
push edx
imul esp, dword [ecx + 0x7b], 0xffffffb0
sbb edi, dword [eax]
mov dword [ebx], edx
test dword [edx], 0x21db2317
sub al, byte [ebp + 0x49eb41b7]
jno 0x7703d9
mov eax, dword [0xd99ad0a8]
jno 0x7703d6
cdq
mov dword [0x8b4db734], eax
jge 0x77039f
je 0x770426
add dword [edx + 0x54], eax
cld
cld
out 0x95, al
mov bh, 0xd1
cmc
rcl edi, 0x39
push edi
popal
ret 0x71de
dec ebx
jno 0x77042e
pop es
lodsb al, byte [esi]
cmpsd dword [esi], dword es:[edi]
jno 0x77047d
les esp, cs:[edi + 0x13]
and eax, 0x16c7d1eb
adc esp, dword [0x16c7d1eb]
cdq
int1
rol esp, 1
xlatb
sal dword [ebx + 0x21], cl
mov esi, dword [ecx + 0x140973c7]
js 0x770486
inc eax
jno 0x7703d9
push cs
and al, 0x1d
aaa
add byte [ebx], cl
dec ebp
sbb ebx, dword [edi - 9]
lds eax, [edi - 0x2806fc0b]
popal
cmpsd dword [esi], dword es:[edi]
inc esp
add ecx, eax
xchg edi, eax
mov eax, dword [0xc517d097]
lds esi, [edi]
inc esi
nop
push ebp
pop ecx
punpckldq mm4, dword [ebp + 0x1c]
pop ebp
mov dl, 0x21
add ebx, dword [ebx]
loopne 0x7704c9
invalid
invalid
inc esi
sahf
push 0xc15f09ff
push eax
jecxz 0x770461
fidivr dword [esi + 0x45ad466c]
mov esi, 0x45ad466c
push ebx
cmpsb byte [esi], byte es:[edi]
mov bl, 0xc1
jp 0x770424
fiadd word [0xc90282af]
cmpsd dword [esi], dword es:[edi]
div byte [ebx + 0x3471082]
push ebp
invalid
xchg edx, eax
cmp byte [edx + ebp], cl
xor dword [edx + 0x10], ebx
and ah, ah
xchg edi, esi
xchg esp, eax
int1
jmp 0xb04d7ec
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406058], 1
mov dword [0x406054], 1
mov dword [0x406050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40600c], eax
mov eax, dword [0x406064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x406060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x403014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401780
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x4022fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x4777c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402366
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b4a
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00403a65
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40237e
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e72
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40232e
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406114
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402e72
jmp 0x402368

Function at 0x403ee0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4786f0], eax
push 0x27
push 0x477228
push 0x547
mov esi, 0x477250
push esi
call fcn.0040239c
push 0x8aafdc01
push dword [0x4786f0]
call fcn.004022fd
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x403f40
call fcn.00403de5
xor eax, eax
pop ecx
ret 0x10
Function at 0x418050
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417ec1

Function at 0x41844a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407010
mov eax, dword [0x4777c0]
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.004161cb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41848c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4185e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004218d0
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 + 0x479190]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419441
mov ecx, dword [esi*4 + 0x479190]
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 0x4185e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4185e1
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 0x4185e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419441
add esp, 0x14
test edx, edx
jl 0x4185e1
jg 0x418557
test eax, eax
jb 0x4185e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4185e1
jl 0x418571
cmp dword [ebp - 0x1008], eax
ja 0x4185e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41858f
test ebx, ebx
je 0x4185c8
cmp ecx, edi
jae 0x4185c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4185a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4185b5
cmp byte [ecx + 1], 0xa
jne 0x4185b5
inc ecx
jmp 0x4185b5
movzx eax, al
movsx eax, byte [eax + 0x477a98]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41858f
cmp edx, ebx
jne 0x41858f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4185e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406114
leave
ret
Function at 0x4188df
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 + 0x479190]
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 0x41891f
cmp byte [ebx], 0xa
jne 0x41891f
or byte [eax + edi + 0x28], 4
jmp 0x418924
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418a22
mov al, byte [edx]
cmp al, 0x1a
je 0x418a04
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x418953
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x418978
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x418982
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 0x418935
jmp 0x418a22
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 0x4189ff
cmp dword [ebp - 0xc], 0
je 0x4189ff
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x479190]
test byte [eax + edi + 0x28], 0x48
je 0x4189d9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4189c4
mov byte [esi], dl
jmp 0x4189d5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x479190]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418a22
cmp byte [ebp - 1], 0xa
jne 0x4189e8
cmp esi, ebx
jne 0x4189e8
mov byte [esi], 0xa
jmp 0x418a21
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041945f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418a22
mov byte [esi], 0xd
jmp 0x418a21
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x479190]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418a1e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418a22
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418a2b
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 + 0x479190]
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 0x418a6e
cmp word [esi], dx
jne 0x418a6e
or byte [edi + eax + 0x28], 4
jmp 0x418a73
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 0x418bc6
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 0x418ba6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x418ab5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418aeb
cmp eax, edx
jae 0x418af7
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 0x418a8d
jmp 0x418bc6
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 0x418ba2
cmp dword [ebp - 0x14], 0
je 0x418ba2
mov eax, dword [ebx*4 + 0x479190]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x418b7a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x418b43
mov word [esi], cx
jmp 0x418b76
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x479190]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x479190]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x479190]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418bc6
pop ebx
cmp word [ebp - 4], bx
jne 0x418b8b
cmp esi, dword [ebp + 0xc]
jne 0x418b8b
mov word [esi], bx
jmp 0x418bc3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041945f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418bc6
push 0xd
jmp 0x418bbf
mov ecx, dword [ebx*4 + 0x479190]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418bbd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418bc6
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 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x500
mov dword [ebp - 0x30], str.open
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
call dword [sym.imp.ole32.dll_OleUninitialize]
leave
ret 0x10
Function at 0x56cf2b36
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea eax, [eax + 0xc]
mov edx, eax
cmp edx, eax
je 0x56cf2b90
push eax
push 0x56cf169a
call fcn.56cf2bce
push 7
push 0x56e3a0bc
push dword [eax + 0x30]
call fcn.56cf2f26
cmp eax, 0
jne 0x56cf2b6a
inc eax
jmp 0x56cf2b92
push 0x56cf16b2
call fcn.56cf2bce
push 7
push 0x56e3a0bc
push dword [eax + 0x30]
call fcn.56cf2f26
cmp eax, 0
jne 0x56cf2b8b
inc eax
jmp 0x56cf2b92
pop eax
mov eax, dword [eax]
jmp 0x56cf2b44
xor eax, eax
ret

Function at 0x56cf2ba8
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 0x68]
and al, 0x70
cmp al, 0x70
sete al
movzx eax, al
ret

Function at 0x56cf2bbc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
test al, al
setne al
movzx eax, al
ret

Function at 0x56cf2bce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x56e3a0bc]
mov esi, dword [ebp + 8]
lodsw ax, word [esi]
xor ax, 0x18
stosw word es:[edi], ax
cmp ax, 0
jne 0x56cf2bdc
pop edi
pop esi
leave
ret 4

Function at 0x56cf2bf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x56e3a0bc]
mov esi, dword [ebp + 8]
lodsb al, byte [esi]
xor al, 0x18
stosb byte es:[edi], al
cmp al, 0
jne 0x56cf2bfe
pop edi
pop esi
leave
ret 4

Function at 0x56cf2e31
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
mov edi, dword [edx + ebx]
test edi, edi
je 0x56cf2e82
add edi, ebx
xchg esi, eax
push ecx
xor eax, eax
lea ecx, [eax - 1]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg esi, eax
mov esi, dword [ebp + 0xc]
repe cmpsb byte [esi], byte es:[edi]
pop ecx
jne 0x56cf2e82
sub ecx, dword [eax + 0x18]
neg ecx
mov edx, dword [eax + 0x24]
add edx, ebx
movzx edx, word [edx + ecx*2]
mov eax, dword [eax + 0x1c]
add eax, ebx
mov eax, dword [eax + edx*4]
add eax, ebx
jmp 0x56cf2e89
add edx, 4
loop 0x56cf2e49
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x56cf2e90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push esi
push edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea ebp, [eax + 0xc]
mov eax, dword [ebp]
mov esi, dword [eax + 0x30]
movzx ecx, word [eax + 0x2e]
mov edi, dword [esp + 0x10]
mov dx, word [esi]
cmp dx, word [edi]
je 0x56cf2edc
cmp dx, 0x41
jb 0x56cf2ec1
cmp dx, 0x5a
jbe 0x56cf2ec7
cmp dx, 0x61
jb 0x56cf2ed3
cmp dx, 0x7a
ja 0x56cf2ed3
xor dx, 0x20
jmp 0x56cf2ed5
jmp 0x56cf2eef
cmp dx, word [edi]
je 0x56cf2edc
jmp 0x56cf2eef
add edi, 2
add esi, 2
sub ecx, 2
cmp ecx, 0
jne 0x56cf2ead
mov eax, dword [eax + 0x18]
jmp 0x56cf2ef7
mov eax, dword [eax]
cmp ebp, eax
jne 0x56cf2ea2
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x56e37da2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
call sub.KERNEL32.DLL_GetTickCount
mov esi, 0x1f4
mov dword [0x56e3a200], eax
push esi
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
mov dword [0x56e3a204], eax
sub eax, dword [0x56e3a200]
xor ecx, ecx
cmp eax, esi
pop esi
setge cl
dec ecx
mov eax, ecx
ret