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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
push ebx
push edi
xor ebx, ebx
xor edi, edi
cmp byte [esi + 7], bl
je 0x403411
push pe_nt_image_headers32
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x208]
push eax
call fcn.0044f00e
mov ebx, eax
cmp ebx, edi
pop ecx
mov dword [ebp - 4], edi
je 0x40339a
lea edi, [ebx - 1]
jmp 0x403396
movzx eax, word [ebp + edi*2 - 0x208]
push eax
call fcn.0044efc4
dec edi
test eax, eax
pop ecx
je 0x40339a
inc dword [ebp - 4]
test edi, edi
jge 0x40337f
mov eax, dword [esi + 0x48]
cmp eax, ebx
jle 0x4034bf
mov ecx, dword [esi + 0x4c]
cmp ecx, dword [ebp - 4]
jle 0x4034bf
sub eax, ecx
add eax, dword [ebp - 4]
cmp ebx, eax
jne 0x4034bf
mov eax, dword [esi + 0x18]
push ebx
lea ecx, [ebp - 0x208]
push ecx
push eax
call fcn.0044f024
add esp, 0xc
test eax, eax
jne 0x4034bf
inc dword [esi + 0x40]
push dword [esi + 0x40]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0xa0c]
push str._s_u
push eax
call fcn.0044f059
push dword [esi + 0x18]
lea eax, [ebp - 0xa0c]
push eax
call fcn.0044ef27
add esp, 0x18
test eax, eax
jmp 0x4034b3
cmp byte [esi + 8], bl
je 0x403431
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [esi + 0x30], eax
jne 0x4034bf
mov dword [esi + 0x3c], edi
jmp 0x4034bb
cmp byte [esi + 4], bl
je 0x403467
push pe_nt_image_headers32
lea eax, [ebp - 0xa0c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0xa0c]
push ecx
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
jne 0x403464
xor ebx, ebx
inc ebx
xor edi, edi
inc edi
cmp byte [esi + 6], 0
je 0x40349a
push 0x400
lea eax, [ebp - 0xa0c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0xa0c]
push ecx
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
jne 0x403499
inc ebx
inc edi
cmp byte [esi + 5], 0
je 0x4034b1
cmp ebx, edi
jne 0x4034b0
inc dword [esi + 0x40]
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x34]
jne 0x4034b0
inc ebx
inc edi
cmp ebx, edi
jne 0x4034bf
mov eax, dword [ebp + 8]
mov dword [esi + 0x3c], eax
xor eax, eax
jmp 0x4034c2
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 4

Function at 0x403679
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x4036a4
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x4036bf
push 1
jmp 0x4036a6
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
ret 8
Function at 0x4060c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20630
call fcn.00453ed0
push ebx
xor ebx, ebx
push esi
push edi
push 0x400
mov byte [0x48d8b0], bl
mov byte [0x48d8b1], bl
mov byte [0x48d8b2], bl
mov dword [0x48d8b4], ebx
mov dword [0x48d8b8], ebx
mov dword [0x48d8bc], ebx
mov dword [0x48d8c0], ebx
mov dword [0x48d8c4], 0x46c75c
mov dword [0x48d8c8], ebx
mov dword [0x48d8cc], ebx
mov dword [0x48d8d0], ebx
mov dword [0x48d8d4], 0x46c75c
mov dword [0x48d8d8], ebx
mov dword [0x48d8dc], ebx
mov dword [0x48d8e0], ebx
mov dword [0x48d8e8], ebx
mov dword [0x48d8f0], ebx
call fcn.0044e9ed
pop ecx
mov dword [0x48d8e4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004514e8
push esi
lea eax, [ebp - 0x424]
push str.Include
push eax
call fcn.00451532
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0045156f
mov edi, 0x20a
push edi
call fcn.0044e9ed
mov ecx, dword [0x48d8e4]
mov edx, dword [0x48d8e8]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48d8e8]
mov eax, dword [0x48d8e4]
mov eax, dword [eax + ecx*4]
inc dword [0x48d8e8]
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0044e973
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40632f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20630]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 4], 0x1fffe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406326
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add eax, eax
mov word [ebp + eax - 0x20630], bx
mov word [ebp + eax - 0x2062e], bx
lea eax, [ebp - 0x20630]
mov word [ebp - 0x21c], bx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, bx
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], bx
je 0x406298
cmp ax, 0x3b
je 0x406298
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044e949
pop ecx
pop ecx
jmp 0x40631d
lea eax, [ebp - 0x21c]
push eax
call fcn.0044f00e
test eax, eax
pop ecx
je 0x4062d4
lea eax, [ebp - 0x21c]
push eax
call fcn.0044f00e
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x4062d4
lea eax, [ebp - 0x21c]
push 0x46c388
push eax
call fcn.0044e949
pop ecx
pop ecx
push edi
call fcn.0044e9ed
mov ecx, dword [0x48d8e4]
mov edx, dword [0x48d8e8]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48d8e8]
mov eax, dword [0x48d8e4]
mov eax, dword [eax + ecx*4]
inc dword [0x48d8e8]
push esi
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0045158d
mov eax, dword [ebp - 8]
add esp, 0x10
cmp word [eax], bx
mov word [ebp - 0x21c], bx
je 0x406326
add dword [ebp - 8], 2
jmp 0x406268
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x48d8b0
pop ebx
leave
ret
Function at 0x40828c
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x4082a6
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x40837c
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], eax
je 0x408347
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [0x48dd68], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x408319
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x48dd68]
cmp ecx, eax
mov dword [0x48dd64], eax
je 0x40830e
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x48dd64]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x40837b
cmp dword [ebp - 8], ecx
jne 0x40837b
cmp dword [ebp - 0xc], ecx
jne 0x40837b
mov eax, dword [0x48dd68]
cmp dword [ebp - 4], eax
jne 0x40837b
cmp eax, dword [0x48dd64]
jne 0x40837b
mov eax, dword [ebp + 8]
mov dword [eax + 0x240], ecx
jmp 0x40837b
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x40836f
push edi
push dword [0x48dd64]
push eax
call esi
mov ecx, dword [0x48dd68]
mov eax, dword [0x48dd64]
cmp ecx, eax
je 0x40836f
push edi
push eax
push ecx
call esi
push edi
push dword [0x48dd68]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x408398
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
cmp byte [ebp + 0xc], al
mov byte [ebp - 1], al
je 0x4083f0
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call fcn.00408381
mov edi, dword [ebx + 4]
push ebx
call fcn.004094db
push 2
push 0
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call fcn.00408381
mov edi, dword [ebx]
push ebx
call fcn.004094db
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 8
Function at 0x4094db
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x40956f
jne 0x4094f3
push 0
jmp 0x409569
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x21d]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x409568
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x409568
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x4723a0]
call fcn.00465e16
cmp eax, edi
jb 0x409526
jmp 0x40956f
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x409576
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp word [eax], bx
push esi
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
jne 0x409595
xor al, al
jmp 0x4096b2
push eax
or eax, 0xffffffff
call fcn.0040df43
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x10], eax
mov byte [edi], bl
mov byte [esi], bl
mov byte [ecx], bl
call fcn.00450bb0
inc eax
push eax
call fcn.0044e9ed
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x4095dc
cmp al, 0x5e
je 0x4095d8
cmp al, 0x21
je 0x4095d8
cmp al, 0x23
jne 0x409600
cmp al, 0x2b
jne 0x4095e1
mov eax, dword [ebp + 0xc]
jmp 0x4095f1
cmp al, 0x5e
jne 0x4095ea
mov byte [esi], 1
jmp 0x4095fd
cmp al, 0x21
jne 0x4095f6
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x4095fd
cmp al, 0x23
jne 0x4095fd
mov byte [edi], 1
inc ebx
jmp 0x4095c2
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x409662
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.0040949e
test eax, eax
jne 0x40964e
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x478398]
call fcn.00463b25
test eax, eax
pop ecx
pop ecx
je 0x409640
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x409621
cmp esi, 0x62
je 0x40964e
cmp byte [esi + 0x478520], 0
je 0x409654
mov byte [ebp - 1], 0
jmp 0x409694
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x409694
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 8]
movsx eax, ax
test ax, 0x200
mov dword [ecx], eax
je 0x40967c
mov byte [esi], 1
test ax, 0x400
je 0x409688
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x409694
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044e722
push dword [ebp - 8]
call fcn.0044e722
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x409786
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, ebp
push edi
jne 0x4097a3
push ebp
push 0x46cb38
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4097bb
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
mov dword [esp + 0x1c], ebp
call edi
test eax, eax
jne 0x40989f
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push ebx
mov dword [esp + 0x18], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [esp + 0x18]
mov dword [esp + 0x28], eax
call esi
push 1
push dword [esp + 0x18]
push dword [esp + 0x18]
call esi
push 1
push dword [esp + 0x20]
push dword [esp + 0x1c]
call esi
push ebx
call edi
test eax, eax
jne 0x409874
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ebp
push ebp
push ebp
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push ebp
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x40987c
mov dword [esp + 0x18], 4
jmp 0x40987c
mov dword [esp + 0x18], 3
push ebp
push dword [esp + 0x20]
push dword [esp + 0x18]
call esi
push ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
call esi
push ebp
push dword [esp + 0x20]
push dword [esp + 0x1c]
call esi
jmp 0x4098a7
mov dword [esp + 0x18], 2
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x409980
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x40999d
inc edi
add eax, 8
cmp edi, 0x10
jl 0x409990
cmp edi, 0x10
jne 0x4099a9
xor eax, eax
jmp 0x409a49
cmp byte [esi + 0x18], 1
jne 0x409a20
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
lea eax, [esi + edi*8 + 0x1c]
push ebx
push 0x438
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [esi + 8], ebx
jne 0x4099fc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x4099fc
push str.VirtualAllocEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x409a08
mov eax, 0x409b13
mov ecx, dword [ebp + 0xc]
push 4
push 0x1000
push dword [ebp + 8]
lea esi, [esi + edi*8 + 0x20]
push ebx
push dword [ecx]
call eax
jmp 0x409a47
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea esi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40b4a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40b528
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40b4d1
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.00451df8
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40b527
mov eax, dword [esi]
test al, 0x20
je 0x40b4ec
push dword [esi + 4]
push 2
push ebx
push 0x46cc1c
call fcn.00451fc2
mov dword [esi + 0xc], ebx
jmp 0x40b524
test al, 0x40
je 0x40b509
push dword [esi + 4]
push 2
push ebx
push 0x46cc20
call fcn.00451fc2
mov dword [esi + 0xc], 2
jmp 0x40b524
test al, al
jns 0x40b527
push dword [esi + 4]
push 3
push ebx
push str.rb
call fcn.00451fc2
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40b55c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46cc28
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.00451cd9
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40b5e7
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.004523ce
push edi
mov ebx, eax
call fcn.004520b6
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40b5c4
cmp byte [ebp + 8], 0xff
jne 0x40b5b3
cmp byte [ebp + 9], 0xfe
jne 0x40b5c4
mov dword [esi + 0xc], 1
jmp 0x40b5e2
cmp byte [ebp + 8], 0xfe
jne 0x40b5c4
cmp byte [ebp + 9], 0xff
jne 0x40b5c4
mov dword [esi + 0xc], eax
jmp 0x40b5e2
cmp ebx, 3
jb 0x40b5e6
cmp byte [ebp + 8], 0xef
jne 0x40b5e6
cmp byte [ebp + 9], 0xbb
jne 0x40b5e6
cmp byte [ebp + 0xa], 0xbf
jne 0x40b5e6
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40b6a7
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40b6d7
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b6fd
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor al, al
jmp 0x40b6ff
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.004523ce
mov dword [edi], eax
push dword [esi + 4]
call fcn.00451be4
add esp, 0x14
test eax, eax
je 0x40b6fd
and dword [edi], 0
jmp 0x40b6d3
mov al, 1
pop ebx
ret 4

Function at 0x40ba18
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40ba97
cmp edi, 4
jle 0x40ba29
push 4
pop edi
push 4
pop eax
sub eax, edi
push eax
lea eax, [edi + esi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00451850
mov eax, dword [esi + 0x58]
sub eax, edi
lea eax, [eax + esi + 0x14]
push edi
push eax
mov eax, esi
sub eax, edi
add eax, 0x14
push eax
call fcn.00450dd0
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.004523ce
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40ba97
push dword [esi + 4]
call fcn.00451bb5
test eax, eax
pop ecx
jne 0x40ba92
push dword [esi + 4]
call fcn.00451be4
test eax, eax
pop ecx
jne 0x40ba92
pop edi
ret
or eax, 0xffffffff
pop edi
ret
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
pop edi
ret

Function at 0x40bbb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push edi
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bbfd
lea eax, [ebp + 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], edi
je 0x40bbf4
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x40bc00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x40bc60
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x40c077
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
xor esi, esi
cmp edi, ebx
mov byte [0x4795c3], bl
je 0x40c0bd
mov byte [0x489618], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40c0fe
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.004526cd
add esp, 0x18
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp esi, ebx
mov edi, eax
je 0x40c0e9
push 0xffffffffffffffff
push esi
mov byte [0x489618], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4795c3], 1
jne 0x40c0f7
or eax, 0xffffffff
jmp 0x40c0f9
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40c281
test al, 0x10
je 0x40c281
cmp byte [0x48b7b5], bl
je 0x40c281
mov al, 1
jmp 0x40c2d3
push esi
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c2a6
xor al, al
jmp 0x40c2d2
cmp dword [ebp + 0x10], ebx
jne 0x40c2b1
push dword [ebp + 0xc]
push ebx
jmp 0x40c2c1
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40c2be
push ebx
push dword [ebp + 0xc]
jmp 0x40c2c2
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebx
pop ebp
ret