joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037810
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bf31d
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.100898c0
mov eax, dword [0x100fc03c]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x1010]
mov ebx, dword [ebp + 0xc]
push 0x1000
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x1030], esi
push eax
mov dword [ebp - 0x1014], 0
call fcn.1008bb90
mov edx, dword [edi + 8]
add esp, 0xc
cmp dword [edx + 0x14], 8
jb 0x10037882
mov edx, dword [edx]
mov eax, dword [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x1003788d
mov eax, dword [eax]
mov ecx, dword [edi]
cmp dword [ecx + 0x14], 8
jb 0x10037897
mov ecx, dword [ecx]
push edx
push 0x7fe
lea edx, [ebp - 0x1010]
push edx
push 0x100db8d8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x1010]
lea edi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100378c0
sub edx, edi
lea eax, [ebp - 0x1010]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.10002eb0
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1010]
xor eax, eax
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 7
mov word [ebp - 0x102c], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10037950
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x102c]
call fcn.10002eb0
push esi
lea eax, [ebp - 0x102c]
mov dword [ebp - 4], 1
push 0x7c
push eax
call fcn.10016440
add esp, 0xc
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x1018]
cmp edx, 8
jb 0x100379ce
mov ecx, dword [ebp - 0x102c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100379c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10037a0e
push edx
push ecx
call fcn.10088fde
add esp, 8
xor eax, eax
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 7
mov word [ebp - 0x102c], ax
mov byte [ebp - 4], al
mov eax, esi
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.10088f98
mov esp, ebp
pop ebp
ret 8
call fcn.100907c4
int3
Function at 0x10038190
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x100fc03c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
call fcn.1000c090
mov ecx, dword [esi + 0x14]
add esp, 4
test al, al
jne 0x100381e4
cmp ecx, 8
jb 0x100381c2
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x100381ca
mov edi, dword [edi]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10088f98
mov esp, ebp
pop ebp
ret 8
mov eax, esi
cmp ecx, 8
jb 0x100381ed
mov eax, dword [esi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
test eax, eax
je 0x10038226
cmp dword [esi + 0x14], 8
jb 0x10038203
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x1003820b
mov edi, dword [edi]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10088f98
mov esp, ebp
pop ebp
ret 8
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.1008bb90
lea eax, [ebp - 0x804]
push eax
call fcn.1009aec5
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
call ebx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1003825b
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x804]
push ecx
push eax
call ebx
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x10038298
cmp ecx, 8
jb 0x10038279
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x10038281
mov edi, dword [edi]
push esi
push edi
call ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10088f98
mov esp, ebp
pop ebp
ret 8
cmp ecx, 8
jb 0x1003829f
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x100382a7
mov edi, dword [edi]
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.10088f98
mov esp, ebp
pop ebp
ret 8
Function at 0x100382d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bef60
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100fc03c]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x34]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
call fcn.1000ba60
push 0x80
push 4
push 1
push 0x80000000
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.10019850
test al, al
je 0x10038499
mov esi, dword [ebp - 0x34]
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
test esi, esi
je 0x10038371
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10038371
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1003836b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10038371
xor edi, edi
mov edi, ebx
jmp 0x10038374
mov edi, dword [ebp - 0x40]
lea eax, [edi + 1]
push 0x100cbfd4
push eax
call fcn.100899a5
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1003847d
push edi
push 0
push ebx
call fcn.1008bb90
add esp, 0xc
mov dword [ebp - 0x30], 0
test esi, esi
je 0x10038474
cmp dword [esi], 0xffffffff
je 0x10038474
push 0
lea eax, [ebp - 0x30]
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10038474
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100383e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100383e3
mov dword [esi], 0xffffffff
push dword [ebp - 0x30]
mov edx, ebx
lea ecx, [ebp - 0x2c]
call fcn.1001af50
push ebx
mov byte [ebp - 4], 1
call fcn.10088fa9
mov ecx, dword [ebp - 0x38]
mov edx, 0x84
mov eax, 0x34
cmp byte [ecx], 0
cmove eax, edx
add eax, ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1000f2b0
add esp, 0x10
test eax, eax
sete bl
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x1003845b
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10038451
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100384ca
push edx
push ecx
call fcn.10088fde
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], al
jmp 0x1003849b
push ebx
call fcn.10088fa9
add esp, 4
test esi, esi
je 0x10038499
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10038499
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10038499
mov dword [esi], 0xffffffff
xor bl, bl
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.10019810
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.10088f98
mov esp, ebp
pop ebp
ret 8
call fcn.100907c4
int3
Function at 0x10038570
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
push esi
call fcn.1000c090
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 4
test al, al
je 0x100385a0
cmp dword [esi + 0x14], 8
jb 0x10038599
mov esi, dword [esi]
push 4
push 0
push esi
call ebx
mov esi, dword [ebp + 8]
push esi
call fcn.1000c090
add esp, 4
test al, al
je 0x100385bf
cmp dword [esi + 0x14], 8
jb 0x100385b8
mov esi, dword [esi]
push 4
push 0
push esi
call ebx
push edi
call fcn.1000bf00
add esp, 4
test al, al
je 0x100385db
cmp dword [edi + 0x14], 8
jb 0x100385d4
mov edi, dword [edi]
push 4
push 0
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003b100
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100f05c0
push 0x1008ab50
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x100fc03c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], 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, dword [ebp + 0xc]
mov dword [ebp - 0x438], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10002ea0
mov dword [ebp - 0x43c], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x1003b169
mov eax, dword [eax]
lea ecx, [ebp - 0x43c]
push ecx
push eax
call fcn.100030c0
add esp, 8
mov edx, esi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.1003b280
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1003b1b7
test bl, bl
jne 0x1003b254
cmp edi, 0x1a
jne 0x1003b254
mov ecx, esi
call fcn.10002ea0
mov dword [ebp - 0x438], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x1003b1e8
mov eax, dword [eax]
lea ecx, [ebp - 0x438]
push ecx
push eax
call fcn.100030c0
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.1008bb90
add esp, 0x14
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.10003080
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10002eb0
mov ecx, esi
call fcn.10002ca0
movzx ebx, bl
mov ecx, 1
test eax, eax
cmovne ebx, ecx
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 - 0x1c]
xor ecx, ebp
call fcn.10088f98
mov esp, ebp
pop ebp
ret

Function at 0x1003c090
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bfad4
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100fc03c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.10003560
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10003560
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10003560
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10003560
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
mov word [esi + 0x60], 0x101
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.10003560
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003fb80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0598
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100fc03c]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push ecx
push 0xffffffffffffffff
push 0xffff8000
mov ecx, edi
movlpd qword [ebp - 0x3c], xmm0
call fcn.10019a30
test al, al
jne 0x1003fbdf
mov eax, 1
jmp 0x1003fd53
push 0x10000
call fcn.10088fec
add esp, 4
lea ecx, [ebp - 0x30]
mov esi, eax
push 4
call fcn.10021530
push esi
lea ecx, [ebp - 0x30]
call fcn.100339d0
mov dword [ebp - 4], 0
push 0x10000
push 0
push esi
call fcn.1008bb90
mov eax, dword [edi]
add esp, 0xc
mov dword [ebp - 0x18], 0
test eax, eax
je 0x1003fd31
test esi, esi
je 0x1003fd31
cmp dword [eax], 0xffffffff
je 0x1003fd31
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x8000
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003fd31
xor ecx, ecx
mov dword [ebp - 0x24], 0
mov edx, 0x8000
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], edx
lea edi, [esi + 0x8000]
cmp byte [ebx + 0x9c], 0
jne 0x1003fd2a
lea eax, [edi + ecx]
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x34]
push edx
push eax
call fcn.1005e290
test al, al
je 0x1003fd20
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x1003fd00
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x1003fcc1
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx + 0x9c], 0
jne 0x1003fd2a
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], 0xf
ja 0x1003fd19
mov edx, dword [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x28], edx
jne 0x1003fc70
mov ecx, 0x7ffc
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x1003fd12
add esi, 4
add edi, 4
sub ecx, 4
jae 0x1003fce8
mov esi, 4
jmp 0x1003fd42
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x8000
je 0x1003fce3
jmp 0x1003fcd3
mov esi, 5
jmp 0x1003fd42
mov esi, 3
jmp 0x1003fd42
mov eax, dword [ebp - 0x2c]
mov esi, 3
jmp 0x1003fd3c
mov esi, 2
jmp 0x1003fd42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [ebx + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.1000a6d0
mov eax, esi
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.10088f98
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10041f00
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100fc03c]
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 ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.10002ca0
test eax, eax
je 0x10041f5b
cmp byte [ebp + 8], 0
jne 0x10041f62
mov eax, dword [ebx]
test eax, eax
je 0x100420c2
cmp byte [eax + 0xa5], 0
je 0x100420c2
xor al, al
jmp 0x100420d8
mov ecx, esi
call fcn.10002ca0
test eax, eax
je 0x100420c2
push esi
call fcn.1000c090
add esp, 4
test al, al
je 0x10041f8a
push esi
push edi
call fcn.10041b30
jmp 0x100420be
push 0xb
mov ecx, esi
call fcn.10002cb0
push eax
mov ecx, edi
call fcn.10002cb0
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call ebx
test eax, eax
je 0x10041faf
mov al, 1
jmp 0x100420be
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x59], 0
call fcn.10003560
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.1001a330
movzx ecx, byte [ebp - 0x59]
test al, al
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x40]
call fcn.10003560
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.1001a330
test al, al
jne 0x10041ffc
cmp byte [ebp - 0x60], al
je 0x10042038
push 0xb
lea ecx, [ebp - 0x40]
call fcn.10002cb0
push eax
lea ecx, [ebp - 0x58]
call fcn.10002cb0
push eax
call ebx
test eax, eax
je 0x10042038
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10002d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10002d10
mov al, 1
jmp 0x100420be
mov ecx, esi
call fcn.10019bc0
cmp eax, 0xffffffff
je 0x100420a1
push esi
lea ecx, [ebp - 0x28]
call fcn.10002dc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.1001a080
test al, al
je 0x10042095
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10019c60
test al, al
je 0x10042095
mov edx, esi
mov ecx, edi
call fcn.10019c60
lea ecx, [ebp - 0x28]
test al, al
je 0x1004208e
call fcn.10019e70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10002d10
jmp 0x10042016
mov edx, esi
call fcn.10019c60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10002d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10002d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10002d10
xor al, al
test al, al
jne 0x100420d6
push edi
call fcn.1000c090
add esp, 4
test al, al
je 0x100420d6
mov ecx, edi
call fcn.10019e70
mov al, 1
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.10088f98
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1006b810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbff8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100fc03c]
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, edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.10002dc0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1000f690
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.10002ca0
lea ecx, [ebp - 0x28]
cmp eax, 2
jbe 0x1006b93d
call fcn.10002ea0
mov esi, eax
mov ecx, esi
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x1006b880
mov ecx, dword [esi]
cmp word [ecx], 0x5c
jne 0x1006b89a
mov ecx, esi
cmp eax, 8
jb 0x1006b88f
mov ecx, dword [esi]
cmp word [ecx + 2], 0x5c
je 0x1006b9b8
mov ecx, esi
cmp eax, 8
jb 0x1006b8a3
mov ecx, dword [esi]
cmp word [ecx], 0x2f
jne 0x1006b8b9
mov ecx, esi
cmp eax, 8
jb 0x1006b8b2
mov ecx, dword [esi]
cmp word [ecx + 2], 0x2f
je 0x1006b90e
push 0x5c
mov edx, 0x2f
lea ecx, [ebp - 0x28]
call fcn.1000f510
mov eax, dword [esi + 0x14]
add esp, 4
mov ecx, esi
cmp eax, 8
jb 0x1006b8d7
mov ecx, dword [esi]
cmp word [ecx + 2], 0x3a
jne 0x1006b90e
mov ecx, esi
cmp eax, 8
jb 0x1006b8e7
mov ecx, dword [esi]
cmp word [ecx + 4], 0x5c
jne 0x1006b90e
mov ecx, esi
cmp eax, 8
jb 0x1006b8f7
mov ecx, dword [esi]
cmp word [ecx], 0x61
jb 0x1006b90e
cmp eax, 8
jb 0x1006b904
mov esi, dword [esi]
cmp word [esi], 0x7a
jbe 0x1006b999
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002d10
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.10088f98
mov esp, ebp
pop ebp
ret
call fcn.10002ca0
cmp eax, 2
jne 0x1006b90e
lea ecx, [ebp - 0x28]
call fcn.10002ea0
mov edx, eax
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x1006b95b
mov edx, dword [eax]
cmp word [edx + 2], 0x3a
jne 0x1006b90e
mov edx, eax
cmp ecx, 8
jb 0x1006b96b
mov edx, dword [eax]
cmp word [edx], 0x61
jb 0x1006b90e
cmp ecx, 8
jb 0x1006b978
mov eax, dword [eax]
cmp word [eax], 0x7a
ja 0x1006b90e
push 0x100db7c4
call fcn.10003080
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push 0x100db7c4
call fcn.10002ff0
lea ecx, [ebp - 0x28]
call fcn.10002cb0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1006b90e
shr eax, 4
and al, 1
mov byte [edi], al
mov bl, 1
jmp 0x1006b910
Function at 0x10073170
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1007317b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.10073190
Function at 0x100736e0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x63c]
sub esp, 0x63c
push 0xffffffffffffffff
push 0x100c6af0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100fc03c]
xor eax, ebp
mov dword [ebp + 0x638], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x644]
lea ecx, [ebp]
mov ebx, dword [ebp + 0x648]
call fcn.10003560
mov dword [ebp - 4], 0
mov eax, dword [0x100fec64]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 0x100fec64
test eax, eax
je 0x10073752
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, 0x100fec68
call fcn.10002ca0
test eax, eax
je 0x10073799
push 0x100fec68
call fcn.10003210
lea ecx, [ebp]
add esp, 4
cmp ecx, eax
je 0x1007384e
mov ecx, 0x100fec68
call fcn.10002ea0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10073790
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x10073846
push 0x20c
lea eax, [ebp + 0x42c]
push 0
push eax
call fcn.1008bb90
add esp, 0xc
lea eax, [ebp + 0x42c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x100738ea
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x636], ax
lea eax, [ebp + 0x18]
push eax
call fcn.1008bb90
add esp, 0xc
lea eax, [ebp + 0x18]
push 0x208
push eax
lea eax, [ebp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x1007382f
test eax, eax
je 0x1007382f
add eax, eax
cmp eax, 0x412
jae 0x1007393d
xor ecx, ecx
mov word [ebp + eax + 0x18], cx
lea eax, [ebp + 0x18]
push eax
call fcn.10003080
add esp, 4
push eax
lea eax, [ebp + 0x18]
jmp 0x10073845
lea eax, [ebp + 0x42c]
push eax
call fcn.10003080
add esp, 4
push eax
lea eax, [ebp + 0x42c]
push eax
lea ecx, [ebp]
call fcn.10002eb0
mov byte [ebp - 4], 0
mov eax, dword [0x100fec64]
test eax, eax
je 0x10073862
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push edi
lea eax, [ebp]
mov dword [ebp - 0x10], 0
push eax
mov ecx, esi
call fcn.10073670
test al, al
je 0x10073881
mov bl, 1
jmp 0x10073907
push 0x20c
lea eax, [ebp + 0x42c]
push 0
push eax
call fcn.1008bb90
add esp, 0xc
lea eax, [ebp + 0x42c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x10073905
xor eax, eax
mov word [ebp + 0x636], ax
lea eax, [ebp + 0x42c]
push eax
call fcn.10003080
add esp, 4
lea ecx, [ebp]
push eax
lea eax, [ebp + 0x42c]
push eax
call fcn.10002eb0
push ebx
push edi
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.10073670
mov bl, al
jmp 0x10073907
mov byte [ebp - 4], 0
mov eax, dword [0x100fec64]
test eax, eax
je 0x100738fe
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.10002d10
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 + 0x638]
xor ecx, ebp
call fcn.10088f98
lea esp, [ebp + 0x63c]
pop ebp
ret 8
call fcn.100897bc
int3