joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419b15
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0
push edi
mov dword [esi + 8], edi
mov byte [esi + 0x1e], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.00419aae
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push edi
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x419b7c
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0x10], edi
jne 0x419bfe
cmp dword [ebp + 0xc], edi
je 0x419c14
cmp dword [esi + 0x18], edi
jne 0x419c14
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x419c14
push eax
mov ecx, esi
call fcn.004194da
mov esi, eax
cmp esi, edi
je 0x419c14
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0041a572
pop ecx
jmp 0x419c14
cmp eax, edi
je 0x419c14
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x419c1b
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x42b198
push 1
xor ebx, ebx
push ebx
push 0x42b258
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x419cec
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x42b248
push eax
call dword [ecx]
test eax, eax
jl 0x419ce3
cmp byte [ebp + 8], bl
je 0x419c6e
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x419c8b
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x419c9d
push 0x42a73c
jmp 0x419ca0
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x419cb5
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x419cc6
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x419cda
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x419d06
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x41e74e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430298]
jne 0x41e758
repz ret
jmp fcn.00423ef4
Function at 0x425785
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.0041e7cf
and dword [ebp - 4], 0
cmp dword [0x4501f0], 0
mov ebx, eax
jne 0x425836
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4258e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4258e7
push eax
call fcn.0041e75d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4501f0], eax
call esi
push eax
call fcn.0041e75d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4501f4], eax
call esi
push eax
call fcn.0041e75d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4501f8], eax
call esi
push eax
call fcn.0041e75d
pop ecx
mov dword [0x450200], eax
test eax, eax
je 0x425836
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e75d
pop ecx
mov dword [0x4501fc], eax
mov eax, dword [0x4501fc]
cmp eax, ebx
je 0x42588e
cmp dword [0x450200], ebx
je 0x42588e
push eax
call fcn.0041e7d8
push dword [0x450200]
mov esi, eax
call fcn.0041e7d8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42588e
test edi, edi
je 0x42588e
call esi
test eax, eax
je 0x425885
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x425885
test byte [ebp - 0xc], 1
jne 0x42588e
or dword [ebp + 0x10], 0x200000
jmp 0x4258c7
mov eax, dword [0x4501f4]
cmp eax, ebx
je 0x4258c7
push eax
call fcn.0041e7d8
pop ecx
test eax, eax
je 0x4258c7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4258c7
mov eax, dword [0x4501f8]
cmp eax, ebx
je 0x4258c7
push eax
call fcn.0041e7d8
pop ecx
test eax, eax
je 0x4258c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4501f0]
call fcn.0041e7d8
pop ecx
test eax, eax
je 0x4258e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4258e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x5e851722
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4abf6937
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x10009c40
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x10009d33
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x10009ccd
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10009ccd
test esi, esi
je 0x10009ccd
mov ebx, dword [0x10082308]
lea ecx, [esp + 0x10]
mov esi, dword [0x1008230c]
add ebx, 0x2a05f200
adc esi, 1
call fcn.100089f0
cmp esi, dword [eax + 4]
jg 0x10009ccd
jl 0x10009c9d
cmp ebx, dword [eax]
jae 0x10009ccd
xor edx, edx
push 0x10070127
push 0x10070127
lea ecx, [edx + 0xb]
call fcn.100191e0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.100089f0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0x10082308], ecx
mov dword [0x1008230c], eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10009d33
mov edi, dword [0x10082308]
lea ecx, [esp + 0x10]
mov esi, dword [0x1008230c]
add edi, 0x2a05f200
adc esi, 1
call fcn.100089f0
cmp esi, dword [eax + 4]
jg 0x10009d33
jl 0x10009d03
cmp edi, dword [eax]
jae 0x10009d33
xor edx, edx
push 0x10070127
push 0x10070127
lea ecx, [edx + 0xb]
call fcn.100191e0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.100089f0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0x10082308], ecx
mov dword [0x1008230c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f9e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x1000fac6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x1000fab5
jg 0x1000fa20
test edx, edx
je 0x1000fab5
nop dword [eax]
call fcn.1000dde0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000fa74
jg 0x1000fa37
test esi, esi
je 0x1000fa74
cmp ebx, eax
jg 0x1000fa47
jl 0x1000fa41
cmp edi, esi
jae 0x1000fa47
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.1003ac40
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x1000fa99
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x1000faaf
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x1000fa20
jl 0x1000faaf
test edi, edi
jne 0x1000fa20
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000fae8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x1000faea
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x1000fb68
jg 0x1000fafd
test esi, esi
je 0x1000fb68
test eax, eax
jl 0x1000fb4c
jg 0x1000fb07
test ebx, ebx
je 0x1000fb4c
cmp edi, eax
jg 0x1000fb17
jl 0x1000fb11
cmp esi, ebx
jae 0x1000fb17
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.1003ac40
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x1000fb68
jg 0x1000fb4f
test esi, esi
je 0x1000fb68
jmp 0x1000fb4f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x1000fb68
push eax
push esi
push 1
push edx
call fcn.10042639
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100100c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1007e064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100100f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039070
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1001012c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1001012c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039070
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10010214
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10010154
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10010187
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.10041be2
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039070
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x100101e7
sub eax, 1
je 0x100101e7
sub eax, 2
jne 0x10010214
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.10041be2
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039070
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10010204
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10042639
add esp, 0x10
cmp edi, eax
jne 0x10010214
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10010117
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039070
mov esp, ebp
pop ebp
ret 4
Function at 0x10010ad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1007e064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10010b8a
cmp byte [esi + 0x3d], 0
je 0x10010b8a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10010b78
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10010b40
sub eax, 1
je 0x10010b44
sub eax, 2
jne 0x10010b78
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039070
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10010b61
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10042639
add esp, 0x10
cmp edi, eax
jne 0x10010b78
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039070
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039070
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10039070
mov esp, ebp
pop ebp
ret

Function at 0x10011030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061640
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1007e064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10039268
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10024e6d
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100125f0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x1001261a
push 0x62
push str.C:UsersERRORDesktopFinalTestTestDiscordSDK_srcconnection_win.cpp
push str.data
call fcn.1004378f
add esp, 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
test esi, esi
jne 0x1001263b
push 0x67
push str.C:UsersERRORDesktopFinalTestTestDiscordSDK_srcconnection_win.cpp
push str.self
call fcn.1004378f
add esp, 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
push edi
cmp eax, 0xffffffff
je 0x100126bf
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x100126ac
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 4], edi
jb 0x100126bf
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x100126ac
cmp edi, dword [ebp + 0xc]
je 0x100126a2
push 0x74
push str.C:UsersERRORDesktopFinalTestTestDiscordSDK_srcconnection_win.cpp
push str.bytesToRead__bytesRead
call fcn.1004378f
add esp, 0xc
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi], 0
mov dword [esi + 4], 0xffffffff
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100154b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x100a7d00]
push esi
push dword [ebp + 8]
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call fcn.1003ac40
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x10015597
mov eax, dword [edi]
test eax, eax
jne 0x1001550e
push 0x4f
push str.C:UsersERRORDesktopFinalTestTestDiscordSDK_srcconnection_win.cpp
push str.self
call fcn.1004378f
add esp, 0xc
jmp 0x10015550
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10015550
test ebx, ebx
jne 0x10015530
push 0x56
push str.C:UsersERRORDesktopFinalTestTestDiscordSDK_srcconnection_win.cpp
push str.data
call fcn.1004378f
add esp, 0xc
jmp 0x10015550
push 0
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x10015550
cmp dword [ebp + 0xc], esi
je 0x10015597
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10015570
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10015564
cmp eax, 1
jne 0x10015570
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001eb00
Capabilities:
Create thread
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062140
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x1007e064]
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
push 0x3f0
call fcn.10041bae
add esp, 4
mov edi, eax
mov eax, 0x15b4
push 0x3e8
lea esi, [edi + 8]
mov word [edi + 2], ax
push 0
push esi
mov dword [edi + 4], 1
call fcn.1003b1c0
mov ecx, 0x10070127
add esp, 0xc
sub esi, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x1001eb67
mov ecx, dword [0x100822d4]
mov eax, 0x3f0
mov word [edi], ax
test ecx, ecx
je 0x1001eb93
mov edx, dword [0x100822f0]
push eax
push edi
call fcn.10009de0
push edi
call fcn.1004188c
mov edx, dword [0x100a37b0]
add esp, 4
call fcn.1001f040
mov eax, dword [0x100a37b0]
push 0
push 2
mov dword [eax], eax
mov eax, dword [0x100a37b0]
mov dword [eax + 4], eax
mov dword [0x100a37b4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001ed0e
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1001ed07
lea ecx, [ebp - 0x78]
call fcn.1000b560
mov dword [ebp - 4], 0
lea eax, [ebp - 0x284]
cmp word [ebp - 0x284], 0
je 0x1001ec1d
add eax, 2
cmp word [eax], 0
jne 0x1001ec14
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x78]
call fcn.1000c500
mov byte [ebp - 4], 1
cmp dword [0x100a37b4], 0x7ffffff
mov edi, dword [0x100a37b0]
je 0x1001ed2a
mov dword [ebp - 0x2b0], 0x100a37b0
mov byte [ebp - 4], 2
push 0x20
mov dword [ebp - 0x2ac], 0
call fcn.10039268
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2ac], esi
lea ecx, [esi + 8]
push eax
call fcn.1000bac0
inc dword [0x100a37b4]
mov eax, dword [edi + 4]
mov dword [esi], edi
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov dword [edi + 4], esi
mov dword [ebp - 0x2ac], 0
mov dword [eax], esi
cmp edx, 0x10
jb 0x1001ecd2
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001ecc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ed34
push edx
push ecx
call fcn.100395b2
add esp, 8
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.1000b4a0
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1001ebf5
push eax
push eax
push eax
push 0x1001e2d0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.10039070
mov esp, ebp
pop ebp
ret
push str.list_too_long
call fcn.100229be
call fcn.10041b5d
int3