joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001020
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
push 0x10019414
call fcn.100010c0
add esp, 4
mov ecx, dword [ebp - 8]
call fcn.10007390
movzx eax, al
test eax, eax
je 0x100010a6
mov ecx, dword [0x1005d5ac]
push ecx
call fcn.10001180
mov ecx, eax
call fcn.10007180
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100010a4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x64
je 0x10001075
jmp 0x10001099
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001036
push 0x10019430
call fcn.100010c0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100010c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.10014bc0
mov eax, dword [0x1001b060]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x4008]
push eax
call fcn.100012c0
add esp, 0xc
lea ecx, [ebp - 0x4008]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100074d1
mov esp, ebp
pop ebp
ret

Function at 0x10001940
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001975
push 0x100191a4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 8]
jmp 0x100019a5
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100077e0
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10003020
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001b060]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, 2
mov word [ebp - 0x24], cx
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10003079
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x100030e3
mov dword [ebp - 8], 1
push 4
lea ecx, [ebp - 8]
push ecx
push 0x100
push 0xffff
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x100030ae
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x100030e3
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x1005d54c]
cmp eax, 0xffffffff
jne 0x100030e0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x100030e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100074d1
mov esp, ebp
pop ebp
ret
Function at 0x10005bc0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0x10325476
push 0x40
push 0
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 4]
call fcn.10006dc0
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x5c], 0x80
mov esp, ebp
pop ebp
ret

Function at 0x10006e00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
push 0x10018ca0
mov eax, dword [ebp + 8]
push eax
call fcn.10009af9
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10006ec3
mov dword [ebp - 0xc], 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000a062
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call fcn.10009f6a
add esp, 4
mov dword [ebp - 0xc], eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.1000a062
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10007e62
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10009db0
add esp, 0x10
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.10005c30
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.10005d40
mov edx, dword [ebp - 4]
push edx
call fcn.1000a15e
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10007d7a
add esp, 4
mov esp, ebp
pop ebp
ret 8

Function at 0x100072d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 4]
call fcn.10007390
movzx edx, al
test edx, edx
je 0x100072f7
mov ecx, dword [ebp - 4]
call fcn.10007330
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x100073d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 1
mov esp, ebp
pop ebp
ret 4

Function at 0x100074d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001b060]
jne 0x100074db
repz ret
jmp fcn.1000a8ed
Function at 0x1001340d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000c559
and dword [ebp - 4], 0
cmp dword [0x1001cd74], 0
mov ebx, eax
jne 0x100134be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001356f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10018290
push edi
call esi
test eax, eax
je 0x1001356f
push eax
call fcn.1000c4e7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001cd74], eax
call esi
push eax
call fcn.1000c4e7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001cd78], eax
call esi
push eax
call fcn.1000c4e7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1001cd7c], eax
call esi
push eax
call fcn.1000c4e7
pop ecx
mov dword [0x1001cd84], eax
test eax, eax
je 0x100134be
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000c4e7
pop ecx
mov dword [0x1001cd80], eax
mov eax, dword [0x1001cd80]
cmp eax, ebx
je 0x10013516
cmp dword [0x1001cd84], ebx
je 0x10013516
push eax
call fcn.1000c562
push dword [0x1001cd84]
mov esi, eax
call fcn.1000c562
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10013516
test edi, edi
je 0x10013516
call esi
test eax, eax
je 0x1001350d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001350d
test byte [ebp - 0xc], 1
jne 0x10013516
or dword [ebp + 0x10], 0x200000
jmp 0x1001354f
mov eax, dword [0x1001cd78]
cmp eax, ebx
je 0x1001354f
push eax
call fcn.1000c562
pop ecx
test eax, eax
je 0x1001354f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001354f
mov eax, dword [0x1001cd7c]
cmp eax, ebx
je 0x1001354f
push eax
call fcn.1000c562
pop ecx
test eax, eax
je 0x1001354f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001cd74]
call fcn.1000c562
pop ecx
test eax, eax
je 0x1001356f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10013571
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10061062
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg cx, dx
mov dword [esp + 8], eax
cdq
rdtsc
xchg edx, eax
movzx ecx, byte [ebp - 0x1eb]
pushal
cdq
xchg dword [esp + 0x24], ecx
setns cl
movzx edx, byte [ebp - 0x1ec]
push dword [esp]
pushfd
pushfd
mov dword [esp + 0x2c], edx
mov cl, byte [esp + 8]
pushfd
cdq
mov cl, dl
movzx eax, byte [ebp - 0x1ed]
xchg ch, dl
xchg dl, cl
xchg dword [esp + 0x2c], eax
rdtsc
movzx ecx, byte [ebp - 0x1ee]
jmp 0x10065cc3
Function at 0x100629a0
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfd
test bh, ah
bt si, 1
cmp dword [ebp - 0x208], 0
pushfd
push 0x2574963a
jmp 0x100658ac
mov dword [ebp - 0x21c], eax
lea ecx, [ecx - 0x2e07b86a]
seta ch
mov dword [ebp - 0x224], 0x561f
jmp 0x10068175
lea esp, [esp + 0x18]
je 0x10065d7e
dec cx
mov ecx, dword [ebp - 0x208]
test bh, 4
push 0x6a9e2115
dec dh
movzx dx, dl
movzx edx, byte [ecx + 0x18b]
pushal
push ebp
test edx, edx
push dword [esp]
push edi
lea esp, [esp + 0x30]
jne 0x1006727a
push 0x4981a6d9
lea eax, [ebp - 0x38]
pushal
pushfd
mov dword [esp + 0x24], eax
pushfd
pushfd
lea esp, [esp + 0x2c]
call fcn.10001180
pushal
setb ch
push dword [esp + 4]
mov ecx, eax
push edx
push dword [esp + 8]
push esi
lea esp, [esp + 0x30]
call fcn.10007200
stc
pushal
mov dword [ebp - 0x20c], eax
stc
pushfd
push edi
bt bx, 0xd
cmp dword [ebp - 0x20c], 0
pushfd
lea esp, [esp + 0x2c]
je 0x100677dc
rol al, 5
rcl eax, 0x1c
lahf
pushfd
mov dword [ebp - 0x224], 0
movsx ax, dl
sal ax, 8
xor ecx, ecx
bt si, ax
rcr ax, 0xc
bsf eax, eax
cwde
mov dword [ebp - 0x220], ecx
sbb al, 0xb2
mov dword [ebp - 0x21c], ecx
clc
rcl ax, cl
bsr ax, ax
test ah, 0xad
mov dword [ebp - 0x218], 0
push ebp
stc
xor edx, edx
cwde
pop ecx
lea ecx, [eax - 0x1a1f3e39]
lea ecx, [esi - 0x3c7340c0]
mov dword [ebp - 0x214], edx
push 0x86a74bb7
setg ch
mov dword [ebp - 0x210], edx
cdq
movzx dx, bl
setno cl
mov eax, dword [ebp - 0x20c]
pop edx
mov ecx, dword [eax]
pushfd
rdtsc
movsx ax, cl
mov dword [ebp - 0x218], ecx
pushal
mov edx, dword [ebp - 0x208]
lea eax, [esi - 0x787ca51c]
pop ecx
pushal
mov eax, dword [edx + 9]
xchg dh, ch
pop edx
jmp 0x1006798f
movsx dx, al
mov dword [ebp - 0x210], eax
bswap cx
rdtsc
pushfd
mov ecx, dword [ebp - 0x208]
setl dl
lahf
lea edx, [ebp + 0x4dc60a71]
mov edx, dword [ecx + 1]
lea esp, [esp + 0x44]
jbe 0x10063711
not ch
movsx ax, bl
mov dword [ebp - 0x214], edx
movsx cx, cl
movzx ecx, al
mov dword [ebp - 0x220], 0xc
movsx ax, cl
cwde
cwde
sete cl
lea eax, [ebp - 0x218]
pushfd
jmp 0x100631ff
movsx ecx, bl
mov word [esp], dx
mov byte [esp], 0x8e
lea ecx, [ebp - 0x224]
mov byte [esp], 0xd4
call fcn.100663c2
lea eax, [ebp - 0x41349a9b]
cdq
pushfd
movzx eax, cl
mov eax, dword [ebp - 0x208]
movsx ecx, dl
lea ecx, [0x95c118db]
mov ecx, dword [eax + 9]
pushfd
mov dword [esp + 4], ecx
mov byte [esp], al
rdtsc
lea edx, [esi + 0x6d97401f]
mov edx, dword [ebp - 0x208]
mov ah, byte [esp]
mov eax, dword [edx + 1]
call fcn.10063622
jmp 0x10067df4

Function at 0x10063cbd
Capabilities:
Execute anti-debugging instructions

Disassembly:
cwde
cdq
movzx ecx, byte [ebp - 0x1ee]
rdtsc
mov dword [esp + 0x40], ecx
seta cl
rdtsc
lahf
lea ecx, [edx + 0x54983d8]
movzx edx, byte [ebp - 0x1ef]
pushfd
not ax
mov byte [esp + 4], 3
movzx ecx, dl
xchg dword [esp + 0x40], edx
movzx ecx, bl
lahf
movzx eax, byte [ebp - 0x1f0]
pushfd
setnp ch
jmp 0x1006b290
call fcn.10065a19
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10029ea1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret

Function at 0x10029ea1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10029eb0
pop dword [ebp - 0x18]
mov eax, 0x6270a798
sub eax, 0x526e08e8
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x43382
push 0
mov eax, 0x182ce579
add eax, 0xf7d60be3
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x4bc5ed82
sub ecx, 0x4bc59988
xor ebx, ebx
add ebx, eax
mov edi, 0x9bf981f6
sub edi, 0x8bf4d5f6
add edi, dword [ebp - 0x18]
mov edx, 0x6deb8267
sub edx, 0x620296c3
sub dword [ebp - 4], eax
mov esi, dword [edi]
xor dword [ebp - 0x10], 0xb081180
xor esi, edx
add dword [ebp - 4], 0xd6bd9058
mov dword [ebx], esi
add ebx, 0x757aab3b
sub ebx, 0x757aab37
add edi, 4
loop 0x10029f11
add eax, 0x142bb
xor ebx, ebx
add ebx, eax
add eax, 0xfcdf3f24
sub eax, 0xfcdf3f1f
mov ecx, 0x6bfdde4c
sub ecx, 0x5bfdde4c
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x40572a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x6b0d44]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
push 0x6b3b88
push dword [edi + 0x1c]
push eax
call fcn.005cad70
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x40585e
push 2
push 0xfffffffffffffff0
push dword [ebp - 8]
call fcn.005ad120
push dword [ebp - 8]
xor ebx, ebx
mov esi, 0x76c080
push 0x10
inc ebx
push ebx
push esi
call fcn.005d0dc0
add esp, 0x1c
mov edx, 0x6b499c
xor ecx, ecx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x405855
inc ecx
cmp ecx, 4
jne 0x40578b
push ebx
push 0xffffffffffffffec
push dword [ebp - 8]
call fcn.005ad120
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push 4
push ebx
push eax
call fcn.005d0dc0
add esp, 0x1c
cmp eax, 4
jne 0x405855
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_ntohl]
push ebx
push 0xfffffffffffffffc
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
push ecx
push dword [ebp - 8]
call fcn.005ad120
mov esi, dword [ebp - 0xc]
add esp, 0xc
lea eax, [esi + 0x24]
call fcn.0059c6e0
mov ecx, esp
mov edx, esi
push ebx
push 4
call fcn.0046bf0b
mov esi, eax
lea ecx, [esi + 4]
mov dword [esi], ecx
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
push esi
call fcn.005d0dc0
add esp, 0x18
cmp eax, dword [ebp - 0xc]
jne 0x405855
mov ecx, dword [edi + 0x1c]
mov edx, 0x6b3b90
and dword [ebp - 0x10], 0
push 0x6b3b8c
call fcn.00402962
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.005cad70
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x405855
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push ebx
push esi
call fcn.005ca2c0
push dword [ebp - 0x10]
call fcn.005ac520
add esp, 0x14
push dword [ebp - 8]
call fcn.005ac520
pop ecx
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059b3f0
mov esp, ebp
pop ebp
ret
Function at 0x407bf1
Capabilities:
Capture screenshot
Terminate process

Disassembly:
sub esp, 0x68
mov eax, dword [0x6b0d44]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
mov eax, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
lea eax, [esp + 0x1c]
push eax
push 0x18
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp eax, 0x18
jne 0x407d5b
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x407d5b
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x44], ebp
jne 0x407c5a
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x24]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
test ebx, ebx
je 0x407d3c
test esi, esi
je 0x407d47
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x2c
mov dword [esp + 0x1c], eax
xor ebp, ebp
lea eax, [esp + 0x4c]
push ebp
push eax
call fcn.0059de40
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x58], ebp
cmp dword [esp + 0x44], ebp
jne 0x407cb1
cdq
sub eax, edx
sar eax, 1
push 3
push ebp
push ebp
push eax
push dword [esp + 0x30]
push dword [esp + 0x28]
push ebp
push ebp
push ebx
call dword [sym.imp.USER32.dll_DrawIconEx]
push ebp
lea eax, [esp + 0x4c]
push eax
push ebp
push ebp
push ebp
push esi
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
push dword [esp + 0x5c]
call fcn.005d0f60
mov ebp, eax
mov dword [esp + 0x18], ebp
pop ecx
test ebp, ebp
je 0x407d70
and dword [esp + 0x58], 0
cmp dword [esp + 0x44], 0
mov eax, dword [esp + 0x24]
jne 0x407d05
cdq
sub eax, edx
sar eax, 1
push 0
lea ecx, [esp + 0x4c]
push ecx
push ebp
push eax
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edx, dword [esp + 0x5c]
mov ecx, ebp
push 0
call fcn.0046aaf2
push dword [esp + 0x14]
mov ebp, eax
call fcn.005d0f40
pop ecx
push dword [esp + 0x18]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
test esi, esi
je 0x407d47
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x407d56
push ebx
push 0
call esi
push edi
push 0
call esi
mov ecx, dword [esp + 0x74]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059b3f0
add esp, 0x68
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfe
mov edx, 0x6b49ac
push eax
push edi
xor ecx, ecx
lea esi, [edi - 0x5a]
push esi
call fcn.0047145c
push esi
push str...meshcoreKVMWindowsinput.c
push 0x6b49ec
call fcn.004010b4
add esp, 0x18
push edi
call fcn.005aae60
int3
Function at 0x4080bd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
mov ebx, dword [0x76a46c]
xor eax, eax
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
xor ebp, ebp
push edi
mov dword [esp + 0x14], ebp
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
push ecx
push 0x7f00
push ebp
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call esi
mov ecx, eax
call fcn.00407bf1
push 0x7f8a
push ebp
mov dword [0x78d20c], eax
call esi
mov ecx, eax
call fcn.00407bf1
push 0x7f03
push ebp
mov dword [0x78d1f4], eax
call esi
mov ecx, eax
call fcn.00407bf1
push 0x7f89
push ebp
mov dword [0x78d1fc], eax
call esi
mov ecx, eax
call fcn.00407bf1
push 0x7f8b
push ebp
mov dword [0x78d250], eax
call esi
mov ecx, eax
call fcn.00407bf1
push 0x7f01
push ebp
mov dword [0x78d1e8], eax
call esi
mov ecx, eax
call fcn.00407bf1
push 0x7f88
push ebp
mov dword [0x78d200], eax
call esi
mov ecx, eax
call fcn.00407bf1
push 0x7f86
push ebp
mov dword [0x78d208], eax
call esi
mov ecx, eax
call fcn.00407bf1
push 0x7f83
push ebp
mov dword [0x78d210], eax
call esi
mov ecx, eax
call fcn.00407bf1
push 0x7f85
push ebp
mov dword [0x78d1f8], eax
call esi
mov ecx, eax
call fcn.00407bf1
push 0x7f82
push ebp
mov dword [0x78d1f0], eax
call esi
mov ecx, eax
call fcn.00407bf1
mov dword [0x78d254], eax
push 0x7f84
push ebp
call esi
mov ecx, eax
call fcn.00407bf1
push 0x7f04
push ebp
mov dword [0x78d1ec], eax
call esi
mov ecx, eax
call fcn.00407bf1
push 0x7f02
push ebp
mov dword [0x78d204], eax
call esi
mov ecx, eax
call fcn.00407bf1
mov dword [0x78d214], eax
lea eax, [esp + 0x18]
pop ecx
push eax
mov dword [esp + 0x18], 0x14
call dword [sym.imp.USER32.dll_GetCursorInfo]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00407bf1
pop ecx
mov ecx, eax
call fcn.00407b48
push ebp
push ebp
push 0x15
mov dword [0x6b4ad0], eax
call fcn.005d0f60
pop ecx
push 5
pop edx
mov ecx, eax
call fcn.0046bf0b
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov edi, eax
pop ecx
pop ecx
push 0x58
call esi
push 5
mov word [edi], ax
call esi
mov dl, byte [0x6b4ad0]
mov ecx, ebx
mov byte [edi + 4], dl
mov edx, edi
mov word [edi + 2], ax
call fcn.00470071
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebp
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
push ebp
push ebp
push ebp
push 0x407fd6
push ebp
push ebp
mov dword [0x76a454], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [0x76a464], eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40830b
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, edx
mov bl, cl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x408380
push ebp
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor ebp, ebp
movzx eax, bl
inc ebp
mov word [esp + 0x10], ax
mov dword [esp + 0xc], ebp
cmp esi, ebp
jne 0x408343
mov dword [esp + 0x14], 2
jmp 0x408356
push 3
pop eax
cmp esi, eax
je 0x408352
xor eax, eax
cmp esi, 4
cmove eax, ebp
mov dword [esp + 0x14], eax
and dword [esp + 0x18], 0
push 0
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
and dword [esp + 0x1c], 0
mov word [esp + 0x12], ax
lea eax, [esp + 0xc]
push 0x1c
push eax
push ebp
call dword [sym.imp.USER32.dll_SendInput]
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x4086c2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.WS2_32.dll_bind
mov dword [ebp - 8], 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408712
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.SoftwareSASGeneration
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x409317
Capabilities:
Create thread

Disassembly:
cmp dword [0x76a5ac], 0
push ebx
push ebp
push esi
push edi
mov esi, edx
mov edi, ecx
je 0x40936f
cmp esi, 2
jl 0x40935a
movzx eax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xa
jne 0x40935a
xor eax, eax
push eax
push eax
push eax
push 0x408716
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40935a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, dword [0x76a5ac]
mov edx, edi
push esi
call fcn.004730f3
pop ecx
pop ecx
mov eax, esi
jmp 0x409393
xor ebx, ebx
mov ebp, 0x4016f7
jmp 0x409381
add ebx, eax
mov edx, esi
sub edx, ebx
lea ecx, [ebx + edi]
push dword [esp + 0x18]
push ebp
call fcn.00408c9f
pop ecx
pop ecx
test eax, eax
jne 0x409378
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret