joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3e33e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x24
mov eax, dword [ecx + 4]
push ebx
push esi
mov dword [esp + 0x14], edx
lea esi, [ecx + 4]
mov edx, dword [ecx]
add esi, 4
xor eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push edi
movd xmm0, edx
mov edi, eax
pshufd xmm0, xmm0, 0
movdqa xmmword [esp + 0x20], xmm0
test al, 3
je 0x3e3420
and edi, 0xfffffffc
add edi, 4
mov eax, dword [0x3ee3d8]
test eax, eax
jne 0x3e3444
mov ecx, 0xb7762a69
call fcn.003e3f00
mov edx, 0x2788995d
mov ecx, eax
call fcn.003e3e60
mov dword [0x3ee3d8], eax
call eax
mov ebx, eax
mov eax, dword [0x3ee664]
test eax, eax
jne 0x3e346c
mov ecx, 0xb7762a69
call fcn.003e3f00
mov edx, 0xc7d427f1
mov ecx, eax
call fcn.003e3e60
mov dword [0x3ee664], eax
push edi
push 8
push ebx
call eax
mov dword [esp + 0xc], eax
test eax, eax
je 0x3e3522
shr edi, 2
xor edx, edx
lea ecx, [esi + edi*4]
mov edi, eax
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
mov ecx, eax
cmova ebx, edx
test ebx, ebx
je 0x3e3512
cmp ebx, 8
jb 0x3e34f7
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
cmp ecx, eax
ja 0x3e34b6
lea eax, [ecx - 4]
lea eax, [eax + ebx*4]
cmp eax, esi
jae 0x3e34f7
movdqa xmm1, xmmword [esp + 0x20]
mov eax, ebx
and eax, 7
mov dword [esp + 0xc], ebx
sub dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [ecx]
movdqu xmm0, xmmword [esi]
add edx, 8
pxor xmm0, xmm1
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [esi + 0x10]
add esi, 0x20
pxor xmm0, xmm1
movdqu xmmword [edi + 0x10], xmm0
add edi, 0x20
cmp edx, eax
jb 0x3e34d0
cmp edx, ebx
jae 0x3e3512
sub edi, esi
lea ecx, [ecx]
mov eax, dword [esi]
lea esi, [esi + 4]
xor eax, dword [esp + 0x14]
inc edx
mov dword [edi + esi - 4], eax
cmp edx, ebx
jb 0x3e3500
mov edx, dword [esp + 0x18]
test edx, edx
je 0x3e3520
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3e3590
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push esi
lea esi, [ecx + 4]
mov dword [esp + 8], edx
lea ebx, [eax + 1]
mov dword [esp + 0x10], eax
add esi, 4
push edi
test bl, 3
je 0x3e35b9
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x3ee3d8]
test eax, eax
jne 0x3e35dd
mov ecx, 0xb7762a69
call fcn.003e3f00
mov edx, 0x2788995d
mov ecx, eax
call fcn.003e3e60
mov dword [0x3ee3d8], eax
call eax
mov edi, eax
mov eax, dword [0x3ee664]
test eax, eax
jne 0x3e3605
mov ecx, 0xb7762a69
call fcn.003e3f00
mov edx, 0xc7d427f1
mov ecx, eax
call fcn.003e3e60
mov dword [0x3ee664], eax
lea ecx, [ebx + ebx]
push ecx
push 8
push edi
call eax
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x3e3685
shr ebx, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, edi
lea ecx, [esi + ebx*4]
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
cmova ebx, eax
test ebx, ebx
je 0x3e367a
mov edi, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [esi]
lea edx, [edx + 8]
xor ecx, edi
lea esi, [esi + 4]
movzx eax, cl
inc ebp
mov word [edx - 8], ax
mov eax, ecx
shr eax, 8
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
mov word [edx - 4], ax
shr ecx, 8
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, ebx
jb 0x3e3640
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor ecx, ecx
pop ebp
mov word [edi + eax*2], cx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x3e3690
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push ebp
push esi
lea esi, [ecx + 4]
mov dword [esp + 0xc], edx
lea ebx, [eax + 1]
mov dword [esp + 0x14], eax
add esi, 4
push edi
test bl, 3
je 0x3e36ba
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x3ee3d8]
test eax, eax
jne 0x3e36de
mov ecx, 0xb7762a69
call fcn.003e3f00
mov edx, 0x2788995d
mov ecx, eax
call fcn.003e3e60
mov dword [0x3ee3d8], eax
call eax
mov edi, eax
mov eax, dword [0x3ee664]
test eax, eax
jne 0x3e3706
mov ecx, 0xb7762a69
call fcn.003e3f00
mov edx, 0xc7d427f1
mov ecx, eax
call fcn.003e3e60
mov dword [0x3ee664], eax
push ebx
push 8
push edi
call eax
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x3e3772
shr ebx, 2
xor eax, eax
xor edi, edi
mov ecx, ebp
lea edx, [esi + ebx*4]
mov ebx, edx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, edx
cmova ebx, eax
test ebx, ebx
je 0x3e376a
mov ebp, dword [esp + 0x10]
lea esp, [esp]
mov edx, dword [esi]
lea ecx, [ecx + 4]
xor edx, ebp
lea esi, [esi + 4]
mov byte [ecx - 4], dl
mov eax, edx
shr eax, 8
inc edi
shr edx, 0x10
mov byte [ecx - 3], al
mov byte [ecx - 2], dl
shr edx, 8
mov byte [ecx - 1], dl
cmp edi, ebx
jb 0x3e3740
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov byte [eax + ebp], 0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x3e3c70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov dword [esp + 4], 0x99a0
add dword [esp + 4], 0x7e22
mov eax, dword [esp + 4]
push ebx
mov ebx, ecx
lea eax, [eax + eax*8]
mov dword [esp + 8], eax
xor dword [esp + 8], 0x9d5d2
mov dword [esp + 4], 0xffb7
add dword [esp + 4], 0xffffc0e2
xor dword [esp + 4], 0xc09f
mov dword [esp + 4], 0x28c6
or dword [esp + 4], 0xecedb68f
add dword [esp + 4], 0xbdfb
shl dword [esp + 4], 0xb
xor dword [esp + 4], 0x73e65010
cmp byte [ebx], 0
je 0x3e3d55
push esi
push edi
lea ecx, [ecx]
mov edi, dword [esp + 0x10]
lea ebx, [ebx + 1]
mov dword [esp + 0xc], 0xffb7
add dword [esp + 0xc], 0xffffc0e2
xor dword [esp + 0xc], 0xc09f
movzx ecx, byte [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], 0x28c6
or dword [esp + 0xc], 0xecedb68f
add dword [esp + 0xc], 0xbdfb
shl dword [esp + 0xc], 0xb
xor dword [esp + 0xc], 0x73e65010
shl esi, cl
movzx ecx, byte [esp + 0xc]
mov edx, dword [esp + 0x10]
movsx eax, byte [ebx - 1]
mov dword [esp + 0x10], eax
add dword [esp + 0x10], esi
shl edx, cl
add dword [esp + 0x10], edx
sub dword [esp + 0x10], edi
cmp byte [ebx], 0
jne 0x3e3ce0
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebx
add esp, 8
ret
Function at 0x3e3e60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, 0x78
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax]
mov eax, dword [edi + ebx + 0x1c]
add edi, ebx
add eax, ebx
mov dword [esp + 0x18], eax
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, ebx
add eax, ebx
mov dword [esp + 0x14], eax
cmp dword [edi + 0x18], esi
jbe 0x3e3ebc
lea esp, [esp]
mov ecx, dword [ebp + esi*4]
add ecx, ebx
call fcn.003e3c70
xor eax, 0x63bd76f8
cmp eax, dword [esp + 0x10]
je 0x3e3ec6
inc esi
cmp esi, dword [edi + 0x18]
jb 0x3e3ea0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
cmp ecx, edi
jb 0x3e3ef4
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
add eax, edi
cmp ecx, eax
jae 0x3e3ef4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp 0x3e4050
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
sub esp, 0x104
lea edx, [esp]
push esi
mov esi, ecx
push edi
mov al, byte [esi]
test al, al
je 0x3e4076
cmp al, 0x2e
je 0x3e4073
inc esi
mov byte [edx], al
inc edx
mov al, byte [esi]
test al, al
jne 0x3e4063
jmp 0x3e4076
mov byte [edx], 0
mov eax, dword [0x3ee414]
test eax, eax
jne 0x3e409a
mov ecx, 0xb7762a69
call fcn.003e3f00
mov edx, 0x9485c9cf
mov ecx, eax
call fcn.003e3e60
mov dword [0x3ee414], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x3e40e1
mov eax, dword [0x3ee590]
test eax, eax
jne 0x3e40cb
mov ecx, 0xb7762a69
call fcn.003e3f00
mov edx, 0xbc96cd14
mov ecx, eax
call fcn.003e3e60
mov dword [0x3ee590], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x3e40e1
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esi + 1]
call fcn.003e3c70
xor eax, 0x63bd76f8
mov ecx, edi
mov edx, eax
call fcn.003e3e60
pop edi
pop esi
add esp, 0x104
ret
Function at 0x3e3f00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub esp, 0x10
mov eax, dword fs:[0x30]
mov dword [esp + 0xc], ecx
push ebx
push ebp
mov ecx, dword [eax + 0xc]
add ecx, 0xc
push esi
push edi
mov dword [esp + 0x18], ecx
mov ebp, dword [ecx]
cmp ebp, ecx
je 0x3e4030
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x14], 0x99a0
add dword [esp + 0x14], 0x7e22
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*8]
mov dword [esp + 0x14], eax
xor dword [esp + 0x14], 0x9d5d2
mov dword [esp + 0x10], 0xffb7
add dword [esp + 0x10], 0xffffc0e2
xor dword [esp + 0x10], 0xc09f
mov dword [esp + 0x10], 0x28c6
or dword [esp + 0x10], 0xecedb68f
add dword [esp + 0x10], 0xbdfb
shl dword [esp + 0x10], 0xb
xor dword [esp + 0x10], 0x73e65010
cmp word [edx], 0
je 0x3e4016
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 0xffb7
add dword [esp + 0x10], 0xffffc0e2
xor dword [esp + 0x10], 0xc09f
movzx ecx, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], 0x28c6
or dword [esp + 0x10], 0xecedb68f
add dword [esp + 0x10], 0xbdfb
shl dword [esp + 0x10], 0xb
xor dword [esp + 0x10], 0x73e65010
shl esi, cl
movzx ecx, byte [esp + 0x10]
mov edi, dword [esp + 0x14]
movzx eax, word [edx]
shl edi, cl
cmp eax, 0x41
jb 0x3e3ff9
cmp eax, 0x5a
ja 0x3e3ff9
add eax, 0x20
mov dword [esp + 0x14], eax
add edx, 2
add dword [esp + 0x14], esi
add dword [esp + 0x14], edi
sub dword [esp + 0x14], ebx
cmp word [edx], 0
jne 0x3e3f92
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor eax, 0x3808cc1b
cmp eax, dword [esp + 0x1c]
je 0x3e403a
mov ebp, dword [ebp]
cmp ebp, ecx
jne 0x3e3f25
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x3e4310
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
cmp edx, 0x40
jb 0x3e44ae
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x3e44ae
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov dword [esp + 0x18], edi
cmp dword [edi], 0x4550
jne 0x3e44ae
mov eax, 0x10b
cmp word [edi + 0x18], ax
jne 0x3e44ae
mov eax, dword [0x3edc0c]
test eax, eax
jne 0x3e437b
mov ecx, 0xb7762a69
call fcn.003e3f00
mov edx, 0x5a6cd0b2
mov ecx, eax
call fcn.003e3e60
mov dword [0x3edc0c], eax
push ebx
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call eax
mov ebx, eax
test ebx, ebx
je 0x3e44a5
movzx ecx, word [edi + 0x14]
push esi
lea esi, [edi + 0x18]
add esi, ecx
movzx ecx, word [edi + 6]
mov dword [esp + 0x18], esi
lea ecx, [ecx + ecx*4]
lea eax, [esi + ecx*8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [0x3edecc]
test eax, eax
jne 0x3e43db
mov ecx, 0xea26ec0f
call fcn.003e3f00
mov edx, 0x5e00a98f
mov ecx, eax
call fcn.003e3e60
mov dword [0x3edecc], eax
push dword [esp + 0x10]
push ebp
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jae 0x3e445e
sub ecx, dword [esp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esi, 0x10
mul ecx
mov ecx, edx
shr ecx, 5
inc ecx
mov edi, ecx
mov ebp, dword [esi]
cmp dword [esi - 8], ebp
mov eax, dword [esi + 4]
cmovb ebp, dword [esi - 8]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x3edecc]
test eax, eax
jne 0x3e4446
mov ecx, 0xea26ec0f
call fcn.003e3f00
mov edx, 0x5e00a98f
mov ecx, eax
call fcn.003e3e60
mov dword [0x3edecc], eax
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 0xc
add esi, 0x28
dec edi
jne 0x3e4405
mov edi, dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.003e45e0
mov edx, edi
mov ecx, ebx
call fcn.003e44f0
pop esi
test eax, eax
jne 0x3e44a5
mov eax, dword [0x3edf10]
test eax, eax
jne 0x3e4499
mov ecx, 0xb7762a69
call fcn.003e3f00
mov edx, 0x994fa9af
mov ecx, eax
call fcn.003e3e60
mov dword [0x3edf10], eax
push 0x8000
push 0
push ebx
call eax
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
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 0x4060c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ebp + 0x8508b04]
cmp ecx, edx
jne 0x4060df
pop edi
pop esi
mov eax, 0x370c
pop ebx
pop ebp
add byte [ebx + 0x5d], bl
ret 0x6b
xor dword [eax + 0x8b301c], edx
mov ebx, dword [ebp + 0xc]
lea ecx, [edx + ecx]
mov esi, ebx
mov bl, 0x3c
mov bh, byte [ecx + 0x3e0005]
jo 0x406083
loope 0x4060d9
mov ecx, 0x74000001
cmp dl, cl
jne 0x4061e9
mov edi, dword [ecx + 0xc]
mov ebx, dword [ecx + 4]
mov dl, byte [ebx + 8]
test byte [0x50f42f74], cl
push eax
stosd dword es:[edi], eax
xor edx, dword [eax + 0xf76d285]
lea ebp, [eax + edx]
cmp dword [ecx], edx
je 0x40612c
inc ecx
add esi, 4
cmp ecx, dword [ecx - 0x35250b8e]
fcmove st(0), st(2)
xor dword [esi + 0x4009e81], edx
add byte [eax], al
jae 0x406115
mov dword [ebx + 0x488bdf88], ebp
or al, 0x41
stosd dword es:[edi], eax
mov bh, bl
mov ecx, dword [eax + 0xc]
inc ecx
inc esp
dec eax
or al, 0xf6
std
pop ecx
add al, 0x74
nop
adc byte [eax], dl
add byte [eax], al
xor ecx, dword [0x1276d285]
xlatb
mov al, 0x14
adc byte [eax], al
fdivr qword [ecx]
je 0x406167
adc al, 0x10
add ah, bl
cmp dword [esi], edi
je 0x406167
inc ecx
add esi, 0x74
cmp ecx, edx
mov eax, 0x75cad6ee
dec eax
cmp edx, 0x65000400
jae 0x406187
salc
retf 0x4875
mov dword [ebp + 0x18101488], ebp
add byte [ebx + 0x101088], cl
add byte [ecx - 0x77], al
mov byte [ecx + 0x10], bh
add byte [eax], al
test byte [ebx + 8], 0x97
je 0x4061cb
mov edx, dword [eax + 0x20f1]
xor edx, dword [esi - 0x7b]
sal byte [esi + 0x12], cl
lea esi, [eax + 0xa02018]
cmp dword [esi], edi
je 0x4061ab
inc ecx
add esi, 4
cmp ecx, edx
jb 0x406157
cmp ecx, edx
jne 0x4061cb
cmp edx, 0x1e5100
jae 0x406139
mov cl, 0xbc
mov byte [eax], bl
and byte [eax], al
add byte [ebp + 0x201488], ch
add byte [ecx - 0x77], al
xor eax, 0xd2c914
cmp ebp, dword [edi + 0x18]
xor byte [eax], al
add byte [esi + 6], bh
mov edi, esi
sbb byte [eax + 0x18], bh
add byte [ebx + 0x415f0448], cl
pop esi
mov dword [eax + 4], ecx
xor eax, eax
pop ebx
pop ebp
ret 8
pop edi
mov eax, 9
Function at 0x40102b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
and dword [ebp - 4], 0
xor edx, edx
push ebx
push esi
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x40108f
lea esi, [ecx + 0x10]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [edi + 0x3c]
lea ebx, [eax + ecx]
cmp dword [ebp + 0xc], ebx
jb 0x401097
mov ebx, dword [esi - 8]
lea ebx, [ebx + edx - 1]
dec edx
not edx
and ebx, edx
cmp ecx, ebx
ja 0x401097
add eax, dword [ebp + 8]
push ecx
push eax
mov eax, dword [esi - 4]
add eax, dword [edi + 4]
push eax
call fcn.0042ae20
mov eax, dword [edi]
movzx eax, word [eax + 6]
add esp, 0xc
inc dword [ebp - 4]
add esi, 0x28
cmp dword [ebp - 4], eax
jl 0x40104a
xor eax, eax
pop esi
pop ebx
leave
ret 8
mov eax, 0xc1
jmp 0x401091
Function at 0x401976
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
shr esi, 2
mov eax, esi
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
xor eax, eax
push edi
mov dword [ebp - 4], 1
test esi, esi
je 0x4019aa
mov edi, dword [edx]
mov dword [ecx + eax*4], edi
inc eax
add edx, 4
cmp eax, esi
jb 0x40199d
mov eax, dword [ecx + esi*4 - 4]
mov edx, esi
imul edx, edx, 0xc
and dword [ebp + 8], 0
lea edx, [edx + ecx + 0x70]
mov dword [ebp - 8], edx
mov edx, 0xff
cmp dword [ebp + 8], 0
jne 0x401a24
mov edi, eax
and edi, edx
movzx edi, byte [edi + str.cw]
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl edi, 8
or edi, ebx
mov ebx, eax
shr eax, 8
shr ebx, 0x10
and eax, edx
movzx eax, byte [eax + str.cw]
xor eax, dword [ebp - 4]
shl dword [ebp - 4], 1
and ebx, edx
movzx ebx, byte [ebx + str.cw]
shl edi, 8
or edi, ebx
shl edi, 8
or eax, edi
test dword [ebp - 4], 0x100
je 0x401a1f
mov dword [ebp - 4], 0x1b
mov dword [ebp + 8], esi
jmp 0x401a6f
cmp dword [ebp + 8], 4
jne 0x401a6f
cmp esi, 6
jbe 0x401a6f
mov edi, eax
shr edi, 0x10
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
and edi, edx
movzx edi, byte [edi + str.cw]
shl ebx, 8
or edi, ebx
mov ebx, eax
shr ebx, 8
and ebx, edx
movzx ebx, byte [ebx + str.cw]
shl edi, 8
and eax, edx
movzx eax, byte [eax + str.cw]
or edi, ebx
shl edi, 8
or eax, edi
xor eax, dword [ecx]
dec dword [ebp + 8]
mov dword [ecx + esi*4], eax
add ecx, 4
cmp ecx, dword [ebp - 8]
jne 0x4019c3
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402b35
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x43f160]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402b7e
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402b7e
push 0xc00
call eax
test eax, eax
jne 0x402c12
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402c12
cmp eax, 0x104
ja 0x402c12
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x402bb2
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402c11
push edi
lea edi, [ebp + eax*2 - 0x2d4]
mov eax, edi
jmp 0x402bd6
movzx ecx, cl
mov word [eax], cx
add eax, 2
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x402bcd
push 0x2e
pop ecx
push 0x64
mov word [eax], cx
pop ecx
push 0x6c
mov word [eax + 2], cx
pop ecx
mov word [eax + 4], cx
mov word [eax + 6], cx
xor ecx, ecx
push 8
mov word [eax + 8], cx
push ecx
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402bc9
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b86b
leave
ret
Function at 0x407585
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0042ba21
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.004074f3
pop ebp
ret 0xc

Function at 0x4094a8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4423f0], 0
jne 0x4094e4
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042bcbf
pop ecx
test esi, esi
pop esi
je 0x4094f4
mov al, 1
jmp 0x4094f6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x4094de
xor al, al
leave
ret 8

Function at 0x4094fa
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4423f0], 0
jne 0x409532
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042bcbf
pop ecx
test esi, esi
pop esi
je 0x40953f
mov al, 1
jmp 0x409541
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40952c
xor al, al
leave
ret 4

Function at 0x409545
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4423f0], 0
jne 0x409580
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042bcbf
pop ecx
test esi, esi
pop esi
je 0x40958f
mov al, 1
jmp 0x409591
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40957a
xor al, al
leave
ret 4

Function at 0x40959f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040a371
cmp eax, 0xffffffff
je 0x4095ca
test al, 0x10
jne 0x4095ca
test al, 1
je 0x4095ca
and eax, 0xfffffffe
push eax
push esi
call fcn.004094a8
test al, al
je 0x409602
cmp byte [0x4423f0], 0
push esi
jne 0x4095f8
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042bcbf
pop ecx
test esi, esi
je 0x409602
mov al, 1
jmp 0x409604
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x4095f2
xor al, al
pop esi
leave
ret 4

Function at 0x409609
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4423f0], 0
jne 0x409640
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042bcbf
test esi, esi
pop ecx
setne al
pop esi
jmp 0x40964f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
leave
ret 4