joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e08a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4e0906
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4e0906
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4e08e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4f5a0a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4f5a42
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004f3ac1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f3a99
jmp 0x4f5a4e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f70fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4f713d
call fcn.004fcc74
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f713d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f7134
xor eax, eax
jmp 0x4f7145
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f714b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4fd1a4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4fd1d2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4fd1f0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004fd10a
jmp 0x4fd1f0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4fd1f0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004fd10a
test edi, edi
mov eax, edi
jne 0x4fd1da
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401a08
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
mov esi, dword [edi]
push eax
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 8]
mov dword [edi + 0x16c], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x170], eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp ecx, dword [edi + 0x174]
jne 0x401aad
cmp eax, dword [edi + 0x178]
jne 0x401aad
push dword [ebx + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
push dword [ebx + 0x1c]
movzx eax, ax
shr eax, 0xf
mov dword [ebp + 8], eax
call esi
movzx esi, ax
mov eax, dword [ebp + 8]
shr esi, 0xf
cmp eax, dword [edi + 0x17c]
jne 0x47f994
cmp dword [ebp + 0xc], 0
je 0x401a8e
mov dword [edi + 0x17c], eax
cmp esi, dword [edi + 0x180]
jne 0x47fa00
cmp dword [ebp + 0xc], 0
je 0x401aa6
mov dword [edi + 0x180], esi
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp + 0xc], 1
mov dword [edi + 0x174], ecx
mov dword [edi + 0x178], eax
jl 0x401a54
jmp 0x47f983
push eax
push ecx
push edi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.00469c49
jmp 0x401a54
cmp dword [ebp + 0xc], 1
jl 0x401a82
cmp byte [edi + 0x1a8], 0
je 0x401a82
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test eax, eax
je 0x47f9bc
push 0xfffffffffffffff9
jmp 0x47f9ec
push 0xfffffffffffffff8
call fcn.00469c49
cmp byte [edi + 0x184], 0
je 0x47f9f1
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test eax, 0x1000000
je 0x47f9ea
push 0xfffffffffffffffa
jmp 0x47f9ec
push 0xfffffffffffffff4
call fcn.00469c49
mov eax, dword [ebp + 8]
mov byte [edi + 0x184], 0
jmp 0x401a82
cmp dword [ebp + 0xc], 1
jl 0x401a9a
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test esi, esi
je 0x47fa1b
push 0xfffffffffffffff7
jmp 0x47fa1d
push 0xfffffffffffffff6
call fcn.00469c49
jmp 0x401a9a
Function at 0x40325f
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20030
call fcn.004312f0
push ebx
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040c499
lea eax, [ebp - 0x1002c]
push eax
xor ebx, ebx
push 0x7fff
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 7]
push eax
push dword [ebp + 8]
call fcn.0040461f
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x472ab1
mov eax, dword [0x4c2130]
test eax, eax
je 0x4033a3
xor edi, edi
inc edi
mov esi, 0x4c3100
cmp eax, edi
je 0x472ac9
lea eax, [ebp - 6]
push eax
push ecx
push 0x4c2130
push 0x4c2148
mov ecx, esi
call fcn.0040491a
test al, al
je 0x4033ac
mov al, byte [0x4c3100]
mov byte [0x4c2134], al
mov al, byte [0x4c3101]
mov byte [ebp - 5], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2002c]
push eax
push 0x7fff
push dword [0x4c2148]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [ebp - 0xc]
mov ecx, 0x4c2120
call fcn.004076fb
mov bl, byte [ebp - 6]
push dword [0x4c2130]
push 0x4c2148
call fcn.004033b4
test eax, eax
jne 0x472ae8
cmp byte [ebp - 5], 1
je 0x472b07
call fcn.00403453
call fcn.00403d8d
cmp byte [0x4c2134], 0
mov ebx, 0x4c2708
jne 0x403365
mov ecx, ebx
call fcn.00403dfe
push edi
mov ecx, 0x4c2160
call fcn.0040ced0
cmp byte [0x4c2134], 0
jne 0x403380
mov ecx, ebx
call fcn.004041e9
mov ecx, esi
call fcn.004042a3
lea eax, [ebp - 0x1002c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x2c]
call fcn.004061e5
pop edi
pop esi
pop ebx
leave
ret 4
or dword [0x4c20bc], 0xffffffff
jmp 0x403387
mov dword [0x4c20bc], edi
jmp 0x403387
push 0x10
push 0x4b38f4
push str.This_is_a_third_party_compiled_AutoIt_script.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403394
push 0xffffffffffffffff
push dword [0x4c2138]
mov ecx, esi
push edi
call fcn.00443eb0
mov al, byte [0x4c20c2]
mov byte [0x4c3102], al
jmp 0x403324
mov ecx, esi
call fcn.004042a3
lea eax, [ebp - 0x1002c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4c20bc], edi
jmp 0x403394
call fcn.0043cb3d
test al, al
jne 0x403346
cmp byte [ebp - 7], al
jne 0x403346
lea ecx, [ebp - 0x2c]
call fcn.00404523
push 0x49eab4
lea ecx, [ebp - 0x1c]
call fcn.0040b800
lea ecx, [ebp - 0x1c]
test bl, bl
je 0x472b5e
mov edi, 0x4b3928
push edi
call fcn.004045a0
push 0x4c2148
lea ecx, [ebp - 0x1c]
call fcn.0040686d
push edi
lea ecx, [ebp - 0x1c]
call fcn.004045a0
push 1
jmp 0x472b67
push dword [ebp + 8]
call fcn.004045a0
push edi
lea eax, [ebp - 0x1002c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push 0x4b392c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x1c]
call fcn.004061e5
jmp 0x403380
Function at 0x40456b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push ebx
call fcn.0040b1e5
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x47564d
xor al, al
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push str.Include
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4756c7
mov eax, dword [ebp - 4]
push esi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420f2a
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00404c71
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push str.Include
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4756be
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 4], eax
mov word [esi + eax*2], cx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.004076fb
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.00404c9c
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x40459d

Function at 0x4048de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x404916
push edi
push 0
push 0x4afef4
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x476309
pop edi
pop esi
pop ebx
leave
ret
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x404915
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x404915
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x404915
mov ecx, dword [ebx]
push 0
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
mov ecx, dword [eax]
push edx
push edx
push edx
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
jmp 0x404915

Function at 0x40496e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4755e6
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4755fe
or eax, eax
jmp 0x40498d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
jmp 0x40498d
Function at 0x404f9d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x4763b3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042526e
add esp, 0x10
leave
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x404fc3
Function at 0x406310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x406384
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0x406347
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
je 0x406357
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
inc edi
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx - 1], al
inc dword [esi + 0xc]
cmp edi, ebx
jb 0x406327
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebx
pop ebp
ret 8
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406347
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x406347
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x40632f
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.00406412
jmp 0x40631e
Function at 0x419c20
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push edi
mov edi, ecx
push 5
pop eax
xor ebx, ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
push ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret
Function at 0x41aaab
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
xor edx, edx
xor ebx, ebx
push esi
inc ebx
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edx
cmp dword [eax + 4], edx
je 0x474e94
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
mov byte [ecx], dl
mov ecx, dword [ebp + 0x14]
mov dword [edi], edx
mov byte [ecx], dl
mov byte [eax], dl
mov dword [ebp - 0xc], 0x2b
mov dword [ebp - 8], 0x23
mov edi, edx
push edi
mov ecx, esi
call fcn.0041abc0
movzx eax, word [eax]
push 0x2b
pop ecx
push 0x5e
cmp ax, cx
pop ecx
push 0x21
pop edx
je 0x474e9b
cmp ax, cx
je 0x474e9b
cmp ax, dx
je 0x474e9b
cmp ax, word [ebp - 8]
je 0x474e9b
push edi
inc edi
mov ecx, esi
mov dword [ebp + 0x1c], edi
call fcn.0041abc0
movzx eax, word [eax]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
cmp eax, 0x7b
jne 0x474f16
push 0x40
lea ecx, [ebp - 0x20]
call fcn.00406832
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x7d
call fcn.0041aa5b
test al, al
je 0x41abbc
push dword [ebp - 0x20]
push dword [esi*4 + 0x4bc5d0]
call fcn.004229e7
pop ecx
pop ecx
test eax, eax
je 0x41ab8a
inc esi
cmp esi, 0x62
jl 0x41ab6f
cmp esi, 0x62
je 0x474ecd
cmp byte [esi + 0x4bc568], 0
jne 0x41abbc
movzx eax, byte [esi + str._f_b_b..__reepqrstuvwxyz________t___]
mov dword [edi], eax
lea ecx, [ebp - 0x20]
call fcn.004061e5
and dword [edi], 0xff
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x18
xor bl, bl
jmp 0x41aba5
lea ecx, [ebp - 0x20]
call fcn.004061e5
xor al, al
jmp 0x41abb5
cmp ax, word [ebp - 0xc]
jne 0x474ea6
mov eax, dword [ebp + 0x10]
jmp 0x474ec5
cmp ax, cx
jne 0x474eb0
mov eax, dword [ebp + 0x14]
jmp 0x474ec5
cmp ax, dx
jne 0x474eba
mov eax, dword [ebp + 0x18]
jmp 0x474ec5
push 0x23
pop ecx
cmp ax, cx
jne 0x474ec7
mov eax, dword [ebp + 0x1c]
mov byte [eax], bl
inc edi
jmp 0x41aaf7
push 0
lea ecx, [ebp - 0x20]
call fcn.00409bc8
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x474e8c
test eax, 0x200
je 0x474ef5
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x474f01
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x41aba5
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x41aba5
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x474e94
test eax, 0x200
je 0x474f35
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x474f41
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x41abad
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x41abad
Function at 0x41ef67
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
je 0x41efe4
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41efe4
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41efe4
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + eax]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41efcb
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jae 0x41efdb
xor ecx, ecx
mov word [esi + eax*2], cx
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x41efc9
xor al, al
jmp 0x41efd7
Function at 0x41ff88
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c20c1]
push ebx
push esi
push edi
mov esi, ecx
push 0x8000
push esi
mov edi, edx
mov byte [ebp - 1], al
call fcn.00424383
pop ecx
push eax
call fcn.004241b5
pop ecx
pop ecx
push 0xb
mov ecx, edi
mov ebx, eax
call fcn.0040bf44
test al, al
jne 0x4756d7
lea ecx, [ebp - 0x18]
call fcn.00405565
mov ecx, edi
call fcn.00407b3e
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.0042002f
push dword [ebp - 0x18]
push 0x4afc64
push esi
call fcn.0042457c
add esp, 0xc
cmp byte [ebp - 1], 0
mov dword [ebp - 8], eax
jne 0x4756f7
lea ecx, [ebp - 0x18]
call fcn.004061e5
mov edi, dword [ebp - 8]
push esi
call fcn.00424741
pop ecx
cmp ebx, 0xffffffff
je 0x47570e
push ebx
push esi
call fcn.00424383
pop ecx
push eax
call fcn.004241b5
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push esi
mov ecx, edi
call fcn.0044ce75
push eax
push 1
call fcn.0044ce32
push eax
call fcn.004244fe
add esp, 0x10
mov edi, eax
jmp 0x420008
mov ecx, edi
call fcn.00407b3e
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41fffd
push 0x4000
jmp 0x420019
Function at 0x4204f9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push edi
mov edi, 0x4c2628
jne 0x47f62f
mov ecx, dword [0x4c2694]
cmp ecx, 0xffffffff
je 0x42059f
mov eax, dword [0x4c2688]
push ebx
mov eax, dword [eax + ecx*4]
push esi
mov esi, dword [eax]
xor ecx, ecx
mov ebx, dword [esi]
cmp byte [esi + 0x3a], cl
je 0x42054b
mov byte [esi + 0x3a], cl
cmp dword [esi + 0x18c], ecx
jge 0x47f646
cmp dword [esi + 0x1a4], ecx
jne 0x47f66d
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x47f694
je 0x420573
test edi, edi
je 0x4205c0
cmp edi, 1
je 0x420573
cmp edi, 2
je 0x4205b7
cmp edi, 3
je 0x4205ae
jle 0x420595
cmp edi, 5
jg 0x4205a3
cmp byte [esi + 0x38], 0
jne 0x4205ce
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x420591
cmp edi, 4
je 0x420591
push ebx
call fcn.004205d2
mov byte [esi + 0x38], 1
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
pop ebp
ret 8
xor eax, eax
jmp 0x42059a
cmp edi, 6
je 0x47f67c
jmp 0x420595
mov byte [esi + 0x38], 1
jmp 0x47f6e9
mov byte [esi + 0x38], 1
jmp 0x47f67c
push ecx
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x420595
xor eax, eax
jmp 0x420598
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00402271
mov ecx, eax
mov dword [0x4c2694], ecx
jmp 0x420512
cmp byte [esi + 0x198], cl
je 0x42053f
push dword [esi + 0x194]
mov ecx, edi
push esi
call fcn.0046f182
xor ecx, ecx
mov byte [esi + 0x198], cl
jmp 0x42053f
push dword [esi]
call dword [sym.imp.USER32.dll_DrawMenuBar]
xor ecx, ecx
jmp 0x42054b
cmp byte [esi + 0x38], 0
je 0x4205ce
push 6
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x420595
mov eax, edi
sub eax, 9
je 0x47f6e9
sub eax, 0x37
je 0x47f6db
dec eax
je 0x47f6d8
dec eax
je 0x47f6c8
dec eax
jne 0x420595
push ecx
mov byte [esi + 0x39], cl
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push 1
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x420595
push ebx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x420595
push ecx
jmp 0x47f6dd
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x420595
cmp byte [esi + 0x38], 0
je 0x4205ce
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.004205d2
jmp 0x420595
Function at 0x4205d2
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp ebx, esi
jne 0x474f56
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 4
push edi
xor edi, edi
test esi, esi
jne 0x474f6b
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x474f7f
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x47505a
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
push 1
push edi
push dword [ebp + 8]
call esi
push 1
push dword [ebp - 4]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x475036
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 8]
test eax, eax
je 0x47503b
push 4
jmp 0x475038
push 3
pop ebx
jmp 0x47503e
mov ebx, dword [ebp - 0xc]
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call esi
push 0
push edi
push dword [ebp + 8]
call esi
push 0
push dword [ebp - 4]
push edi
call esi
jmp 0x47505d
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x4205f0