joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008a9fb
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x1008aa14
or eax, 0xffffffff
jmp 0x1008aa75
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1008aa71
push 0x3d
push esi
call fcn.1008abfb
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1008aa71
cmp esi, eax
je 0x1008aa71
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x100c5124]
sete cl
cmp eax, dword [0x100c5128]
mov dword [ebp - 8], ecx
jne 0x1008aa57
mov edi, eax
call fcn.1008a99a
mov dword [0x100c5124], eax
cmp eax, ebx
jne 0x1008aab0
cmp dword [ebp + 0xc], ebx
je 0x1008aa79
cmp dword [0x100c512c], ebx
je 0x1008aa79
call fcn.1008a44c
test eax, eax
je 0x1008aab0
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x1008aa82
xor eax, eax
jmp 0x1008aa74
push 4
call fcn.1001c5e0
cmp eax, ebx
pop ecx
mov dword [0x100c5124], eax
je 0x1008aa71
mov dword [eax], ebx
cmp dword [0x100c512c], ebx
jne 0x1008aab0
push 4
call fcn.1001c5e0
cmp eax, ebx
pop ecx
mov dword [0x100c512c], eax
je 0x1008aa71
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x100c5124]
call fcn.1008a94d
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x1008ab11
cmp dword [esi], ebx
je 0x1008ab11
lea esi, [esi + edi*4]
push dword [esi]
call fcn.1004c3f0
cmp dword [ebp - 8], ebx
pop ecx
jne 0x1008aaf4
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1008ab52
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x1008aaeb
mov eax, edi
shl eax, 2
push eax
push dword [0x100c5124]
call fcn.1001c640
cmp eax, ebx
pop ecx
pop ecx
je 0x1008ab52
jmp 0x1008ab4d
cmp dword [ebp - 8], ebx
jne 0x1008abbd
cmp edi, ebx
jge 0x1008ab20
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x100c5124]
call fcn.1001c640
cmp eax, ebx
pop ecx
pop ecx
je 0x1008aa71
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x100c5124], eax
cmp dword [ebp + 0xc], ebx
je 0x1008aba7
push dword [ebp - 4]
call fcn.10079680
inc eax
inc eax
push eax
call fcn.1001c5e0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1008aba7
push dword [ebp - 4]
push esi
call fcn.1007bb50
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1008aba0
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.1004c3f0
pop ecx
cmp dword [ebp - 8], ebx
je 0x1008abb5
push dword [ebp - 4]
call fcn.1004c3f0
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x1008aa74
push dword [ebp - 4]
call fcn.1004c3f0
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x1008aa7e
Function at 0x10005d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100927b2
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x100bf594]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x820], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x81c]
push eax
push 0x20219
push 0
push str.SOFTWAREAI_Process_Optimization
push 0x80000002
mov dword [ebp - 0x820], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005e91
cmp dword [ebp - 0x81c], eax
je 0x10005e91
push 0x802
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.10064210
add esp, 0xc
mov dword [ebp - 0x818], 0x800
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
push 0xffff
push 0x1009a828
push 0
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10005e91
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005e73
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10007da0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c1b4
mov esp, ebp
pop ebp
ret

Function at 0x10006220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10006279
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10006279
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000626a
cmp esi, edx
jae 0x10006279
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10006258
cmp esi, edx
jae 0x10006279
cmp word [esi], 0
je 0x10006279
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10006c70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092860
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100bf594]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1002be13
mov edi, eax
add esp, 4
test edi, edi
je 0x10006d22
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1001dede
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000c760
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092ed9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100bf594]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], eax
mov dword [esi], vtable.MainWnd.0
xor eax, eax
mov dword [esi + 0x24], 0
mov byte [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 7
mov dword [ebp - 4], 0
mov word [esi + 0x30], ax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 7
mov word [esi + 0x48], ax
mov al, byte [ebp + 8]
lea ecx, [esi + 0x64]
mov byte [esi + 0x60], al
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
push 8
push str.proc_opt
mov byte [ebp - 4], 3
call fcn.10007da0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e0d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093222
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100bf594]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x424], 0x104
call fcn.10064210
add esp, 0xc
mov dword [ebp - 0x428], 1
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x428]
push eax
push str.local_m2
push str.SOFTWAREComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1000e1ae
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000e190
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10007da0
cmp dword [esi + 0x10], 0
jne 0x1000e22a
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10064210
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.100452b0
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000e1e4
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10007da0
cmp dword [esi + 0x14], 8
mov eax, esi
mov ecx, dword [esi + 0x10]
jb 0x1000e20f
mov eax, dword [esi]
add ecx, ecx
push ecx
push eax
push 1
push str.local_m2
push str.SOFTWAREComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c1b4
mov esp, ebp
pop ebp
ret
Function at 0x1001bc00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094356
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100bf594]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.10064210
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x1001bcbc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x1001bcbc
call fcn.10018f80
mov esi, eax
jmp 0x1001bda9
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1001bcdf
call fcn.10018f80
jmp 0x1001bd9c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x1001bcfd
call fcn.10018f80
jmp 0x1001bd9c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001bd1e
mov esi, 0x8007000e
jmp 0x1001bd9e
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.10018e50
jmp 0x1001bd48
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x1001bd5f
mov esi, 0x8007000e
jmp 0x1001bd9e
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1001bd7f
call fcn.10018f80
jmp 0x1001bd9c
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.1001ba60
mov esi, eax
test edi, edi
je 0x1001bda9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x1001bdc2
lea ecx, [ebp - 0x420]
call fcn.10019ab0
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.1002c1b4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001c740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009440b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x100bf594]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 8], 0
jne 0x1001c840
mov ecx, esi
call fcn.1001a570
test al, al
jne 0x1001c85f
call fcn.1002a280
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001c840
push 0x5d
push str.d:jenkins.jenkinsworkspacegroup_cleanproc_opt_2proc_optproc_opt_srcproc_opt_client.cc
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.10007ca0
push 3
push 0x1009a714
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.10007ca0
mov byte [ebp - 4], 1
call fcn.1002a280
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0x45
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10004310
mov esi, eax
push str.can_not_init_Statistic_or_Network
push esi
mov byte [ebp - 4], 2
call fcn.100052d0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.10005560
lea ecx, [ebp - 0x2c]
call fcn.10004ce0
lea ecx, [ebp - 0x44]
call fcn.10004ce0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c1b4
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push esi
push 0x1001cc10
push 0
push 0
call fcn.10070db0
mov dword [esi + 8], eax
add esp, 0x18
mov eax, 1
jmp 0x1001c842

Function at 0x100232f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x100bf594]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x10023313
test eax, eax
jne 0x100233c8
mov eax, dword [0x100be51c]
cmp eax, 0xffffffff
je 0x100233c8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x100233c7
mov eax, dword [0x100be51c]
mov ecx, 0x100
push esi
push edi
mov esi, ebx
mov dword [ebp - 0x408], eax
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x404]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.1002c5f6
add esp, 4
mov edi, 0x100
nop dword [eax + eax]
mov esi, dword [0x100c3920]
xor dl, dl
test esi, esi
jle 0x100233ae
nop dword [eax]
mov ecx, dword [ebp + esi*4 - 0x404]
test ecx, ecx
je 0x100233a9
mov eax, dword [esi*4 + 0x100c3928]
test eax, eax
je 0x100233a9
push ecx
mov dword [ebp + esi*4 - 0x404], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x10023380
dec edi
test edi, edi
jle 0x100233b7
test dl, dl
jne 0x10023370
push 0
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002c1b4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100252e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094a60
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x100bf594]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1002be13
mov edi, eax
add esp, 4
test edi, edi
je 0x1002538a
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1001dede
add esp, 4
mov dword [edi + 4], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1002538c
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, esi
push 0x20
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
call fcn.10025bd0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x100253c1
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x100253e3
cmp byte [ebp + 0xc], 0
je 0x100253d0
push esi
call fcn.1001e3df
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x100253ef
mov esi, str.ios_base::badbit_set
jmp 0x100253ff
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10008e60
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.10004830
push 0x100b4b60
lea eax, [ebp - 0x28]
push eax
call fcn.100632f6
int3
Function at 0x10028cf0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094ccf
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100bf594]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.10005eb0
mov ecx, eax
test ecx, ecx
je 0x10028ea4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.10005eb0
mov ecx, eax
test ecx, ecx
je 0x10028eae
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.10005eb0
mov ecx, eax
test ecx, ecx
je 0x10028eb8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 4
mov dword [esi + 0x10], eax
test edx, edx
jne 0x10028dc8
xor ecx, ecx
jmp 0x10028de0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028dd0
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.100060e0
push edi
mov ecx, ebx
call fcn.1000d020
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10028dfc
xor ecx, ecx
jmp 0x10028e14
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028e04
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.100060e0
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.10029e10
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.1000d020
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028e55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x10028e8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10028e8e
cmp dword [esi + 0x10], 0
je 0x10028e85
push dword [edi]
call fcn.10075747
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10005b70
push 0x80004005
call fcn.10005b70
push 0x80004005
call fcn.10005b70
int3
Function at 0x10029bb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094e08
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100bf594]
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 [ebp + 8]
test edi, edi
je 0x10029d11
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.__set_log_lev0
push edi
call ebx
test eax, eax
je 0x10029c08
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 4]
jmp 0x10029d11
push str.__set_log_lev1
push edi
call ebx
test eax, eax
je 0x10029c22
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
jmp 0x10029d11
push str.__set_log_lev2
push edi
call ebx
test eax, eax
je 0x10029c3c
mov eax, dword [esi]
mov ecx, esi
push 2
call dword [eax + 4]
jmp 0x10029d11
push str.__set_log_lev3
push edi
call ebx
test eax, eax
je 0x10029c56
mov eax, dword [esi]
mov ecx, esi
push 3
call dword [eax + 4]
jmp 0x10029d11
push str.__reload_log_switch
push edi
call ebx
test eax, eax
je 0x10029d11
push 3
mov ecx, esi
call fcn.10029b70
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.100040c0
push 0x100a2500
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.1002b660
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10029cae
push 0
mov ecx, esi
call fcn.10029b70
lea eax, [esi + 0x2c]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10029cbf
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x44], 0
mov byte [ebp - 4], 1
je 0x10029d01
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x10029d01
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
call eax
test al, al
je 0x10029d01
push str._______log_reload_switch
lea ecx, [ebp - 0x44]
call fcn.100042b0
mov ecx, dword [esi + 0x44]
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x44]
call fcn.10004d30
lea ecx, [ebp - 0x2c]
call fcn.10028f70
lea ecx, [ebp - 0x28]
call fcn.10004d30
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.1002c1b4
mov esp, ebp
pop ebp
ret 4
Function at 0x10031fb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.1002c800
mov eax, dword [0x100bf594]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x20]
test esi, esi
je 0x10032135
cmp word [esi], 0
je 0x10032135
cmp dword [ebp + 0x14], 0
je 0x10031ffc
push esi
call fcn.1004a790
add esp, 4
test eax, eax
je 0x10032135
xorps xmm0, xmm0
mov dword [ebp - 0x1058], 0x44
lea eax, [ebp - 0x1058]
movlpd qword [ebp - 0x1054], xmm0
push eax
movlpd qword [ebp - 0x104c], xmm0
movlpd qword [ebp - 0x1044], xmm0
movlpd qword [ebp - 0x103c], xmm0
movlpd qword [ebp - 0x1034], xmm0
movlpd qword [ebp - 0x102c], xmm0
movlpd qword [ebp - 0x1024], xmm0
movlpd qword [ebp - 0x101c], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ax, word [ebp + 0x10]
xorps xmm0, xmm0
push 0x1000
mov word [ebp - 0x1028], ax
lea eax, [ebp - 0x1004]
push 0
push eax
mov dword [ebp - 0x102c], 1
movups xmmword [ebp - 0x1014], xmm0
call fcn.10064210
add esp, 0xc
lea eax, [ebp - 0x1004]
test ebx, ebx
je 0x100320a7
push ebx
push esi
push str.__s___s
push eax
call fcn.10031f80
add esp, 0x10
jmp 0x100320b6
push esi
push str.__s_
push eax
call fcn.10031f80
add esp, 0xc
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1058]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
je 0x10032122
cmp dword [ebp + 0x18], 0
je 0x100320fa
push dword [ebp + 0x1c]
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x1003210c
push dword [edi]
push dword [ebp - 0x1014]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x1010]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1014]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002c1b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002c1b4
mov esp, ebp
pop ebp
ret