joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fd71
Capabilities:
Accept command line arguments

Disassembly:
push 0x1c4
mov eax, 0x50db3a
call fcn.004f41e2
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [ebp - 0x1d0], ebx
call edi
test eax, eax
je 0x41fd9c
xor eax, eax
jmp 0x41feec
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1cc], ebx
xor esi, esi
call fcn.004e25a1
mov dword [ebp - 4], esi
mov ebx, esi
push esi
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.004e55bb
add esp, 0xc
test eax, eax
jne 0x41fedf
mov eax, dword [ebp - 0x1c8]
cmp word [eax], 0x2f
jne 0x41fde5
push 0x2d
pop ecx
mov word [eax], cx
push str._debug
lea ecx, [ebp - 0x1c8]
call fcn.0044612f
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41fe5c
push str._debugi
lea ecx, [ebp - 0x1c8]
call fcn.0044612f
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41fe56
push str._debugw
lea ecx, [ebp - 0x1c8]
call fcn.0044612f
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41fe50
inc ebx
cmp ebx, 1
jle 0x41fdb4
jmp 0x41fedf
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
test eax, eax
je 0x41fe45
call edi
mov esi, eax
jmp 0x41fed0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x110]
push str.Conemu_started__PID_i
push eax
call fcn.00401133
add esp, 0xc
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x1d0]
push str._n_n_nlpCmdLine_n
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.GetCommandLineW___n
lea ecx, [ebp - 0x16c]
call fcn.004e2531
push 0x11040
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x16c]
call fcn.0044612f
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
call edi
lea ecx, [ebp - 0x16c]
mov esi, eax
call fcn.004e25e0
test esi, esi
je 0x41fedf
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x1c8]
call fcn.004e25e0
mov eax, esi
call fcn.004f418c
ret
Function at 0x4202bd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x8c], 0
and dword [ebp - 0x88], 0
push ebx
push esi
push edi
call fcn.00421938
mov esi, eax
mov dword [ebp - 0xa0], esi
test esi, esi
je 0x4202fe
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + 1]
jmp 0x420300
xor ebx, ebx
mov dword [ebp - 0x90], ebx
call fcn.004217de
mov edi, eax
test edi, edi
je 0x42031b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
jmp 0x42031d
xor eax, eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x94], eax
push ecx
lea ecx, [ebp - 0x8c]
add eax, ebx
push ecx
add eax, eax
push eax
call fcn.004212b5
mov ebx, dword [ebp - 0x8c]
add esp, 0xc
test al, al
je 0x4204c6
mov eax, dword [ebp - 0x88]
xor esi, esi
push ebx
push 0x421b58
push esi
push esi
mov dword [ebp - 0x98], eax
mov dword [ebx + 0x1dc], esi
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
push 0xc
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
mov dword [ebx + 0x1b4], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
call fcn.004e3d43
xor ecx, ecx
test al, al
setne cl
mov dword [ebx + 0x1b8], ecx
call fcn.004e3b47
xor ecx, ecx
test al, al
setne cl
mov dword [ebx + 0x1bc], ecx
call fcn.004ea09e
xor ecx, ecx
test al, al
setne cl
xor esi, esi
mov dword [ebx + 0x1c0], ecx
cmp dword [ebx + 0x1c4], esi
jne 0x420469
cmp dword [ebx + 0x5c], 5
jne 0x420469
push 0x80
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x8c]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420469
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x7e
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push 0x52ab90
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42045d
push 0x52aa34
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0x1c4], eax
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xa0]
test esi, esi
je 0x4204a3
mov eax, dword [ebp - 0x88]
push esi
push dword [ebp - 0x90]
push eax
call fcn.00401a0b
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0xa60], ecx
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x98], ecx
jmp 0x4204a9
mov ecx, dword [ebp - 0x88]
test edi, edi
je 0x4204c6
push edi
push dword [ebp - 0x94]
push ecx
call fcn.00401a0b
mov eax, dword [ebp - 0x98]
mov dword [ebx + 0xa64], eax
test esi, esi
je 0x4204d1
push esi
call fcn.004e1bea
pop ecx
test edi, edi
je 0x4204dc
push edi
call fcn.004e1bea
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
Function at 0x4218a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x421935
xor ecx, ecx
lea eax, [ebp + 8]
push eax
push ecx
push ecx
push ecx
push 0x52aaec
push dword [esi]
mov dword [ebp + 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42192a
mov eax, dword [ebp + 8]
test eax, eax
je 0x42192a
push edi
add eax, 2
push 1
push eax
call fcn.004e1c42
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x421929
lea eax, [ebp + 8]
push eax
push edi
xor eax, eax
push eax
push eax
push 0x52aaec
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421922
cmp word [edi], ax
je 0x421922
push eax
push eax
push eax
push eax
push eax
push 0x5219f4
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004e249f
add esp, 0x24
push edi
call fcn.004e1bea
pop ecx
pop edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esi], 0
pop esi
pop ebp
ret
Function at 0x421938
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 2
push 0x800
call fcn.004e1c42
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x421b43
push ebx
call fcn.004e3cd3
movzx ecx, al
lea eax, [ebp - 0x114]
neg ecx
push eax
sbb ecx, ecx
xor ebx, ebx
and ecx, 0x100
or ecx, 0x20019
push ecx
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionConsoleTrueTypeFont
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421b42
push esi
call fcn.004e3b22
mov byte [ebp - 0x105], al
xor ecx, ecx
lea eax, [ebp - 0x110]
mov esi, edi
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x124]
push eax
push ecx
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x84]
push eax
push ecx
jmp 0x421b0d
push 0x3f
pop eax
inc ebx
cmp dword [ebp - 0x10c], eax
cmovb eax, dword [ebp - 0x10c]
add eax, eax
cmp eax, 0x80
jae 0x421b52
xor ecx, ecx
mov word [ebp + eax - 0x84], cx
mov eax, dword [ebp - 0x110]
shr eax, 1
push 0x3f
pop ecx
cmp eax, ecx
cmovb ecx, eax
add ecx, ecx
cmp ecx, 0x80
jae 0x421b52
xor eax, eax
mov word [ebp + ecx - 0x104], ax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x120]
push 0xa
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004fe2f8
add esp, 0xc
test eax, eax
je 0x421a82
cmp byte [ebp - 0x105], 0
push 0xffffffffffffffff
pop ecx
cmove eax, ecx
jmp 0x421a85
or ecx, 0xffffffff
cmp eax, ecx
je 0x421ae6
mov eax, dword [ebp - 0x118]
add eax, 3
add eax, dword [ebp - 0x11c]
cmp eax, 0x800
jge 0x421ae6
xor eax, eax
cmp word [edi], ax
je 0x421aaf
push 9
pop eax
mov word [esi], ax
add esi, 2
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x118]
push 9
lea esi, [esi + eax*2]
pop eax
mov word [esi], ax
lea eax, [ebp - 0x104]
add esi, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x11c]
lea esi, [esi + eax*2]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x124]
push eax
xor eax, eax
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
push dword [ebp - 0x114]
mov dword [ebp - 0x10c], 0x40
mov dword [ebp - 0x110], 0x7e
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4219da
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004f4166
leave
ret
call fcn.004f4963
int3
Function at 0x422004
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ax, word [ebp + 0xc]
push edi
test ax, ax
je 0x422022
movzx eax, ax
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
jmp 0x422025
mov edi, dword [ebp + 8]
test edi, edi
jne 0x42202d
xor eax, eax
jmp 0x422091
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [ebx]
test esi, esi
jle 0x422082
test eax, eax
je 0x422056
mov ecx, dword [ebp + 0x10]
cmp esi, dword [ecx]
jb 0x42206a
push eax
call fcn.004e1bea
and dword [ebx], 0
pop ecx
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 0x20]
push 2
push eax
mov dword [ecx], eax
call fcn.004e1c42
pop ecx
pop ecx
mov dword [ebx], eax
test eax, eax
je 0x42208d
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 1]
push eax
push dword [ebx]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42208d
xor esi, esi
test eax, eax
je 0x42208d
xor ecx, ecx
mov word [eax], cx
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x425cb5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5a22a0]
cmp byte [eax + 0x3e92], 0
je 0x425ccd
xor eax, eax
jmp 0x425e32
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push esi
push edi
mov al, byte [ebx]
cmp al, 0x30
jb 0x425cdf
cmp al, 0x39
jbe 0x425ce7
cmp dword [ecx + 0xc], edx
je 0x425ce7
mov dword [ecx + 0xc], edx
mov edi, dword [ebp + 0x14]
mov ecx, dword [0x5a2294]
push edi
push dword [ebp + 0xc]
push ebx
call fcn.0044c6c1
mov esi, eax
mov dword [0x5a2460], esi
test esi, esi
jne 0x425d35
test edi, edi
je 0x425e26
mov ecx, edi
call fcn.004979fe
test al, al
je 0x425e26
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push ebx
call fcn.0048fec4
mov esi, eax
test esi, esi
je 0x425e26
cmp esi, dword [0x581450]
je 0x425e26
mov eax, dword [0x5a22a0]
cmp byte [eax + 0x3e91], 0
je 0x425d6c
cmp dword [esi + 4], 8
je 0x425d68
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x425d6c
xor ecx, ecx
cmp word [eax], cx
je 0x425d6c
jmp 0x425d6a
xor ecx, ecx
mov esi, ecx
test esi, esi
je 0x425e26
mov eax, dword [esi + 8]
test eax, eax
je 0x425d84
call eax
xor ecx, ecx
test al, al
cmove esi, ecx
test esi, esi
je 0x425e26
mov eax, dword [ebx + 4]
and eax, 0x1f3f00
cmp eax, 0x400
je 0x425da2
cmp eax, 0x800
jne 0x425dc4
test edi, edi
je 0x425dc4
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x111b8], 0
je 0x425dc4
push 0xffffffffffffffff
xor eax, eax
mov ecx, edi
push eax
push 2
push 0x11
call fcn.0048d8de
mov ecx, dword [esi + 0x94]
test ecx, ecx
je 0x425e26
mov eax, dword [ebx + 4]
shr eax, 0x14
and al, 1
mov dword [ebp + 0xc], eax
je 0x425df4
mov ecx, dword [0x5a22a0]
push 1
lea ecx, [ecx + 0x144]
call fcn.00426183
mov ecx, dword [esi + 0x94]
push edi
push esi
xor edi, edi
push edi
push ebx
call ecx
cmp byte [ebp + 0xc], 0
je 0x425e26
push 0x5d
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x425e26
mov ecx, dword [0x5a22a0]
push edi
lea ecx, [ecx + 0x144]
call fcn.00426183
xor eax, eax
pop edi
mov dword [0x5a2460], eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x426183
Capabilities:
Log keystrokes
Log keystrokes via polling
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
test bl, bl
je 0x4261d5
push 0x5d
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [0x5a2468]
je 0x4261cd
mov byte [0x5a2464], 1
test eax, eax
jne 0x4261cf
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4261f8
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x5a2468], eax
jmp 0x4261cf
xor bl, bl
test bl, bl
jne 0x4261f3
jmp 0x4261da
mov eax, dword [0x5a2468]
test eax, eax
je 0x4261f3
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and dword [0x5a2468], 0
mov byte [0x5a2464], 0
pop ebx
pop ebp
ret 4
Function at 0x426412
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, ecx
push 0x14
call edi
xor ebx, ebx
inc ebx
and al, bl
push 0x90
mov byte [esi + 0x16], al
call edi
and al, bl
push 0x91
mov byte [esi + 0x17], al
call edi
and al, bl
push 0x5b
mov byte [esi + 0x18], al
call edi
mov ecx, 0x8000
test cx, ax
jne 0x426461
push 0x5c
call edi
mov ecx, 0x8000
test cx, ax
jne 0x426461
xor al, al
jmp 0x426463
mov al, bl
push 0x5d
mov byte [esi + 0x14], al
call edi
shr eax, 0xf
and al, bl
push 0xa4
mov byte [esi + 0x15], al
call edi
shr eax, 0xf
and al, bl
push 0xa5
mov byte [esi + 0x19], al
call edi
shr eax, 0xf
and al, bl
push 0xa2
mov byte [esi + 0x1a], al
call edi
shr eax, 0xf
and al, bl
push 0xa3
mov byte [esi + 0x1b], al
call edi
shr eax, 0xf
and al, bl
push 0xa0
mov byte [esi + 0x1c], al
call edi
shr eax, 0xf
and al, bl
push 0xa1
mov byte [esi + 0x1d], al
call edi
movzx edx, ax
mov ecx, 0x80
xor eax, eax
shr edx, 0xf
and dl, bl
cmp byte [esi + 0x16], al
mov byte [esi + 0x1e], dl
cmove ecx, eax
mov eax, ecx
or eax, 0x20
cmp byte [esi + 0x17], 0
cmove eax, ecx
mov ecx, eax
or ecx, 0x40
cmp byte [esi + 0x18], 0
cmove ecx, eax
mov eax, ecx
or eax, 2
cmp byte [esi + 0x19], 0
cmove eax, ecx
mov ecx, eax
or ecx, ebx
cmp byte [esi + 0x1a], 0
cmove ecx, eax
mov eax, ecx
or eax, 8
cmp byte [esi + 0x1b], 0
cmove eax, ecx
mov ecx, eax
or ecx, 4
cmp byte [esi + 0x1c], 0
cmove ecx, eax
cmp byte [esi + 0x1d], 0
jne 0x42652d
test dl, dl
je 0x426530
or ecx, 0x10
pop edi
mov dword [esi + 0x10], ecx
pop esi
pop ebx
ret
Function at 0x42d4c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
call fcn.004244be
xor ebx, ebx
test al, al
jne 0x42d536
mov ecx, dword [0x5a23ec]
inc ebx
push ebx
call fcn.004673c5
test eax, eax
je 0x42d502
push ebx
push ebx
push str.OnConsoleResize_abPostedfalse_
call fcn.00421c79
add esp, 0xc
cmp byte [0x5a2479], 0
jne 0x42d634
mov eax, dword [esi + 0xcc]
push 0
push 0
mov byte [0x5a2479], bl
push dword [eax + 0x7854]
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x42d634
push ebx
mov ecx, esi
mov byte [0x5a2479], bl
call fcn.00432292
test al, al
je 0x42d573
mov ecx, dword [0x5a23ec]
xor ebx, ebx
inc ebx
push ebx
call fcn.004673c5
test eax, eax
je 0x42d634
push ebx
push ebx
push str.OnConsoleResize_ignored__because_of_iconic
call fcn.00421c79
add esp, 0xc
jmp 0x42d634
mov eax, dword [esi + 0xcc]
mov ecx, esi
push ebx
mov al, byte [eax + 0x3ebd]
and al, 1
mov byte [ebp - 0x209], al
call fcn.004323d7
xor ebx, ebx
mov byte [ebp - 0x205], al
inc ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and eax, 0xffffff01
cmp byte [ebp - 0x205], 0
mov dword [ebp - 0x210], eax
je 0x42d5cc
test al, al
jne 0x42d5cc
mov eax, dword [esi + 0xcc]
mov ecx, 0xfe7f
and word [eax + 0x3ebc], cx
mov ecx, dword [0x5a23ec]
push ebx
call fcn.004673c5
test eax, eax
je 0x42d628
mov eax, dword [ebp - 0x210]
movzx eax, al
push 0
push eax
movzx eax, byte [ebp - 0x205]
push eax
movzx eax, byte [ebp - 0x209]
push eax
mov eax, dword [esi + 0xcc]
movzx eax, word [eax + 0x3ebc]
push eax
lea eax, [ebp - 0x204]
push str.OnConsoleResize:_mouse.state0x_08X__SizingToDo_i__IsSizing_i__LBtnPressed_i__PostUpdateWindowSize_i
push eax
call fcn.00409bde
push ebx
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.00421c79
add esp, 0x28
push dword [ebp - 0x209]
call fcn.004d4f11
pop ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 4
Function at 0x43530b
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x3b8]
mov ecx, edi
call fcn.004e2932
test al, al
mov eax, 0x514870
jne 0x43532c
mov eax, dword [edi]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push eax
push str.ConEmuArgs
call edi
lea ebx, [esi + 0x470]
mov ecx, ebx
call fcn.004e2932
test al, al
je 0x435352
push 0x514870
jmp 0x43539e
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044612f
cmp byte [esi + 0x4cc], 0
mov ecx, 0x52ee74
push eax
mov eax, 0x52ee68
cmove eax, ecx
push eax
call fcn.004e23a5
add esp, 0x24
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
lea ecx, [esi + 0x414]
push eax
call fcn.004e26da
lea ecx, [esi + 0x414]
call fcn.0044612f
push eax
push str.ConEmuArgs2
call edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4353ce
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0xf003f
push esi
push str.SoftwareHoopoePG_2x
push SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43541d
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 4
push esi
push str.CreateInNewEnvironment
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x4363e6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x2c]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0x24]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x23c], eax
call fcn.004e3ac6
test al, al
je 0x43648b
xor eax, eax
push eax
push dword [ebp - 0x23c]
push dword [ebp - 0x240]
push dword [ebp - 0x244]
push dword [ebp - 0x248]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x24c]
push dword [ebp - 0x250]
push edi
push eax
push eax
call fcn.004c7504
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x4365a9
push 0x22c
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.004f5a90
and dword [ebp - 0x238], 0
lea eax, [ebp - 0x230]
push eax
push str.explorer.exe
call fcn.004e83a7
add esp, 0x14
test al, al
je 0x436543
push dword [ebp - 0x228]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x43653d
lea eax, [ebp - 0x238]
push eax
push 0x2000b
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x436531
push dword [ebp - 0x23c]
push dword [ebp - 0x240]
push dword [ebp - 0x244]
push dword [ebp - 0x248]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x24c]
push dword [ebp - 0x250]
push dword [ebp - 0x234]
push 0
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
cmp edi, 0xffffffff
je 0x43653d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x234]
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x436565
cmp eax, 0xffffffff
je 0x436565
and dword [ebp - 0x238], 0
cmp eax, 0xffffffff
je 0x436565
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4365a9
push dword [ebp - 0x23c]
push dword [ebp - 0x240]
push dword [ebp - 0x244]
push dword [ebp - 0x248]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x24c]
push dword [ebp - 0x250]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test ebx, ebx
je 0x4365a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
Function at 0x4369b5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
push 0x2000b
mov ebx, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x436a9b
push 1
push 0x14
call fcn.004e1c42
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
mov word [esi], 0x201
push eax
push 1
mov byte [esi + 7], 5
mov dword [esi + 8], 0x20
mov dword [esi + 0xc], 0x220
push 1
push dword [ebp - 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
je 0x436a7a
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x436a5b
inc ebx
jmp 0x436a6c
mov edi, dword [ebp + 0x30]
test edi, edi
je 0x436a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], edi
jmp 0x436a89
mov edi, dword [ebp + 0x30]
test edi, edi
je 0x436a89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push esi
call fcn.004e1bea
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x436aaa
mov esi, dword [ebp + 0x30]
test esi, esi
je 0x436aaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4377df
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x437884
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43787d
cmp dword [ebp - 8], ebx
jne 0x43787d
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.004e1c0a
mov ebx, dword [ebp + 0xc]
pop ecx
mov dword [ebx], eax
test eax, eax
je 0x43787d
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push esi
push 0
push ecx
push dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
je 0x437873
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jne 0x437873
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov edx, dword [ebx]
mov ecx, dword [ebp + 0x10]
add edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebx]
jmp 0x437886
push dword [ebx]
call fcn.004e1bea
pop ecx
jmp 0x437884
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ebx
leave
ret