joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100eb1b2
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 0x100eb24f
push ebx
push esi
call fcn.100eb17b
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.100e8898
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100eb1fc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100eb24e
push edi
push eax
call fcn.100e4e5a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100eb21c
call fcn.100e4ea8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100eb24d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100e8898
add esp, 0x20
test eax, eax
jne 0x100eb23b
push edi
call fcn.100e4ea8
jmp 0x100eb243
push ebx
call fcn.100e4ea8
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 0x100eb252
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100eb263
pop esi
ret
push ebx
push edi
push esi
call fcn.100eb17b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100e4e5a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100eb28b
push ebx
push esi
push edi
call fcn.100d49a0
add esp, 0xc
push 0
call fcn.100e4ea8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100eb65b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100eb2a0
Function at 0x100f0b81
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100f0afd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100f0cf0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100f0cf0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100f0ca5
jg 0x100f0bdd
test eax, eax
je 0x100f0c9b
push 1
push 0x1000
call fcn.100e660c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100f0c00
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100f0c92
push 0x8000
push ebx
call fcn.100f0a2e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100f0c29
jg 0x100f0c24
cmp ecx, 0x1000
jb 0x100f0c29
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100ed195
add esp, 0x10
cmp eax, 0xffffffff
je 0x100f0c6e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100f0c24
jl 0x100f0c55
test ecx, ecx
jne 0x100f0c16
push dword [ebp - 0xc]
push ebx
call fcn.100f0a2e
push esi
call fcn.100e4ea8
add esp, 0xc
xor ebx, ebx
jmp 0x100f0cfe
cmp byte [edi + 0x24], 0
je 0x100f0c85
cmp dword [edi + 0x20], 5
jne 0x100f0c85
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100f0c90
mov ebx, dword [edi + 0x18]
jmp 0x100f0c92
xor ebx, ebx
push esi
call fcn.100e4ea8
pop ecx
jmp 0x100f0cfe
test ecx, ecx
jg 0x100f0c67
jl 0x100f0ca5
test eax, eax
jae 0x100f0c67
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100edcfa
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100f0cc5
cmp byte [edi + 0x1c], 0
je 0x100f0c67
jmp 0x100f0cf6
push ebx
call fcn.100ec722
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100f0c67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100f0cfe
cmp byte [edi + 0x1c], 0
je 0x100f0cfb
mov ebx, dword [edi + 0x18]
jmp 0x100f0cfe
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100edcfa
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100f3340
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100f336d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100f336d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x44ac52
Capabilities:
Create pipe
Get thread local storage value
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1404
call fcn.0045bbc0
mov eax, dword [0x497784]
mov ecx, dword [0x497210]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x44ad47
mov edi, ecx
mov ebx, eax
cmp dword [0x497784], 0x959
jne 0x44ad37
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x449810
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
lea eax, [ebp - 0x1400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [ebp - 0x400]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
lea eax, [ebp - 0x800]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x449834
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
call fcn.0044aa13
add edi, 8
dec ebx
jne 0x44ac7e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44adc6
Capabilities:
Get common file path
Get disk size
Get file attributes
Get hostname
Set environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10cc
call fcn.0045bbc0
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
Function at 0x44c2d8
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x46018d
call fcn.00460000
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4499bc
call fcn.0044cf42
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.0044e138
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x44c320
call fcn.0044ce1a
mov dword [ebx], eax
call fcn.0044cbd9
mov ecx, eax
call fcn.0044a651
mov eax, ebx
jmp 0x44c322
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], 0x449a14
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x44ebbf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x462600]
jne 0x44ebc9
repz ret
jmp fcn.0045457c
Function at 0x45b28c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x462600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004530e8
and dword [ebp - 0x14], 0
cmp dword [0x469174], 0
mov dword [ebp - 0x18], eax
jne 0x45b33f
push 0x405c60
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45b3e7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x405c54
push ebx
call edi
test eax, eax
je 0x45b3e7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x405c44
push ebx
mov dword [0x469174], eax
call edi
push eax
call esi
push 0x405c30
push ebx
mov dword [0x469178], eax
call edi
push eax
call esi
push 0x405c14
push ebx
mov dword [0x46917c], eax
call edi
push eax
call esi
mov dword [0x469184], eax
test eax, eax
je 0x45b33f
push 0x405bfc
push ebx
call edi
push eax
call esi
mov dword [0x469180], eax
mov eax, dword [0x469180]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45b398
cmp dword [0x469184], ecx
je 0x45b398
push eax
call esi
push dword [0x469184]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45b398
test ebx, ebx
je 0x45b398
call edi
test eax, eax
je 0x45b38f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45b38f
test byte [ebp - 8], 1
jne 0x45b398
or dword [ebp + 0x10], 0x200000
jmp 0x45b3cb
mov eax, dword [0x469178]
cmp eax, dword [ebp - 0x18]
je 0x45b3cb
push eax
call esi
test eax, eax
je 0x45b3cb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45b3cb
mov eax, dword [0x46917c]
cmp eax, dword [ebp - 0x18]
je 0x45b3cb
push eax
call esi
test eax, eax
je 0x45b3cb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x469174]
call esi
test eax, eax
je 0x45b3e7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45b3e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ebbf
leave
ret
Function at 0xd9f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d9f1a8
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 0xd9f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9f06a
add dl, dl
jne 0xd9f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9f0dc
xor eax, eax
add dl, dl
jne 0xd9f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9f17d
add dl, dl
jne 0xd9f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd9f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd9f075
mov eax, 1
add dl, dl
jne 0xd9f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9f0e1
sub eax, ebx
mov ebx, 1
jne 0xd9f128
mov ecx, 1
add dl, dl
jne 0xd9f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd9f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd9f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd9f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9f136
cmp eax, 0x7d00
jae 0xd9f16d
cmp eax, 0x500
jb 0xd9f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9f075
cmp eax, 0x7f
ja 0xd9f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd9f19e
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 0xd9f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10002962
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x42c
mov eax, 0x100546b6
call fcn.1003313e
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
push 0x60
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x100029df
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x100029df
call fcn.10001f94
mov edi, eax
jmp 0x10002af6
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10002a02
call fcn.10001f94
jmp 0x10002ae9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x100029f8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x420], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x10002a35
mov edi, 0x8007000e
jmp 0x10002aeb
push 2
pop ecx
mov byte [ebp - 4], cl
mul ecx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], edx
cmp edx, ebx
ja 0x10002b20
cmp eax, 0xffffffff
ja 0x10002b20
cmp eax, 0x400
jbe 0x10002a6f
push eax
lea ecx, [ebp - 0x418]
call fcn.100050ac
jmp 0x10002a7b
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x10002a9f
cmp dword [ebp - 0x418], 0
je 0x10002a2b
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100029f8
xor edx, edx
mov eax, dword [ebp - 0x418]
mov word [eax + ecx*2], dx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.100035ca
mov edi, eax
test esi, esi
je 0x10002af6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10002b12
lea ecx, [ebp - 0x418]
call fcn.100050a3
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.1003308b
ret 0x10
push 0x80070216
call fcn.10001f3d
int3
Function at 0x100059d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10054be8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10076098]
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 0x10005a13
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.100161a0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x10005a3c
lea eax, [esi + 8]
jmp 0x10005a3e
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x10005a4e
cmp dword [ebx + 0x14], 8
jb 0x10005a50
mov ebx, dword [ebx]
jmp 0x10005a50
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x10005a71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10005a71
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10005a9a
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 0x10005aaf
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.100325d8
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.100325c7
mov esp, ebp
pop ebp
ret 4
Function at 0x10005af0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10054c18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10076098]
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 0x10005b33
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.10016400
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x10005b5d
lea ecx, [esi + 8]
jmp 0x10005b5f
xor ecx, ecx
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x18], ecx
je 0x10005b74
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x10005b76
mov eax, dword [ebx]
jmp 0x10005b76
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 0x10005bc1
call ecx
cmp eax, 5
jne 0x10005bbb
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x10], 0
je 0x10005bab
cmp dword [ebx + 0x14], 8
jb 0x10005bad
mov ebx, dword [ebx]
jmp 0x10005bad
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 0x10005bdf
call ecx
cmp eax, 0xb7
jne 0x10005bd4
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.10014c90
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10005c05
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 0x10005c1a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.100325d8
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.100325c7
mov esp, ebp
pop ebp
ret 4
Function at 0x10010b90
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
jmp 0x10017780
sub esp, 0x214
mov eax, dword [0x10076098]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x20c
lea eax, [esp + 0xc]
mov edi, ecx
push 0
push eax
call fcn.10034760
add esp, 0xc
lea eax, [esp + 8]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x10017922
push ebx
xor eax, eax
push ebp
mov word [esp + 0x21a], ax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.1003d469
mov ecx, dword [edi + 0x14]
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ecx
cmp ebp, ecx
ja 0x1001781b
mov ebx, edi
cmp ecx, 8
jb 0x100177f7
mov ebx, dword [edi]
lea esi, [ebp*2]
mov dword [edi + 0x10], ebp
push esi
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.100341b0
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x10017907
cmp ebp, 0x7ffffffe
ja 0x1001793a
mov esi, ebp
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1001783b
mov esi, SysReAllocString
jmp 0x10017859
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x10017851
mov esi, SysReAllocString
jmp 0x10017859
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1001786b
or ecx, 0xffffffff
jmp 0x10017873
cmp ecx, 0x1000
jb 0x1001789a
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.100325e6
add esp, 4
test eax, eax
je 0x1001793f
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x100178ad
test ecx, ecx
je 0x100178ab
push ecx
call fcn.100325e6
add esp, 4
mov ebx, eax
jmp 0x100178ad
xor ebx, ebx
mov dword [edi + 0x14], esi
lea eax, [esp + 0x14]
lea esi, [ebp*2]
mov dword [edi + 0x10], ebp
push esi
push eax
push ebx
call fcn.10033c30
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov eax, dword [esp + 0x10]
cmp eax, 8
jb 0x10017905
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x100178fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001793f
mov eax, edx
push ecx
push eax
call fcn.100325d8
add esp, 8
mov dword [edi], ebx
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.100325c7
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
xor al, al
pop edi
xor ecx, esp
call fcn.100325c7
add esp, 0x214
ret
call fcn.10001ab0
call fcn.1003d419
int3

Function at 0x10010bb0
Capabilities:
Delete file

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.10017b80
Function at 0x10012930
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x10012968
mov edx, dword [esp + 4]
test edx, edx
je 0x10012968
cmp dword [eax], 0xffffffff
je 0x10012968
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 0x10012968
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x10012970
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x100129aa
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x100129aa
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100129aa
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 0x100129aa
cmp edi, dword [esi]
jne 0x100129aa
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x10012a50
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x10012afe
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.100129c0
test al, al
je 0x10012afe
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.100129c0
test al, al
je 0x10012afe
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x10012ad4
cmp dword [esp + 0x14], edi
jne 0x10012ad4
mov eax, dword [esi]
test eax, eax
jne 0x10012ac1
xor bl, bl
jmp 0x10012ad4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10012abd
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.100129c0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8