joyce8/EMBER2024-capa huggingface dataset:
Function at 0x511370
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0051102f
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x5113ba
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00417557
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00415c09
jmp 0x5113c5
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004b46e9
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5113cb
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0042e3c1
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x511408
call fcn.0051102f
mov dword [esi + 0xc], 1
jmp 0x51140d
call fcn.0051102f
cmp dword [esi], 0
je 0x511456
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x51142e
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00417557
jmp 0x511440
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402c90
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00415c09
jmp 0x51147a
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x51147a
push dword [esi]
push dword [ebp + 8]
call fcn.004b46e9
pop esi
pop ebp
ret 0xc
Function at 0x5270bf
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0054044b
call fcn.00429de6
cmp dword [eax + 0x14], 0
jne 0x5270dc
mov ecx, esi
pop esi
jmp fcn.00526bc4
pop esi
ret

Function at 0x52a196
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0041396c
call fcn.00429de6
cmp dword [eax + 0x14], 0
jne 0x52a1b3
mov ecx, esi
pop esi
jmp fcn.00529b69
pop esi
ret

Function at 0x543b64
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c7100]
jne 0x543b6e
repz ret
jmp fcn.0054a944

Function at 0x556c26
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c7100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0054d5c5
and dword [ebp - 0x14], 0
cmp dword [0x5ceeb8], 0
mov dword [ebp - 0x18], eax
jne 0x556cd9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x556d81
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x556d81
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x59c1f4
push ebx
mov dword [0x5ceeb8], eax
call edi
push eax
call esi
push 0x59c1e0
push ebx
mov dword [0x5ceebc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5ceec0], eax
call edi
push eax
call esi
mov dword [0x5ceec8], eax
test eax, eax
je 0x556cd9
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5ceec4], eax
mov eax, dword [0x5ceec4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x556d32
cmp dword [0x5ceec8], ecx
je 0x556d32
push eax
call esi
push dword [0x5ceec8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x556d32
test ebx, ebx
je 0x556d32
call edi
test eax, eax
je 0x556d29
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x556d29
test byte [ebp - 8], 1
jne 0x556d32
or dword [ebp + 0x10], 0x200000
jmp 0x556d65
mov eax, dword [0x5ceebc]
cmp eax, dword [ebp - 0x18]
je 0x556d65
push eax
call esi
test eax, eax
je 0x556d65
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x556d65
mov eax, dword [0x5ceec0]
cmp eax, dword [ebp - 0x18]
je 0x556d65
push eax
call esi
test eax, eax
je 0x556d65
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5ceeb8]
call esi
test eax, eax
je 0x556d81
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x556d83
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00543b64
leave
ret
Function at 0x10036ba
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fcmovb st(0), st(6)
inc ebp
idiv dword [edi - 0x39c18]
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.010032dc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.01003327
push eax
push esi
push dword [ebp + 8]
call fcn.010032dc
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.01003327
push eax
push esi
push dword [ebp + 8]
call fcn.010032dc
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.01003317
mov dh, 0x6e
nop
dec eax
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.01003317
nop
ret

Function at 0x1005d91
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a028]
jne 0x1005d9a
ret
jmp 0x1005d9f
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x100a028]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x101b0cc]
test eax, eax
je 0x1005dc3
call eax
cmp dword [0x101b0d0], 0
je 0x1005e0a
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x101b0d0]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01005d91
add ebp, 0x2a8
leave
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10007073
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10007073
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10007073
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10007073
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10007073
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10007073
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10007073
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10007073
push 0xd008
push edi
call fcn.10007073
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10007073
int3

Function at 0x10007073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10007082
pop dword [ebp - 0x1c]
mov eax, 0x10007082
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x33df1
push 0
mov eax, 0x4e74b19
add eax, 0xb19f54b
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x22319ec1
sub ecx, 0x22316b63
mov edx, eax
mov edi, 0xd277047e
sub edi, 0xc2757e7e
add edi, dword [ebp - 0x1c]
mov esi, 0xff6ef85c
sub esi, 0xb6adba84
sub dword [ebp - 0x18], 0x7afe7a39
mov ebx, dword [edi]
add dword [ebp - 8], 0x6b6f0c9a
xor ebx, esi
xor dword [ebp - 0x10], 0x82345391
mov dword [edx], ebx
xor dword [ebp - 0x14], 0xf697ac82
add edx, 0x7c318e07
add edx, 0x83ce71fd
add edi, 0x919c19f5
sub edi, 0x919c19f1
loop 0x100070dc
add eax, 0xb3bd0d5
add eax, 0xf4c4ef76
xor ebx, ebx
add ebx, eax
add eax, 0xa4d0d2bf
add eax, 0x5b2f2d46
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x401840
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push str.LocalService
push ecx
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4018ae
mov eax, dword [esp + 8]
cmp eax, 1
je 0x40187f
cmp eax, 2
jne 0x40189a
mov eax, dword [esp]
test esi, esi
je 0x4018a8
test eax, eax
je 0x4018a3
test al, 1
jne 0x40189a
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x4018a8
mov eax, 0xd
pop ecx
ret 4
xor ecx, ecx
mov word [esi], cx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4

Function at 0x404c30
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, 0x1020
call fcn.0040e5a0
mov eax, dword [0x42365c]
xor eax, esp
mov dword [esp + 0x101c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x404c8a
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 1
push 0x425d4c
push esi
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x404c83
push eax
mov edi, 1
call ebx
push esi
call ebx
test edi, edi
jne 0x404c94
mov eax, 1
jmp 0x404de8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x404cde
lea eax, [esp + 0x2c]
push eax
push 0xd80a
call fcn.00401310
add esp, 8
test eax, eax
jne 0x404ccd
mov eax, str.Could_not_open_Service_Manager
lea ecx, [esp + 0x2c]
call fcn.00401180
push 0
push 0x425d4c
lea ecx, [esp + 0x34]
push ecx
jmp 0x404dde
push 0x10020
push 0x425d4c
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x404d29
push edi
call ebx
lea edx, [esp + 0x2c]
push edx
push 0xd80c
call fcn.00401310
add esp, 8
test eax, eax
jne 0x404d18
mov eax, str.Could_not_open_service
lea ecx, [esp + 0x2c]
call fcn.00401180
push 0
push 0x425d4c
lea eax, [esp + 0x34]
push eax
jmp 0x404dde
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x404d8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x404d8e
cmp eax, 0x425
jne 0x404d56
cmp dword [esp + 0x14], 3
je 0x404d8e
lea edx, [esp + 0x2c]
push edx
push 0xd80e
call fcn.00401310
add esp, 8
test eax, eax
jne 0x404d7a
mov eax, str.Could_not_stop_service
lea ecx, [esp + 0x2c]
call fcn.00401180
push 0
push 0x425d4c
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov ebp, eax
call ebx
push edi
call ebx
test ebp, ebp
jne 0x404c8a
lea ecx, [esp + 0x82c]
push ecx
push 0xd80d
call fcn.00401310
add esp, 8
test eax, eax
jne 0x404dcf
mov eax, str.Could_not_delete_service
lea ecx, [esp + 0x82c]
call fcn.00401180
push 0
push 0x425d4c
lea edx, [esp + 0x834]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004089bc
add esp, 0x1020
ret
Function at 0x405850
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 0x80000000
lea eax, [esp + 0x18]
xor esi, esi
push eax
mov eax, 0x20006
mov ebx, str.AppID
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.00401790
cmp eax, esi
je 0x4058a8
call fcn.00401380
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40589e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ebp, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x24]
push ecx
mov eax, 0x20006
mov ebx, str.F0E5712C_95FA_453C_8F40_DAB3A33846A0
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00401790
cmp eax, esi
je 0x4058fa
call fcn.00401380
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4058e9
push eax
call ebx
cmp ebp, esi
je 0x4058f0
push ebp
call ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x20]
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], str.APPID
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00403610
mov ebx, eax
cmp edi, esi
je 0x405935
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, esi
je 0x405940
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405c90
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x208
mov eax, dword [0x42365c]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
lea eax, [esp + 0x214]
push eax
mov esi, ecx
mov ecx, dword [esp + 0x214]
push ecx
push 0xff
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.00409c1c
xor eax, eax
add esp, 0x14
lea ecx, [esp + 8]
mov word [esp + 0x206], ax
mov dword [esp + 4], ecx
cmp dword [esi + 0x24c], eax
jne 0x405cf3
mov edx, ecx
push edx
call fcn.00409908
add esp, 4
add esi, 0x2c
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x405d26
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x208]
pop esi
xor ecx, esp
call fcn.004089bc
add esp, 0x208
ret
Function at 0x406440
Capabilities:
Get common file path

Disassembly:
cmp dword [0x425bdc], 0
jne 0x4064f8
cmp byte [0x425be0], 0
jne 0x4064cd
push 0x425be0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jb 0x406496
push 0x104
push 0x425be0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x425be0
call fcn.0040a800
add esp, 8
test eax, eax
je 0x406496
mov byte [eax + 1], 0
mov eax, 0x425be0
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4064a0
mov ecx, dword [str._debug.log]
mov edx, dword [0x41f418]
mov dword [eax], ecx
mov cx, word [0x41f41c]
mov dword [eax + 4], edx
mov dl, byte [0x41f41e]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
push 0x41f420
push 0x425be0
call fcn.0040a6ce
add esp, 8
mov dword [0x425bdc], eax
test eax, eax
jne 0x4064eb
xor al, al
ret
push 2
push 0
push eax
call fcn.0040a8b7
add esp, 0xc
mov al, 1
ret
Function at 0x406500
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x419eab
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x42365c]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42365c]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x29c]
cmp dword [ebp + 0x10], 0
je 0x4066bc
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x7e]
push ecx
mov word [esp + 0x80], ax
call fcn.0040b5c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x78]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x74]
push 0x5c
push eax
call fcn.0040a5e4
add esp, 8
test eax, eax
je 0x406594
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x74]
lea edx, [eax + 2]
jmp 0x4065a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4065a0
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + 0x78]
push 0x41f424
push eax
call fcn.0040a472
xor ecx, ecx
add esp, 0xc
cmp dword [ebp + 0x14], 0x10
mov word [esp + 0x27a], cx
jb 0x4065de
mov eax, dword [ebp]
jmp 0x4065e0
mov eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ebx
mov esi, eax
test esi, esi
je 0x4066bc
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408816
add esp, 4
mov edi, eax
cmp dword [ebp + 0x14], 0x10
jb 0x406624
mov ebp, dword [ebp]
push esi
push edi
or esi, 0xffffffff
push esi
push ebp
push 0
push 0xfde9
call ebx
test eax, eax
je 0x4066ac
push 0x44
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0040b5c0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40669c
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esp + 0x1c]
push eax
call ebx
jmp 0x4066ac
push 0x10
push str.Fatal_error
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
mov dword [esp + 0x298], esi
call fcn.0040985e
add esp, 4
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004089bc
add esp, 0x284
ret
Function at 0x406dc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41a058
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x42365c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0x14], 0
test byte [esi + 0x40], 1
je 0x406e0a
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
push eax
call fcn.004089b1
add esp, 4
mov ecx, dword [esi + 0x10]
mov dword [ecx], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov ecx, dword [esi + 0x14]
mov dword [ecx], 0
mov edx, dword [esi + 0x24]
mov dword [edx], 0
mov eax, dword [esi + 0x34]
mov dword [eax], 0
and dword [esi + 0x40], 0xfffffffe
mov ecx, esi
mov dword [esi + 0x3c], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.004069e0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4089bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42365c]
jne 0x4089c6
repz ret
jmp fcn.0040c4f0
Function at 0x41476f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42365c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e931
and dword [ebp - 0x14], 0
cmp dword [0x425af0], 0
mov dword [ebp - 0x18], eax
jne 0x414822
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4148ca
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41d0c4
push ebx
call edi
test eax, eax
je 0x4148ca
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x425af0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x425af4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x425af8], eax
call edi
push eax
call esi
mov dword [0x425b00], eax
test eax, eax
je 0x414822
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x425afc], eax
mov eax, dword [0x425afc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41487b
cmp dword [0x425b00], ecx
je 0x41487b
push eax
call esi
push dword [0x425b00]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41487b
test ebx, ebx
je 0x41487b
call edi
test eax, eax
je 0x414872
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414872
test byte [ebp - 8], 1
jne 0x41487b
or dword [ebp + 0x10], 0x200000
jmp 0x4148ae
mov eax, dword [0x425af4]
cmp eax, dword [ebp - 0x18]
je 0x4148ae
push eax
call esi
test eax, eax
je 0x4148ae
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4148ae
mov eax, dword [0x425af8]
cmp eax, dword [ebp - 0x18]
je 0x4148ae
push eax
call esi
test eax, eax
je 0x4148ae
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x425af0]
call esi
test eax, eax
je 0x4148ca
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4148cc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004089bc
leave
ret
Function at 0xfe5788
Capabilities:
Encode data using xor

Disassembly:
jmp 0xfe5792
pushal
call 0xfe5798
pop ebp
sub ebp, 0x10
sub ebp, 0xbe5788
jmp 0xfe57ae
mov eax, 0xbe5788
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c7
mov edx, 0x7d15cda2
xor byte [eax], dl
inc eax
dec ecx
jne 0xfe57c5
jmp 0xfe57d8
sub dword [edi + 0x29], ebp
sub ebx, dword [esi + 0x23a2a2a2]
arpl word [edx - 0x5e], bx
mov byte [0x1a6fa1a2], al
stosb byte es:[edi], al
mov byte [0x8a18a2a2], al
mov byte [0x4055a2a2], al
mov eax, dword [0xae23296a]
mov byte [0x67a1a2a2], al
das
mov byte [esi - 0x7959d4a2], 0xf2
retf 0x8946