joyce8/EMBER2024-capa huggingface dataset:
Function at 0x74075234
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x7407550a
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c63d7c1
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c634787
push 0xffffffffffffffff
call fcn.7406c434
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x7407529e
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.740752b6
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x740754fe
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x740754d2
Function at 0x74084d04
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x74084d26
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x74084d26
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x74084d26
ret
cmp word [ebx + 4], 0x14c
jne 0x74084d26
test word [ebx + 0x16], 2
je 0x74084d26
test word [ebx + 0x16], 0x100
je 0x74084d26
cmp word [ebx + 0x18], 0x10b
jne 0x74084d26
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x74084d26
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x74084db2
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x74084d46
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.7406bc91
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x74084d26
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x74084db2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x74084d26
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x74084d26
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x74084d26
ret
cmp word [ebx + 4], 0x14c
jne 0x74084d26
test word [ebx + 0x16], 2
je 0x74084d26
test word [ebx + 0x16], 0x100
je 0x74084d26
cmp word [ebx + 0x18], 0x10b
jne 0x74084d26
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x74084d26
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x74084db2
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x74084d46
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.7406bc91
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x74084d26
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x74084e69
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x74084ec2
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x74084e69
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x74084e78
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x7448ab1b
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x74084ec9
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.7406bd3f
cmp eax, dword [ebp + 0xc]
pop eax
je 0x74084f68
add edi, 4
add eax, 2
dec ecx
jne 0x74084eae
call 0x74084f15
loope 0x74084f0b
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x74084f65
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x74084f76
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x74084f29
cmp eax, ecx
ja 0x74084f29
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x74084fb3
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x74084fa9
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7406c21e
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x74084e78
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x74084ec2
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x74084e69
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x74084e78
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x7448ab1b
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x74084ec9
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.7406bd3f
cmp eax, dword [ebp + 0xc]
pop eax
je 0x74084f68
add edi, 4
add eax, 2
dec ecx
jne 0x74084eae
call 0x74084f15
loope 0x74084f0b
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x74084f65
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x74084f76
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x74084f29
cmp eax, ecx
ja 0x74084f29
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x74084fb3
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x74084fa9
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7406c21e
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10009830
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10009830
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10009830
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10009830
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10009830
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10009830
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10009830
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10009830
push 0xd008
push edi
call fcn.10009830
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10009830
int3

Function at 0x10009830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x1000983f
pop dword [ebp - 4]
mov eax, 0x5fef8df
sub eax, 0xf5fe60a0
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x32a47
push 0
mov eax, 0x1c34d9f3
sub eax, 0xc33998f
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x4018211
add ecx, 0xfbfeac7f
mov esi, eax
mov edx, 0x10018600
add edx, dword [ebp - 4]
mov edi, 0x305530f9
add edi, 0x1cf8d750
mov ebx, dword [edx]
xor ebx, edi
mov dword [esi], ebx
add esi, 0xeae415f4
sub esi, 0xeae415f0
add edx, 0xb4ba4475
sub edx, 0xb4ba4471
loop 0x10009898
add eax, 0x14d05b41
add eax, 0xeb3051d2
mov ebx, eax
add eax, 5
mov ecx, 0xa83070e8
sub ecx, 0x983070e8
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x1000c871
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp esi, 0x7ff80000
jbe 0x1000c892
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x1000c897
mov ebx, 0xfff80000
jmp 0x1000c89d
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x10013e68]
mov eax, dword [0x10013e60]
test edx, edx
jne 0x1000c8b8
test eax, eax
je 0x1000c8cb
mov edx, eax
mov dword [0x10013e68], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x1000c8cb
cmp ecx, edi
jb 0x1000c8cb
cmp ecx, ebx
jbe 0x1000c9ab
mov edx, eax
test eax, eax
jmp 0x1000c8ed
test edx, edx
je 0x1000c8e8
mov eax, dword [edx + 8]
test eax, eax
je 0x1000c8e8
cmp eax, edi
jb 0x1000c8e8
cmp eax, ebx
jbe 0x1000c9ab
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10013e68], edx
jne 0x1000c8d1
and esi, 0xffff0000
mov eax, 0x40000000
cmp esi, eax
jbe 0x1000c9d0
lea edx, [esi - 0x40000000]
mov ecx, edi
call fcn.10009830
mov edx, eax
test edx, edx
jne 0x1000c971
mov eax, 0x40000000
cmp esi, eax
jbe 0x1000c93e
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.10009830
mov edx, eax
test edx, edx
jne 0x1000c971
mov eax, 0x40000000
cmp esi, eax
jae 0x1000c953
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.10009830
mov edx, eax
test edx, edx
jne 0x1000c971
mov edx, esi
mov ecx, edi
call fcn.10009830
mov edx, eax
test edx, edx
jne 0x1000c971
mov edx, ebx
mov ecx, esi
call fcn.10009830
mov edx, eax
test edx, edx
je 0x1000c9ee
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10013e60]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10013e68], edx
mov dword [0x10013e60], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x1000c99b
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x1000c9ee
cmp esi, ebx
ja 0x1000c9ee
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000ec20
add esp, 0xc
mov eax, esi
jmp 0x1000c9f0
jae 0x1000c920
lea ecx, [esi + 0x40000000]
mov edx, ebx
call fcn.10009830
mov edx, eax
test edx, edx
jne 0x1000c971
jmp 0x1000c940
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x1000ca7b
Capabilities:
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [0x10013e58]
xor ebx, ebx
test edi, edi
je 0x1000cab8
push esi
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1000caa9
mov esi, dword [edi]
push edi
call fcn.1000dd99
mov edi, esi
pop ecx
test esi, esi
jne 0x1000ca8a
jmp 0x1000cab7
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
mov dword [0x10013e70], ebx
pop esi
mov dword [0x10013e58], edi
mov eax, ebx
pop edi
pop ebx
ret

Function at 0x408d8d
Capabilities:
Get disk information

Disassembly:
xor eax, eax
lea eax, [eax + 0x40a51c]
call dword [eax]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx - 0x3ca214], cl
jmp dword [sym.imp.kernel32.dll_OpenMutexW]
Function at 0x407b81
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.00407cf1
mov ebx, dword [ebp + 8]
pop ecx
mov dword [ebp - 8], eax
test ebx, ebx
je 0x407cb3
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x407cb3
cmp eax, dword [ebp + 0x14]
ja 0x407cb3
push esi
xor esi, esi
mov edx, esi
test edi, edi
je 0x407c5b
mov dword [ebp + 8], ecx
cmp edx, edi
jae 0x407bcf
movzx ecx, byte [edx + ebx]
inc edx
jmp 0x407bd1
mov ecx, esi
cmp edx, edi
jae 0x407bdf
movzx eax, byte [edx + ebx]
mov dword [ebp - 4], eax
inc edx
jmp 0x407be2
mov dword [ebp - 4], esi
cmp edx, edi
jae 0x407bed
movzx eax, byte [edx + ebx]
inc edx
jmp 0x407bef
mov eax, esi
mov edi, dword [ebp + 8]
shl ecx, 8
add ecx, dword [ebp - 4]
shl ecx, 8
add ecx, eax
mov eax, ecx
shr eax, 0x12
and eax, 0x3f
inc dword [ebp + 8]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov edi, dword [ebp + 8]
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
inc dword [ebp + 8]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov edi, dword [ebp + 8]
mov eax, ecx
shr eax, 6
and eax, 0x3f
and ecx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, edi
mov edi, dword [ebp + 0xc]
mov byte [eax + 1], cl
add eax, 2
mov dword [ebp + 8], eax
cmp edx, edi
jb 0x407bc8
mov ecx, dword [ebp + 0x10]
mov eax, edi
xor edx, edx
push 3
pop edi
div edi
lea edi, [edx*4 + 0x4e7970]
mov edx, dword [ebp - 8]
cmp dword [edi], esi
jle 0x407c80
lea eax, [edx - 1]
add eax, ecx
mov byte [eax], 0x3d
inc esi
dec eax
cmp esi, dword [edi]
jl 0x407c77
mov eax, dword [ebp + 0x18]
push 0x13
mov dword [eax], edx
mov eax, dword [0x532ad4]
imul eax, eax
cdq
pop ecx
idiv ecx
pop esi
cmp edx, 0xa
jne 0x407caf
call fcn.004bbc9b
mov ecx, dword [0x532ad4]
cmp ecx, eax
jne 0x407caf
dec ecx
mov dword [0x532ad4], ecx
mov al, 1
jmp 0x407cb5
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x407db2
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407e0a
push esi
push 5
push str.tempo
push 1
mov esi, str.Tempo
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x407e00
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x407e86
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [0x532ad4]
mov ebx, eax
lea eax, [ecx + 1]
imul eax, ecx
cdq
push 0x18
pop esi
idiv esi
xor eax, eax
inc eax
cmp edx, 0x17
jne 0x407ebd
test ecx, ecx
cmove ecx, eax
mov dword [0x532ad4], ecx
cmp ebx, 0xffffffff
je 0x407ec7
test bl, 0x10
jne 0x407ec9
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x407f82
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00407e86
pop ecx
test al, al
jne 0x407fb2
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407fb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
jmp 0x407fb4
mov al, 1
pop esi
pop ebp
ret

Function at 0x4081e5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40820b
xor eax, eax
jmp 0x408228
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x4086d5
Capabilities:
Write file on windows

Disassembly:
push 0
mov eax, 0x4de35e
call fcn.004bb7e0
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [eax]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408753
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], ebx
mov esi, dword [eax - 0xc]
push ebx
lea ecx, [ebp + 0xc]
call fcn.00404be3
mov ecx, eax
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [esi + esi]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00404c8b
mov al, bl
call fcn.004bb7ae
ret

Function at 0x408954
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4089ba
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
push ebx
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], ebx
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4089b3
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x408c98
Capabilities:
Encode data using xor

Disassembly:
push 8
mov eax, 0x4dbed6
call fcn.004bb7e0
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp + 8]
xor esi, esi
inc esi
push 0x4e795c
mov dword [ebp - 4], esi
call fcn.00401814
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov esi, ebx
cmp dword [eax - 0xc], ebx
jle 0x408d11
push esi
lea ecx, [ebp + 0xc]
call fcn.004038b9
mov byte [ebp - 0x10], al
lea eax, [esi + 1]
push eax
lea ecx, [ebp + 0xc]
call fcn.004038b9
push 0x10
mov byte [ebp - 0xf], al
lea eax, [ebp - 0x10]
push ebx
push eax
mov byte [ebp - 0xe], bl
call fcn.004bda39
mov ecx, dword [ebp + 8]
xor al, 0x3f
cbw
movzx eax, ax
add esp, 0xc
push eax
call fcn.004089c0
mov eax, dword [ebp + 0xc]
add esi, 2
cmp esi, dword [eax - 0xc]
jl 0x408cc9
lea ecx, [eax - 0x10]
call fcn.00404c8b
mov eax, dword [ebp + 8]
call fcn.004bb7ae
ret
Function at 0x408f63
Capabilities:
Enumerate processes

Disassembly:
push 0x234
mov eax, 0x4dbf27
call fcn.004bb813
mov ebx, dword [ebp + 8]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x408f8c
xor eax, eax
jmp 0x409044
push 0x22c
xor edi, edi
lea eax, [ebp - 0x23c]
push edi
push eax
call fcn.004bc640
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push esi
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x409037
call fcn.00409c73
test al, al
jne 0x408fd7
push 4
call fcn.004ba88b
pop ecx
mov ecx, dword [0x532ad4]
mov dword [eax], ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00401855
and dword [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00407e0f
push 0
push dword [ebp - 0x240]
mov ecx, ebx
call fcn.00403740
mov ecx, dword [ebp - 0x240]
test eax, eax
cmovns edi, dword [ebp - 0x234]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00404c8b
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x409037
test edi, edi
je 0x408fbe
test esi, esi
je 0x409042
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.004bb7c2
ret

Function at 0x4091bb
Capabilities:
Encode data using xor

Disassembly:
push 4
mov eax, 0x4dbf57
call fcn.004bb7e0
call fcn.00409c31
test al, al
jne 0x4091ff
mov esi, dword [0x532ad4]
xor ecx, ecx
push 8
mov edx, ecx
pop edi
mov eax, edx
and eax, 1
dec eax
not eax
and eax, esi
sar edx, 1
xor edx, eax
dec edi
jne 0x4091dd
add esi, edx
inc ecx
cmp ecx, 0x100
jl 0x4091d8
mov dword [0x532ad4], esi
push str.APPDATA
lea ecx, [ebp - 0x10]
call fcn.00401855
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.004094d2
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov bl, al
call fcn.00404c8b
mov al, bl
call fcn.004bb7ae
ret