joyce8/EMBER2024-capa huggingface dataset:
Function at 0x605b15
Capabilities:
Execute anti-debugging instructions

Disassembly:
not ch
mov ch, bh
not cx
jmp fcn.005c8e3f
or al, 0x9f
out 0x66, al
mov word [esi], dx
mov ecx, dword [esp]
jmp 0x605a5e
adc al, byte [eax + 0x13a612e7]
dec ebx
movsb byte es:[edi], byte [esi]
or eax, dword [edi + ebx + 0xf1f6105]
jecxz 0x605b12
adc byte [ebx - 0x6dd53371], bh
pop ecx
daa
les edi, [edx - 0x70]
stosd dword es:[edi], eax
pushal
idiv bl
xchg edi, eax
salc
push ebp
mov eax, 0x5c5d58b9
cld
loop 0x605bc1
inc esp
shr byte [eax], 0x2c
sub ebp, ecx
mov edi, 0x6d6fb178
jo 0x605b9f
and al, 0x2b
jmp 0xc09fcc27
cmp dword [eax + ebp - 0xa], 0xffffff93
dec ecx
sub eax, 0x67a9ffa5
jns 0x605c1e
into
push ebp
salc
retf
add byte [eax + ecx - 0x46f70662], cl
and ah, byte [ebp + 0x6faf5c35]
push esp
invalid
and al, 3
call fcn.00605fe3
rcr dword [ebp - 0x33], cl
xchg esp, eax
shl dword [bp + di], 1
scasb al, byte es:[edi]
cmp al, 0x5b
mov dh, 0x70
aas
jmp 0x60603f
or dword [ebp - 4], 0xffffffff
jmp 0x605c04
pushal
push dword [esp + 4]
lea esp, [esp + 0x23]
lea esp, [esp]
lea esp, [esp + 1]
jmp 0x605c37

Function at 0x6279e9
Capabilities:
Encode data using xor

Disassembly:
dec esp
push esp
sbb byte [ebx], bl
sbb al, 0xb4
mov dh, 0x28
invalid

Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push 0x40e
lea eax, [ebp - 0x412]
push esi
push eax
mov word [ebp - 0x414], si
call fcn.004018d4
add esp, 0xc
push 0x208
lea eax, [ebp - 0x414]
push eax
push esi
call dword [0x402014]
test eax, eax
je 0x401083
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x402104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 5
push esi
push edi
lea eax, [ebp - 0x414]
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00401095
leave
ret 0x10
Function at 0x40b770
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40b93e
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40b79b
mov eax, 0x7000000
jmp 0x40b7a3
test eax, eax
je 0x40b919
mov dword [esp + 0x14], eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x94]
mov ebx, dword [ecx + 0x98]
mov dword [ecx + 0x94], ebx
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
mov dword [ecx + 0x98], ebp
lea ecx, [ebp + ebx]
shr ecx, 6
inc ecx
mov dword [esp], ecx
call fcn.00460e10
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x2c]
mov ecx, eax
shr eax, 0x14
and eax, 0x7ff
mov edx, eax
add eax, 0xfffffc01
mov ebx, ecx
shr ecx, 0xf
and ecx, 0x1f
mov ebp, ecx
add ecx, 1
mov esi, 0
adc esi, 0
shl ebx, 5
mov edi, dword [esp + 0x28]
shr edi, 0x1b
or edi, ebx
lea ebx, [0x6cece0]
movsd xmm0, qword [ebx + ebp*8]
test esi, esi
jne 0x40b931
cmp ecx, 0x21
jae 0x40b925
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x10], edi
add edx, 0xfffffc01
mov edx, 0xffffffff
adc edx, 0
movsd xmm0, qword [ebx + ecx*8]
movsd qword [esp + 0x20], xmm0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045bc90
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x10]
and eax, 0xfffff
mov dword [esp], eax
call fcn.0045bd60
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x18]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x20]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x5feaa0]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x5feb68]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40b8f4
xorps xmm0, xmm0
mov eax, dword [esp + 0x14]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x5febf0]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, ecx
mov ecx, 0x21
call fcn.00460ef0
mov eax, ecx
mov ecx, 0x21
call fcn.00460fc0
nop
call fcn.0045fa50
jmp fcn.0040b770
Function at 0x4144a0
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4146b4
sub esp, 0x18
mov eax, dword [0x709d70]
test eax, eax
jne 0x41469d
nop
lea eax, [0x709d58]
mov dword [esp], eax
call fcn.004095c0
mov eax, dword [0x709d5c]
test eax, eax
je 0x4144e9
cmp dword [eax + 8], 0xcc
jne 0x41455f
mov edx, dword [0x709d50]
test edx, edx
jne 0x414541
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x70c610]
mov dword [esp + 8], eax
call fcn.0040b950
mov eax, dword [esp + 0xc]
mov dword [0x709d50], eax
mov ecx, dword [0x709d14]
mov dword [eax], ecx
mov eax, dword [0x709d50]
mov dword [0x709d14], eax
movzx eax, byte [0x70a260]
test al, al
jne 0x414541
xor eax, eax
jmp 0x414649
mov edx, dword [0x709d50]
mov ebx, dword [edx + 4]
mov dword [0x709d50], ebx
mov ebx, dword [0x709d5c]
mov dword [edx + 4], ebx
mov dword [0x709d5c], edx
mov edx, dword [0x709d5c]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x414631
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004020d0
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*4 + 0x10]
mov edx, dword [0x709f50]
lea ebx, [ecx + eax*4 + 0x1c]
lea ebp, [ecx + eax*4 + 0x20]
lea esi, [ecx + eax*4 + 0x14]
test edx, edx
jne 0x4145bd
mov edx, dword [esp + 0x20]
mov dword [ecx + eax*4 + 0x10], edx
jmp 0x4145ca
mov edx, eax
mov eax, dword [esp + 0x20]
call fcn.00460e60
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4 + 0x18], edx
mov edx, dword [0x709f50]
test edx, edx
jne 0x4145f6
mov edx, dword [esp + 0x28]
mov dword [ecx + eax*4 + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*4 + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax*4 + 0x14], edx
jmp 0x414617
mov edi, ebx
mov eax, dword [esp + 0x28]
call fcn.00460e60
mov edi, ebp
mov eax, dword [esp + 0x2c]
call fcn.00460e60
mov edi, esi
mov eax, dword [esp + 0x1c]
call fcn.00460e60
mov byte [0x709888], 1
nop
lea eax, [0x709d58]
mov dword [esp], eax
call fcn.004097c0
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.00460ef0
lea esi, [0x70a260]
xchg ebp, eax
mov byte [esi + ebx], al
xchg ebp, eax
lea eax, [ebx + 1]
cmp eax, 0x80
jge 0x414541
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
mov eax, ecx
sar ecx, 0x1f
sub edx, ecx
lea edx, [edx + edx*4]
mov ebx, eax
sub eax, edx
cmp eax, 5
jae 0x414693
lea edx, [0x6c9644]
movzx ebp, byte [edx + eax]
cmp ebx, 0x80
jb 0x41463b
mov eax, ebx
mov ecx, pe_nt_image_headers32
call fcn.00460ee0
mov ecx, 5
call fcn.00460ee0
lea eax, [0x5bb3af]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.00436390
nop
call fcn.0045fa50
jmp fcn.004144a0
Function at 0x428470
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x42858c
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 1
je 0x428505
cmp cl, 2
je 0x4284ad
cmp cl, 3
jne 0x428575
mov byte [eax + 8], 1
jmp 0x428571
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.0042dc00
nop
lea eax, [0x6edee4]
mov dword [esp], eax
call fcn.004095c0
nop
mov eax, dword [0x6edeb0]
sub eax, dword [0x6ede94]
mov dword [0x6edeb0], eax
mov eax, dword [0x6edea0]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x6edea0], ecx
nop
lea eax, [0x6edee4]
mov dword [esp], eax
call fcn.004097c0
jmp 0x428571
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.004144a0
nop
lea eax, [0x6edee4]
mov dword [esp], eax
call fcn.004095c0
nop
mov eax, dword [0x6ede88]
sub eax, dword [0x6ede6c]
mov dword [0x6ede88], eax
mov eax, dword [0x6ede78]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x6ede78], ecx
nop
nop
lea eax, [0x6edee4]
mov dword [esp], eax
call fcn.004097c0
add esp, 0x14
ret
lea eax, [0x5b77af]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.00436390
nop
call fcn.0045fa50
jmp fcn.00428470
Function at 0x451110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x451297
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x45128d
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x45116c
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x45116c
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x45117f
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x451262
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x451254
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x45124b
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x4511d6
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x45121f
mov eax, 1
cmp eax, ecx
ja 0x45120d
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
add ebx, ebp
mov dword [esp + 0x2c], ebx
sub ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call fcn.00460f50
lea esi, [ecx + 7]
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
cmp eax, ecx
jae 0x451246
movzx edi, byte [eax + ebx]
lea ebp, [eax + 1]
mov eax, edi
and edi, 0x7f
mov ecx, esi
shl edi, cl
or edx, edi
test al, 0x80
jne 0x451212
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
jmp 0x4511db
call fcn.00460ef0
xor eax, eax
mov ecx, eax
call fcn.00460ee0
call fcn.00460f50
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
mov eax, edi
cmp ecx, eax
jbe 0x451288
movzx esi, byte [eax + edx]
lea edi, [eax + 1]
mov eax, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
or ebx, esi
test al, 0x80
jne 0x451259
mov ecx, dword [esp + 0x18]
mov eax, edi
jmp 0x451184
call fcn.00460ef0
xor eax, eax
mov ecx, eax
call fcn.00460ee0
nop
call fcn.0045fa50
jmp fcn.00451110
Function at 0x458970
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x458a0f
sub esp, 0x30
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.004610b7
lea ecx, [0x458a20]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.0045f940
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.0045fa50
jmp fcn.00458970
Function at 0x460d10
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x70a040]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x45f4db
je 0x45f52e
cmp ebx, 0x20
jbe 0x45f534
cmp ebx, 0x40
jbe 0x45f57a
jmp 0x45f61b
test ebx, ebx
je 0x45f524
add eax, 0x10
test ax, 0xff0
je 0x45f510
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x5ffb60]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x5ffc60]
jmp 0x45f4f8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x45f4f8
pxor xmm1, xmmword [0x70a050]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x70a050]
pxor xmm2, xmmword [0x70a060]
pxor xmm3, xmmword [0x70a070]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x70a050]
pxor xmm2, xmmword [0x70a060]
pxor xmm3, xmmword [0x70a070]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x45f67a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x709890], 0
je 0x460d2a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x45f4a0
jmp fcn.004080a0
Function at 0x10011fc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x10127008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.100a9466
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.100ac730
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x1001201c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.100a9455
add esp, 0x120
ret
Function at 0x10017cc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x10127008]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10017ce8
mov eax, dword [esi]
xor ecx, ecx
push 0x412
mov word [eax], cx
lea eax, [esp + 8]
push ecx
push eax
call fcn.100ac730
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x10017d2c
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.100a9455
add esp, 0x418
ret
cmp eax, 0x208
jae 0x10017d14
xor eax, eax
lea edx, [esp + 4]
mov word [esp + 0x414], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10017d44
sub edx, ecx
lea eax, [esp + 4]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.100033c0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.100a9455
add esp, 0x418
ret

Function at 0x10018b70
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x10114d60
push 0x100abcc0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10127008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10018bd6
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
mov ecx, edi
call fcn.10018cb0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10018c0d
test bl, bl
jne 0x10018c8a
cmp edi, 0x1a
jne 0x10018c8a
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10018c27
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call fcn.100ac730
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018c60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.100033c0
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.100a9455
lea esp, [ebp + 0x414]
pop ebp
ret

Function at 0x1001c4b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x1001c4e8
mov edx, dword [esp + 4]
test edx, edx
je 0x1001c4e8
cmp dword [eax], 0xffffffff
je 0x1001c4e8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001c4e8
mov al, 1
ret 0xc
xor al, al
ret 0xc
Function at 0x1001c4f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x1001c52a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1001c52a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1001c52a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001c52a
cmp edi, dword [esi]
jne 0x1001c52a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x1001c570
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10127008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x1001c5d3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1001c5d3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001c5ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001c5d3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100a9455
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100a9455
add esp, 8
ret 4

Function at 0x1001ca50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e64a8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10127008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x1001ca93
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.1002ae30
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x1001cabc
lea eax, [esi + 8]
jmp 0x1001cabe
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x1001cace
cmp dword [ebx + 0x14], 8
jb 0x1001cad0
mov ebx, dword [ebx]
jmp 0x1001cad0
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x1001caf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001caf1
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1001cb1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1001cb2f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.100a97f9
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a9455
mov esp, ebp
pop ebp
ret 4
Function at 0x1001cb70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e64d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10127008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x1001cbb3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.1002af60
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x1001cbdd
lea ecx, [esi + 8]
jmp 0x1001cbdf
xor ecx, ecx
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x18], ecx
je 0x1001cbf4
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x1001cbf6
mov eax, dword [ebx]
jmp 0x1001cbf6
xor eax, eax
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x1001cc41
call ecx
cmp eax, 5
jne 0x1001cc3b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x10], 0
je 0x1001cc2b
cmp dword [ebx + 0x14], 8
jb 0x1001cc2d
mov ebx, dword [ebx]
jmp 0x1001cc2d
xor ebx, ebx
push ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x1001cc5f
call ecx
cmp eax, 0xb7
jne 0x1001cc54
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.10013350
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1001cc85
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1001cc9a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.100a97f9
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a9455
mov esp, ebp
pop ebp
ret 4