joyce8/EMBER2024-capa huggingface dataset:
Function at 0x98eaf0
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x9f7274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.009b72a0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20c]
add esp, 0xc
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x98eb30
mov edx, 0xa03480
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x98eb47
lea edi, [ebp - 0x20c]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x98eb60
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
nop dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0xa0000000
lea eax, [ebp - 0x20c]
push eax
call dword [0xa057d8]
mov edi, eax
cmp edi, 0xffffffff
jne 0x98ebca
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jl 0x98eb80
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009b6212
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], ebx
call fcn.009b98cd
add esp, 4
mov esi, eax
lea eax, [ebp - 0x210]
push 0
push eax
push dword [ebp - 0x214]
push esi
push edi
call dword [0xa0586c]
test eax, eax
je 0x98ec42
cmp dword [ebp - 0x210], 0x100
jbe 0x98ec42
cmp byte [esi], 0x4d
jne 0x98ec42
cmp byte [esi + 1], 0x5a
jne 0x98ec42
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x98ec42
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x98ec42
cmp dword [eax + esi + 0x28], 0x1000
mov ecx, 1
cmove ebx, ecx
push dword [ebp - 0x214]
push 0
push esi
call fcn.009b72a0
push esi
call fcn.009b98b2
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009b6212
mov esp, ebp
pop ebp
ret

Function at 0x994290
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x994570
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x9f7274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.009b72a0
mov edi, dword [ebp + 8]
add esp, 0xc
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x9945a0
mov edx, dword [ebp + 0xc]
sub esi, ecx
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9945b1
sub ecx, ebx
mov dword [ebp - 0x70], 0x67452301
push ecx
push edx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], 0xefcdab89
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0x98badcfe
push eax
movlpd qword [ebp - 0x78], xmm0
mov dword [ebp - 0x64], 0x10325476
call fcn.009943d0
push esi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.009943d0
lea eax, [ebp - 0x78]
push eax
call fcn.00994160
xor eax, eax
mov dword [0xa0425c], 0
add esp, 0x1c
mov dword [0xa04260], 0
mov dword [0xa04264], 0
cmp eax, 0xa
mov dword [0xa04268], 0
mov dword [0xa0426c], 0
mov dword [0xa04270], 0
mov dword [0xa04274], 0
mov dword [0xa04278], 0
mov dword [0xa0427c], 0
mov dword [0xa04280], 0
jae 0x9946e2
mov byte [ebp + eax - 0x10], 0
inc eax
cmp eax, 0xa
jl 0x994669
xor ebx, ebx
nop dword [eax + eax]
movzx eax, byte [ebp + ebx - 0x20]
push eax
lea eax, [ebp - 0x10]
push 0x9ed0f8
push eax
call fcn.009946f0
lea edx, [ebp - 0x10]
add esp, 0xc
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x9946a0
mov edi, 0xa0425c
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x9946b0
mov ecx, edx
inc ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebx, 0x10
jl 0x994680
mov ecx, dword [ebp - 4]
mov eax, 0xa0425c
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009b6212
mov esp, ebp
pop ebp
ret
call fcn.009b6137
int3

Function at 0x994730
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x9f7274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0xc3d2e1f0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
test edi, edi
je 0x9947a0
push 1
lea eax, [ebx + esi]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00995aa0
inc esi
add esp, 0xc
cmp esi, edi
jb 0x994786
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.009947c0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.009b6212
mov esp, ebp
pop ebp
ret

Function at 0x994930
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
pop ebp
ret
Function at 0x9bcb1f
Capabilities:
Parse pe header

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

Function at 0x9c3e83
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.009b62a0
mov eax, dword [0x9f7274]
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.009c81f5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x9c3ec5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x9c4021
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.009d2300
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 + 0xa04d00]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.009c5d28
mov ecx, dword [esi*4 + 0xa04d00]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x9c401a
cmp eax, dword [ecx + edi + 0x24]
jne 0x9c401a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x9c401a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.009c5d28
add esp, 0x14
test edx, edx
jl 0x9c401a
jg 0x9c3f90
test eax, eax
jb 0x9c401a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x9c401a
jl 0x9c3faa
cmp dword [ebp - 0x1008], eax
ja 0x9c401a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x9c3fc8
test ebx, ebx
je 0x9c4001
cmp ecx, edi
jae 0x9c4001
mov al, byte [ecx]
cmp al, 0xd
jne 0x9c3fe2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x9c3fee
cmp byte [ecx + 1], 0xa
jne 0x9c3fee
inc ecx
jmp 0x9c3fee
movzx eax, al
movsx eax, byte [eax + 0xa01920]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x9c3fc8
cmp edx, ebx
jne 0x9c3fc8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x9c401f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.009b6212
leave
ret

Function at 0x9c8924
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x9f2304
push 0x9f22fc
push str.FlsAlloc
push 0x1f
call fcn.009c87a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x9c8958
push dword [ebp + 8]
mov ecx, esi
call dword [0x9d5344]
call esi
jmp 0x9c895e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x9c89a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x9f2314
push 0x9f230c
push str.FlsGetValue
push 0x21
call fcn.009c87a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x9c89d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x9d5344]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x9c89e1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x9f231c
push 0x9f2314
push str.FlsSetValue
push 0x22
call fcn.009c87a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x9c8a1b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x9d5344]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x9c8baf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0xa04d00]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x9c8bef
cmp byte [ebx], 0xa
jne 0x9c8bef
or byte [edi + eax + 0x28], 4
jmp 0x9c8bf4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x9c8cf3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x9c8cd6
inc eax
cmp dl, 0xd
je 0x9c8c20
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x9c8c46
cmp eax, ecx
jae 0x9c8c54
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x9c8c08
jmp 0x9c8cf3
push 0
lea eax, [ebp - 0x10]
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 0x9c8cd1
cmp dword [ebp - 0x10], 0
je 0x9c8cd1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0xa04d00]
test byte [eax + edi + 0x28], 0x48
je 0x9c8cab
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x9c8c96
mov byte [esi], dl
jmp 0x9c8ca7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xa04d00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x9c8cf3
cmp byte [ebp - 1], 0xa
jne 0x9c8cba
cmp esi, ebx
jne 0x9c8cba
mov byte [esi], 0xa
jmp 0x9c8cf2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.009c5d46
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x9c8cf3
mov byte [esi], 0xd
jmp 0x9c8cf2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0xa04d00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x9c8cf0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x9c8cf3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x9c8cfc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0xa04d00]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x9c8d42
cmp word [ebx], dx
jne 0x9c8d42
or byte [eax + edi + 0x28], 4
jmp 0x9c8d47
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x9c8eaa
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x9c8e8a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x9c8d88
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x9c8dbe
cmp eax, edx
jae 0x9c8dcc
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x9c8d63
jmp 0x9c8eaa
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x9c8e85
cmp dword [ebp - 0x18], 0
je 0x9c8e85
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0xa04d00]
test byte [eax + edi + 0x28], 0x48
je 0x9c8e5b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x9c8e1f
mov word [esi], cx
jmp 0x9c8e56
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0xa04d00]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0xa04d00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xa04d00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x9c8eaa
pop eax
cmp word [ebp - 4], ax
jne 0x9c8e6b
cmp esi, ebx
jne 0x9c8e6b
mov word [esi], ax
jmp 0x9c8ea7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.009c5d46
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x9c8eaa
push 0xd
pop eax
jmp 0x9c8e66
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xa04d00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x9c8ea4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x9c8eaa
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x9c9e4e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x9f7274]
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 0x9c9e99
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.009c9fe9
test al, al
jne 0x9c9e93
sub edx, 2
cmp edx, edi
jne 0x9c9e79
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x9c9ebb
lea eax, [edi + 2]
cmp edx, eax
je 0x9c9ebb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.009c9d9a
add esp, 0x10
jmp 0x9c9fb5
push esi
lea ecx, [ebp - 0x255]
call fcn.009c9fe9
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 0x9c9efe
push dword [ebp - 0x25c]
jmp 0x9c9eab
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 0x9c9f3b
cmp word [ebp - 0x226], 0
je 0x9c9f5c
cmp word [ebp - 0x226], ax
jne 0x9c9f3b
cmp word [ebp - 0x224], 0
je 0x9c9f5c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.009c9d9a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x9c9fa8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x9c9f15
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x9c9f90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x9c9fb5
push 0x9c9afb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.009ba3c0
add esp, 0x10
jmp 0x9c9f85
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.009b6212
leave
ret

Function at 0x9cab40
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x9cab51
pop esi
ret
push ebx
push edi
push esi
call fcn.009cab09
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.009c659d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x9cab79
push ebx
push esi
push edi
call fcn.009b6d20
add esp, 0xc
push 0
call fcn.009c6563
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x9caf49
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009cab8e
Function at 0x9d1255
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.009d11d1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x9d13c4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x9d13c4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x9d1379
jg 0x9d12b1
test eax, eax
je 0x9d136f
push 1
push 0x1000
call fcn.009c97c4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x9d12d4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x9d1366
push 0x8000
push ebx
call fcn.009c2ca0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x9d12fd
jg 0x9d12f8
cmp ecx, 0x1000
jb 0x9d12fd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.009ccde6
add esp, 0x10
cmp eax, 0xffffffff
je 0x9d1342
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 0x9d12f8
jl 0x9d1329
test ecx, ecx
jne 0x9d12ea
push dword [ebp - 0xc]
push ebx
call fcn.009c2ca0
push esi
call fcn.009c6563
add esp, 0xc
xor ebx, ebx
jmp 0x9d13d2
cmp byte [edi + 0x24], 0
je 0x9d1359
cmp dword [edi + 0x20], 5
jne 0x9d1359
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x9d1364
mov ebx, dword [edi + 0x18]
jmp 0x9d1366
xor ebx, ebx
push esi
call fcn.009c6563
pop ecx
jmp 0x9d13d2
test ecx, ecx
jg 0x9d133b
jl 0x9d1379
test eax, eax
jae 0x9d133b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.009c5d46
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x9d1399
cmp byte [edi + 0x1c], 0
je 0x9d133b
jmp 0x9d13ca
push ebx
call fcn.009cb31e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x9d133b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x9d13d2
cmp byte [edi + 0x1c], 0
je 0x9d13cf
mov ebx, dword [edi + 0x18]
jmp 0x9d13d2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.009c5d46
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x9d31dc
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x9f7274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x9f4f1c
push esi
call fcn.009cb633
pop ecx
pop ecx
test eax, eax
jne 0x9d320a
xor al, al
jmp 0x9d3287
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.009d2f11
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x9d3244
push dword [ebp - 0x210]
call fcn.009b98b2
xor al, al
jmp 0x9d3285
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x9d324a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x9d326a
push edx
call fcn.009d3113
pop ecx
test al, al
je 0x9d3235
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x9d3278
mov bl, 1
push dword [ebp - 0x210]
call fcn.009b98b2
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.009b6212
leave
ret

Function at 0x9d3d6c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x9f7274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x9d3daf
call fcn.009c38a7
mov dword [eax], 0xf
call fcn.009c38ba
mov dword [eax], 0xd
call fcn.009c7184
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009b6212
leave
ret
test eax, eax
jne 0x9d3db6
inc eax
jmp 0x9d3da3
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x9d3da1
xor eax, eax
cmp ecx, 1
setne al
jmp 0x9d3da3

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

Disassembly:
pushal
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x1001f3ff
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001f45a
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1001f43b
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x1001f458
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10019cac
mov dword [eax], 0xefb6675f
jmp 0x1001f430
jmp 0x1001f475
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001f475
push 0x157e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esp, ebp
pop ebp
ret

Function at 0x10020b9f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10020bcc
push 0
push 0
push 0
push 0
push 0x1b4e
push 1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x10020c17
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10020bfa
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10020c17
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10019cac
mov dword [eax], 1
jmp 0x10020bef
mov esp, ebp
pop ebp
ret