joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420420
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x49584f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov ebx, ecx
push esi
push edi
mov ax, word [ebp]
add ebp, 8
mov word [ebx], ax
mov cx, word [ebp - 6]
mov word [ebx + 2], cx
mov edx, dword [ebp - 4]
lea eax, [esp + 0x12]
lea edi, [ebx + 8]
push eax
mov ecx, ebp
mov dword [esp + 0x1c], ebx
mov dword [ebx + 4], edx
mov dword [esp + 0x20], edi
call fcn.004031ab
mov esi, dword [ebp + 4]
mov ecx, dword [ebp]
xor edx, edx
sub esi, ecx
push edx
lea ecx, [edi + 8]
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], esi
mov dword [edi], edx
mov dword [edi + 4], edx
call fcn.0044b360
test esi, esi
mov byte [esp + 0x28], 1
je 0x4204a8
push esi
call fcn.00402fb6
add esp, 4
mov esi, eax
jmp 0x4204aa
xor esi, esi
mov ecx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], esi
lea edx, [esi + ecx]
mov dword [edi + 8], edx
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
mov ebp, ecx
sub ebp, eax
push ebp
push eax
push esi
call fcn.00453f50
add ebp, esi
add esp, 0xc
mov dword [edi + 4], ebp
mov ebp, dword [esp + 0x30]
lea ecx, [esp + 0x13]
lea edi, [ebx + 0x18]
push ecx
mov ax, word [ebp + 0x14]
add ebp, 0x18
mov ecx, ebp
mov dword [esp + 0x2c], 2
mov word [ebx + 0x14], ax
mov dword [esp + 0x20], edi
call fcn.0042f450
mov esi, dword [ebp + 4]
mov edx, dword [ebp]
sub esi, edx
push 0
lea ecx, [edi + 8]
push eax
mov byte [esp + 0x30], 3
mov dword [edi], 0
sar esi, 3
mov dword [edi + 4], 0
call fcn.0044b360
test esi, esi
mov byte [esp + 0x28], 4
je 0x420540
lea edx, [esi*8]
push edx
call fcn.00402fb6
add esp, 4
jmp 0x420542
xor eax, eax
lea ecx, [eax + esi*8]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp + 4]
mov ebp, dword [ebp]
push edx
push eax
push ecx
push ebp
mov byte [esp + 0x38], 6
call fcn.00406830
add esp, 0x10
mov dword [edi + 4], eax
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x30]
lea esi, [ebx + 0x28]
push ecx
mov ax, word [edi + 0x24]
add edi, 0x28
mov ecx, edi
mov byte [esp + 0x2c], 7
mov word [ebx + 0x24], ax
mov dword [esp + 0x20], esi
call fcn.0042f450
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 4]
mov eax, dword [edi]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
push 0
shr eax, 0x1f
add edx, eax
lea ecx, [esi + 8]
mov ebp, edx
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x30], 8
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0044b360
test ebp, ebp
mov byte [esp + 0x28], 9
je 0x4205ec
lea eax, [ebp + ebp*4]
shl eax, 2
push eax
call fcn.00402fb6
add esp, 4
jmp 0x4205ee
xor eax, eax
lea ecx, [ebp + ebp*4]
mov dword [esi], eax
mov dword [esi + 4], eax
lea edx, [eax + ecx*4]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x30]
mov ecx, dword [edi + 4]
mov edi, dword [edi]
push edx
push eax
push ecx
push edi
mov byte [esp + 0x38], 0xb
call fcn.00435d70
mov ecx, dword [esp + 0x30]
add esp, 0x10
mov dword [esi + 4], eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x421c60
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x495a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov word [esi], di
mov word [esi + 2], di
mov dword [esi + 4], edi
lea eax, [esp + 0xb]
push edi
push eax
lea ecx, [esi + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0044b360
mov ecx, dword [esp + 0xc]
mov word [esi + 0x14], di
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov word [esi + 0x24], di
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x421db9
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x495a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 8]
mov dword [esi], ebx
mov byte [esi + 4], 0xca
mov dword [esp + 0x10], edi
lea eax, [esp + 0xe]
push 8
push eax
mov ecx, edi
mov dword [esp + 0x24], ebx
call fcn.0042e530
mov ecx, dword [edi + 4]
mov byte [ecx], bl
lea edx, [esp + 0xf]
lea ecx, [edi + 0xc]
push edx
mov dword [esp + 0x20], 2
call fcn.00404540
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45d255
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c8728
cmp edx, dword [eax]
je 0x45d277
add eax, 8
inc ecx
cmp eax, 0x4c87b8
jl 0x45d268
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c8728]
jne 0x45d3a5
mov eax, dword [0x4cc268]
cmp eax, 1
je 0x45d37f
test eax, eax
jne 0x45d2a8
cmp dword [0x4c5c24], 1
je 0x45d37f
cmp edx, 0xfc
je 0x45d3a5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45d2df
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004553d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004539f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x45d322
lea eax, [ebp - 0x1a4]
push eax
call fcn.004539f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a767c
push edi
call fcn.00454360
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004553d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004553e0
lea eax, [ebp - 0xa0]
push 0x4a765c
push eax
call fcn.004553e0
push dword [esi + 0x4c872c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004553e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0046058b
add esp, 0x2c
pop edi
jmp 0x45d3a5
lea eax, [ebp + 8]
lea esi, [esi + 0x4c872c]
push 0
push eax
push dword [esi]
call fcn.004539f0
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 0x472350
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.00455980
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x47241b
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 0x47241b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4723ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4723d9
or bh, 8
and edi, 0x8000000
je 0x4723f4
mov eax, dword [0x4cdfdc]
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 0x47241b
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 0x4727f0
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 0x47281b
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 0x47283f
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 0x47285a
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 0x476351
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0048d6d2
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x476382
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00476395
pop edi
pop esi
pop ebx
ret 8
Function at 0x476687
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x49c12c
call fcn.00453e44
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.0048d6d2
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4766c6
call fcn.0048d6d2
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 0x4766d4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4766e2
or eax, 0xffffffff
jmp 0x4767ca
mov ecx, esi
call fcn.004765fd
mov dword [ebp - 0x14], eax
call fcn.004775a8
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x476719
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x476719
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.0047755c
push dword [ebp - 0x14]
call fcn.004770a9
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00476395
cmp eax, edi
je 0x47678c
test byte [esi + 0x24], 0x10
je 0x47675a
push 4
mov ecx, esi
pop ebx
call fcn.00479c7f
test ah, 1
je 0x476752
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004795ed
cmp dword [esi + 0x1c], edi
je 0x47678c
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00479df0
jmp 0x47678c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4767a0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4767b9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4767b9
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.00476637
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 0x477a58
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x477a90
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004760b3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047608b
jmp 0x477a9c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x479396
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 0x4793d8
call fcn.0048d6d2
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4793d8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4793cf
xor eax, eax
jmp 0x4793e0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004793e6
pop edi
pop esi
pop ebx
ret 4

Function at 0x48daf7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0048d6d2
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x48db34
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48db34
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov esi, eax
test esi, esi
jne 0x48db38
xor eax, eax
jmp 0x48dbb6
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00479ba9
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x48db70
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x48db5a
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0048dca7
push ebx
mov edi, eax
call fcn.00479bd2
test edi, edi
pop ecx
je 0x48dbb2
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0048da70
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0048dbbb
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x48e281
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 0x48e2af
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48e2cd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048e1e7
jmp 0x48e2cd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48e2cd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048e1e7
test edi, edi
mov eax, edi
jne 0x48e2b7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x49ec28
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x5f
mov al, byte [esi + 1]
xor al, cl
inc al
xor byte [ecx + ebx], al
xor byte [ecx + ebx], cl
dec ecx
jne 0x49ec30
ret
Function at 0x1004605f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100870c0]
jne 0x10046069
repz ret
jmp fcn.1004ef8a

Function at 0x1004eda7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10087268]
je 0x1004edc2
inc edi
cmp edi, 0x17
jb 0x1004edb3
cmp edi, 0x17
jae 0x1004ef42
push ebp
push 3
call fcn.10055799
cmp eax, 1
pop ecx
je 0x1004ef0e
push 3
call fcn.10055799
test eax, eax
pop ecx
jne 0x1004edf6
cmp dword [0x1008894c], 1
je 0x1004ef0e
cmp ebx, 0xfc
je 0x1004ef41
push 0x1000ae6c
mov ebx, 0x314
push ebx
mov ebp, 0x10088b00
push ebp
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee2c
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x104
mov esi, 0x10088b19
push esi
push 0
mov byte [0x10088c1d], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004ee70
push 0x1000ae54
push 0x2fb
push esi
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee70
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1004fb11
add esp, 0x14
push esi
call fcn.10055430
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1004eeb5
push esi
call fcn.10055430
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10088e14
push 0x1000a540
sub ecx, eax
push ecx
push eax
call fcn.10054a5a
add esp, 0x14
test eax, eax
je 0x1004eeb5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
jmp 0x1004eeb7
xor esi, esi
push 0x1000ae50
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eed7
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push dword [edi*8 + 0x1008726c]
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eef9
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x12010
push 0x1000ae28
push ebp
call fcn.10054a5a
add esp, 0xc
jmp 0x1004ef41
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1004ef41
cmp ebp, 0xffffffff
je 0x1004ef41
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1008726c]
push dword [esi]
call fcn.10055430
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10054a5a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10054a69
pop dword [ebp - 0x44]
mov eax, 0x12d29344
add eax, 0xfd32b725
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x5af0f
push 0
mov eax, 0x184109dc
add eax, 0xf7bf0748
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x4ca3
xor edi, edi
add edi, eax
mov esi, 0x100a0c00
add esi, dword [ebp - 0x44]
mov ebx, 0x2aa08b4a
sub ebx, 0xeb862243
xor dword [ebp - 8], edx
mov edx, dword [esi]
add dword [ebp - 8], 0x9e39c631
add edx, ebx
mov dword [ebp - 0x30], 0xba1730d9
mov dword [edi], edx
add dword [ebp - 8], 0x6887d00b
add edi, 0x15c1a58
sub edi, 0x15c1a54
add esi, 0xb24f85e6
add esi, 0x4db07a1e
loop 0x10054abe
add eax, 0x1255f
xor ebx, ebx
add ebx, eax
add eax, 0xcbadd8f9
add eax, 0x3452270c
mov ecx, 0xf530b6e8
add ecx, 0x1acf4918
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x404669
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00437b59
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x40478c
push ecx
lea ecx, [esi + 0x18]
call fcn.00423e89
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x4047a3
push ecx
lea ecx, [esi + 0x24]
call fcn.00423d99
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44a210
Capabilities:
Accept command line arguments
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
mov edi, eax
mov dword [esi], 0
call ebx
test ax, ax
jge 0x44a23b
or dword [esi], 0x2000000
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x11
mov edi, eax
call ebx
test ax, ax
jge 0x44a258
or dword [esi], 0x4000000
test edi, edi
je 0x44a26e
mov ecx, dword [0x657a4c]
push 0x657768
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0x12
call ebx
test ax, ax
jge 0x44a27d
or dword [esi], 0x8000000
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44d9d9
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00480ec9
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x44dafc
push ecx
lea ecx, [esi + 0x18]
call fcn.0046d1f9
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x44db13
push ecx
lea ecx, [esi + 0x24]
call fcn.0046d109
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x469d19
Capabilities:
Encode data using xor

Disassembly:
idiv dword [ebx + eax + 0x1f]
inc edi
salc
daa
pop ds
mov dl, 0x9c
invalid