joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b731
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
Function at 0x471f75
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4d06e0], 1
jne 0x471f83
call fcn.0047205f
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x471fbb
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x471fce
call fcn.0047205f
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x472011
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

Function at 0x47201f
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0x270
jl 0x47202b
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret

Function at 0x47205f
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x472082
push 0
call fcn.0042e501
pop ecx
mov ecx, eax
call fcn.0047201f
mov dword [0x4d06e0], 0x270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x472097
mov eax, dword [esi]
mov dword [ebp - 4], 0xff0c018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x4720d1
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret
Function at 0x4145d3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x414612
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414612
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414612
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x414612
cmp dword [ecx + 0x74], 0xe
jbe 0x414612
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4269d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4269fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4269fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4059cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push esi
push ebx
mov eax, dword [section..bss]
mov ebx, dword [eax + 4]
mov ecx, dword [0x40f100]
mov dword [ebp - 4], ecx
mov esi, ecx
dec esi
mov eax, dword [0x40f020]
inc eax
add eax, ebx
mov edi, dword [0x40e084]
cmp edi, eax
jbe 0x405a25
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x405940
call sub.msvcrt.dll_fputs
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0xa
call sub.msvcrt.dll_putc
push 1
call sub.msvcrt.dll_exit
sub edi, dword [ebp - 4]
xor edx, edx
cmp edx, edi
jge 0x405a3b
mov esi, esi
mov al, byte [esi]
mov byte [ebx], al
inc esi
inc ebx
inc edx
cmp edx, edi
jl 0x405a30
mov eax, dword [section..bss]
cmp dword [eax + 0x14], 0
je 0x405a55
mov dword [0x40f020], 0
jmp 0x405ae9
mov eax, dword [eax + 0xc]
sub eax, edi
lea ebx, [eax - 1]
cmp ebx, 0x2000
jle 0x405a70
mov ebx, 0x2000
jmp 0x405abc
test ebx, ebx
jg 0x405abc
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x405980
jmp 0x405aa0
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x405abc
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x4059ac
lea esi, [esi]
call sub.msvcrt.dll_fputs
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0xa
call sub.msvcrt.dll_putc
push 1
call sub.msvcrt.dll_exit
push ebx
mov edx, dword [section..bss]
mov eax, edi
add eax, dword [edx + 4]
push eax
push dword [0x40e07c]
call sub.msvcrt.dll__fileno
add esp, 4
push eax
call sub.msvcrt.dll__read
mov dword [0x40f020], eax
add esp, 0xc
test eax, eax
jl 0x405a84
mov eax, dword [0x40f020]
test eax, eax
jne 0x405b28
cmp edi, 1
jne 0x405b10
mov ebx, 1
mov eax, dword [section..bss]
mov dword [eax + 0x14], 2
mov eax, dword [0x40f020]
jmp 0x405b2a
mov ebx, 2
mov eax, dword [section..bss]
mov dword [eax + 0x14], 1
mov eax, dword [0x40f020]
jmp 0x405b2a
xor ebx, ebx
lea edx, [edi + eax]
mov dword [0x40f020], edx
mov eax, dword [section..bss]
mov eax, dword [eax + 4]
mov byte [edx + eax], 0
mov eax, dword [section..bss]
mov edx, dword [0x40f020]
mov eax, dword [eax + 4]
mov byte [eax + edx + 1], 0
mov eax, dword [section..bss]
mov eax, dword [eax + 4]
inc eax
mov dword [0x40f100], eax
mov eax, ebx
lea esp, [ebp - 0x1c]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x40aa70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov dword [0x40e09c], 1
mov dword [0x40f0a0], 1
mov dword [0x40f090], 1
mov dword [0x40f060], 0
push 0x40aa5d
call sub.msvcrt.dll_getenv
mov dword [0x40f080], eax
mov dl, byte [ebx]
cmp dl, 0x2d
jne 0x40aac2
mov dword [0x40f070], 2
inc ebx
jmp 0x40aaee
cmp dl, 0x2b
jne 0x40aad4
mov dword [0x40f070], 0
inc ebx
jmp 0x40aaee
test eax, eax
je 0x40aae4
mov dword [0x40f070], 0
jmp 0x40aaee
mov dword [0x40f070], 1
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4205c5
Capabilities:
Encode data using xor

Disassembly:
adc dh, ch
mov cl, byte [ebx]
add ah, byte [ebp - 2]
push esp
invalid
Function at 0x403315
Capabilities:
Get common file path

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], edx
mov edi, ecx
call fcn.00487815
xor ebx, ebx
test eax, eax
je 0x40333f
cmp dword [edi - 0xc], ebx
jbe 0x403339
lea esi, [edi + 0x10]
add esi, dword [edi - 0x10]
jmp 0x40333b
mov esi, ebx
mov esi, dword [esi]
jmp 0x403341
mov esi, ebx
test edi, edi
jne 0x403349
mov eax, ebx
jmp 0x403356
push 0xfffc
push edi
call fcn.005f8590
pop ecx
pop ecx
test esi, esi
je 0x4033bd
cmp dword [esi + 0x28], ebx
je 0x4033bd
push ecx
push 0x6db77c
mov edx, eax
mov ecx, edi
call fcn.0048ec59
pop ecx
pop ecx
mov ebp, 0x770260
push ebp
push 0x8000
lea esi, [eax + 1]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
push 0x1000
push 0x76e260
push eax
push ebp
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esi + edi]
mov esi, 0x10000
push eax
push 0x76e260
push 0x6db780
push esi
push ebp
call fcn.0040117f
add esp, 0x14
jmp 0x4033d7
push edi
push 0x6db788
mov esi, 0x10000
mov ebp, 0x770260
push esi
push ebp
call fcn.0040117f
add esp, 0x10
push esi
push ebp
call fcn.005f8590
mov ebx, dword [esp + 0x1c]
mov edx, eax
pop ecx
pop ecx
push ecx
cmp byte [ebx], 0x2e
mov ecx, ebp
jne 0x40340a
push 0x6db78c
call fcn.0048ec59
push ebx
push 0x6db790
sub esi, eax
push esi
lea eax, [eax + 0x770260]
push eax
jmp 0x403425
push 0x6db794
call fcn.0048ec59
inc eax
push ebx
push 0x6db798
sub esi, eax
push esi
lea ecx, [eax + 0x770260]
push ecx
call fcn.0040117f
add esp, 0x18
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40759c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x400
mov esi, ecx
push edi
push 0x6dde10
call fcn.005f8590
mov ecx, dword [esi + 0x24]
xor ebp, ebp
push ebp
push ebp
push eax
mov edx, 0x6dde1c
call fcn.00493ee4
mov ecx, dword [esi + 8]
add esp, 0x14
mov ebx, eax
call fcn.0045cf80
mov ecx, dword [esi + 8]
mov edx, eax
call fcn.0041ca72
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 8]
call fcn.00480d97
mov ecx, dword [esi + 8]
push 0x6dde28
push 0xfffffffffffffffe
pop edx
call fcn.004192b8
pop ecx
mov ecx, dword [esi + 8]
call fcn.0041cd62
push str.Agent_Self_Test..._n
call fcn.00401109
pop ecx
cmp dword [esi + 0xbb4], ebp
je 0x407666
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x64]
call fcn.0041cb7e
mov ecx, dword [esi + 8]
or edx, 0xffffffff
push 0x6dde48
call fcn.00419063
pop ecx
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push 0xfffffffffffffffe
pop edx
call fcn.00419f51
mov edx, dword [esi + 0xbb4]
pop ecx
mov ecx, dword [esi + 8]
call fcn.0041ca72
mov ecx, dword [esi + 8]
xor edx, edx
push ebp
inc edx
call fcn.00417e9a
pop ecx
mov ecx, dword [esi + 8]
call fcn.0041cd62
mov dword [esi + 0xbb4], ebp
push str.______Loading_meshcore.js_from_db_........
call fcn.00401109
pop ecx
cmp ebx, 4
jg 0x4076a8
push edi
push 0x6dde84
call fcn.005f8590
mov ecx, dword [esi + 0x24]
mov edx, str.serviceName
push ebp
push ebp
push eax
call fcn.00493ee4
add esp, 0x14
test eax, eax
jne 0x4076a8
push str._NOT_FOUND__n
call fcn.00401109
pop ecx
jmp 0x4077a6
push str._OK__n
call fcn.00401109
mov dword [esp], 0x1078
push 0x6ddeb4
push 1
push ebx
mov dword [esi + 0xcd8], 3
call fcn.005f5ba0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4077ac
push 0x400
push 0x6ddf20
call fcn.005f8590
mov ecx, dword [esi + 0x24]
mov edx, 0x6ddf2c
push ebx
push edi
push eax
call fcn.00493ee4
mov ecx, dword [esi + 8]
lea eax, [ebx - 4]
add esp, 0x14
lea edx, [edi + 4]
push 0xd
push 0x6ddf38
push eax
call fcn.0047c63c
add esp, 0xc
test eax, eax
jne 0x407728
mov ecx, dword [esi + 8]
call fcn.0047c6c5
test eax, eax
je 0x407760
mov eax, dword [esi]
test eax, eax
je 0x407733
mov ebx, dword [eax + 8]
jmp 0x407735
mov ebx, ebp
mov ecx, dword [esi + 8]
or edx, 0xffffffff
push ebp
call fcn.0041b03c
pop ecx
push eax
push 0x6ddf48
push 2
push 0x4100
push ebx
call fcn.004920d4
mov ecx, dword [esi + 8]
add esp, 0x14
call fcn.0041cd62
push 1
push edi
call fcn.005f5a60
pop ecx
pop ecx
push 0xe88
push ecx
mov ecx, dword [esi + 8]
mov edx, str.require_agent_selftest____
call fcn.004188ff
pop ecx
pop ecx
mov ecx, dword [esi + 8]
test eax, eax
je 0x4077a1
push ebp
or edx, 0xffffffff
call fcn.0041b03c
pop ecx
push eax
push str.______Loading_Test_Script................._FAILED___s
call fcn.00401109
pop ecx
pop ecx
push 1
jmp 0x4077e2
call fcn.0041cd62
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x1078
push esi
push edi
mov edx, 0x6ddecc
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x6ddee4
push 0x6ddefc
call fcn.00401109
add esp, 0xc
push esi
call fcn.005d0820
int3
Function at 0x407c72
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, ecx
test edi, edi
je 0x407c8a
mov dword [edi], esi
push 0x1000
push 0x76c260
push 0xffffffffffffffff
push dword [ebx + 0x1c]
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x6de2e4
lea eax, [ebp - 4]
push 0x76c260
push eax
call fcn.005ee8a0
add esp, 0xc
cmp dword [ebp - 4], esi
je 0x407e1c
push 2
push 0xfffffffffffffff0
push dword [ebp - 4]
call fcn.005f0150
push dword [ebp - 4]
mov eax, 0x76f260
push 0x10
push 1
push eax
call fcn.005f8c70
add esp, 0x1c
mov ecx, esi
mov edx, 0x76f260
mov eax, dword [edx + ecx*4]
mov edx, 0x6dfcc8
cmp eax, dword [edx + ecx*4]
mov edx, 0x76f260
jne 0x407e13
inc ecx
cmp ecx, 4
jne 0x407cec
push 1
push 0xffffffffffffffec
push dword [ebp - 4]
call fcn.005f0150
push dword [ebp - 4]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.005f8c70
add esp, 0x1c
cmp eax, 4
jne 0x407e13
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_ntohl]
push 1
push 0xfffffffffffffffc
pop ecx
sub ecx, eax
mov dword [ebp - 8], eax
push ecx
push dword [ebp - 4]
call fcn.005f0150
mov edx, dword [ebp - 8]
add esp, 0xc
cmp edx, 0xffffffff
jae 0x407d80
or eax, 0xffffffff
sub eax, edx
je 0x407d80
cmp edx, 0xffffffef
jae 0x407d80
push 0x110b
push 0x6de2ec
lea eax, [edx + 0x10]
push 1
push eax
call fcn.005f5ba0
mov edx, dword [ebp - 8]
add esp, 0x10
jmp 0x407d82
mov eax, esi
push esi
push esi
mov ecx, eax
call fcn.00487604
mov esi, eax
pop ecx
pop ecx
test edi, edi
je 0x407d95
mov dword [edi], esi
push dword [ebp - 4]
push dword [ebp - 8]
push 1
push esi
call fcn.005f8c70
add esp, 0x10
cmp eax, dword [ebp - 8]
jne 0x407e13
test edi, edi
jne 0x407e13
and dword [ebp - 0xc], edi
mov edx, 0x6de30c
push ecx
mov ecx, dword [ebx + 0x1c]
call fcn.00403315
mov dword [esp], 0x1000
mov ebx, 0x76c260
push ebx
push 0xffffffffffffffff
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x6de304
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.005ee8a0
add esp, 0xc
cmp dword [ebp - 0xc], edi
je 0x407e0c
push dword [ebp - 0xc]
push dword [ebp - 8]
push 1
push esi
call fcn.005f25c0
push dword [ebp - 0xc]
call fcn.005ef550
add esp, 0x14
mov ecx, esi
call fcn.004876b9
push dword [ebp - 4]
call fcn.005ef550
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c0b5
Capabilities:
Capture screenshot
Terminate process

Disassembly:
sub esp, 0x68
mov eax, dword [0x6d9d44]
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 0x40c230
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x40c230
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x44], ebp
jne 0x40c11e
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 0x40c211
test esi, esi
je 0x40c21c
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.005c37d0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x58], ebp
cmp dword [esp + 0x44], ebp
jne 0x40c175
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 0xac
push 0x6dfcd8
push 1
push dword [esp + 0x68]
call fcn.005f5ba0
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x40c245
and dword [esp + 0x58], 0
cmp dword [esp + 0x44], 0
mov eax, dword [esp + 0x24]
jne 0x40c1d7
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.00485f64
push 1
push dword [esp + 0x18]
mov ebp, eax
call fcn.005f5a60
pop ecx
pop ecx
push dword [esp + 0x18]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
test esi, esi
je 0x40c21c
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x40c22b
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.005c0db0
add esp, 0x68
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfe
mov edx, 0x6dfcf8
push eax
push esi
xor ecx, ecx
lea edi, [esi - 0x52]
push edi
call fcn.0048f95e
add esp, 0xc
push edi
push 0x6dfd18
push 0x6dfd38
call fcn.00401109
add esp, 0xc
push esi
call fcn.005d0820
int3
Function at 0x40dbcd
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
mov ebx, ecx
push edi
mov edi, edx
cmp dword [0x76a758], esi
je 0x40dc51
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
cmp edi, 2
jl 0x40dc11
movzx eax, word [ebx]
push eax
call ebp
cmp ax, 0xa
jne 0x40dc11
push esi
push esi
push esi
push 0x40ce20
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40dc11
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, dword [0x76a758]
mov edx, ebx
push edi
call fcn.00491b70
mov eax, dword [0x76a4ec]
pop ecx
pop ecx
test eax, eax
je 0x40dc2e
mov esi, dword [eax + 8]
movzx eax, word [ebx]
push eax
call ebp
movzx eax, ax
push eax
push str.KVM__Master_:_Write_Input__Type___u_
push 4
push 0x100
push esi
call fcn.004920d4
add esp, 0x14
mov eax, edi
jmp 0x40dc73
mov ebp, 0x401971
jmp 0x40dc61
add esi, eax
mov edx, edi
sub edx, esi
lea ecx, [esi + ebx]
push dword [esp + 0x18]
push ebp
call fcn.0040d44a
pop ecx
pop ecx
test eax, eax
jne 0x40dc58
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40dca1
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
mov eax, dword [0x6d9d44]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [0x769ecc]
push ebx
mov ebx, ecx
push ebp
mov ebp, edx
push esi
push edi
test eax, eax
je 0x40dcf5
xor esi, esi
cmp dword [0x769ee8], esi
jle 0x40dce4
push 1
push dword [eax + esi*4]
call fcn.005f5a60
mov eax, dword [0x769ecc]
inc esi
pop ecx
pop ecx
cmp esi, dword [0x769ee8]
jl 0x40dcca
push 1
push eax
call fcn.005f5a60
and dword [0x769ecc], 0
pop ecx
pop ecx
mov ecx, dword [0x6e0540]
mov edi, 0x3ff
mov eax, dword [0x769edc]
imul eax, ecx
mov dword [0x6e0544], ecx
cdq
and edx, edi
lea esi, [edx + eax]
mov eax, dword [0x769ebc]
imul eax, ecx
sar esi, 0xa
mov dword [0x769eb0], esi
cdq
and edx, edi
lea ecx, [edx + eax]
mov eax, esi
cdq
idiv dword [0x769ee0]
sar ecx, 0xa
mov edi, eax
mov dword [0x769ef4], ecx
mov esi, edx
mov dword [0x769ef0], edi
mov eax, ecx
cdq
idiv dword [0x769ec0]
mov dword [0x769ee8], eax
test esi, esi
je 0x40dd60
inc edi
mov dword [0x769ef0], edi
test edx, edx
je 0x40dd6a
inc eax
mov dword [0x769ee8], eax
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 7
call esi
push 8
mov word [esp + 0x18], ax
call esi
mov word [esp + 0x16], ax
movzx eax, word [0x769eb0]
push eax
call esi
mov word [esp + 0x18], ax
movzx eax, word [0x769ef4]
push eax
call esi
push ebp
mov word [esp + 0x1e], ax
lea eax, [esp + 0x18]
push 8
push eax
call ebx
mov eax, dword [0x769ee8]
add esp, 0xc
mov edi, 0x2cb
shl eax, 2
push edi
push 0x6e0110
push 1
push eax
call fcn.005f5ba0
mov ecx, eax
add esp, 0x10
mov dword [0x769ecc], ecx
test ecx, ecx
je 0x40de85
mov edx, dword [0x769ee8]
xor esi, esi
test edx, edx
jle 0x40de48
add edi, 2
mov eax, dword [0x769ef0]
push edi
push 0x6e0194
shl eax, 3
push 1
push eax
call fcn.005f5ba0
mov ecx, dword [0x769ecc]
add esp, 0x10
mov dword [ecx + esi*4], eax
test eax, eax
je 0x40de5b
mov edx, dword [0x769ee8]
inc esi
cmp esi, edx
jl 0x40ddea
test edx, edx
jle 0x40de48
mov edi, dword [0x769ef0]
xor esi, esi
test edi, edi
jle 0x40de40
mov eax, dword [ecx]
mov dword [eax + esi*8], 0xff
mov eax, dword [ecx]
mov byte [eax + esi*8 + 4], 0
inc esi
cmp esi, edi
jl 0x40de2b
add ecx, 4
sub edx, 1
jne 0x40de25
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0db0
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6e01b4
push esi
push edi
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push str...meshcoreKVMWindowskvm.c
push 0x6e01f4
jmp 0x40dead
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6e0130
push esi
push edi
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x6e0150
push 0x6e0170
call fcn.00401109
add esp, 0xc
push esi
call fcn.005d0820
int3