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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4e2950]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a643d
cmp byte [ebx], 0xa
jne 0x4a643d
or byte [eax + edi + 0x28], 4
jmp 0x4a6442
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a6540
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6522
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a6471
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a6496
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a64a0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a6453
jmp 0x4a6540
push 0
lea eax, [ebp - 0xc]
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 0x4a651d
cmp dword [ebp - 0xc], 0
je 0x4a651d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e2950]
test byte [eax + edi + 0x28], 0x48
je 0x4a64f7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a64e2
mov byte [esi], dl
jmp 0x4a64f3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e2950]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a6540
cmp byte [ebp - 1], 0xa
jne 0x4a6506
cmp esi, ebx
jne 0x4a6506
mov byte [esi], 0xa
jmp 0x4a653f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004018fc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a6540
mov byte [esi], 0xd
jmp 0x4a653f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e2950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a653c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6540
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a659c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4e2950]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a65df
cmp word [esi], dx
jne 0x4a65df
or byte [edi + eax + 0x28], 4
jmp 0x4a65e4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a6737
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a6717
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a6626
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a665c
cmp eax, edx
jae 0x4a6668
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a65fe
jmp 0x4a6737
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 0x4a6713
cmp dword [ebp - 0x14], 0
je 0x4a6713
mov eax, dword [ebx*4 + 0x4e2950]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a66eb
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a66b4
mov word [esi], cx
jmp 0x4a66e7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e2950]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e2950]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e2950]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a6737
pop ebx
cmp word [ebp - 4], bx
jne 0x4a66fc
cmp esi, dword [ebp + 0xc]
jne 0x4a66fc
mov word [esi], bx
jmp 0x4a6734
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004018fc
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a6737
push 0xd
jmp 0x4a6730
mov ecx, dword [ebx*4 + 0x4e2950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a672e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6737
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4acecf
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4df040]
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 0x4acf1a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ad391
test al, al
jne 0x4acf14
sub edx, 2
cmp edx, edi
jne 0x4acefa
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4acf3c
lea eax, [edi + 2]
cmp edx, eax
je 0x4acf3c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004acac8
add esp, 0x10
jmp 0x4ad036
push esi
lea ecx, [ebp - 0x255]
call fcn.004ad391
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 0x4acf7f
push dword [ebp - 0x25c]
jmp 0x4acf2c
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 0x4acfbc
cmp word [ebp - 0x226], 0
je 0x4acfdd
cmp word [ebp - 0x226], ax
jne 0x4acfbc
cmp word [ebp - 0x224], 0
je 0x4acfdd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004acac8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ad029
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4acf96
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ad011
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ad036
push 0x4ac4b0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405443
add esp, 0x10
jmp 0x4ad006
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.00402ff4
leave
ret
Function at 0x89c7e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x384000]
push edi
jmp 0x89c7fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x89c801
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x89c7f0
mov eax, 1
add ebx, ebx
jne 0x89c813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x89c824
jne 0x89c843
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x89c843
dec eax
add ebx, ebx
jne 0x89c830
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x89c808
add ebx, ebx
jne 0x89c83f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x89c895
xor ecx, ecx
sub eax, 3
jb 0x89c85b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x89c8ca
sar eax, 1
mov ebp, eax
jmp 0x89c866
add ebx, ebx
jne 0x89c866
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x89c834
inc ecx
add ebx, ebx
jne 0x89c874
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x89c834
add ebx, ebx
jne 0x89c881
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x89c876
jne 0x89c892
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x89c876
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x89c8b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x89c8a6
jmp 0x89c7f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x89c8b4
add edi, ecx
jmp 0x89c7f6
pop esi
mov edi, esi
mov ecx, 0xd3cc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x89c8d2
cmp byte [edi], 0x36
jne 0x89c8d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x89c8d7
lea edi, [esi + 0x498000]
mov eax, dword [edi]
or eax, eax
je 0x89c94f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4ad374]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4ad4b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x89c904
mov ecx, edi
jns 0x89c933
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4ad4b8]
or eax, eax
je 0x89c949
mov dword [ebx], eax
add ebx, 4
jmp 0x89c921
call dword [esi + 0x4ad4c8]
mov ebp, dword [esi + 0x4ad4bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x89c983
sub esp, 0xffffff80
jmp 0x5c6451
Function at 0x10005f00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc78b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x10005f39
call fcn.100060a0
cmp byte [0x10102704], 0
jne 0x10005f4c
mov eax, 0x80000001
jmp 0x1000607c
mov eax, dword [esi]
test eax, eax
jne 0x10005fcc
push 8
call fcn.1008a198
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.1008a198
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.1008c730
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10005fbb
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1000606b
call fcn.1000bf70
test al, al
jne 0x10006006
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.1000c4d0
test al, al
je 0x1000606b
mov ecx, dword [esi]
add ecx, 4
call fcn.1000ba90
call fcn.1000bf70
test al, al
je 0x1000606b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.100039b0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.1000a870
mov ecx, eax
call fcn.1000a930
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10003910
test edi, edi
je 0x1000606b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000606b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x1000606b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1000607a
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret 4
Function at 0x10006940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1010001c]
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 esi, dword [ebp + 8]
mov ecx, esi
call fcn.10004080
test eax, eax
jne 0x10006980
xor al, al
jmp 0x10006ab4
push esi
lea ecx, [ebp - 0x2c]
call fcn.10006780
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x2c]
call fcn.10008160
lea ecx, [ebp - 0x2c]
call fcn.100038a0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10006aa1
lea ecx, [ebp - 0x44]
call fcn.10003a00
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100122d0
test al, al
je 0x100069e1
lea ecx, [ebp - 0x44]
call fcn.100038a0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10003910
cmp esi, 0xffffffff
jne 0x10006aa1
lea ecx, [ebp - 0x2c]
call fcn.10004080
cmp eax, 2
jbe 0x10006a9d
lea ecx, [ebp - 0x2c]
call fcn.10004080
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.10003a20
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x10006a26
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x10006a45
lea ecx, [ebp - 0x2c]
call fcn.10004080
cmp dword [esi + 0x14], 8
jb 0x10006a3d
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x10006a9d
mov edx, 0x20
lea ecx, [ebp - 0x2c]
call fcn.10008160
lea ecx, [ebp - 0x2c]
call fcn.100038a0
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10006aa1
lea ecx, [ebp - 0x44]
call fcn.10003a00
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100122d0
test al, al
je 0x10006a8c
lea ecx, [ebp - 0x44]
call fcn.100038a0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10003910
cmp esi, 0xffffffff
jne 0x10006aa1
xor bl, bl
jmp 0x10006aa3
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003910
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 - 0x14]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret
Function at 0x10006ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1010001c]
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 esi, dword [ebp + 8]
mov ecx, esi
call fcn.10004080
test eax, eax
jne 0x10006b10
xor al, al
jmp 0x10006c4a
push esi
lea ecx, [ebp - 0x2c]
call fcn.10006780
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x2c]
call fcn.10008160
lea ecx, [ebp - 0x2c]
call fcn.100038a0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006b7e
lea ecx, [ebp - 0x44]
call fcn.10003a00
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100122d0
test al, al
je 0x10006b6d
lea ecx, [ebp - 0x44]
call fcn.100038a0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10003910
cmp ebx, 0xffffffff
je 0x10006b87
test bl, 0x10
je 0x10006c37
lea ecx, [ebp - 0x2c]
call fcn.10004080
cmp eax, 2
jbe 0x10006c33
lea ecx, [ebp - 0x2c]
call fcn.10004080
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.10003a20
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x10006bb7
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x10006bd6
lea ecx, [ebp - 0x2c]
call fcn.10004080
cmp dword [esi + 0x14], 8
jb 0x10006bce
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x10006c33
mov edx, 0x20
lea ecx, [ebp - 0x2c]
call fcn.10008160
lea ecx, [ebp - 0x2c]
call fcn.100038a0
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006c2e
lea ecx, [ebp - 0x44]
call fcn.10003a00
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100122d0
test al, al
je 0x10006c1d
lea ecx, [ebp - 0x44]
call fcn.100038a0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10003910
cmp ebx, 0xffffffff
je 0x10006c33
test bl, 0x10
je 0x10006c37
xor bl, bl
jmp 0x10006c39
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003910
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 - 0x14]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret
Function at 0x10006c70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc930
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.10004080
test eax, eax
jne 0x10006caf
xor al, al
jmp 0x10006d39
push esi
lea ecx, [ebp - 0x2c]
call fcn.10006780
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x2c]
call fcn.10008160
lea ecx, [ebp - 0x2c]
call fcn.100038a0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006d1d
lea ecx, [ebp - 0x44]
call fcn.10003a00
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100122d0
test al, al
je 0x10006d0c
lea ecx, [ebp - 0x44]
call fcn.100038a0
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10003910
cmp ebx, 0xffffffff
je 0x10006d26
test bl, 0x10
je 0x10006d26
mov bl, 1
jmp 0x10006d28
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003910
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret
Function at 0x100071d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bca20
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1010001c]
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 edi, dword [ebp + 8]
mov ecx, edi
call fcn.10004080
test eax, eax
jne 0x10007210
xor al, al
jmp 0x100073cb
push edi
call fcn.10006c70
add esp, 4
test al, al
je 0x10007224
mov al, 1
jmp 0x100073cb
push 0
mov ecx, edi
call fcn.100038a0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x10007273
lea ecx, [ebp - 0x2c]
call fcn.10003a00
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.100122d0
test al, al
je 0x10007264
push 0
lea ecx, [ebp - 0x2c]
call fcn.100038a0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003910
push edi
call fcn.10006c70
add esp, 4
test al, al
jne 0x1000721d
mov ecx, edi
call fcn.10004080
xor esi, esi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1000736c
mov ecx, edi
call fcn.10003a20
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x100072ac
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x100072cf
mov eax, ebx
cmp ecx, 8
jb 0x100072c5
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x1000735c
push esi
push 0
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.10007960
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10004080
test eax, eax
je 0x1000734d
lea eax, [ebp - 0x2c]
push eax
call fcn.10006940
add esp, 4
test al, al
jne 0x1000734d
push 0
lea ecx, [ebp - 0x2c]
call fcn.100038a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000734d
lea ecx, [ebp - 0x44]
call fcn.10003a00
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100122d0
test al, al
je 0x10007341
push 0
lea ecx, [ebp - 0x44]
call fcn.100038a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.10003910
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003910
inc esi
cmp esi, dword [ebp - 0x48]
jb 0x100072a0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.10006940
add esp, 4
test al, al
jne 0x100073c2
push 0
mov ecx, edi
call fcn.100038a0
push eax
call ebx
test eax, eax
jne 0x100073c2
lea ecx, [ebp - 0x44]
call fcn.10003a00
mov dword [ebp - 4], 3
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.100122d0
test al, al
je 0x100073b3
push 0
lea ecx, [ebp - 0x44]
call fcn.100038a0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10003910
push edi
call fcn.10006c70
add esp, 4
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.1008a187
mov esp, ebp
pop ebp
ret
Function at 0x10007db0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x10007dc6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov ecx, dword [esp + 8]
mov word [esi + 4], 0
call fcn.10004080
test eax, eax
je 0x10007de4
mov ecx, dword [esp + 8]
call fcn.100038a0
jmp 0x10007de6
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x10007e08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10007e08
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4

Function at 0x10007e20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bcbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1010001c]
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 [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x10007e66
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.1000f070
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x10007e8f
lea ebx, [esi + 8]
jmp 0x10007e91
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.10004080
test eax, eax
je 0x10007ea7
mov ecx, dword [ebp - 0x18]
call fcn.100038a0
jmp 0x10007ea9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x10007eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10007eca
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10007ef3
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 0x10007f08
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1008a52b
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.1008a187
mov esp, ebp
pop ebp
ret 4