joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c46b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10244de0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001c4ad
cmp byte [ebx], 0xa
jne 0x1001c4ad
or byte [edi + eax + 0x28], 4
jmp 0x1001c4b2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1001c5b5
mov cl, byte [eax]
cmp cl, 0x1a
je 0x1001c590
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x1001c4e1
mov eax, dword [ebp - 8]
jmp 0x1001c501
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x1001c51d
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x1001c4fb
add eax, 2
mov cl, 0xa
jmp 0x1001c4fe
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x1001c4c3
jmp 0x1001c5b5
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 0x1001c58b
cmp dword [ebp - 0x10], 0
je 0x1001c58b
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x10244de0]
test byte [eax + edi + 0x28], 0x48
je 0x1001c56a
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x1001c55a
mov byte [esi], 0xa
jmp 0x1001c5b4
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x10244de0]
mov byte [eax + edi + 0x2a], cl
jmp 0x1001c5b4
cmp byte [ebp - 1], 0xa
jne 0x1001c574
cmp esi, ebx
je 0x1001c555
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001cffd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001c5b5
mov byte [esi], 0xd
jmp 0x1001c5b4
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x10244de0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x1001c5b2
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x1001c5b5
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001c5be
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x10244de0]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1001c602
push 0xa
pop esi
cmp word [ebx], si
jne 0x1001c602
or byte [eax + edi + 0x28], 4
jmp 0x1001c607
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x1001c772
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x1001c74a
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x1001c654
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x1001c67e
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x1001c69d
push 0xa
pop ebx
cmp word [edx], bx
jne 0x1001c66b
push ebx
add eax, 4
pop edx
jmp 0x1001c673
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x1001c619
jmp 0x1001c772
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 0x1001c745
cmp dword [ebp - 0x14], 0
je 0x1001c745
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x10244de0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x1001c721
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x1001c6e9
mov word [esi], ax
jmp 0x1001c76f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x10244de0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10244de0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10244de0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x1001c76f
cmp word [ebp - 4], ax
jne 0x1001c72b
cmp esi, ebx
je 0x1001c6e1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001cffd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001c772
push 0xd
pop eax
jmp 0x1001c6e1
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x10244de0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x1001c76c
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x1001c772
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10022175
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10022212
push ebx
push esi
call fcn.1002213e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002099a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100221bf
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10022211
push edi
push eax
call fcn.1001d1e0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100221df
call fcn.10019fb0
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10022210
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002099a
add esp, 0x20
test eax, eax
jne 0x100221fe
push edi
call fcn.10019fb0
jmp 0x10022206
push ebx
call fcn.10019fb0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10022215
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10022226
pop esi
ret
push ebx
push edi
push esi
call fcn.1002213e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1001d1e0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1002224e
push ebx
push esi
push edi
call fcn.1000cad0
add esp, 0xc
push 0
call fcn.10019fb0
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1002261d
Capabilities:
Set environment variable

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

Function at 0x10024871
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001870c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x100248e0
cmp esi, dword [ebp - 4]
je 0x100248db
cmp dword [ebp + 0xc], 0
je 0x100248db
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100248b8
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100243c6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100248e2
xor eax, eax
inc eax
jmp 0x100248e2
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1002494d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x102432c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1001870c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1001870c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100249c4
cmp word [ecx], dx
je 0x100249c4
mov eax, dword [0x10033464]
push edi
dec eax
push eax
push 0x10033350
call fcn.100248e6
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10024a37
cmp word [eax], dx
je 0x10024a37
mov eax, dword [edi]
test eax, eax
je 0x100249e8
cmp word [eax], dx
je 0x100249e8
lea eax, [ebp - 0x10]
push eax
call fcn.100242cc
jmp 0x100249f1
lea eax, [ebp - 0x10]
push eax
call fcn.10024367
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10024a61
mov eax, dword [0x1003334c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10033040
call fcn.100248e6
add esp, 0xc
test al, al
je 0x10024a61
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10024a2c
cmp word [eax], di
je 0x10024a2c
lea eax, [ebp - 0x10]
push eax
call fcn.100242cc
pop ecx
jmp 0x10024a63
lea eax, [ebp - 0x10]
push eax
call fcn.10024367
jmp 0x10024a29
mov eax, dword [edi]
test eax, eax
je 0x10024a4e
cmp word [eax], dx
je 0x10024a4e
lea eax, [ebp - 0x10]
push eax
call fcn.10024281
pop ecx
jmp 0x10024a61
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10024b2c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1002476b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10024b2c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.DLL_IsValidCodePage]
test eax, eax
je 0x10024b2c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_IsValidLocale]
test eax, eax
je 0x10024b2c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10024ab9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001a71d
test ebx, ebx
je 0x10024b27
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001a71d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x10024b2c
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x10024b2c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1002896f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10024b2e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000be7f
leave
ret
Function at 0x10029e10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10029e3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10029e3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x165f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0165f1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x165f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x165f06a
add dl, dl
jne 0x165f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x165f0dc
xor eax, eax
add dl, dl
jne 0x165f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x165f17d
add dl, dl
jne 0x165f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x165f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x165f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x165f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x165f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x165f075
mov eax, 1
add dl, dl
jne 0x165f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x165f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x165f0e1
sub eax, ebx
mov ebx, 1
jne 0x165f128
mov ecx, 1
add dl, dl
jne 0x165f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x165f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x165f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x165f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x165f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x165f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x165f136
cmp eax, 0x7d00
jae 0x165f16d
cmp eax, 0x500
jb 0x165f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x165f075
cmp eax, 0x7f
ja 0x165f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x165f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x165f19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x165f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10001120
Capabilities:
Get disk information
Get disk size
Get hostname
Get memory capacity

Disassembly:
sub esp, 0x1c8
mov eax, dword [0x1005d3b0]
xor eax, esp
mov dword [esp + 0x1c4], eax
lea eax, [esp + 0x44]
push 0x14
push eax
call fcn.10001020
push eax
lea eax, [esp + 0x50]
push eax
call fcn.1000c3d0
add esp, 0x10
mov dword [esp + 0x24], 0x20
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea eax, [esp + 0x24]
push 0x20
push eax
call fcn.1000c3d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp], eax
lea eax, [esp]
push 4
push eax
call fcn.1000c3d0
add esp, 8
mov dword [esp], pe_nt_image_headers32
lea eax, [esp]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x100011b1
push dword [esp]
lea eax, [esp + 0x48]
push eax
call fcn.1000c3d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 4
push eax
call fcn.1000c3d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp], eax
lea eax, [esp]
push 4
push eax
call fcn.1000c3d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp], eax
lea eax, [esp]
push 4
push eax
call fcn.1000c3d0
add esp, 8
mov byte [esp + 0x144], 0
lea eax, [esp + 0x44]
mov byte [esp + 0x44], 0
push pe_nt_image_headers32
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push 0x80
lea eax, [esp + 0x15c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea ecx, [esp + 0x144]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001240
sub ecx, edx
lea eax, [esp + 0x144]
push ecx
push eax
call fcn.1000c3d0
lea eax, [esp + 0x28]
push 4
push eax
call fcn.1000c3d0
lea eax, [esp + 0x20]
push 4
push eax
call fcn.1000c3d0
lea eax, [esp + 0x34]
push 4
push eax
call fcn.1000c3d0
lea ecx, [esp + 0x64]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001285
sub ecx, edx
lea eax, [esp + 0x44]
push ecx
push eax
call fcn.1000c3d0
add esp, 8
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x100012ef
lea eax, [esp + 4]
push 4
push eax
call fcn.1000c3d0
lea eax, [esp + 0x10]
push 4
push eax
call fcn.1000c3d0
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.1000c3d0
lea eax, [esp + 0x2c]
push 4
push eax
call fcn.1000c3d0
add esp, 0x20
lea eax, [esp + 0x44]
push 0x14
push eax
call fcn.10001020
push eax
lea eax, [esp + 0x50]
push eax
call fcn.1000c3d0
mov ecx, dword [esp + 0x1d4]
add esp, 0x10
xor ecx, esp
call fcn.1003cf2f
add esp, 0x1c8
ret
Function at 0x100014f0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0xa8
mov eax, dword [0x1005d3b0]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xb0]
push esi
push dword [esp + 0xb8]
mov esi, dword [esp + 0xb4]
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x50], 0
push eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0x67452301
mov dword [esp + 0x60], 0xefcdab89
mov dword [esp + 0x64], 0x98badcfe
mov dword [esp + 0x68], 0x10325476
mov dword [esp + 0x6c], 0xc3d2e1f0
call fcn.100015d0
push 0x14
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.100013d0
mov ecx, dword [esp + 0xc4]
add esp, 0x1c
xor eax, eax
pop esi
xor ecx, esp
call fcn.1003cf2f
add esp, 0xa8
ret
Function at 0x10003810
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x1005d3b0]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
push ebx
push esi
mov esi, dword [esp + 0x68]
push edi
push dword [esp + 0x74]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.10003960
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [esp + 0x10]
mov edi, ecx
shl eax, 3
mov edx, ecx
shr edi, 0x1d
and edx, 0x3f
or edi, eax
lea ebx, [ecx*8]
mov eax, 0x38
cmp edx, 0x38
jb 0x10003898
mov eax, 0x78
sub eax, edx
push eax
lea eax, [esp + 0x10]
push 0x10049698
push eax
call fcn.10003960
add esp, 0xc
mov dword [esp + 0x5c], ebx
lea eax, [esp + 0x24]
mov dword [esp + 0x60], edi
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10003a00
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x64]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x20]
pop edi
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.1003cf2f
add esp, 0x5c
ret

Function at 0x10004340
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x128
push 0
push edi
call fcn.1003d590
add esp, 0xc
add edi, 0x100
mov ecx, 8
mov esi, 0x10049900
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x10007030
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x130
mov eax, dword [0x1005d3b0]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
mov ebx, dword [esp + 0x13c]
lea eax, [esp + 8]
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
push 0x128
push 0
push eax
call fcn.1003d590
push dword [esp + 0x158]
lea eax, [esp + 0x24]
mov ecx, 8
mov esi, 0x10049900
lea edi, [esp + 0x124]
push ebx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.100070f0
push 0x20
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push ebp
push eax
call fcn.10006dc0
mov ecx, dword [esp + 0x164]
add esp, 0x28
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003cf2f
add esp, 0x130
ret
Function at 0x10008c30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x1005d3b0]
xor eax, esp
mov dword [esp + 0x40], eax
cmp dword [esp + 0x58], 0
mov ecx, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x4c]
push edi
mov edi, dword [esp + 0x58]
je 0x10008c7e
mov eax, dword [ecx]
shr eax, 1
cmp dword [esp + 0x5c], eax
jae 0x10008c7e
push 0xffffe005
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1003cf2f
add esp, 0x44
ret
test ebx, ebx
je 0x10008c5d
mov dword [ebx + 8], 0
mov dword [ebx + 4], ecx
mov eax, dword [ecx + 4]
push ebp
call eax
mov dword [ebx], eax
test eax, eax
je 0x10008cee
mov ecx, dword [ebx + 4]
mov ebp, dword [esp + 0x60]
cmp ebp, dword [ecx + 0x1c]
jbe 0x10008d2c
push eax
mov eax, dword [ecx + 0x10]
call eax
push dword [esp + 0x64]
mov eax, dword [ebx + 4]
push edi
push dword [ebx]
mov eax, dword [eax + 0x14]
call eax
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x70]
push 0x40
push ecx
lea ecx, [esp + 0x24]
mov eax, dword [eax + 0x18]
push ecx
push dword [ebx]
call eax
mov ecx, dword [ebx + 4]
add esp, 0x20
mov ebp, dword [esp + 0x60]
cmp ebp, dword [ecx]
je 0x10008d28
push 0xffffe001
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
push 0x40
lea eax, [esp + 0x10]
push 0
push eax
call fcn.1003d590
mov ecx, dword [ebx]
add esp, 0xc
test ecx, ecx
je 0x10008d13
mov eax, dword [ebx + 4]
push 1
push ecx
mov eax, dword [eax + 0xc]
call eax
add esp, 8
pop ebp
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1003cf2f
add esp, 0x44
ret
lea edi, [esp + 0xc]
push esi
push dword [ecx + 0x1c]
lea eax, [ebx + 0xc]
push 0x36
push eax
call fcn.1003d590
mov eax, dword [ebx + 4]
lea esi, [ebx + 0x8c]
push dword [eax + 0x1c]
push 0x5c
push esi
call fcn.1003d590
add esp, 0x18
test ebp, ebp
je 0x10008d6c
movzx eax, byte [edi]
lea edi, [edi + 1]
xor byte [esi - 0x80], al
lea esi, [esi + 1]
movzx eax, byte [edi - 1]
xor byte [esi - 1], al
dec ebp
jne 0x10008d56
mov ecx, dword [esp + 0x50]
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.1003cf2f
add esp, 0x44
ret