joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008a810
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b78a8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x10224008]
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
cmp dword [edi + 4], 0
lea esi, [edi + 4]
jne 0x1008aa12
push str.ProtectApi.dll
lea ecx, [ebp - 0x28]
call fcn.10004fc0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.100a92e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.100b51b0
add esp, 4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.10004f10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.10004f10
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1008a95a
mov eax, dword [edi + 8]
test eax, eax
je 0x1008a8bd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 8], ebx
test ebx, ebx
je 0x1008a8d2
push 0x101e1150
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x1008a8d4
xor eax, eax
push esi
push 0x101e0a68
call eax
mov ecx, dword [esi]
add esp, 8
test ecx, ecx
je 0x1008a903
mov eax, dword [ecx]
push 1
mov eax, dword [eax]
call eax
test al, al
je 0x1008a903
mov ecx, dword [esi]
push edi
push 0x101e0abc
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x1008aa03
cmp dword [0x10224efc], 0
je 0x1008aa03
push 0
mov ecx, 0x10224ef8
call fcn.10067230
mov eax, dword [0x10224efc]
cmp byte [eax + 0x54], 0
je 0x1008aa03
cmp dword [eax + 0x58], 4
jb 0x1008aa03
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.10005010
push 0x23
push str.m_protectSdkApiV1_Initialize_Failed
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.100055f0
push 0x119
jmp 0x1008a9b9
cmp dword [0x10224efc], 0
je 0x1008aa03
push 0
mov ecx, 0x10224ef8
call fcn.10067230
mov eax, dword [0x10224efc]
cmp byte [eax + 0x54], 0
je 0x1008aa03
cmp dword [eax + 0x58], 4
jb 0x1008aa03
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.10005010
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push str.Load_ProtectApi.dll_Failed__fullPath_is__s
push eax
call fcn.100b6030
add esp, 0xc
push 0x110
push str.RC::RCProctectSDKHelperImplIner::Initialize
push str.d:jenkinsworkspacepc_2345softmgr_build_softmgrmain_src_softmgrshare_src_rcprotectsdkhelper.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x10224ef8
push eax
push 4
call fcn.10067bd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bl, bl
je 0x1008a9f7
lea eax, [ebp - 0x28]
mov ecx, 0x10224ef8
push eax
call fcn.10067f10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.10004f10
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10004f10
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.1019e7b8
mov esp, ebp
pop ebp
ret
Function at 0x100965f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x10096621
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x10096610
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x100aaac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x1022c2f8], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x1022bff8], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x1022c1f8], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x1022c0f8], al
inc esi
cmp esi, 0x100
jl 0x100aabd0
pop esi
add esp, 0x80
ret

Function at 0x100ac990
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bd738
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10224008]
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 esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x100ac9d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100d0130
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x100ac9fc
add eax, 8
jmp 0x100ac9fe
xor eax, eax
cmp dword [edi + 0x10], 0
je 0x100aca0e
cmp dword [edi + 0x14], 8
jb 0x100aca10
mov edi, dword [edi]
jmp 0x100aca10
xor edi, edi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x100aca31
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100aca31
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100d0300
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.1019e7b8
mov esp, ebp
pop ebp
ret 4
Function at 0x100aca80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bd768
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10224008]
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 esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x100acac3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100d0210
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x100acaed
lea ebx, [eax + 8]
jmp 0x100acaef
xor ebx, ebx
cmp dword [edi + 0x10], 0
je 0x100acb01
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100acb03
mov eax, dword [edi]
jmp 0x100acb03
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
test eax, eax
jne 0x100acb4c
call ecx
cmp eax, 5
jne 0x100acb46
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x10], 0
je 0x100acb38
cmp dword [edi + 0x14], 8
jb 0x100acb3a
mov edi, dword [edi]
jmp 0x100acb3a
xor edi, edi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi]
test eax, eax
je 0x100acb6a
call ecx
cmp eax, 0xb7
jne 0x100acb5f
mov byte [esi + 5], 1
mov ecx, dword [esi]
call fcn.100c8b70
mov eax, dword [esi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100d0300
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.1019e7b8
mov esp, ebp
pop ebp
ret 4
Function at 0x100b2e70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101be010
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10224008]
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 esi, ecx
cmp dword [esi + 0x10], 0
jne 0x100b2eaa
xor al, al
jmp 0x100b3065
call fcn.100b2cd0
test al, al
je 0x100b2eba
mov al, 1
jmp 0x100b3065
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100b2ec4
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call ebx
test eax, eax
jne 0x100b2f17
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100d1680
test al, al
je 0x100b2f08
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005540
mov ecx, esi
call fcn.100b2cd0
test al, al
jne 0x100b2eb3
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100b2ff8
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x100b2f3e
mov eax, dword [esi]
mov edx, 0x2f
cmp dx, word [eax + edi*2]
mov edx, 0x5c
je 0x100b2f61
mov eax, esi
cmp ecx, 8
jb 0x100b2f57
mov eax, dword [esi]
cmp dx, word [eax + edi*2]
jne 0x100b2fee
push edi
push 0
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.1002ab80
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], 0
je 0x100b2fdf
lea ecx, [ebp - 0x40]
call fcn.100b2b00
test al, al
jne 0x100b2fdf
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
jne 0x100b2fdf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.100d1680
test al, al
je 0x100b2fd3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10005540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10005540
inc edi
cmp edi, dword [ebp - 0x44]
jb 0x100b2f32
mov ecx, esi
call fcn.100b2b00
test al, al
jne 0x100b305e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100b300d
mov eax, dword [esi]
push 0
push eax
call ebx
test eax, eax
jne 0x100b305e
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100d1680
test al, al
je 0x100b304f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005540
mov ecx, esi
call fcn.100b2cd0
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.1019e7b8
mov esp, ebp
pop ebp
ret
Function at 0x100b6ad0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101be908
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10224008]
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 esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x100b6b0b
xor al, al
jmp 0x100b6baf
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x100b6b27
mov eax, dword [edi]
test eax, eax
je 0x100b6b27
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x100b6b8c
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x100b63c0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x100b6bcb
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x100b6b84
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.100b6580
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100b6bad
mov eax, dword [edi]
test eax, eax
je 0x100b6ba6
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.1019e7b8
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x100b6be3
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x100b6b6e
mov bl, 1
jmp 0x100b6b8e
Function at 0x100b9de0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bf027
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10224008]
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, ecx
mov esi, dword [ebp + 8]
push 4
call fcn.1019e7c9
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18]
push 2
push 0
push 0x40000000
push esi
push eax
call fcn.100bb780
test al, al
je 0x100b9fab
lea eax, [ebp - 0x5c]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x18]
movlpd qword [ebp - 0x5c], xmm0
call fcn.100c5bb0
test al, al
je 0x100b9e84
cmp dword [ebp - 0x58], 0
ja 0x100b9e7d
cmp dword [ebp - 0x5c], 0
jbe 0x100b9e84
mov bl, 1
jmp 0x100b9fad
push ecx
lea ecx, [ebp - 0x28]
call fcn.1007a960
call fcn.1007f3b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.1007f3b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.1007f3b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.1007f3b0
mov byte [ebp - 4], 5
mov dword [ebp - 0x2c], 0xffffffff
mov byte [ebp - 4], 6
lea esi, [edi + 0x24]
mov ecx, esi
call fcn.1007fa60
mov edx, eax
call fcn.1007fa50
mov ecx, dword [edx]
cmp ecx, dword [eax]
lea ecx, [ebp - 0x50]
jne 0x100b9ee6
call fcn.100b8d10
jmp 0x100b9eec
push esi
call fcn.100bb8b0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x50]
call fcn.100b9a50
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 0
call fcn.1007fa70
mov edx, dword [eax]
call fcn.1007f320
mov esi, dword [ebp - 0x18]
mov edi, eax
test esi, esi
jne 0x100b9f1a
xor bl, bl
jmp 0x100b9f62
test edx, edx
jne 0x100b9f22
xor bl, bl
jmp 0x100b9f4a
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x100b9f2d
xor bl, bl
jmp 0x100b9f4a
push 0
lea ecx, [ebp - 0x1c]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100b9f44
xor bl, bl
jmp 0x100b9f4a
cmp edi, dword [ebp - 0x1c]
sete bl
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100b9f62
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100b9f62
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1007f320
cmp dword [ebp - 0x1c], eax
jne 0x100b9f77
test bl, bl
je 0x100b9f77
mov bl, 1
jmp 0x100b9f79
xor bl, bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
call fcn.1007f330
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x44]
call fcn.1007f330
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.1007f330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1007f330
jmp 0x100b9fb0
xor bl, bl
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100b9fe5
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100b9fd3
test eax, eax
je 0x100b9fd3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.1019e7f9
add esp, 8
mov dword [ebp - 0x18], 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 - 0x14]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 4
Function at 0x100c3ad0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10218ae8
push 0x1019f3c6
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10224008]
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, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10068f30
mov ecx, edi
call fcn.100c3c00
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x100c3b63
test bl, bl
jne 0x100c3bdd
cmp edi, 0x1a
jne 0x100c3bdd
mov ecx, esi
call fcn.10068f30
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100c3bb0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.100055f0
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 - 0x1c]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret
Function at 0x100c5ac0
Capabilities:
Read file on windows

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

Function at 0x100c5b00
Capabilities:
Write file on windows

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

Function at 0x100c5bb0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10224008]
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 0x100c5c13
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100c5c13
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100c5bee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100c5c13
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.1019e7b8
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1019e7b8
add esp, 8
ret 4

Function at 0x100c5d00
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 0x100c5dae
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.100c5c30
test al, al
je 0x100c5dae
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.100c5c30
test al, al
je 0x100c5dae
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x100c5d84
cmp dword [esp + 0x14], edi
jne 0x100c5d84
mov eax, dword [esi]
test eax, eax
jne 0x100c5d71
xor bl, bl
jmp 0x100c5d84
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100c5d6d
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.100c5c30
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
Function at 0x100c6ef0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10224008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x100c6f55
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100c6f30
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100c6f55
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.1019e7b8
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1019e7b8
add esp, 8
ret 4

Function at 0x100c71d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x10224008]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, ecx
push esi
mov dword [ebx], 0
push edi
cmp dword [ebp], 0xffffffff
mov edi, dword [esp + 0x1c]
je 0x100c7265
mov esi, dword [esp + 0x20]
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x100c7265
test ecx, ecx
je 0x100c724e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x100c7210
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1019e7b8
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1019e7b8
add esp, 8
ret 0xc