joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50eb90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.0047be20
mov eax, dword [0x592894]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push ebx
push esi
mov esi, dword [esp + 0x44]
mov ebx, edx
lea edx, [esi - 1]
push edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
cmp edx, 0x7f
ja 0x50ed49
mov edx, dword [edi]
mov dword [esp + 0x18], edx
mov edx, dword [edi + 4]
push ebp
mov dword [esp + 0x20], edx
mov edx, dword [edi + 8]
push eax
mov dword [esp + 0x28], edx
mov edx, dword [edi + 0xc]
push edi
push edi
mov dword [esp + 0x34], edx
call ecx
lea eax, [esi + 7]
cdq
and edx, 7
add eax, edx
mov esi, eax
add esp, 0xc
sar esi, 3
cmp dword [esp + 0x58], 0
je 0x50ec37
test esi, esi
jle 0x50ec7e
mov eax, dword [esp + 0x14]
mov edx, edi
lea ebp, [esp + 0x2c]
sub edx, ebx
sub ebp, ebx
sub eax, ebx
mov ecx, ebx
mov dword [esp + 0x14], eax
lea ecx, [ecx]
mov al, byte [edx + ecx]
xor al, byte [ecx]
mov ebx, dword [esp + 0x14]
mov byte [ecx + ebp], al
mov byte [ebx + ecx], al
inc ecx
sub esi, 1
jne 0x50ec20
jmp 0x50ec7e
xor ebp, ebp
test esi, esi
jle 0x50ec7e
lea eax, [esp + 0x2c]
mov ecx, eax
sub ebx, eax
mov eax, dword [esp + 0x14]
mov edx, edi
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jmp 0x50ec64
mov edx, dword [esp + 0x18]
lea ecx, [esp + ebp + 0x2c]
mov al, byte [ebx + ecx]
mov dl, byte [edx + ecx]
xor dl, al
mov byte [ecx], al
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, esi
mov byte [eax + ecx], dl
jl 0x50ec60
mov eax, dword [esp + 0x4c]
mov ecx, eax
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x50ec91
dec ecx
or ecx, 0xfffffff8
inc ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x50ecd2
mov ecx, dword [esp + eax + 0x1c]
mov edx, dword [esp + eax + 0x20]
lea eax, [esp + eax + 0x1c]
mov dword [edi], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 4], edx
mov edx, dword [eax + 0xc]
pop ebp
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0047b812
add esp, 0x34
ret
mov dl, 8
sub dl, cl
mov byte [esp + 0x13], dl
inc edi
lea esi, [esp + eax + 0x1d]
mov ebp, 4
movzx edx, byte [esi - 1]
mov al, byte [esi]
shl dl, cl
movzx ecx, byte [esp + 0x13]
mov bl, al
shr bl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
movzx ecx, byte [esp + 0x13]
or dl, bl
mov byte [edi - 1], dl
mov dl, byte [esi + 1]
mov bl, dl
shr bl, cl
mov ecx, dword [esp + 0x14]
shl dl, cl
movzx ecx, byte [esp + 0x13]
or al, bl
mov byte [edi], al
mov al, byte [esi + 2]
mov bl, al
shr bl, cl
movzx ecx, byte [esp + 0x13]
or dl, bl
mov byte [edi + 1], dl
movzx edx, byte [esi + 3]
shr dl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
add esi, 4
add edi, 4
or dl, al
sub ebp, 1
mov byte [edi - 2], dl
jne 0x50ece4
pop ebp
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047b812
add esp, 0x34
ret
Function at 0x50ee50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
test eax, eax
je 0x50ee8a
test edi, edi
je 0x50ee8a
mov dl, byte [eax + esi]
mov ebp, dword [esp + 0x10]
xor dl, byte [ebp]
mov ecx, dword [esp + 0x14]
mov byte [ecx], dl
inc ecx
inc ebp
inc eax
dec edi
and eax, 0xf
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebp
jne 0x50ee65
cmp edi, 0x10
jb 0x50eef2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, edi
shr eax, 4
push ebx
mov ebx, ecx
mov ebp, edx
mov dword [esp + 0x1c], eax
shl eax, 4
add ecx, eax
sub ebx, esi
sub ebp, esi
add edx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x20]
push eax
push esi
push esi
call dword [esp + 0x38]
add esp, 0xc
mov eax, esi
mov ecx, 4
lea ecx, [ecx]
mov edx, dword [eax + ebp]
xor edx, dword [eax]
add eax, 4
sub ecx, 1
mov dword [ebx + eax - 4], edx
jne 0x50eed0
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
sub dword [esp + 0x1c], 1
jne 0x50eeb8
pop ebx
xor eax, eax
test edi, edi
je 0x50ef2e
mov eax, dword [esp + 0x1c]
push eax
push esi
push esi
call dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
sub ecx, esi
add esp, 0xc
mov eax, esi
sub ebp, esi
mov esi, edi
mov dl, byte [eax + ecx]
xor dl, byte [eax]
dec edi
mov byte [eax + ebp], dl
inc eax
test edi, edi
jne 0x50ef16
mov eax, dword [esp + 0x24]
pop edi
mov dword [eax], esi
pop esi
pop ebp
ret
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword [ecx], eax
pop ebp
ret
Function at 0x4010ec
Capabilities:
Allocate or change rwx memory
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x40707c]
xor eax, dword [ebp + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
push str.0kelfkkkkkkkkkkk
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401140
push 0x40
push 0x1000
push 0xffff
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 4], eax
mov dword [ebp - 0x8c], 0
push 0xa
call fcn.00401467
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp - 4]
push eax
call fcn.004011f0
add esp, 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
push edx
call fcn.00401462
add esp, 4
push 0x64
call fcn.00401454
add esp, 4
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 8]
xor ecx, dword [ebp + 4]
call fcn.004014a3
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4011f0
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
push str.sd2nwjwwqx.e
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401251
push 0
call fcn.004011b1
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push eax
push 0
call fcn.00401266
add esp, 8
push 0
call sub.WinSCard.dll_SCardCancel
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4014d6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x405120
call fcn.0040190c
mov edi, 0x94
mov eax, edi
call fcn.00402510
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 [0x407300], ecx
mov eax, dword [esi + 4]
mov dword [0x40730c], eax
mov edx, dword [esi + 8]
mov dword [0x407310], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x407304], esi
cmp ecx, 2
je 0x401536
or esi, 0x8000
mov dword [0x407304], esi
shl eax, 8
add eax, edx
mov dword [0x407308], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401571
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401571
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401589
cmp eax, 0x20b
je 0x401576
mov dword [ebp - 0x1c], esi
jmp 0x40159d
cmp dword [ecx + 0x84], 0xe
jbe 0x401571
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401597
cmp dword [ecx + 0x74], 0xe
jbe 0x401571
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004024bd
pop ecx
test eax, eax
jne 0x4015c9
cmp dword [0x4072ec], 1
jne 0x4015b6
call fcn.00401c66
push 0x1c
call fcn.00401aef
push 0xff
call fcn.00401958
pop ecx
pop ecx
call fcn.0040241b
mov dword [ebp - 4], esi
call fcn.00402270
test eax, eax
jge 0x4015e2
push 0x1b
call fcn.004014b1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407834], eax
call fcn.0040214e
mov dword [0x4072e4], eax
call fcn.004020ac
test eax, eax
jge 0x401608
push 8
call fcn.004014b1
pop ecx
call fcn.00401e79
test eax, eax
jge 0x401619
push 9
call fcn.004014b1
pop ecx
call fcn.00401988
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40162c
push eax
call fcn.004014b1
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401e10
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40164d
movzx eax, word [ebp - 0x34]
jmp 0x401650
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004010ec
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40166e
push edi
call fcn.00401aaf
call fcn.00401ad1
jmp 0x4016a0
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401947
ret
Function at 0x4019ed
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x407340], esi
push edi
jne 0x401a0d
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 [0x40733c], esi
mov byte [0x407338], al
jne 0x401a73
mov ecx, dword [0x407828]
test ecx, ecx
je 0x401a54
mov eax, dword [0x407824]
sub eax, 4
cmp eax, ecx
jmp 0x401a4d
mov eax, dword [eax]
test eax, eax
je 0x401a3f
call eax
mov eax, dword [0x407824]
sub eax, 4
cmp eax, dword [0x407828]
mov dword [0x407824], eax
jae 0x401a37
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x401a73
mov eax, dword [edi]
test eax, eax
je 0x401a6c
call eax
add edi, 4
cmp edi, esi
jb 0x401a64
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x401a92
mov eax, dword [edi]
test eax, eax
je 0x401a8b
call eax
add edi, 4
cmp edi, esi
jb 0x401a83
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401aad
push dword [ebp + 8]
mov dword [0x407340], 1
call fcn.00401958
pop ecx
pop ebp
ret

Function at 0x401aef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40707c]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x407088]
je 0x401b1c
inc eax
cmp eax, 0x12
jb 0x401b0d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x407088]
jne 0x401c50
mov eax, dword [0x4072ec]
cmp eax, 1
je 0x401c2b
cmp eax, edx
jne 0x401b4c
cmp dword [0x407084], 1
je 0x401c2b
cmp ecx, 0xfc
je 0x401c50
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401b85
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00403190
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004033c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401bc7
lea eax, [ebp - 0x10c]
push eax
call fcn.004033c0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x405164
push edi
call fcn.00403290
add esp, 0x10
push edi
call fcn.004033c0
push dword [esi + 0x40708c]
mov ebx, eax
call fcn.004033c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402510
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403190
push edi
push ebx
call fcn.004031a0
push 0x405160
push ebx
call fcn.004031a0
push dword [esi + 0x40708c]
push ebx
call fcn.004031a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040308b
add esp, 0x2c
jmp 0x401c50
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40708c]
push dword [esi]
call fcn.004033c0
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004014a3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40308b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x407464], ebx
push esi
push edi
jne 0x40310b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403146
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x407464], eax
je 0x403146
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x407468], eax
call esi
cmp dword [0x407300], 2
mov dword [0x40746c], eax
jne 0x40310b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x407474], eax
je 0x40310b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x407470], eax
mov eax, dword [0x407470]
test eax, eax
je 0x403150
call eax
test eax, eax
je 0x403137
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x407474]
test eax, eax
je 0x403137
test byte [ebp - 8], 1
jne 0x403150
cmp dword [0x40730c], 4
jb 0x40314a
or byte [ebp + 0x12], 0x20
jmp 0x40316f
xor eax, eax
jmp 0x40317f
or byte [ebp + 0x12], 4
jmp 0x40316f
mov eax, dword [0x407468]
test eax, eax
je 0x40316f
call eax
mov ebx, eax
test ebx, ebx
je 0x40316f
mov eax, dword [0x40746c]
test eax, eax
je 0x40316f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x407464]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404b18
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402510
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404bad
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x407300]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x404bad
cmp eax, 1
je 0x404bc5
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404bad
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x404b82
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x404ba9
xor eax, eax
inc eax
jmp 0x404be1
cmp esi, ebx
jae 0x404bb1
xor eax, eax
jmp 0x404be1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x407300]
jmp 0x404bc7
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x434a8e
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4

Function at 0x43585a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea edi, [ecx + 4]
mov dword [ebp - 0xc], ecx
mov dword [ecx], 0x44a188
xor edx, edx
xor eax, eax
mov ecx, edi
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x435875
mov byte [edi + 0x100], dl
mov byte [edi + 0x101], dl
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 8], 0x100
mov al, byte [ecx]
movzx esi, dl
mov edx, dword [ebp + 8]
mov byte [ebp - 1], al
movzx eax, al
movzx edx, byte [esi + edx]
add ebx, edx
add eax, ebx
mov ebx, 0x100
cdq
idiv ebx
movzx ebx, dl
mov al, byte [ebx + edi]
mov byte [ecx], al
mov al, byte [ebp - 1]
mov byte [ebx + edi], al
lea eax, [esi + 1]
cdq
idiv dword [ebp + 0xc]
inc ecx
dec dword [ebp - 8]
jne 0x435896
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4358fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
mov al, byte [ecx + 0x104]
mov dl, byte [ecx + 0x105]
jbe 0x4359a0
push ebx
push esi
push edi
movzx edi, al
movzx ebx, dl
jmp 0x43592a
mov ebx, dword [ebp - 0xc]
lea eax, [edi + 1]
mov esi, 0x100
cdq
idiv esi
movzx edi, dl
mov al, byte [edi + ecx + 4]
mov byte [ebp - 2], dl
lea esi, [edi + ecx + 4]
mov byte [ebp - 1], al
movzx eax, al
add eax, ebx
mov ebx, 0x100
cdq
idiv ebx
mov ebx, dword [ebp - 8]
movzx eax, dl
mov dword [ebp - 0xc], eax
mov byte [ebp - 3], dl
mov dl, byte [eax + ecx + 4]
lea eax, [eax + ecx + 4]
mov byte [esi], dl
mov dl, byte [ebp - 1]
mov byte [eax], dl
mov eax, dword [ebp + 8]
add ebx, eax
movzx eax, byte [esi]
movzx edx, dl
add eax, edx
mov esi, 0x100
cdq
idiv esi
movzx eax, dl
mov al, byte [eax + ecx + 4]
xor byte [ebx], al
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jb 0x435927
mov al, byte [ebp - 2]
mov dl, byte [ebp - 3]
pop edi
pop esi
pop ebx
push 1
mov byte [ecx + 0x104], al
mov byte [ecx + 0x105], dl
pop eax
leave
ret 8
Function at 0x436636
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x448fe3
call fcn.00448330
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004377ab
xor edi, edi
mov dword [esi + 0x1c], 0xa
mov dword [ebp - 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x18], edi
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi], 0x44a198
mov dword [esi + 0x30], ebx
call fcn.0043e78e
push edi
mov dword [esi + 4], eax
push dword [ebp + 0xc]
push ebx
push eax
call fcn.0043e7b5
push 8
call sub.MFC42.DLL_operatornew
mov dword [esi + 0x24], eax
mov ecx, dword [0x45041c]
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov dword [eax + 4], esi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x98a68c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98a6b3
call fcn.0092cbf8
mov dword [eax], esi
call fcn.0092cbe5
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092d83a
mov eax, esi
jmp 0x98a708
test dword [ebp + 0xc], 0xfffffff9
jne 0x98a699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98a6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092cc0b
pop ecx
call fcn.0092cbe5
mov eax, dword [eax]
jmp 0x98a708
test al, 0x10
jne 0x98a706
test al, 1
je 0x98a706
test byte [ebp + 0xc], 2
je 0x98a706
call fcn.0092cbf8
mov dword [eax], 5
call fcn.0092cbe5
mov dword [eax], 0xd
jmp 0x98a6d7
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x62d10604
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x1b46632d
nop
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x5deede
Capabilities:
Encode data using xor

Disassembly:
stc
push 0xe
jl 0x5def55
retf 0xfcee
enter 0xfffffffffffff1c5, 0xffffffffffffffb3
jge 0x5def5c
xchg edx, eax
pop ds
mov esi, 0x63e5f55f
test edx, esi
cld
add byte [esi], 0xe4
arpl word [ebp + 0x26fcf2f2], di
sbb byte [ebx], bl
fldcw word [edi - 0x59031b81]
bnd jb 0x5defb9
inc eax
fsubr st(4), st(0)
arpl word [ecx + 0x4dfcf2f2], bp
cld
cmpsb byte [esi], byte es:[edi]
dec esp
adc al, 0x60
inc esi
pushfd
adc al, 0xbe
dec ebp
dec edx
adc al, 0xbe
mov esi, 0xbe144a4d
pop edi
mov byte [0x7f2b4b31], al
xor eax, 0xd8995fbb
arpl word [esi - 0x64], ax
adc al, 0xbe
scasd eax, dword es:[edi]
jne 0x5def8d
cld
cmpsb byte [esi], byte es:[edi]
imul esp, dword [eax + 0x4e], 0xffffff9c
adc al, 0xbe
dec ebp
div dl
cld
cmpsb byte [esi], byte es:[edi]
insd dword es:[edi], dx
outsb dx, byte [esi]
popfd
pop esp
cdq
adc al, 0x64
sub dword [edx - 0x4ea041e1], ecx
sub dword fs:[edx - 0x4ea041e1], ecx
outsb dx, byte [esi]
sbb dword [ecx + ebx*4 + 0x14], 0xf2f2a6fd
cmp dword gs:[edx + 0x775fbe1f], ecx
pop esi
mov dword [ecx + ebx*4 + 0x14], ebx
push 0xbe17e001
pop edi
fstp xword [esi - 0x7f]
pop esp
cdq
adc al, 0xee
daa
movsd dword es:[edi], dword [esi]
int1
cld
cmpsb byte [esi], byte es:[edi]
insb byte es:[edi], dx
jl 0x5def8a
int3
Function at 0x40152e
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax + 0x48]
mov dword [esp + 4], str._nSCG_BQ__
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.00402c3b
cmp word [ebx], 0
je 0x4015b8
cld
mov dword [ebp - 0x44], ebx
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x401578
mov esi, dword [ebp - 0x44]
lea edi, [ebp - 0x38]
mov ecx, 0x10
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x4015b2
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 1
mov eax, dword [ebp - 0x44]
add eax, 0x10
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
jmp 0x4015eb
cmp word [ebx], 0
jne 0x401575
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x30]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x18]
cmp eax, dword [edx + 8]
jne 0x4015d7
mov eax, dword [ecx + 0x28]
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
jmp 0x4015eb
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
jne 0x4015b8
mov eax, 0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401bb1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, esi
add eax, dword [esi + 0x3c]
mov edi, esi
add edi, dword [eax + 0x78]
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00403421
test eax, eax
jne 0x401c20
mov ebx, 0
cmp ebx, dword [edi + 0x18]
jae 0x401c3d
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00403421
test eax, eax
je 0x401c37
lea eax, [ebx + ebx]
add eax, dword [edi + 0x24]
movzx eax, word [eax + esi]
shl eax, 2
add eax, dword [edi + 0x1c]
add esi, dword [eax + esi]
mov eax, esi
jmp 0x401c42
inc ebx
cmp ebx, dword [edi + 0x18]
jb 0x401bfd
mov eax, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40237a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sub.USER32.dll_GetWindowTextLengthW
sub esp, 4
mov dword [esp], 0x20f8f7a8
call sub.USER32.dll_VkKeyScanW
sub esp, 4
mov eax, 0
cmp dword [ebp + 0xc], 0
jne 0x4023b6
test ebx, ebx
je 0x4023bb
cmp dword [0x405004], 0
je 0x4023bb
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret