joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40661c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x40664c
xor al, al
jmp 0x406670
cmp byte [esi + 0xb], bl
je 0x406667
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x42b118
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4066f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x74], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40681c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x40681c
cmp dword [ebp - 0x78], esi
jne 0x40681c
push dword [ebp - 0x6c]
call fcn.0041c3a5
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.0040b2b0
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x40680d
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x40680d
cmp word [esi + edi*2 - 4], bx
jne 0x40680d
cmp word [esi + edi*2 - 2], bx
jne 0x40680d
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, str.___
push eax
call fcn.00406a20
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x4067fc
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4067ff
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
cmp ebx, dword [ebp - 0x7c]
jb 0x4067db
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.00401251
test esi, esi
je 0x406818
push esi
call fcn.0040b13b
pop ecx
mov al, bl
jmp 0x40681e
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a726
leave
ret
Function at 0x4069b2
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x4069bf
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4069f8
cmp eax, 0x80
je 0x4069f8
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.004077f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x4069bb
mov al, 1
pop esi
ret

Function at 0x406da6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x124]
push 0x118
push ebx
mov dword [ebp - 0x12c], ebx
push eax
mov dword [ebp - 0x128], 0x11c
call fcn.0040b2b0
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x406f05.2
mov edi, dword [ebp - 0x124]
xor esi, esi
inc esi
cmp edi, 6
je 0x406e96
cmp edi, 0xa
je 0x406e96
cmp edi, 5
jne case.0x406f05.2
cmp dword [ebp - 0x120], 2
jne 0x406e80
cmp byte [ebp - 0xe], 1
jne 0x406e46
lea ecx, [ebp - 0x130]
call fcn.00406d22
mov ecx, eax
mov dword [ebp - 0x12c], esi
call fcn.004017e6
test al, al
je 0x406e46
xor eax, eax
mov bl, 1
inc eax
jmp 0x406e4c
mov eax, dword [ebp - 0x12c]
test al, 1
je 0x406e5e
mov ecx, dword [ebp - 0x130]
lea ecx, [ecx - 0x10]
call fcn.00401251
test bl, bl
jne case.0x406f05.1
test dword [ebp - 0x10], 0x8000
je case.0x406f05.7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a726
leave
ret
cmp dword [ebp - 0x120], esi
jne case.0x406f05.2
test dword [ebp - 0x10], 0x200
jne case.0x406f05.2
xor eax, eax
inc eax
jmp 0x406e71
mov eax, dword [ebp - 0x120]
mov ecx, 0x42b378
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], eax
call fcn.0040401c
mov esi, eax
test esi, esi
je case.0x406f05.2
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406edc
lea ecx, [ebp - 0x12c]
push ecx
push ebx
push ebx
push dword [ebp - 0x130]
push edi
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je case.0x406f05.2
mov eax, dword [ebp - 0x12c]
cmp eax, 0x1b
ja 0x406f14
je case.0x406f05.4
dec eax
cmp eax, 0x18
ja case.0x406f05.2
movzx eax, byte [eax + 0x406f76]
jmp dword [eax*4 + 0x406f66]
push 2
pop eax
jmp 0x406e71
cmp eax, 0x54
ja 0x406f34
je case.0x406f05.4
sub eax, 0x30
je case.0x406f05.1
sub eax, 0x16
je case.0x406f05.4
dec eax
sub eax, 1
je case.0x406f05.4
jmp case.0x406f05.2
cmp eax, 0x79
jb case.0x406f05.2
cmp eax, 0x7a
jbe 0x406f62
cmp eax, 0x7c
jbe case.0x406f05.2
cmp eax, 0x7e
jbe case.0x406f05.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x406f05.2
push 3
jmp 0x406f0e
push 4
jmp 0x406f0e
Function at 0x4078cb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0x808]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.0040b2b0
mov esi, dword [0x431ddc]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.00404d93
push edi
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push ebx
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.00401251
lea ecx, [ebp - 0x808]
call fcn.00407e03
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
sub eax, 3
je 0x40797f
sub eax, 1
jne 0x407970
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0040a726
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x407e03
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x407e72
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x407e4e
push ebx
push edi
push eax
call fcn.0040c6e0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x407e69
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x412589
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4125d4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004127aa
test al, al
jne 0x4125ce
sub edx, 2
cmp edx, edi
jne 0x4125b4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4125f6
lea eax, [edi + 2]
cmp edx, eax
je 0x4125f6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004124d5
add esp, 0x10
jmp 0x4126f0
push esi
lea ecx, [ebp - 0x255]
call fcn.004127aa
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412639
push dword [ebp - 0x25c]
jmp 0x4125e6
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x412676
cmp word [ebp - 0x226], 0
je 0x412697
cmp word [ebp - 0x226], ax
jne 0x412676
cmp word [ebp - 0x224], 0
je 0x412697
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004124d5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4126e3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x412650
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4126cb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4126f0
push 0x412305
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00416330
add esp, 0x10
jmp 0x4126c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a726
leave
ret

Function at 0x41347e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
aam 0xc6
inc ebp
mov dl, 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00413200
in al, dx
aas
push esp
push ss
lea eax, [ebp - 0x58]
push eax
call fcn.00413210
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004131c5
Function at 0x413928
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4138d7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4138f5
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x413953
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x41393a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x413943
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x41394d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x41392f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4138b9
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4139a0
dec eax
je 0x413997
sub eax, 3
je 0x41398e
mov dword [ebp - 4], 0x40
jmp 0x4139bd
mov dword [ebp - 4], 4
jmp 0x4139a3
mov dword [ebp - 4], 0x20
jmp 0x4139a3
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4139ef
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x41396f
invalid
Function at 0x414b85
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004131c5
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
push 1
pop eax
test eax, eax
je 0x4152a6
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x414d7b
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
add dh, al
test dword [esi + 0x4fffff8], eax
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
mov byte [ebp - 0x765], 0x96
mov byte [ebp - 0x764], 0x96
mov byte [ebp - 0x763], 0x94
mov byte [ebp - 0x762], 0x95
mov byte [ebp - 0x761], 0xdb
mov byte [ebp - 0x760], 0xbd
mov byte [ebp - 0x75f], 0x92
mov byte [ebp - 0x75e], 0x97
mov byte [ebp - 0x75d], 0x9e
mov byte [ebp - 0x75c], 0x88
mov byte [ebp - 0x75b], 0xa7
mov byte [ebp - 0x75a], 0xa8
mov byte [ebp - 0x759], 0x82
mov byte [ebp - 0x758], 0x88
mov byte [ebp - 0x757], 0x8f
mov byte [ebp - 0x756], 0x9e
invalid
invalid
stosd dword es:[edi], eax
clc
invalid
Function at 0x401f80
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x430100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x40217a
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea eax, [ebp - 0x20c]
push 0x103
push esi
push eax
call ebx
add esp, 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402179
push edi
push esi
call fcn.004022e0
add esp, 8
lea eax, [ebp - 0x20c]
push 0x4297b4
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x350], eax
cmp eax, 0xffffffff
je 0x402172
nop dword [eax]
lea ecx, [ebp - 0x34c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x402166
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
test byte [ebp - 0x34c], 0x10
je 0x402125
add esp, 0xc
lea eax, [ebp - 0x320]
mov ecx, 0x4297b8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402084
test dl, dl
je 0x402080
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402084
add eax, 2
add ecx, 2
test dl, dl
jne 0x402064
xor eax, eax
jmp 0x402089
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x350]
je 0x402020
mov eax, 0x4297bc
lea ecx, [ebp - 0x320]
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4020c0
test dl, dl
je 0x4020bc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4020c0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4020a0
xor eax, eax
jmp 0x4020c5
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x350]
je 0x402020
push 0x103
lea eax, [ebp - 0x108]
push esi
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004022e0
push edi
mov edx, fcn.004022e0
lea ecx, [ebp - 0x108]
call fcn.00401f80
mov eax, dword [ebp - 0x350]
add esp, 0xc
jmp 0x402020
push 0x103
lea eax, [ebp - 0x108]
push esi
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004022e0
mov eax, dword [ebp - 0x350]
add esp, 8
jmp 0x402020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00422610
mov esp, ebp
pop ebp
ret
Function at 0x402e50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x430100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x40], ecx
mov ecx, 0xb
mov esi, str._pipediscord_ipc_0
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x44], 0x15
mov eax, 2
imul ecx, eax, 0x15
mov edx, 0x30
mov word [ebp + ecx - 0x34], dx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x38]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 0xffffffff
je 0x402ec7
mov ecx, dword [ebp - 0x38]
mov byte [ecx], 1
mov al, 1
jmp 0x402f38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 2
jne 0x402f0a
mov edx, 2
imul eax, edx, 0x15
movzx ecx, word [ebp + eax - 0x34]
cmp ecx, 0x39
jge 0x402f08
mov edx, 2
imul eax, edx, 0x15
mov cx, word [ebp + eax - 0x34]
add cx, 1
mov edx, 2
imul eax, edx, 0x15
mov word [ebp + eax - 0x34], cx
jmp 0x402e95
jmp 0x402f2f
cmp dword [ebp - 0x3c], 0xe7
jne 0x402f2f
push 0x2710
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x402f2a
xor al, al
jmp 0x402f38
jmp 0x402e95
xor al, al
jmp 0x402f38
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422610
mov esp, ebp
pop ebp
ret

Function at 0x402f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0xc], 0
jne 0x402fa3
mov al, 1
jmp 0x403012
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402fb3
xor al, al
jmp 0x403012
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0xffffffff
jne 0x402fc0
xor al, al
jmp 0x403012
cmp dword [ebp + 8], 0
jne 0x402fca
xor al, al
jmp 0x403012
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x403008
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
jne 0x403008
mov dword [ebp - 0x10], 1
jmp 0x40300f
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x403180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaa0
mov eax, dword [0x430100]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20
lea eax, [ebp - 0x84]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x20
lea edx, [ebp - 0x44]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0xa9c]
push ecx
push 0x20019
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xa94], eax
cmp dword [ebp - 0xa94], 0
je 0x403213
push str.Error_opening_Steam_key_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00403820
add esp, 8
jmp 0x40331d
mov dword [ebp - 0xa98], 0x208
lea edx, [ebp - 0xa98]
push edx
lea eax, [ebp - 0x28c]
push eax
push 0
push 0
push str.SteamExe
mov ecx, dword [ebp - 0xa9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xa94], eax
mov edx, dword [ebp - 0xa9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa94], 0
jne 0x403266
cmp dword [ebp - 0xa98], 1
jae 0x403284
push str.Error_reading_SteamExe_key_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00403820
add esp, 8
jmp 0x40331d
mov eax, dword [ebp - 0xa98]
shr eax, 1
mov dword [ebp - 0xaa0], eax
mov dword [ebp - 0xa90], 0
jmp 0x4032ad
mov ecx, dword [ebp - 0xa90]
add ecx, 1
mov dword [ebp - 0xa90], ecx
mov edx, dword [ebp - 0xa90]
cmp edx, dword [ebp - 0xaa0]
jae 0x4032e3
mov eax, dword [ebp - 0xa90]
movzx ecx, word [ebp + eax*2 - 0x28c]
cmp ecx, 0x2f
jne 0x4032e1
mov edx, 0x5c
mov eax, dword [ebp - 0xa90]
mov word [ebp + eax*2 - 0x28c], dx
jmp 0x40329e
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x28c]
push edx
push str.__s__steam:__rungameid__s
push 0x800
lea eax, [ebp - 0xa8c]
push eax
call fcn.00403790
add esp, 0x14
lea ecx, [ebp - 0xa8c]
push ecx
lea edx, [ebp - 0x84]
push edx
call fcn.004034b0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422610
mov esp, ebp
pop ebp
ret
Function at 0x403410
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x403471
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx]
test ecx, ecx
je 0x403471
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40346b
mov eax, dword [ebp - 8]
jmp 0x4034ab
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x4034a8
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 8]
je 0x4034a8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4057f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4244ad
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x430100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00405be0
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x405730
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x405899
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edx
jmp 0x4058aa
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004064e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4