joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401b4b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b44
test esi, esi
je 0x401b44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b20
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d30
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e58
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401dbe
cmp eax, 4
jne 0x401de0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401dce
cmp edx, 4
je 0x401dce
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d30

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0xb2a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b2a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb2a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2a06a
add dl, dl
jne 0xb2a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2a0dc
xor eax, eax
add dl, dl
jne 0xb2a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2a17d
add dl, dl
jne 0xb2a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb2a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb2a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb2a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb2a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb2a075
mov eax, 1
add dl, dl
jne 0xb2a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb2a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb2a0e1
sub eax, ebx
mov ebx, 1
jne 0xb2a128
mov ecx, 1
add dl, dl
jne 0xb2a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb2a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb2a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb2a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb2a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb2a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb2a136
cmp eax, 0x7d00
jae 0xb2a16d
cmp eax, 0x500
jb 0xb2a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb2a075
cmp eax, 0x7f
ja 0xb2a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb2a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb2a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb2a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x3067b50
Capabilities:
Create thread
Suspend thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30f36a0
push 0x306b567
mov eax, dword fs:[0]
push eax
add esp, 0xfffffa40
mov eax, dword [0x30f8968]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x28], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x3067b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x3067bca
xor eax, eax
jmp 0x3067d07
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0x1f03ff
mov edx, dword [ebp + 8]
push edx
call fcn.03067a70
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x3067bf6
mov dword [ebp - 0x300], 0
jmp 0x3067cbf
mov dword [ebp - 0x300], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x2fc], 0xffffffff
jne 0x3067c2c
mov dword [ebp - 0x300], 0
jmp 0x3067c9c
mov dword [ebp - 0x5d0], 0x10007
lea ecx, [ebp - 0x5d0]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
jne 0x3067c58
jmp 0x3067c9c
mov dword [ebp - 0x2f8], 0x10007
lea eax, [ebp - 0x2f8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
jne 0x3067c84
jmp 0x3067c9c
mov edx, dword [ebp - 0x518]
cmp edx, dword [ebp - 0x240]
je 0x3067c9c
mov dword [ebp - 0x300], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x3067cbf
cmp dword [ebp - 0x2fc], 0
jle 0x3067cd2
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xdead
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [ebp - 0x20], 0
je 0x3067cf1
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x3067d01
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0306b4ac
mov esp, ebp
pop ebp
ret 4
Function at 0x10001020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 0x24], 0x64
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x73
mov byte [ebp - 0x21], 0x6b
mov byte [ebp - 0x20], 0x74
mov byte [ebp - 0x1f], 0x6f
mov byte [ebp - 0x1e], 0x70
mov byte [ebp - 0x1d], 0x2e
mov byte [ebp - 0x1c], 0x69
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x69
mov byte [ebp - 0x19], 0
mov eax, dword [0x10002024]
mov dword [ebp - 0x10], eax
mov cx, word [0x10002028]
mov word [ebp - 0xc], cx
mov byte [0x1000300d], 0
mov byte [0x1000301a], 0
mov byte [0x10003026], 0
mov byte [0x10003032], 0
mov byte [0x10003044], 0
mov byte [0x10003051], 0
mov byte [0x10003065], 0
mov byte [0x10003073], 0
mov byte [0x10003081], 0
mov byte [0x1000308e], 0
mov byte [0x100030a1], 0
mov byte [0x100030aa], 0
push 0x100030a2
push 0x1000202c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
push 0x10003066
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x14], 0x7bf
jne 0x100010ff
call fcn.10001000
push 1
push 0
push 0
lea edx, [ebp - 0xe]
push edx
push 0
push 0
call dword [ebp - 0x18]
push 0x10003027
push 0x10002060
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push 0x1000300e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 4]
mov dword [0x100030b4], eax
push 0x40
push 0x1000
push 0x1000
push 0
call dword [ebp - 0x14]
mov dword [0x100030ac], eax
push 0
push 0x100030bc
push 0x1000
mov ecx, dword [0x100030ac]
push ecx
mov edx, dword [0x100030b4]
push edx
call dword [ebp - 8]
mov eax, dword [0x100030ac]
mov cl, byte [eax]
mov byte [0x100030b8], cl
mov dword [0x100030b0], 0x42
movzx edx, byte [0x100030b8]
xor edx, 0x4e
mov dword [0x100030c0], edx
mov dword [ebp - 0x28], 0
jmp 0x100011ce
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [0x100030bc]
jae 0x100011fe
mov edx, dword [0x100030ac]
add edx, dword [ebp - 0x28]
movzx eax, byte [edx]
xor eax, dword [0x100030c0]
add eax, dword [0x100030b0]
mov ecx, dword [0x100030ac]
add ecx, dword [ebp - 0x28]
mov byte [ecx], al
jmp 0x100011c5
call dword [0x100030ac]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x43b657
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
dec ecx
add edi, edi
call fcn.0043b68f
mov ecx, edi
sub edi, ecx
xor dword [eax], edx
sub edi, 1
inc eax
add ecx, edi
cmp eax, ebx
jne fcn.0043b657
and edi, ecx
or ecx, edi
and edi, edi
ret
Function at 0x405f87
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x10], esi
push edi
test eax, eax
jg 0x405fb2
jl 0x405fa9
test ebx, ebx
jne 0x405fb2
xor eax, eax
xor edx, edx
jmp 0x406073
cmp dword [esi + 0x38], 0
je 0x405fc7
push eax
push ebx
push dword [ebp + 8]
call fcn.004065d1
jmp 0x406073
mov eax, dword [esi + 0x1c]
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x40600b
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x40600b
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.00401ebb
mov ecx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x1c], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x406012
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x4c], 0
je 0x406069
mov ecx, esi
call fcn.00406bd6
mov ecx, dword [esp + 0x10]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x406054
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.004af64a
mov ecx, dword [esp + 0x20]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x406069
jmp 0x406025
test edx, edx
je 0x406069
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.004af64a
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42e140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
mov edi, edx
and edi, 7
je 0x42e16f
cmp edx, edi
jge 0x42e15f
push esi
call fcn.00427f60
add esp, 4
mov eax, dword [esi + 0xc]
mov ecx, edi
shr eax, cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
mov dword [esi + 0xc], eax
xor eax, eax
mov ecx, edx
test edx, edx
jle 0x42e198
mov edx, dword [esi + 0xc]
push ebx
mov bl, dl
nop dword [eax]
mov byte [ebp + eax + 8], bl
sub ecx, 8
shr edx, 8
inc eax
mov dword [esi + 0xc], edx
mov bl, dl
test ecx, ecx
jg 0x42e180
pop ebx
mov dword [esi + 8], ecx
test ecx, ecx
jns 0x42e1bb
mov ecx, dword [0x519374]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.Corrupt_PNG
pop edi
xor eax, eax
pop esi
pop ebp
ret
cmp eax, 4
jge 0x42e1dc
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jb 0x42e1cd
xor dl, dl
jmp 0x42e1d2
mov dl, byte [ecx]
inc ecx
mov dword [esi], ecx
mov byte [ebp + eax + 8], dl
inc eax
cmp eax, 4
jl 0x42e1c5
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
jne 0x42e19c
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
ja 0x42e19c
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x42e225
push edi
push ecx
push esi
call fcn.004322e0
add esp, 0xc
test eax, eax
je 0x42e1b5
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004a9b30
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret
Function at 0x464820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
movzx edx, word [eax]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
cmp ebx, eax
jb 0x464843
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
sub eax, ebx
cmp esi, eax
push edi
cmova esi, eax
xor edi, edi
mov dword [ebp + 0x14], esi
test esi, esi
je 0x464891
mov edi, dword [ebp + 0x10]
sub ebx, edi
lea ecx, [ecx]
movzx eax, byte [ebx + edi]
lea edi, [edi + 1]
mov ecx, edx
shr ecx, 8
xor ecx, eax
add eax, edx
imul eax, eax, 0x3193
mov edx, 0x58bf
mov byte [edi - 1], cl
sub edx, eax
and edx, 0xffff
dec esi
jne 0x464860
mov esi, dword [ebp + 0x14]
mov edi, esi
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 8]
lea ecx, [ebx + esi]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov word [eax], dx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f2e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00480bf0
Function at 0x48ae60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5095c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
test edi, edi
je 0x48afe8
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x48afe8
cmp dword [0x50f38c], 0
je 0x48afe8
push 1
lea eax, [esi + 8]
push eax
push dword [ebp + 0x14]
push ecx
call fcn.0048b760
add esp, 0x10
test eax, eax
jle 0x48afe8
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push ecx
push dword [ebp - 0x38]
mov dword [ebp - 0x48], 0
push dword [ebp - 0x3c]
push eax
push dword [edi + 0x38]
call dword [0x50f3a8]
mov dword [esi + 0x34], eax
test eax, eax
je 0x48af7e
mov ecx, dword [edi + 0x30]
push eax
mov dword [esi + 0x30], ecx
call dword [0x50f3b8]
mov dword [esi + 0x38], eax
test eax, eax
jne 0x48afe8
push 1
call fcn.004a6db9
add esp, 4
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0048b0f0
add esp, 8
mov ecx, eax
call fcn.0048f830
push eax
push str.Failed_to_retrieve_pixel_buffer_device_context:
call fcn.0048fab0
push eax
call fcn.0040a90e
add esp, 8
push eax
call fcn.0040aaab
push eax
call fcn.0040aacb
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00401e47
lea ecx, [ebp - 0x34]
call fcn.00407bbc
lea ecx, [ebp - 0x44]
call fcn.0040512d
push dword [esi + 0x34]
call dword [0x50f3ac]
mov dword [esi + 0x34], 0
jmp 0x48afe8
push 1
call fcn.004a6db9
add esp, 4
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0048b0f0
add esp, 8
mov ecx, eax
call fcn.0048f830
push eax
push str.Failed_to_create_pixel_buffer:
call fcn.0048fab0
push eax
call fcn.0040a90e
add esp, 8
push eax
call fcn.0040aaab
push eax
call fcn.0040aacb
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.00401e47
lea ecx, [ebp - 0x1c]
call fcn.00407bbc
lea ecx, [ebp - 0x44]
call fcn.0040512d
cmp dword [esi + 0x38], 0
jne 0x48b044
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push 0
push 0
push 0x88000000
push 0x5009b8
push str.STATIC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [esi + 0x30], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebp + 0x14]
mov ecx, esi
mov dword [esi + 0x38], eax
mov byte [esi + 0x40], 1
call fcn.0048bd70
mov ecx, esi
call fcn.0048c120
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a818a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48ff50
Capabilities:
Check for time delay via queryperformancecounter
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x10
mov ecx, dword [0x519374]
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x50f4f0]
cmp eax, dword [esi + 0x28]
jg 0x48fffa
mov eax, dword [0x50f4f8]
cmp eax, dword [esi + 0x28]
jg 0x49004f
cmp byte [0x50f4f4], 0
je 0x48ffc3
mov eax, dword [0x50f500]
cmp eax, dword [esi + 0x28]
jg 0x49008a
push 0x50f4fc
lea ecx, [ebp - 4]
call fcn.0048f9c0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 4]
call fcn.0048f9e0
jmp 0x48ffcd
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.004a9050
mulsd xmm0, qword [0x50f4e8]
call fcn.004a8f50
mov esi, dword [ebp + 8]
push edx
push eax
push esi
call fcn.0048fd40
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x50f4f0
call fcn.004a8a59
add esp, 4
cmp dword [0x50f4f0], 0xffffffff
jne 0x48ff77
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.004a9050
movsd xmm1, qword [0x4f2838]
divsd xmm1, xmm0
push 0x50f4f0
movsd qword [0x50f4e8], xmm1
call fcn.004a8a08
add esp, 4
jmp 0x48ff77
push 0x50f4f8
call fcn.004a8a59
add esp, 4
cmp dword [0x50f4f8], 0xffffffff
jne 0x48ff88
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
push 0x50f4f8
setb byte [0x50f4f4]
call fcn.004a8a08
add esp, 4
jmp 0x48ff88
push 0x50f500
call fcn.004a8a59
add esp, 4
cmp dword [0x50f500], 0xffffffff
jne 0x48ffa2
mov ecx, 0x50f4fc
call fcn.0048f950
push 0x4d1100
call fcn.004a83d4
push 0x50f500
call fcn.004a8a08
add esp, 8
jmp 0x48ffa2
Function at 0x4a1150
Capabilities:
Get system information on windows
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
mov word [esi + 0xc], 0x100
mov byte [esi + 0xe], 1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4a1177
mov dword [esi], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a1181
mov dword [esi + 8], eax
push ebx
push edi
push str.kernelbase.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4a11bf
push str.VirtualAlloc2FromApp
push ebx
call edi
mov dword [0x5179f8], eax
test eax, eax
jne 0x4a11b8
push str.VirtualAlloc2
push ebx
call edi
mov dword [0x5179f8], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x4a11e4
push str.NtAllocateVirtualMemoryEx
push ebx
call edi
push ebx
mov dword [0x5179fc], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x4a1230
push str.GetCurrentProcessorNumberEx
push ebx
call edi
push str.GetNumaProcessorNodeEx
push ebx
mov dword [0x517a00], eax
call edi
push str.GetNumaNodeProcessorMaskEx
push ebx
mov dword [0x517a04], eax
call edi
push str.GetNumaProcessorNode
push ebx
mov dword [0x517a08], eax
call edi
push ebx
mov dword [0x517a0c], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 6
call fcn.0049d7e0
add esp, 4
pop edi
pop ebx
test al, al
jne 0x4a124e
push 7
call fcn.0049d7e0
add esp, 4
test al, al
je 0x4a125a
lea eax, [esi + 4]
push eax
call fcn.004a16e0
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a1370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5095c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.004a0a50
test al, al
jne 0x4a1444
cmp dword [0x509530], 0xffffffff
jne 0x4a13c6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x509530], eax
cmp eax, 0xffffffff
je 0x4a13bf
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4a13bf
mov al, 1
jmp 0x4a13c1
xor al, al
mov byte [0x517a28], al
push esi
call fcn.0049d030
add esp, 4
lea ecx, [eax - 1]
cmp ecx, 0xfffffffd
ja 0x4a1444
cmp byte [0x517a28], 0
mov dword [ebp - 0x20], 0
je 0x4a140a
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
push esi
push dword [0x509530]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x509530]
cmp ecx, 0xffffffff
je 0x4a1433
push 0
lea edx, [ebp - 0x20]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a818a
mov esp, ebp
pop ebp
ret
push 2
call fcn.004aec03
push eax
push esi
call fcn.004baae2
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a818a
mov esp, ebp
pop ebp
ret

Function at 0x4a57d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
call fcn.004a0fa0
xor eax, fcn.004a57d0
xor eax, dword [ebp + 8]
mov edx, eax
shr edx, 0x11
xor edx, eax
and edx, 0xf
add edx, 1
je 0x4a5821
push esi
mov esi, 0x11
test eax, eax
cmove eax, esi
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
imul ecx, ecx, 0x7feb352d
mov eax, ecx
shr eax, 0xf
xor eax, ecx
imul ecx, eax, 0x846ca68b
mov eax, ecx
shr eax, 0x10
xor eax, ecx
sub edx, 1
jne 0x4a57f5
pop esi
pop ebp
ret