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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x423e00]
push edi
jae 0x410751
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x423e40]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x410751
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x410627
test dl, 2
jne 0x410627
test dl, 0x48
je 0x4105f1
cmp byte [eax + 5], 0xa
je 0x4105f1
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41063a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x410622
mov dword [0x423814], ecx
jmp 0x410758
cmp eax, 0x6d
jne 0x41062e
xor eax, eax
jmp 0x410765
push eax
call fcn.00410217
pop ecx
jmp 0x410762
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x41074c
test eax, eax
je 0x410661
cmp byte [ebx], 0xa
jne 0x410661
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41066a
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x410746
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x410736
cmp al, 0xd
je 0x41069c
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x410728
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4106b6
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4106b1
add dword [ebp - 8], 2
jmp 0x41070a
mov dword [ebp - 8], eax
jmp 0x410724
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4106de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410724
cmp dword [ebp - 0x10], 0
je 0x410724
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4106ff
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41070a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x410727
cmp ebx, dword [ebp + 0xc]
jne 0x41070f
cmp byte [ebp - 1], 0xa
jne 0x41070f
mov byte [ebx], 0xa
jmp 0x410727
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040c8d4
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x410728
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x410680
jmp 0x410746
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x410746
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x410765
and dword [0x423814], 0
mov dword [0x423810], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411574
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41e280
call fcn.0040bd54
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x423aa0], edi
jne 0x4115b8
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4115a3
mov dword [0x423aa0], ebx
jmp 0x4115b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4115b8
mov dword [0x423aa0], 2
mov eax, dword [0x423aa0]
cmp eax, ebx
jne 0x4115d8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41169b
cmp eax, 2
je 0x4115e1
cmp eax, edi
jne 0x411609
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4115f4
mov eax, dword [0x4239bc]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x411610
xor eax, eax
jmp 0x41169b
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040beb0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x411643
cmp esi, edi
jne 0x411659
push dword [ebp - 0x20]
call fcn.004069c4
pop ecx
mov esi, eax
cmp esi, edi
je 0x411609
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41168c
cmp dword [ebp + 0x14], edi
jne 0x411676
push edi
push edi
jmp 0x41167c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x411698
push esi
call fcn.004083b5
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040bd8f
ret
Function at 0x4116a4
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41e290
call fcn.0040bd54
xor esi, esi
cmp dword [0x423aa4], esi
jne 0x4116e8
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4116d3
mov dword [0x423aa4], edi
jmp 0x4116e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4116e8
mov dword [0x423aa4], 2
mov eax, dword [0x423aa4]
cmp eax, 2
je 0x4117c9
cmp eax, esi
je 0x4117c9
cmp eax, 1
jne 0x41172d
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x411716
mov eax, dword [0x4239bc]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x411734
xor eax, eax
jmp 0x4117db
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0040beb0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x41176a
cmp edi, esi
jne 0x411785
lea eax, [ebx + ebx]
push eax
call fcn.004069c4
pop ecx
mov edi, eax
cmp edi, esi
je 0x41172d
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4117b8
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4117a2
push esi
push esi
jmp 0x4117a8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4117c4
push edi
call fcn.004083b5
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4117db
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0040bd8f
ret
Function at 0x412b83
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 0x412b9c
or eax, 0xffffffff
jmp 0x412bfd
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x412bf9
push 0x3d
push esi
call fcn.00412d83
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x412bf9
cmp esi, eax
je 0x412bf9
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x42383c]
sete cl
cmp eax, dword [0x423840]
mov dword [ebp - 8], ecx
jne 0x412bdf
mov edi, eax
call fcn.00412b22
mov dword [0x42383c], eax
cmp eax, ebx
jne 0x412c38
cmp dword [ebp + 0xc], ebx
je 0x412c01
cmp dword [0x423844], ebx
je 0x412c01
call fcn.004126a5
test eax, eax
je 0x412c38
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x412c0a
xor eax, eax
jmp 0x412bfc
push 4
call fcn.004069c4
cmp eax, ebx
pop ecx
mov dword [0x42383c], eax
je 0x412bf9
mov dword [eax], ebx
cmp dword [0x423844], ebx
jne 0x412c38
push 4
call fcn.004069c4
cmp eax, ebx
pop ecx
mov dword [0x423844], eax
je 0x412bf9
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x42383c]
call fcn.00412ad5
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x412c99
cmp dword [esi], ebx
je 0x412c99
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004083b5
cmp dword [ebp - 8], ebx
pop ecx
jne 0x412c7c
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x412cda
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x412c73
mov eax, edi
shl eax, 2
push eax
push dword [0x42383c]
call fcn.0040cbfe
cmp eax, ebx
pop ecx
pop ecx
je 0x412cda
jmp 0x412cd5
cmp dword [ebp - 8], ebx
jne 0x412d45
cmp edi, ebx
jge 0x412ca8
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x42383c]
call fcn.0040cbfe
cmp eax, ebx
pop ecx
pop ecx
je 0x412bf9
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 [0x42383c], eax
cmp dword [ebp + 0xc], ebx
je 0x412d2f
push dword [ebp - 4]
call fcn.00407160
inc eax
inc eax
push eax
call fcn.004069c4
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x412d2f
push dword [ebp - 4]
push esi
call fcn.0040bf80
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 0x412d28
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004083b5
pop ecx
cmp dword [ebp - 8], ebx
je 0x412d3d
push dword [ebp - 4]
call fcn.004083b5
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x412bfc
push dword [ebp - 4]
call fcn.004083b5
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x412c06
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x100026c0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100eb640
push fcn.1008b040
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc0
mov eax, dword [0x100f2040]
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 dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10002755
xor al, al
jmp 0x100027de
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx], 0xc3
lea edx, [ebp - 0x20]
push edx
push 0x140
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002780
xor al, al
jmp 0x100027de
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push 0x100027cb
jmp eax
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.10089100
mov esp, ebp
pop ebp
ret
Function at 0x10003c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c7ac0
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x100f2040]
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 dword [ebp - 0xb0], edi
mov dword [ebp - 0xb0], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x98
mov ebx, eax
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.1008c200
add esp, 8
lea ecx, [ebp - 0xa8]
call fcn.10009770
mov dword [ebp - 4], 0
xor eax, eax
movaps xmm0, xmmword [0x100e9980]
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xb4], 0x473c68
nop word [eax + eax]
mov cl, byte [ebp + eax - 0xc3]
xor cl, byte [ebp - 0xc4]
mov byte [ebp + eax - 0xc3], cl
inc eax
cmp eax, 0x12
jb 0x10003c90
lea edx, [ebp - 0xc3]
mov byte [ebp - 0xb1], 0
lea ecx, [ebp - 0xa8]
call fcn.10007470
mov esi, eax
push 0
push 8
mov eax, dword [esi]
mov eax, dword [eax + 4]
or dword [eax + esi + 0x14], 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + esi + 0x14], eax
lea eax, [ebp - 0xd8]
push eax
call fcn.10085530
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.100070f0
mov ecx, eax
push ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov byte [eax + ecx + 0x40], 0x30
call fcn.10004710
mov ecx, eax
mov byte [ebp - 0xaa], 0
mov dl, 0x28
mov byte [ebp - 0xaa], 0
mov al, 0x75
mov byte [ebp - 0xac], dl
xor al, dl
lea edx, [ebp - 0xab]
mov byte [ebp - 0xab], al
call fcn.10007470
push edi
lea ecx, [ebp - 0xa8]
call fcn.10006fe0
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xac], eax
lea ecx, [ebp - 0xa4]
call fcn.10009650
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax + 4]
lea ecx, [edx - 8]
mov dword [ebp + edx - 0xac], ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.10084eb0
add esp, 4
mov eax, edi
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.10089100
mov esp, ebp
pop ebp
ret
Function at 0x10012ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100f2040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
cmp eax, 9
ja case.0x10012ad4.0
jmp dword [eax*4 + 0x10012c68]
push 0
lea eax, [ebp - 8]
push eax
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089100
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 8]
push eax
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089100
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0x100e10e4
mov ecx, esi
call fcn.10006e70
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x10012bbf
push ecx
push eax
mov ecx, esi
call fcn.10014590
cmp dword [esi + 0x18], 0xf
lea eax, [esi + 4]
jbe 0x10012b66
mov eax, dword [eax]
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089100
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 8]
push eax
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089100
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 8]
push eax
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089100
mov esp, ebp
pop ebp
ret 0xc
push 0x91
push str.C:UsersMONSTERDesktopDreamSoft_v1924DreamSoftN3BaseN3TableBase.hpp
push 0x100e10e4
sub esp, 0x1c
xorps xmm0, xmm0
mov ecx, esp
push 0x13
mov dword [ecx], 0
movups xmmword [ecx + 4], xmm0
push str.ERROR____s_n_s:__d_n_n
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
call fcn.10003370
lea eax, [ebp - 0x28]
push eax
call fcn.1000d650
add esp, 0x2c
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 0xf
cmova eax, dword [ebp - 0x24]
push 0
push str._ASSERTT_n
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x28]
call fcn.10002f50
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x28], 0
call fcn.100891b0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor al, al
pop edi
pop esi
call fcn.10089100
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10012aff
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100f2040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
cmp eax, 9
ja case.0x10012ad4.0
jmp dword [eax*4 + 0x10012c68]
push 0
lea eax, [ebp - 8]
push eax
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089100
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 8]
push eax
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089100
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0x100e10e4
mov ecx, esi
call fcn.10006e70
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x10012bbf
push ecx
push eax
mov ecx, esi
call fcn.10014590
cmp dword [esi + 0x18], 0xf
lea eax, [esi + 4]
jbe 0x10012b66
mov eax, dword [eax]
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089100
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 8]
push eax
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089100
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 8]
push eax
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089100
mov esp, ebp
pop ebp
ret 0xc
push 0x91
push str.C:UsersMONSTERDesktopDreamSoft_v1924DreamSoftN3BaseN3TableBase.hpp
push 0x100e10e4
sub esp, 0x1c
xorps xmm0, xmm0
mov ecx, esp
push 0x13
mov dword [ecx], 0
movups xmmword [ecx + 4], xmm0
push str.ERROR____s_n_s:__d_n_n
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
call fcn.10003370
lea eax, [ebp - 0x28]
push eax
call fcn.1000d650
add esp, 0x2c
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 0xf
cmova eax, dword [ebp - 0x24]
push 0
push str._ASSERTT_n
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x28]
call fcn.10002f50
mov eax, dword [ebp - 0x28]
push 8
push eax
mov dword [ebp - 0x28], 0
call fcn.100891b0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor al, al
pop edi
pop esi
call fcn.10089100
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100187e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8fad
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x100f2040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x154], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x154]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1001890c
sub esp, 0x1c
lea ecx, [ebp - 0x130]
mov edx, esp
lea edi, [ecx + 1]
xorps xmm0, xmm0
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018870
sub ecx, edi
lea eax, [ebp - 0x130]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea ecx, [ebp - 0x2c]
call fcn.100184a0
add esp, 0x1c
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0x20], 0xf
lea eax, [ebp - 0x28]
cmova ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x14], 0xf
cmova eax, dword [ebp - 0x28]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100188d0
test dl, dl
je 0x100188cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100188d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100188b0
xor eax, eax
jmp 0x100188d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001894f
lea ecx, [ebp - 0x2c]
call fcn.10002f50
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.100891b0
add esp, 8
lea eax, [ebp - 0x154]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10018840
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp + 8]
call fcn.10002f50
mov ecx, dword [ebp + 8]
push 8
push ecx
mov dword [ebp + 8], 0
call fcn.100891b0
add esp, 8
mov eax, esi
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.10089100
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14c]
lea ecx, [ebp - 0x2c]
call fcn.10002f50
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.100891b0
add esp, 8
jmp 0x10018915