joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52aada
Capabilities:
Parse pe header

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

Function at 0x539111
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0xbf88e0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x539151
cmp byte [ebx], 0xa
jne 0x539151
or byte [edi + eax + 0x28], 4
jmp 0x539156
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x539255
mov dl, byte [eax]
cmp dl, 0x1a
je 0x539238
inc eax
cmp dl, 0xd
je 0x539182
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5391a8
cmp eax, ecx
jae 0x5391b6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x53916a
jmp 0x539255
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x539233
cmp dword [ebp - 0x10], 0
je 0x539233
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0xbf88e0]
test byte [eax + edi + 0x28], 0x48
je 0x53920d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5391f8
mov byte [esi], dl
jmp 0x539209
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xbf88e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x539255
cmp byte [ebp - 1], 0xa
jne 0x53921c
cmp esi, ebx
jne 0x53921c
mov byte [esi], 0xa
jmp 0x539254
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00540ef8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x539255
mov byte [esi], 0xd
jmp 0x539254
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0xbf88e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x539252
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x539255
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x53925e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0xbf88e0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5392a4
cmp word [ebx], dx
jne 0x5392a4
or byte [eax + edi + 0x28], 4
jmp 0x5392a9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x53940c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x5393ec
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5392ea
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x539320
cmp eax, edx
jae 0x53932e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x5392c5
jmp 0x53940c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5393e7
cmp dword [ebp - 0x18], 0
je 0x5393e7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0xbf88e0]
test byte [eax + edi + 0x28], 0x48
je 0x5393bd
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x539381
mov word [esi], cx
jmp 0x5393b8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0xbf88e0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0xbf88e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xbf88e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x53940c
pop eax
cmp word [ebp - 4], ax
jne 0x5393cd
cmp esi, ebx
jne 0x5393cd
mov word [esi], ax
jmp 0x539409
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00540ef8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x53940c
push 0xd
pop eax
jmp 0x5393c8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xbf88e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x539406
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x53940c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x539bec
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x55193c
push 0x551934
push str.FlsAlloc
push 0x1f
call fcn.00539aab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x539c20
push dword [ebp + 8]
mov ecx, esi
call dword [0x54e2ac]
call esi
jmp 0x539c26
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x539c6a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x55194c
push 0x551944
push str.FlsGetValue
push 0x21
call fcn.00539aab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x539ca1
push dword [ebp + 8]
mov ecx, esi
call dword [0x54e2ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x539ca9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.SunMonTueWedThuFriSat
push 0x55194c
push str.FlsSetValue
push 0x22
call fcn.00539aab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x539ce3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x54e2ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x53dc3e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x53dcdb
push ebx
push esi
call fcn.0053dc07
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0053db9b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x53dc88
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x53dcda
push edi
push eax
call fcn.00538545
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x53dca8
call fcn.00538593
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x53dcd9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0053db9b
add esp, 0x20
test eax, eax
jne 0x53dcc7
push edi
call fcn.00538593
jmp 0x53dccf
push ebx
call fcn.00538593
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x53dcde
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x53dcef
pop esi
ret
push ebx
push edi
push esi
call fcn.0053dc07
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00538545
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x53dd17
push ebx
push esi
push edi
call fcn.0052b7a0
add esp, 0xc
push 0
call fcn.00538593
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x53e0e7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053dd2c
Function at 0x5443b5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00544331
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x544524
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x544524
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5444d9
jg 0x544411
test eax, eax
je 0x5444cf
push 1
push 0x1000
call fcn.0053c27c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x544434
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5444c6
push 0x8000
push ebx
call fcn.00537be2
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x54445d
jg 0x544458
cmp ecx, 0x1000
jb 0x54445d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00540c03
add esp, 0x10
cmp eax, 0xffffffff
je 0x5444a2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x544458
jl 0x544489
test ecx, ecx
jne 0x54444a
push dword [ebp - 0xc]
push ebx
call fcn.00537be2
push esi
call fcn.00538593
add esp, 0xc
xor ebx, ebx
jmp 0x544532
cmp byte [edi + 0x24], 0
je 0x5444b9
cmp dword [edi + 0x20], 5
jne 0x5444b9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5444c4
mov ebx, dword [edi + 0x18]
jmp 0x5444c6
xor ebx, ebx
push esi
call fcn.00538593
pop ecx
jmp 0x544532
test ecx, ecx
jg 0x54449b
jl 0x5444d9
test eax, eax
jae 0x54449b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00540ef8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5444f9
cmp byte [edi + 0x1c], 0
je 0x54449b
jmp 0x54452a
push ebx
call fcn.0053e952
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x54449b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x544532
cmp byte [edi + 0x1c], 0
je 0x54452f
mov ebx, dword [edi + 0x18]
jmp 0x544532
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00540ef8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5458d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5458fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5458fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4017f0
Capabilities:
Encode data using xor
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x450040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0xfffffffffffffff5
mov dword [0x450098], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0x45009c
push dword [0x450098]
mov dword [0x4500ac], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [0x4500bc], eax
call esi
push dword [0x4500b0]
mov dword [0x4500c0], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x4500c0]
mov ecx, dword [0x4500b8]
mov esi, dword [0x4500b4]
cdq
sub eax, edx
sar eax, 1
sub eax, ecx
push 1
sub eax, 0x64
push ecx
push esi
push eax
mov eax, esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [0x4500bc]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
push eax
push dword [0x450098]
call dword [sym.imp.USER32.dll_MoveWindow]
mov ch, 0x29
mov byte [ebp - 6], 0
mov al, 0x4a
mov byte [ebp - 0xc], ch
mov ah, 0x5b
mov byte [ebp - 6], 0
xor al, ch
xor ah, ch
mov cl, 0x45
mov byte [ebp - 0xb], al
mov dl, 0x4c
mov byte [ebp - 7], ah
mov bl, 0x48
lea eax, [ebp - 0xb]
xor cl, ch
xor dl, ch
xor bl, ch
mov byte [ebp - 0xa], cl
push eax
mov byte [ebp - 9], dl
mov byte [ebp - 8], bl
call fcn.00418860
movaps xmm0, xmmword [0x448060]
xor eax, eax
movups xmmword [ebp - 0x3c], xmm0
movaps xmm0, xmmword [0x447f40]
movups xmmword [ebp - 0x2c], xmm0
movaps xmm0, xmmword [str.MTTA]
movups xmmword [ebp - 0x1c], xmm0
nop dword [eax]
mov cl, byte [ebp - 0x3c]
xor byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0x2e
jb 0x4018f0
lea eax, [ebp - 0x3b]
mov byte [ebp - 0xd], 0
push eax
call fcn.00418860
push 0x4501b8
call dword [sym.imp.steam_api.dll_SteamInternal_ContextInit]
add esp, 4
mov ecx, dword [eax]
push 0
push str.http:__127.0.0.1_
mov eax, dword [ecx]
call dword [eax + 0x78]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004403ea
mov esp, ebp
pop ebp
ret

Function at 0x401940
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x450040]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x4500ac]
cmp eax, 0xffffffff
je 0x4019be
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4019be
movsx eax, word [ebp - 0x1c]
push esi
mov esi, dword [ebp - 0x20]
push edi
movsx edi, word [ebp - 0x1a]
imul edi, eax
lea eax, [ebp - 0x24]
push eax
push esi
push edi
push 0x20
push dword [0x4500ac]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
je 0x4019bc
lea eax, [ebp - 0x24]
push eax
push esi
push edi
push dword [ebp - 0x14]
push dword [0x4500ac]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x4019bc
push esi
push dword [0x4500ac]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret
Function at 0x4019d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x450040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call fcn.00401940
movzx eax, word [0x4500fc]
push eax
push dword [0x4500ac]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov bl, 0x22
mov byte [ebp - 0x14], 0
mov al, 2
mov byte [ebp - 0x18], bl
mov dl, al
mov byte [ebp - 8], 0
mov cl, 0x5e
mov byte [ebp - 0x14], 0
xor cl, bl
mov byte [ebp - 8], 0
xor dl, bl
mov byte [ebp - 0x16], cl
mov bh, 2
mov byte [ebp - 0x15], dl
xor al, bl
mov byte [ebp - 0x10], bh
mov cl, 0x70
mov byte [ebp - 0x17], al
mov dl, cl
mov ah, cl
mov ch, 0x22
mov dh, 0x21
xor cl, bh
xor ch, bh
xor dl, bh
mov byte [ebp - 0xe], cl
xor dh, bh
mov byte [ebp - 0xd], dl
mov al, 0x47
mov byte [ebp - 0xa], ch
mov bl, 0x6d
mov byte [ebp - 9], dh
push esi
xor al, bh
lea edx, [ebp - 0xf]
xor ah, bh
mov byte [ebp - 0xf], al
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
xor bl, bh
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], ah
call fcn.00401c40
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea edx, [ebp - 0x17]
mov ecx, eax
call fcn.00401c40
mov edx, edi
mov ecx, eax
call fcn.00401c40
push 0
push 0x1388
lea ecx, [ebp - 0x18]
call fcn.004017d0
add esp, 8
mov ecx, eax
call fcn.00401e30
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x4023d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x20
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x402590
lea eax, [ebp - 0x3c]
push eax
call fcn.004015f0
movq xmm0, qword [eax]
lea eax, [ebp - 0x48]
push eax
movq qword [ebp - 0x24], xmm0
call fcn.004015f0
movq xmm0, qword [eax]
lea eax, [ebp - 0x54]
push eax
movq qword [ebp - 0x18], xmm0
call fcn.004015f0
add esp, 0xc
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x14]
addss xmm0, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
addss xmm0, dword [ebp - 0x28]
ucomiss xmm0, dword [0x447cac]
lahf
test ah, 0x44
jnp 0x402590
push ebx
push esi
mov esi, dword [0x4500e0]
push edi
mov edi, dword [0x454f3c]
add edi, dword [0x4500c4]
push str.NtReadVirtualMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 4
lea ecx, [ebp - 0xc]
push ecx
push edi
push esi
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 0
push 4
push edi
push esi
call ebx
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edi, dword [0x454f30]
push str.NtReadVirtualMemory
mov dword [ecx], eax
add edi, dword [0x4500c4]
mov esi, dword [0x4500e0]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 4
lea ecx, [ebp - 0xc]
push ecx
push edi
push esi
call eax
push 0
push 0
push 4
push edi
push esi
call ebx
mov edi, dword [0x454fb0]
add edi, dword [ebp - 0xc]
mov esi, dword [0x4500e0]
push str.NtReadVirtualMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 1
lea ecx, [ebp - 4]
push ecx
push edi
push esi
call eax
push 0
push 0
push 1
push edi
push esi
call ebx
mov edx, dword [ebp - 8]
mov al, byte [ebp - 4]
mov ebx, dword [0x454f3c]
push str.NtWriteVirtualMemory
mov ecx, dword [edx]
mov byte [edx + 4], al
push str.ntdll.dll
test al, 1
je 0x402538
or ecx, 1
jmp 0x40253b
and ecx, 0xfffffffe
mov dword [edx], ecx
add ebx, dword [0x4500c4]
mov edi, dword [0x4500e0]
mov byte [ebp - 4], cl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 1
lea eax, [ebp - 4]
push eax
push ebx
push edi
call esi
push 0
push dword [ebp - 8]
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402b80
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x450040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x4500e0]
push edi
mov edi, dword [0x454f30]
add edi, dword [0x4500c4]
push str.NtReadVirtualMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 4
lea ecx, [ebp - 0x1c]
push ecx
push edi
push esi
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 0
push 4
push edi
push esi
call ebx
mov edi, dword [0x454fd8]
add edi, dword [ebp - 0x1c]
mov esi, dword [0x4500e0]
push str.NtReadVirtualMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 1
lea ecx, [ebp - 0x15]
push ecx
push edi
push esi
call eax
push 0
push 0
push 1
push edi
push esi
call ebx
xor eax, eax
cmp byte [ebp - 0x15], al
jne 0x402c69
mov cl, 0x3e
mov dword [ebp - 0x14], 0x4851583e
mov dword [ebp - 0x10], 0x614d5d61
mov dword [ebp - 0xc], 0x4b5c5b5a
mov word [ebp - 8], 0x59
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xc
jae 0x402c47
mov cl, byte [ebp - 0x14]
jmp 0x402c38
movd xmm0, dword [0x45019c]
lea eax, [ebp - 0x13]
cvtdq2ps xmm0, xmm0
push eax
mov byte [ebp - 7], 0
movss dword [ebp - 0x20], xmm0
call fcn.0043ea50
xor dword [ebp - 0x20], eax
jmp 0x402ca5
mov cl, 0x32
mov dword [ebp - 0x14], 0x445d5432
mov dword [ebp - 0x10], 0x6d41516d
mov dword [ebp - 0xc], 0x47505756
mov word [ebp - 8], 0x55
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xc
jae 0x402c95
mov cl, byte [ebp - 0x14]
jmp 0x402c86
lea eax, [ebp - 0x13]
mov byte [ebp - 7], 0
push eax
call fcn.0043ea50
mov dword [ebp - 0x20], eax
mov edi, dword [0x4500e0]
lea ebx, [eax + 0x2c]
push str.NtWriteVirtualMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 4
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
call esi
push 0
push dword [ebp - 0x1c]
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004403ea
mov esp, ebp
pop ebp
ret
Function at 0x40bea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40becc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x40bef4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40befa
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x40bf62
jg 0x40bf11
test esi, esi
je 0x40bf62
test ecx, ecx
jl 0x40bf5d
jg 0x40bf1b
test eax, eax
je 0x40bf5d
cmp edi, ecx
jg 0x40bf2f
jl 0x40bf25
cmp esi, eax
jae 0x40bf2f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x40bf65
mov ecx, dword [ebp + 8]
jmp 0x40bf6f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x40bf89
jg 0x40bf6f
test esi, esi
je 0x40bf89
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40bf89
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc