joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100029a0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1004b82a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100661b0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
push edi
mov eax, dword [0x100661b0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, edx
lea eax, [esp + 0x10]
push eax
mov ebx, esi
mov edi, ecx
call fcn.10003b50
xor ebx, ebx
mov dword [esp + 0x40], ebx
test byte [0x100c0e70], 1
jne 0x10002a17
or dword [0x100c0e70], 1
mov byte [esp + 0x40], 1
push 0x100c0e50
call fcn.100043a0
push 0x1004eb50
call fcn.10034a0b
add esp, 4
mov byte [esp + 0x40], bl
cmp byte [edi + 0x4e0], bl
je 0x10002ab7
cmp esi, ebx
je 0x10002a2c
lea eax, [esi + 4]
jmp 0x10002a2e
xor eax, eax
push ebx
push eax
or eax, 0xffffffff
mov esi, 0x100c0e54
call fcn.10003860
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [esp + 0x18]
jae 0x10002a4c
lea ecx, [esp + 0x18]
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x10002a64
mov edx, dword [esp + 0x28]
push eax
push edx
push 1
push ecx
call fcn.10034866
add esp, 0x10
cmp byte [esp + 0x4c], bl
je 0x10002ab7
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x10002a7a
push eax
call fcn.100368f4
add esp, 4
cmp dword [edi + 0x4dc], ebx
je 0x10002aa8
cmp dword [0x100c0e6c], 8
mov eax, dword [0x100c0e58]
jae 0x10002a95
mov eax, 0x100c0e58
mov edx, dword [esp + 0x48]
mov edi, dword [edi + 0x4dc]
mov ecx, dword [edi]
push edx
push eax
mov eax, dword [ecx]
push edi
call eax
or eax, 0xffffffff
xor ebx, ebx
mov esi, 0x100c0e54
call fcn.10004590
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.10004500
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100346f8
add esp, 0x34
ret 8

Function at 0x100042f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000435e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x1000432f
cmp eax, 2
jne 0x1000434a
test esi, esi
mov eax, dword [esp]
je 0x10004358
test eax, eax
je 0x10004353
test al, 1
jne 0x1000434a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x10004358
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x10005180
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x284]
sub esp, 0x284
push 0xffffffffffffffff
push 0x1004c360
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100661b0]
xor eax, ebp
mov dword [ebp + 0x280], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], 0
lea eax, [ebp]
push eax
call fcn.10017830
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x28]
push ecx
mov ecx, edi
call fcn.10004dc0
add esp, 4
test eax, eax
je 0x1000521c
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10017970
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x280]
xor ecx, ebp
call fcn.100346f8
add ebp, 0x284
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp + 0x28]
call fcn.100046b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x38]
push eax
call fcn.10017a50
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.10004620
lea ecx, [ebp - 0x58]
push ecx
mov edx, 0x10057024
call fcn.100046b0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp + 0x28]
call fcn.100046b0
mov byte [ebp - 4], 4
push 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x38]
lea edi, [ebp]
call fcn.100179e0
test al, al
sete bl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.10004620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10004620
test bl, bl
jne 0x100051e6
mov eax, dword [ebp + 4]
test eax, eax
je 0x100052b6
push eax
mov ecx, dword [ebp + 0x28c]
push ecx
push 1
push esi
call fcn.10034866
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10017970
xor eax, eax
jmp 0x100051f7
Function at 0x10005300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cc22
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x100661b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, edx
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x58]
push eax
call fcn.100043a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
push ecx
call fcn.100043a0
mov byte [ebp - 4], 2
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x38]
push edx
call fcn.10016830
mov byte [ebp - 4], 4
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x78]
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.10004f20
add esp, 0xc
cmp eax, 1
jne 0x100053d9
mov byte [ebp - 4], 3
lea edx, [ebp - 0x38]
push edx
call fcn.100167e0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x7c]
call fcn.10004370
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call fcn.10004620
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.10004620
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100346f8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x50]
jae 0x100053e5
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x80]
push eax
mov edx, 3
lea esi, [ebp - 0x7c]
call fcn.100041e0
test eax, eax
je 0x10005405
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
push ecx
jmp 0x1000538f
mov ecx, edi
mov eax, dword [ebp + 0xc]
cmp ebx, 1
jne 0x1000542d
lea edx, [ebp - 0x38]
push edx
mov esi, edi
call fcn.10016560
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x1000542d
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x5c], 8
mov edx, dword [ebp - 0x70]
jae 0x10005439
lea edx, [ebp - 0x70]
push eax
push ecx
push ebx
push 0
push edx
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x80], eax
mov ecx, 0
setne cl
mov edi, ecx
mov byte [ebp - 4], 3
lea edx, [ebp - 0x38]
push edx
call fcn.100167e0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x7c]
call fcn.10004370
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call fcn.10004620
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.10004620
mov eax, edi
jmp 0x100053bd
Function at 0x10005990
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cb90
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100661b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x34]
push eax
call fcn.100043a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
push ecx
call fcn.100043a0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x54]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.10004f20
add esp, 0xc
cmp eax, 1
jne 0x10005a2f
mov byte [ebp - 4], al
lea ecx, [ebp - 0x54]
call fcn.10004620
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x34]
call fcn.10004620
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100346f8
mov esp, ebp
pop ebp
ret
mov esi, 8
cmp dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x2c]
jae 0x10005a3f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x58]
push ecx
push 3
push ebx
push eax
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10005a70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.10004620
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x34]
call fcn.10004620
xor eax, eax
jmp 0x10005a13
cmp dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x4c]
jae 0x10005a7b
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp esi, ebx
setne dl
mov esi, edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.10004620
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x34]
call fcn.10004620
mov eax, esi
jmp 0x10005a13
Function at 0x10010140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
lea eax, [esi - 1]
cmp eax, ebx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x10055f74
mov byte [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x10055f78
mov byte [esp + 0x24], 0x3e
mov dword [esp + 0x28], 0x10055f7c
mov byte [esp + 0x2c], 0xa
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
jle 0x1001024b
mov edi, dword [ebp + 0xc]
test ebx, ebx
jne 0x100101b6
push str.___CDATA_
push edi
call fcn.10036210
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100101b6
mov eax, dword [ebp + 0xc]
lea ebx, [eax + esi]
mov dword [esp + 0x14], ebx
jmp 0x100101cf
cmp dword [esp + 0x14], 0
jne 0x100101cf
push 0x100555e8
push ebx
call fcn.10036210
add esp, 8
mov dword [esp + 0x14], eax
cmp edi, ebx
jb 0x10010220
cmp edi, dword [esp + 0x14]
jbe 0x100101dd
xor ebx, ebx
jmp 0x10010220
xor esi, esi
nop
mov ecx, dword [esp + esi*8 + 0x18]
push 3
push ecx
push edi
call fcn.10035f10
add esp, 0xc
test eax, eax
je 0x100101fe
add esi, 1
cmp esi, 3
jl 0x100101e0
jmp 0x1001021b
mov eax, dword [esp + 0x10]
mov dl, byte [esp + esi*8 + 0x1c]
mov ecx, dword [ebp + 0xc]
add dword [esp + 0xc], 3
mov byte [eax + ecx], dl
add eax, 1
mov dword [esp + 0x10], eax
add edi, 3
cmp esi, 3
jne 0x1001023b
mov eax, dword [esp + 0x10]
mov dl, byte [edi]
mov ecx, dword [ebp + 0xc]
add dword [esp + 0xc], 1
mov byte [eax + ecx], dl
add edi, 1
add eax, 1
mov dword [esp + 0x10], eax
mov esi, dword [ebp + 0x10]
lea eax, [esi - 1]
cmp dword [esp + 0xc], eax
jl 0x10010192
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
test eax, eax
je 0x10010269
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push eax
push 1
push ecx
call fcn.10034866
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100104c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c213
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100661b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
push eax
call fcn.10017830
mov byte [ebp - 4], 1
mov dword [ebp - 0x48], 1
mov edx, dword [esi]
mov eax, dword [ebp + 0x10]
push eax
push ebx
lea ecx, [ebp - 0x44]
push ecx
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
mov edx, dword [edx + 0xa4]
call edx
test eax, eax
jne 0x10010608
lea eax, [ebp - 0x70]
push eax
mov edx, edi
call fcn.100046b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
push ecx
call fcn.10017a50
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.10004620
lea edx, [ebp - 0x90]
push edx
mov edx, 0x10055f94
call fcn.100046b0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
push eax
mov edx, edi
call fcn.100046b0
mov byte [ebp - 4], 4
push 3
lea ecx, [ebp - 0x90]
push ecx
lea eax, [ebp - 0x70]
lea edi, [ebp - 0x3c]
call fcn.100179e0
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.10004620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
call fcn.10004620
test bl, bl
je 0x100105fc
cmp byte [ebp + 0x10], 0
je 0x100105d0
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, edi
push ecx
call fcn.10010140
add esp, 0xc
jmp 0x100105ed
mov eax, dword [ebp - 0x44]
add eax, 0xffffffff
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x100105ed
push ecx
push eax
push 1
mov edx, dword [ebp - 0x40]
push edx
call fcn.10034866
add esp, 0x10
lea esi, [ebp - 0x3c]
call fcn.10017a30
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x40]
push eax
call fcn.10034fb4
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10017970
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100346f8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10015380
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push esi
push 3
mov esi, ecx
mov dword [esp + 0xc], 0x13
call fcn.10034bff
mov dword [esp + 8], eax
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esp + 8]
mov byte [eax + 2], cl
mov eax, dword [0x100c08fc]
add esp, 4
test eax, eax
jne 0x100153d3
call fcn.10017280
mov edx, dword [eax]
push 0
push 0xaa
mov ecx, eax
mov eax, dword [edx + 0x1e8]
push 0x100be7b0
call eax
mov dword [0x100c08fc], eax
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.10014f30
test eax, eax
jne 0x100154f2
mov ecx, dword [esp + 8]
lea eax, [ecx + 1]
cdq
and edx, 7
add eax, edx
push ebx
sar eax, 3
push edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push 0
push eax
mov eax, 7
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x20]
mov dword [esp + 0x1c], ecx
call fcn.10019aa0
add esp, 8
call fcn.10017360
mov edx, dword [esp + 0x10]
mov ecx, eax
add edx, 4
mov eax, 0x66666667
imul edx
mov esi, dword [ecx]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4 + 7]
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0xc]
sar eax, 3
push eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esi]
push eax
call edx
push eax
lea eax, [esp + 0x10]
push eax
mov eax, 0x13
mov dword [esp + 0x1c], 0
call fcn.10019aa0
mov ecx, dword [esp + 0x18]
add ecx, 4
mov eax, 0x66666667
imul ecx
mov esi, dword [esp + 0x14]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
cdq
and edx, 7
add eax, edx
add esp, 8
sar eax, 3
sub eax, 1
cmp eax, 1
pop edi
pop ebx
jle 0x100154c3
jmp 0x100154b0
mov ecx, eax
and ecx, 1
mov dl, byte [ecx + esi]
xor byte [eax + esi], dl
sub eax, 1
cmp eax, 1
jg 0x100154b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push eax
push ecx
xor ecx, ecx
mov edx, 5
call fcn.10019f80
mov edx, dword [esp + 0x24]
mov dword [edx], eax
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xffffe81b
add eax, 0x17e5
pop esi
add esp, 0x10
ret 8
Function at 0x10015500
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push esi
push 5
lea eax, [esp + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.10019c40
mov ecx, eax
xor esi, esi
add esp, 0xc
cmp ecx, esi
mov dword [esp + 4], ecx
jne 0x10015534
mov eax, 0x100be668
pop esi
add esp, 0x10
ret 8
push ebp
mov ebp, dword [esp + 0xc]
cmp ebp, 0x13
jge 0x10015554
push ecx
call fcn.10034fb4
add esp, 4
pop ebp
mov eax, 0x100be668
pop esi
add esp, 0x10
ret 8
mov eax, ebp
cdq
and edx, 7
add eax, edx
sar eax, 3
sub eax, 1
cmp eax, 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], 3
jle 0x10015586
mov edx, eax
and edx, 1
mov dl, byte [edx + ecx]
xor byte [eax + ecx], dl
sub eax, 1
cmp eax, 1
jg 0x10015573
push ebx
push edi
push 0x13
lea edi, [esp + 0x28]
mov eax, ecx
call fcn.10019a50
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push esi
push eax
mov eax, 0x13
lea ebx, [esp + 0x24]
mov dword [esp + 0x30], esi
call fcn.10019aa0
add esp, 0xc
call fcn.10017360
mov edi, dword [esp + 0x10]
mov ecx, eax
lea eax, [ebp + 7]
cdq
and edx, 7
add eax, edx
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx]
sar esi, 3
push esi
push edi
push 0
call eax
mov ebx, dword [esp + 0x28]
and eax, 0x7ffff
test ebx, ebx
je 0x100155ff
cmp dword [esp + 0x14], eax
je 0x1001561d
call fcn.10017360
mov edx, dword [eax]
push esi
push edi
mov ecx, eax
mov eax, dword [edx]
push ebx
call eax
and eax, 0x7ffff
cmp dword [esp + 0x14], eax
je 0x1001561d
push edi
call fcn.10034fb4
add esp, 4
pop edi
pop ebx
pop ebp
mov eax, 0x100be668
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x1c]
mov ebx, dword [esi]
call fcn.10015350
mov edx, dword [ebx + 0x1d0]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebp
push edi
mov ecx, esi
call edx
push edi
mov esi, eax
call fcn.10034fb4
add esp, 4
pop edi
pop ebx
pop ebp
mov eax, esi
pop esi
add esp, 0x10
ret 8

Function at 0x10016a50
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 3
ja case.default.0x10016a5d
jmp dword [eax*4 + 0x10016afc]
call fcn.10016db0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100c080c], eax
call fcn.10018570
push eax
mov eax, dword [0x100c080c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.100169c0
mov eax, 1
ret 0xc
call fcn.10018570
mov ecx, dword [0x100c080c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
ret 0xc
mov edx, dword [0x100c080c]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10036f48
add esp, 4
mov eax, 1
ret 0xc
mov eax, dword [0x100c080c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10036f48
mov ecx, dword [0x100c080c]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_TlsFree]
call fcn.10016b30
mov eax, 1
ret 0xc
Function at 0x10017b30
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x1004bef0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100661b0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov eax, dword [0x100661b0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
lea ebx, [eax + 4]
mov esi, 8
cmp dword [ebx + 0x18], esi
mov dword [esp + 0xc], ecx
jb 0x10017b7e
mov eax, dword [ebx + 4]
jmp 0x10017b81
lea eax, [ebx + 4]
push 0
push eax
call fcn.10036cce
add esp, 8
test eax, eax
je 0x10017c51
push 2
call fcn.100160d0
cmp eax, 0xffffffff
je 0x10017c66
push eax
lea edx, [esp + 0x14]
push edx
push ebx
call fcn.10017ee0
mov dword [esp + 0x58], 0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.10018020
mov byte [esp + 0x58], 2
cmp dword [esp + 0x28], esi
jb 0x10017bdb
mov ecx, dword [esp + 0x14]
push ecx
call fcn.100346f3
add esp, 4
cmp dword [esp + 0x44], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], 0
je 0x10017c24
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.10017b30
add esp, 8
test al, al
jne 0x10017c24
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.10004620
xor al, al
jmp 0x10017c99
cmp dword [ebx + 0x18], esi
jb 0x10017c2e
mov eax, dword [ebx + 4]
jmp 0x10017c31
lea eax, [ebx + 4]
push 0
push eax
call fcn.10036cce
add esp, 8
test eax, eax
jne 0x10017c55
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.10004620
mov al, 1
jmp 0x10017c99
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.10004620
cmp dword [ebx + 0x18], esi
jb 0x10017c70
mov ebx, dword [ebx + 4]
jmp 0x10017c73
add ebx, 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x10017c92
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x10017c92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
xor eax, eax
test esi, esi
setne al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.100346f8
add esp, 0x50
ret

Function at 0x10017d70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
xor eax, eax
mov dword [ebp], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10017df6
push ebx
push edi
push ecx
call fcn.10035687
push 2
mov edi, eax
mov eax, dword [esi + 4]
push 0
push eax
call fcn.1003546a
mov ecx, dword [esi + 4]
push ecx
call fcn.10035687
mov edx, dword [esi + 4]
push 0
push edi
push edx
mov ebx, eax
call fcn.1003546a
push ebx
call fcn.10034bff
mov edi, eax
add esp, 0x24
test edi, edi
je 0x10017df4
mov esi, dword [esi + 4]
test esi, esi
jne 0x10017dcc
xor eax, eax
jmp 0x10017dd9
push esi
push ebx
push 1
push edi
call fcn.10036c2c
add esp, 0x10
cmp eax, ebx
mov dword [ebp], eax
jae 0x10017df2
push edi
call fcn.10034fb4
add esp, 4
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret 4
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret 4
Function at 0x10017e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004cab0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100661b0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov eax, dword [0x100661b0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, ecx
push esi
call fcn.10017a50
add esp, 4
lea eax, [esp + 8]
push eax
mov edx, 0x10057024
call fcn.100046b0
mov dword [esp + 0x60], 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.100178d0
mov byte [esp + 0x60], 2
lea ecx, [esp + 8]
call fcn.10004620
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10017e8a
push eax
push ebx
push 1
push edi
call fcn.10034866
add esp, 0x10
cmp eax, ebx
sete bl
mov dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.10017970
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.100346f8
mov esp, ebp
pop ebp
ret

Function at 0x10017ec0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [eax + 4]
mov eax, dword [esp + 4]
push ecx
push edx
push 1
push eax
call fcn.10036c2c
add esp, 0x10
ret 4

Function at 0x100181e0
Capabilities:
Check if file exists
Delete file

Disassembly:
cmp dword [eax + 0x1c], 8
jb 0x100181eb
mov eax, dword [eax + 8]
jmp 0x100181ee
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1001820c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1001820c
cmp eax, 3
je 0x1001820c
xor al, al
ret
mov al, 1
ret