joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4081b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41dd78
cmp edx, dword [eax]
je 0x4081d3
add eax, 8
inc ecx
cmp eax, 0x41de08
jl 0x4081c4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41dd78]
jne 0x408301
mov eax, dword [0x420714]
cmp eax, 1
je 0x4082db
test eax, eax
jne 0x408204
cmp dword [0x41d8b4], 1
je 0x4082db
cmp edx, 0xfc
je 0x408301
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40823b
lea eax, [ebp - 0x1a4]
push 0x418c98
push eax
call fcn.00408310
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408400
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40827e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408400
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x418c94
push edi
call fcn.004099e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x418c78
push eax
call fcn.00408310
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408320
lea eax, [ebp - 0xa0]
push 0x418c74
push eax
call fcn.00408320
push dword [esi + 0x41dd7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408320
push 0x12010
lea eax, [ebp - 0xa0]
push 0x418c4c
push eax
call fcn.00409949
add esp, 0x2c
pop edi
jmp 0x408301
lea eax, [ebp + 8]
lea esi, [esi + 0x41dd7c]
push 0
push eax
push dword [esi]
call fcn.00408400
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40d970
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00406830
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40da3b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40da3b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40d9ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40d9f9
or bh, 8
and edi, 0x8000000
je 0x40da14
mov eax, dword [0x421e5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40da3b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40de10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40de3b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40de5f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40de7a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x40fbc7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x416cbc
call fcn.0040603c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00415404
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x40fc06
call fcn.00415404
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40fc14
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40fc22
or eax, 0xffffffff
jmp 0x40fd0a
mov ecx, esi
call fcn.0040fb3d
mov dword [ebp - 0x14], eax
call fcn.00410950
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x40fc59
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40fc59
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00410904
push dword [ebp - 0x14]
call fcn.00410451
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0040f8ca
cmp eax, edi
je 0x40fccc
test byte [esi + 0x24], 0x10
je 0x40fc9a
push 4
mov ecx, esi
pop ebx
call fcn.004129fb
test ah, 1
je 0x40fc92
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00412460
cmp dword [esi + 0x1c], edi
je 0x40fccc
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00412a2f
jmp 0x40fccc
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x40fce0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40fcf9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x40fcf9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0040fb77
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41230e
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 0x412350
call fcn.00415404
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x412350
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x412347
xor eax, eax
jmp 0x412358
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041235e
pop edi
pop esi
pop ebx
ret 4
Function at 0x415c0c
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 0x415c3a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415c58
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00415b72
jmp 0x415c58
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415c58
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00415b72
test edi, edi
mov eax, edi
jne 0x415c42
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x131528b0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x13152a54
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xfe
call fcn.13142638
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0xfe
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.13147138
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x13152a6c
call fcn.13143d80
push 0
mov eax, dword [ebp - 4]
call fcn.13143f24
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.131428ec
mov eax, dword [ebp - 0x14]
call fcn.13143f24
push eax
call sub.kernel32.dll_CopyFileA
mov dl, 1
mov eax, dword [0x1314f52c]
call fcn.13142fb4
mov ebx, eax
mov dl, 1
mov eax, dword [0x1314f52c]
call fcn.13142fb4
mov esi, eax
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.13151978
call fcn.1314294c
mov eax, pe_nt_image_headers32
call fcn.13142a5c
mov byte [ebp - 0xc], al
mov eax, pe_nt_image_headers32
call fcn.13142a5c
mov byte [ebp - 0xb], al
mov eax, pe_nt_image_headers32
call fcn.13142a5c
mov byte [ebp - 0xa], al
mov eax, pe_nt_image_headers32
call fcn.13142a5c
mov byte [ebp - 9], al
mov cx, 2
xor edx, edx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
xor ecx, ecx
xor edx, edx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
push 0
push 0x30
mov edx, ebx
mov eax, esi
call fcn.131514a4
xor ecx, ecx
mov edx, 0x30
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
lea edx, [ebp - 0xc]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
xor eax, eax
mov al, byte [ebp - 0xc]
inc eax
mov byte [ebp - 0xc], al
lea edx, [ebp - 0xc]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
xor ecx, ecx
mov edx, 0x31
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
sub eax, 0x31
sbb edx, 0
push edx
push eax
mov edx, ebx
mov eax, esi
call fcn.131514a4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.131518a4
mov eax, ebx
call fcn.13142fe4
mov eax, esi
call fcn.13142fe4
mov eax, dword [ebp - 8]
call fcn.13142658
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13152a5b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.13143abc
lea eax, [ebp - 4]
call fcn.13143a98
ret

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00401e92
push 0x446bc6
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1ec]
mov eax, 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x40525b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
mov dword [0x446bce], eax
mov esp, ebp
pop ebp
ret

Function at 0x401e92
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
push 0x446bd2
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
push 0
push dword [0x446bce]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
nop
nop
mov esp, ebp
pop ebp
ret
Function at 0x405c3e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00401e92
mov eax, 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x4076f6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
mov dword [0x446bce], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x405c84
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x446bc6
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c8]
mov dword [ebp - 4], eax
push 1
push 1
push dword [ebp - 4]
push 0x446bc6
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x190]
mov dword [ebp - 0x10], eax
push 1
push 2
push dword [ebp - 4]
push 0x446bc6
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x190]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push 0x445262
push dword [ebp - 0x10]
mov ecx, 3
call fcn.00401171
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x405d20
push ebx
call fcn.0041c8a8
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405d30
push ebx
call fcn.0041c8a8
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405d44
push ebx
call fcn.0041c8a8
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 1
jne 0x405d84
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 4]
push 0x4076d7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
jmp 0x405ec5
cmp dword [ebp + 8], 2
jne 0x405e0e
push 1
push 0
push 0x4076d7
push 0x64
push 0x446bd2
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push 0x446bc6
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1d0]
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x405e06
fild dword [ebp - 0xc]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fsub qword [0x445264]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.00402a59
push eax
push 0x446bd2
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
pop eax
pop ebx
pop ecx
jmp 0x405dc9
add esp, 0xc
jmp 0x405ec5
cmp dword [ebp + 8], 3
jne 0x405e28
push 1
lea eax, [ebp - 8]
push eax
call fcn.00405f32
jmp 0x405ec5
cmp dword [ebp + 8], 4
jne 0x405e42
push 1
lea eax, [ebp - 8]
push eax
call fcn.0040749f
jmp 0x405ec5
cmp dword [ebp + 8], 5
jne 0x405e95
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.00405f32
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x405e6e
push ebx
call fcn.0041c8a8
add esp, 4
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.0040749f
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x405e90
push ebx
call fcn.0041c8a8
add esp, 4
jmp 0x405ec5
cmp dword [ebp + 8], 6
jne 0x405ec5
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x405eb2
mov eax, 0x445209
push eax
push 1
mov ebx, 0x2c8
call fcn.0041fea0
add esp, 0x10
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405ed5
push ebx
call fcn.0041c8a8
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x40bc07
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc4
call fcn.00420590
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40bc90
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004205b0
add esp, 0x1c
mov dword [ebp - 4], eax
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc4
call fcn.00420590
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40bd02
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004205b0
add esp, 0x1c
mov dword [ebp - 4], eax
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc4
call fcn.00420590
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40bd74
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004205b0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40bd7c
mov esp, ebp
pop ebp
ret

Function at 0x40f70c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x445264]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.00402a59
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00420550
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f790
push ebx
call fcn.0041c8a8
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
mov eax, dword [ebp - 8]
test eax, eax
je 0x40f7d0
push eax
mov ebx, eax
call fcn.00401106
inc eax
push eax
call fcn.0041c8a2
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40f7d5
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f7e6
push ebx
call fcn.0041c8a8
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x41b1b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x41b1f5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41b2cd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x41b312
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41b37e
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
nop
nop
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41b3b0
mov eax, 0
jmp 0x41b3ba
mov eax, 1
jmp 0x41b3ba
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x41cd39
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0041ca10
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x41d300
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call sub.WSOCK32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d327
push edi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x41d327
mov eax, dword [eax + 0xc]
pop edi
pop esi
mov ecx, dword [eax]
mov eax, dword [ecx]
ret
mov eax, esi
pop edi
pop esi
ret

Function at 0x41d330
Capabilities:
Initialize winsock library
Send icmp echo request

Disassembly:
sub esp, 0x2a8
lea eax, [esp + 0x118]
push ebp
push eax
push 0x202
or ebp, 0xffffffff
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x41d3c7
mov ecx, dword [esp + 0x2b4]
push ebx
push esi
push edi
push ecx
call fcn.0041d300
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x41d3b5
mov eax, dword [esp + 0x2d4]
mov edi, 0x2710
test eax, eax
je 0x41d381
mov edi, dword [esp + 0x2cc]
call sub.icmp.dll_IcmpCreateFile
mov esi, eax
test esi, esi
je 0x41d3b5
push edi
lea edx, [esp + 0x14]
push 0x116
push edx
push 0
push 0xd
push str.BlackMoonPing
push ebx
push esi
call sub.icmp.dll_IcmpSendEcho
test eax, eax
je 0x41d3af
mov ebp, dword [esp + 0x18]
push esi
call sub.icmp.dll_IcmpCloseHandle
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
mov eax, ebp
pop ebx
pop ebp
add esp, 0x2a8
ret
mov eax, ebp
pop ebp
add esp, 0x2a8
ret