joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ebx
push esi
push edi
mov edi, dword [esp + 0x2c]
mov dword [ecx + 0x88], edi
mov dword [ecx + 0x3c], edx
movzx edi, byte [ecx + 0x3f]
mov dword [esp + 0x20], edi
mov dword [ecx + 0x38], eax
movzx edi, byte [ecx + 0x3b]
fild dword [esp + 0x20]
mov dword [esp + 0x20], edi
movzx edi, byte [ecx + 0x3e]
fild dword [esp + 0x20]
mov dword [esp + 0x20], edi
movzx edi, byte [ecx + 0x3a]
fsubr st(1)
mov esi, dword [esp + 0x28]
fstp qword [ecx + 0x78]
mov ebx, dword [esp + 0x30]
fild dword [esp + 0x20]
mov dword [esp + 0x20], edi
movzx edi, byte [ecx + 0x3d]
fild dword [esp + 0x20]
mov dword [esp + 0x20], edi
movzx edi, byte [ecx + 0x39]
fsubr st(1)
and edx, 0xff
test edx, edx
fstp qword [ecx + 0x48]
fild dword [esp + 0x20]
mov dword [esp + 0x20], edi
mov dword [ecx + 0x40], esi
mov dword [ecx + 0x8c], ebx
fst qword [esp + 0xc]
fild dword [esp + 0x20]
mov dword [esp + 0x20], edx
fsubr st(1)
fstp qword [ecx + 0x58]
fstp st(0)
fild dword [esp + 0x20]
jge 0x4213c4
fadd qword [0x4d78a8]
and eax, 0xff
fst qword [esp + 0x14]
test eax, eax
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
jge 0x4213df
fadd qword [0x4d78a8]
movzx eax, byte [ecx + 0x43]
fsubr st(1)
movzx edx, byte [ecx + 0x42]
fstp qword [ecx + 0x68]
mov dword [esp + 0x20], eax
movzx eax, byte [ecx + 0x41]
fstp st(0)
fild dword [esp + 0x20]
mov dword [esp + 0x20], edx
and esi, 0xff
test esi, esi
fsub st(2)
fstp qword [ecx + 0x80]
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
fsub st(1)
fstp qword [ecx + 0x50]
fstp st(0)
fstp st(0)
fild dword [esp + 0x20]
mov dword [esp + 0x20], esi
fsub qword [esp + 0xc]
fstp qword [ecx + 0x60]
fild dword [esp + 0x20]
jge 0x42143a
fadd qword [0x4d78a8]
fsub qword [esp + 0x14]
pop edi
pop esi
mov dword [ecx + 0xa0], 2
fstp qword [ecx + 0x70]
pop ebx
fld qword [0x4d7388]
fdiv qword [esp + 0x20]
fstp qword [ecx + 0x90]
fld qword [0x4d7388]
fsub qword [esp + 0x20]
fdivr qword [0x4d7388]
fstp qword [ecx + 0x98]
add esp, 0x10
ret 0x14
Function at 0x424c50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d4473
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x14
mov dword [esp + 0x14], ebx
call fcn.004211e0
xor ebp, ebp
lea ecx, [ebx + 0x10]
mov dword [esp + 0x1c], ebp
mov dword [ebx], 0x4d795c
call fcn.0044e860
lea esi, [ebx + 0x34]
mov ecx, esi
mov byte [esp + 0x1c], 1
call fcn.0044e6b0
mov eax, dword [esp + 0x24]
mov dword [esi], 0x4d794c
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x10], 8
mov dword [ebx + 0xc], eax
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x288]
mov eax, dword [edx + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ebx + 8], eax
mov dword [ebx + 0x30], ecx
xor eax, eax
lea edi, [ebx + 0x6c]
mov ecx, 0x50
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ebx + 0x1ac], ebp
mov dword [ebx + 0x1b0], ebp
pop esi
mov dword [ebx + 0x68], edx
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x425ee0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
mov eax, dword [0x50cc40]
xor eax, dword [esp + 0x244]
mov ecx, dword [esp + 0x248]
push esi
push edi
mov dword [esp + 0x248], eax
mov eax, dword [esp + 0x254]
push eax
push ecx
lea edx, [esp + 0x10]
push str._s_._s
push edx
xor edi, edi
call fcn.004c3d8c
add esp, 0x10
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x425f64
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x110]
push edx
push esi
call ebp
test eax, eax
jne 0x425f5c
push esi
call ebx
or esi, 0xffffffff
inc edi
cmp esi, 0xffffffff
jne 0x425f47
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, dword [esp + 0x24c]
mov eax, edi
pop edi
pop esi
call fcn.004c3e15
add esp, 0x244
ret 8
Function at 0x435120
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d4a19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
mov eax, dword [0x50cc40]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x27c], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x2a8]
xor ebx, ebx
push 3
mov dword [esp + 0x10], ebx
call fcn.0044bad0
mov ecx, eax
call fcn.0044fe50
lea ecx, [esp + 0x138]
push ecx
push str.data_labs_.cml
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x435284
nop
xor eax, eax
mov cl, byte [esp + eax + 0x164]
mov byte [esp + eax + 0x30], cl
inc eax
cmp cl, bl
jne 0x435192
lea edx, [esp + 0x30]
push 0x2e
push edx
call fcn.004c4c00
add esp, 8
cmp eax, ebx
je 0x4351b7
mov byte [eax], bl
mov dl, byte [esp + 0x30]
xor eax, eax
cmp dl, bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], 0x4d72d0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x14
lea ecx, [esp + 0x30]
je 0x4351ee
mov dl, byte [ecx + 1]
inc eax
inc ecx
cmp dl, bl
jne 0x4351e5
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call fcn.004047b0
push ebx
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x2a8]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
push 3
mov dword [esp + 0x2a4], ebx
call fcn.0044bad0
mov ecx, eax
call fcn.00450000
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x28c], 0xffffffff
mov dword [esp + 0x10], 0x4d72d0
je 0x435251
push eax
call fcn.004c3f2c
add esp, 4
xor eax, eax
lea edx, [esp + 0x138]
push edx
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x435272
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
mov ecx, dword [esp + 0xc]
inc ecx
cmp esi, 0xffffffff
mov dword [esp + 0xc], ecx
jne 0x435190
mov ecx, dword [esp + 0x284]
mov eax, dword [esp + 0xc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x27c]
xor ecx, dword [ebp + 4]
call fcn.004c3e15
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [eax], 0x7f7fffff
mov eax, dword [esi + 0x74]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x10], edi
jbe 0x446be5
mov ecx, dword [esi + 0x7c]
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push ebp
push ecx
push edx
push eax
mov eax, dword [eax + 0xc]
push eax
call fcn.0044cfe0
add esp, 0x18
test eax, eax
je 0x446bda
fld dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
fcomp dword [ecx]
fnstsw ax
test ah, 5
jp 0x446bd2
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
mov dword [esp + 0x10], 1
mov eax, dword [esi + 0x74]
inc ebx
add edi, 0x10
cmp ebx, eax
jb 0x446b94
mov eax, dword [esi + 0x78]
xor ebx, ebx
test eax, eax
jbe 0x446c3f
xor edi, edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 0x80]
push ebp
push ecx
push edx
add eax, edi
push eax
call fcn.0044db60
add esp, 0x14
test eax, eax
je 0x446c34
fld dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
fcomp dword [ecx]
fnstsw ax
test ah, 5
jp 0x446c2c
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
mov dword [esp + 0x10], 1
mov eax, dword [esi + 0x78]
inc ebx
add edi, 0x3c
cmp ebx, eax
jb 0x446bf0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x447010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x74]
xor eax, eax
cmp ecx, eax
push esi
push edi
mov dword [esp + 0x14], eax
jbe 0x44712d
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x7c]
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, 0x10
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
add eax, edx
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x60]
call fcn.0044a8c0
mov edx, dword [eax]
mov esi, dword [ebp + 8]
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 8]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov ecx, 0x10
lea edi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x44], edx
mov dword [esp + 0x30], 0x3f800000
call fcn.0044aa40
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x20], edx
fld dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
fmul dword [esp + 0x20]
sub esp, 8
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fstp qword [esp]
call fcn.004c5be4
mov eax, dword [ebx + 0x7c]
fstp dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
fld dword [esp + 0x2c]
fmul dword [eax + ecx + 0xc]
mov ecx, dword [ebp + 0xc]
add esp, 4
lea edx, [esp + 0x38]
fstp dword [esp]
push edx
call fcn.00464a10
test eax, eax
jne 0x447181
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x74]
inc eax
add edx, 0x10
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jb 0x447036
mov eax, dword [ebx + 0x78]
xor edi, edi
test eax, eax
jbe 0x447176
xor esi, esi
jmp 0x447140
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x80]
push eax
add ecx, esi
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.0044d510
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [esp + 0x58]
push eax
call fcn.004645e0
test eax, eax
jne 0x447181
mov eax, dword [ebx + 0x78]
inc edi
add esi, 0x3c
cmp edi, eax
jb 0x447140
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x447e80
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d4e20
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, ecx
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0xc]
xor edx, edx
test eax, eax
lea ecx, [edi + 0x10]
je 0x447ec7
cmp byte [eax], dl
mov ebx, eax
je 0x447ec7
lea ebx, [ebx]
inc edx
inc ebx
cmp byte [ebx], 0
jne 0x447ec0
push edx
push eax
call fcn.004047b0
push str.Err::NoType
push str.Type
mov ecx, esi
call fcn.004535c0
push eax
lea ecx, [esp + 0x20]
call fcn.00405880
push str.Err::NoFile
push str.File
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.004535c0
push eax
lea ecx, [esp + 0x10]
call fcn.00405880
mov esi, dword [esp + 0x10]
push esi
push str.Err::NoFile
mov byte [esp + 0x3c], 1
call fcn.004044b0
add esp, 8
test eax, eax
jne 0x447f5b
test esi, esi
je 0x447f34
push esi
call fcn.004c3f2c
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x447f45
push eax
call fcn.004c3f2c
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
mov ebx, dword [esp + 0x20]
push ebx
push str.FAKT3D_GFX_MODEL
call fcn.004044b0
add esp, 8
test eax, eax
jne 0x447f7f
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.00447cf0
jmp 0x447f9d
push ebx
push str.FAKT3D_GFX_TEXTURE
call fcn.004044b0
add esp, 8
test eax, eax
jne 0x447fcf
lea edx, [esp + 0xc]
push edx
mov ecx, edi
call fcn.00447d50
test esi, esi
mov edi, eax
je 0x447fac
push esi
call fcn.004c3f2c
add esp, 4
test ebx, ebx
je 0x447fb9
push ebx
call fcn.004c3f2c
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
push ebx
push str.FAKT3D_GFX_FONT
call fcn.004044b0
add esp, 8
test eax, eax
jne 0x448017
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call fcn.00447e10
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.0044fde0
lea ecx, [esp + 0x1c]
call fcn.0044fde0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
push ebx
push str.Err::NoType
call fcn.004044b0
add esp, 8
test eax, eax
lea ecx, [esp + 0xc]
jne 0x448051
call fcn.0044fde0
lea ecx, [esp + 0x1c]
call fcn.0044fde0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
call fcn.0044fde0
lea ecx, [esp + 0x1c]
call fcn.0044fde0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x4497d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d4e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, 1
mov dword [esp + 0x14], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov dword [esp + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 2
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea ebx, [esi + 0x30]
mov ebp, 4
lea esp, [esp]
mov ecx, ebx
call fcn.00466e80
add ebx, 0x14
dec ebp
jne 0x449830
lea ebx, [esi + 0x80]
mov ebp, 4
mov ecx, ebx
call fcn.00466e80
add ebx, 0x14
dec ebp
jne 0x449848
lea ebx, [esi + 0xd0]
mov ebp, 4
mov ecx, ebx
call fcn.00466e80
add ebx, 0x14
dec ebp
jne 0x449860
lea ebp, [esi + 0x120]
mov ebx, ebp
mov dword [esp + 0x10], 4
lea ecx, [ecx]
mov ecx, ebx
call fcn.00466e80
mov eax, dword [esp + 0x10]
add ebx, 0x14
dec eax
mov dword [esp + 0x10], eax
jne 0x449880
lea ebx, [esi + 0x170]
mov ecx, ebx
call fcn.00466e80
mov ecx, dword [esp + 0x18]
mov eax, 0x3f000000
mov dword [esi + 0x80], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0x10c], edi
mov dword [ebp], edi
mov dword [esi + 0x134], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x15c], edi
mov dword [ebx], edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x58], eax
pop edi
mov dword [esi + 0x6c], 0x3f800000
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x450c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d5103
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call fcn.004529c0
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0
call fcn.00453f50
test eax, eax
jne 0x450c87
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00452a40
xor eax, eax
pop edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
mov eax, dword [edi + 8]
test eax, eax
push esi
je 0x450cf3
mov esi, dword [eax]
test esi, esi
je 0x450cf3
push 0x54
call fcn.004c3f1a
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov byte [esp + 0x34], 1
je 0x450cb5
mov ecx, eax
call fcn.00465ca0
jmp 0x450cb7
xor eax, eax
mov edx, dword [edi + 0x10]
mov ecx, dword [esi + 8]
push edi
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x40], 0
mov dword [esp + 0x48], eax
call fcn.004662f0
test eax, eax
je 0x450d1c
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 4]
push 1
push eax
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004210d0
mov esi, dword [esi]
test esi, esi
jne 0x450c95
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00452a40
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00452a40
mov ecx, dword [esp + 0x2c]
pop esi
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x451330
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d5178
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
push 0x18
mov edi, ecx
call fcn.004c3f1a
add esp, 4
test eax, eax
je 0x451369
push 1
push 1
mov ecx, eax
call fcn.00421050
mov ebx, eax
jmp 0x45136b
xor ebx, ebx
lea ecx, [esp + 8]
call fcn.004529c0
mov eax, dword [esp + 0x34]
push ebx
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0
call fcn.00453f50
test eax, eax
jne 0x4513b5
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00452a40
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push esi
mov esi, dword [ebx]
mov eax, dword [esi + 8]
test eax, eax
jne 0x4513e6
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00452a40
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push eax
mov ecx, edi
call fcn.004511e0
test eax, eax
je 0x4513bf
mov esi, dword [esi]
test esi, esi
je 0x451409
mov ecx, dword [esi + 8]
push ecx
mov ecx, edi
call fcn.00450f40
mov esi, dword [esi]
test esi, esi
jne 0x4513f8
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov esi, dword [ebx]
test esi, esi
je 0x451430
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45142a
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 8], 0
mov esi, dword [esi]
test esi, esi
jne 0x451416
mov ecx, ebx
call fcn.0044dba0
mov ecx, ebx
call fcn.0044dba0
push ebx
call fcn.004c3f2c
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00452a40
mov ecx, dword [esp + 0x28]
pop esi
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x454390
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
test byte [0x50fd8c], 1
jne 0x4543b5
mov ecx, dword [0x50fd8c]
or ecx, 1
push 0
mov dword [0x50fd8c], ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x50fd88], eax
push 0x50fc88
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x4543c7
ret 8
mov eax, dword [0x50fd88]
push esi
mov esi, dword [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
mov ecx, dword [0x50fd88]
mov edx, dword [esp + 0xc]
push ecx
push 0
push edx
push 0x50fc88
push esi
push eax
call dword [sym.imp.USER32.dll_ToAsciiEx]
pop esi
ret 8
Function at 0x4c59f5
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4f4ce0
call fcn.004c8e90
mov edi, 0x94
mov eax, edi
call fcn.004c55a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x511438], ecx
mov eax, dword [esi + 4]
mov dword [0x511444], eax
mov edx, dword [esi + 8]
mov dword [0x511448], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x51143c], esi
cmp ecx, 2
je 0x4c5a55
or esi, 0x8000
mov dword [0x51143c], esi
shl eax, 8
add eax, edx
mov dword [0x511440], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4c5a90
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c5a90
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4c5aa8
cmp eax, 0x20b
je 0x4c5a95
mov dword [ebp - 0x1c], esi
jmp 0x4c5abc
cmp dword [ecx + 0x84], 0xe
jbe 0x4c5a90
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4c5ab6
cmp dword [ecx + 0x74], 0xe
jbe 0x4c5a90
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004c94e7
pop ecx
test eax, eax
jne 0x4c5ad0
push 0x1c
call fcn.004c59d1
pop ecx
call fcn.004c8344
test eax, eax
jne 0x4c5ae1
push 0x10
call fcn.004c59d1
pop ecx
call fcn.004ce877
mov dword [ebp - 4], esi
call fcn.004ce679
test eax, eax
jge 0x4c5afa
push 0x1b
call fcn.004c59ac
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x512c24], eax
call fcn.004ce557
mov dword [0x511424], eax
call fcn.004ce4b5
test eax, eax
jge 0x4c5b20
push 8
call fcn.004c59ac
pop ecx
call fcn.004ce282
test eax, eax
jge 0x4c5b31
push 9
call fcn.004c59ac
pop ecx
call fcn.004c76c7
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4c5b44
push eax
call fcn.004c59ac
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004ce219
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4c5b65
movzx eax, word [ebp - 0x34]
jmp 0x4c5b68
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0041b270
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4c5b86
push edi
call fcn.004c77ff
call fcn.004c7821
jmp 0x4c5bb8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004c8ecb
ret
Function at 0x4c772c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004c949c
xor esi, esi
inc esi
cmp dword [0x511478], esi
pop ecx
jne 0x4c7754
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x511474], esi
mov byte [0x511470], al
jne 0x4c77ba
mov ecx, dword [0x511c14]
test ecx, ecx
je 0x4c779b
mov eax, dword [0x511c10]
sub eax, 4
cmp eax, ecx
jmp 0x4c7794
mov eax, dword [eax]
test eax, eax
je 0x4c7786
call eax
mov eax, dword [0x511c10]
sub eax, 4
cmp eax, dword [0x511c14]
mov dword [0x511c10], eax
jae 0x4c777e
mov eax, 0x5001f8
mov esi, 0x500200
cmp eax, esi
mov edi, eax
jae 0x4c77ba
mov eax, dword [edi]
test eax, eax
je 0x4c77b3
call eax
add edi, 4
cmp edi, esi
jb 0x4c77ab
mov eax, 0x500204
mov esi, 0x50020c
cmp eax, esi
mov edi, eax
jae 0x4c77d9
mov eax, dword [edi]
test eax, eax
je 0x4c77d2
call eax
add edi, 4
cmp edi, esi
jb 0x4c77ca
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4c77ea
push 8
call fcn.004c9408
jmp 0x4c77fc
push dword [ebp + 8]
mov dword [0x511478], 1
call fcn.004c7685
pop ecx
pop ebp
ret