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

Disassembly:
lea edx, reloc.mscoree.dll__CorExeMain
mov ch, bh
mov al, byte [esp]
mov ax, 0xe25b
jmp 0x499b0a
btr dx, bp
xchg dword [esp], edx
mov ah, 0x50
mov ch, 0xc2
mov cx, word [esp]
neg ah
jmp 0x499a61
neg esi
not ecx
lea eax, [ebx*4]
jmp 0x499b7a
setnp al
lea ecx, reloc.mscoree.dll__CorExeMain
xchg dword [esp], edx
call fcn.00499abe
stc
bswap edx
jmp 0x499af4
cmc
bt dx, si
jmp 0x499a77
dec esi
cmp edx, edi
jmp 0x499bdb
pushal
jmp 0x499b90
lea ecx, [ecx*4]
dec al
jg 0x499b5e
jle 0x499b5e
mov ecx, 0x5104d5c7
setb ch
pushal
add esi, dword [ebp]
mov cx, 0xa70b
mov cx, 0xa5ae
jmp fcn.00499bc5
je 0x499b87
mov ecx, 0x5104d5c7
setb ch
jmp 0x499b63

Function at 0x49fff4
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x24], eax
jmp 0x49fb45
jmp 0x49fbfe
popal
jmp 0x49fc27
pop ecx
sub ecx, 0x10018f1c
mov dword [ecx + reloc.mscoree.dll__CorExeMain], eax
jmp 0x49fc46
inc dword [esp + 8]
jmp 0x49fc5c
movzx ebx, byte [eax]
jmp 0x49fc5e
popfd
ret
add ebx, 0xb3aba492
jmp 0x49ff04
cmp ebx, 0xb3aba55e
je 0x49ff68
jne 0x49f1f9
int1
insd dword es:[edi], dx
std
test byte [edi - 0x4d], dh
loope 0x49ffee
in al, dx
mov eax, dword [esi - reloc.mscoree.dll__CorExeMain]
jmp 0x4a0029
xor ch, byte [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
add cl, ch
jmp 0x4a0763
or ah, byte [ebp - 0x63b82c]
xor al, 0x24
inc dword [esp + 8]
popfd
ret
Function at 0x533fb7
Capabilities:
Encode data using xor

Disassembly:
call fcn.00533923
lodsb al, byte [esi]
mov esp, 0xbef236db
inc ebx
sal dword [esi + reloc.mscoree.dll__CorExeMain], cl
lcall 0x21b1, 0x32ca0cfd
inc eax
mov bl, 0x74
xor al, 0xb2
and byte [edi - 0x4e], al
jno 0x534011
mov bh, 0x27
inc edx
mov cl, 0x7b
sub al, 0xa8
pop ecx
test al, 0x6d
inc edx
lds edx, [ebp + 0x3c]
iretd
mov al, 0x26
inc ecx
mov al, 0x74
and ch, byte [ebp + 0xab7443d]
sub al, 0xbe
sub al, 0x4b
mov byte [edx], 0x1e
xchg ebx, eax
add esp, dword [esi - 0x6b]
push ecx
test byte [edx + ecx*4], dl
in eax, dx
sbb al, 0xa2
adc al, byte [ecx + 0x3f837011]
aam 0x42
sal byte [edi + 0x7968342], 1
xchg edi, eax
add esi, ecx
sub al, 0xb8
dec ecx
mov eax, 0x595027e
insb byte es:[edi], dx
lahf
pop eax
pushfd
push es
xchg esp, eax
push cs
mov cl, 0x2e
mov ebx, 0x5bd4e2b
add al, 0x9c
xor dl, byte [ebp - 0x5c]
push ss
jb 0x534049
jns 0x53407a
jmp 0x5340c1
xchg dword [ecx], esi
in al, dx
dec esi
fdivr qword [ebx - 0x1ca02eaa]
jae 0x53409c
in eax, 0x27
cmpsd dword [esi], dword es:[edi]
and al, 0xba
invalid
invalid
dec eax
mov ebx, 0x89a137c
outsd dx, dword [esi]
lcall 0xf90a, 0x6fff772d
les ebx, [edi - 0x30]
inc esi
and eax, edx
outsd dx, dword [esi]
ret

Function at 0x538549
Capabilities:
Parse pe header

Disassembly:
pop word [esp]
lea esp, [esp]
lea esp, [esp + 2]
mov dword [esp + 0x50], ebp
jmp 0x5385d3
mov eax, dword fs:[0x30]
jmp 0x538595
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x538577
pushal
mov dword [esp + 0x6c], esi
pushfd
mov dword [esp + 0x6c], edi
lea esp, [esp + 0x6c]
jmp 0x53855a
Function at 0x4052f1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4de0ee
call fcn.004daf98
push ebx
push esi
mov esi, dword [ebp + 8]
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
and dword [esi + 0xc], 0
push edi
and dword [ebp - 4], 0
lea edi, [esi + 0x14]
mov ecx, edi
mov dword [esi], vtable.TiXmlAttribute.0
call fcn.004053ee
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.004053ee
push dword [ebp + 0xc]
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00405374
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.00405374
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x40773c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x407753
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x407788
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x407784
cmp edi, eax
jae 0x407788
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x407776
cmp edi, eax
jb 0x40778c
xor eax, eax
jmp 0x407796
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x40858e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x40861c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4085c5
cmp dword [ebp - 8], 2
jne 0x40861b
push esi
mov esi, dword [ebp + 0xc]
call fcn.00407a5f
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004078e4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x408603
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x408613
push eax
call fcn.0049795c
pop ecx
mov edx, esi
call fcn.004078c3
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x40892c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4e0841
call fcn.004daf98
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00407fa9
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408977
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040763c
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x408958
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x408958
lea ecx, [ebp - 0x10]
call fcn.004088da
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x4089ae
xor esi, esi
jmp 0x40895b
push eax
call fcn.0040892c
test eax, eax
pop ecx
je 0x4089aa
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x408958
call edi
cmp eax, ebx
jne 0x4089aa
jmp 0x408958

Function at 0x40acd8
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x40ad06
push dword [esp + 0xc]
call fcn.0049795c
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ad06
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x40ada0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40ae29
push ebx
call fcn.004938b2
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40ae1a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4f4a38
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ae1a
cmp dword [ebp - 0xc], ebx
je 0x40ae1a
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x40ae29
push dword [ebp - 4]
call fcn.00494fb5
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret
Function at 0x40aef9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4df7bd
call fcn.004daf98
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x51e6c8
mov dword [ebp - 0x10], edi
call fcn.00407fec
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.00497210
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004080b5
push esi
call fcn.0040ae65
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40b054
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.00497210
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x40b0ad
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x40b163
mov eax, dword [ebp - 0x94]
dec eax
je 0x40b14f
dec eax
jne 0x40b163
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x40b0fc
cmp dword [ebp - 0x9c], edx
jne 0x40b0e6
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x40b14b
cmp dword [ebp - 0x9c], edi
jne 0x40b134
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x40b14b
cmp eax, 5
jne 0x40b126
cmp dword [ebp - 0x9c], 2
jne 0x40b10d
push eax
jmp 0x40b12d
cmp dword [ebp - 0x9c], 1
jne 0x40b11a
mov edi, ecx
jmp 0x40b163
cmp dword [ebp - 0x9c], edi
jne 0x40b163
push 3
jmp 0x40b12d
cmp eax, 4
ja 0x40b130
push 4
pop edi
jmp 0x40b163
cmp eax, ecx
jb 0x40b163
cmp dword [ebp - 0x9c], 2
jae 0x40b141
cmp eax, ecx
jbe 0x40b163
cmp byte [ebp + 0x76], dl
jne 0x40b163
call fcn.0040af7c
mov edi, eax
jmp 0x40b163
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x40b94d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.0040a982
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40b9fa
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x40b9f9
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], edi
call fcn.0040a9ec
mov esi, eax
mov dword [ebp - 4], esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x40b9f9
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x40b9f9
sub dword [ebp + 8], eax
add dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x40b9aa
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x40b9e4
xor eax, eax
jmp 0x40b9eb
push eax
call fcn.00496950
pop ecx
mov edx, esi
call fcn.0040a9c1
mov dword [ebp - 0x10], 1
pop edi
cmp dword [ebp - 8], ebx
pop esi
pop ebx
je 0x40ba0a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x40ccd6
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
xor eax, eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x67452301
mov dword [ebp - 0x68], 0xefcdab89
mov dword [ebp - 0x64], 0x98badcfe
mov dword [ebp - 0x60], 0x10325476
call fcn.0040caf9
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 0x6c]
call fcn.0040cbbc
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0040cc58
mov eax, dword [ebp + 8]
add esp, 0x10
pop esi
leave
ret

Function at 0x40cf1f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
push esi
mov esi, eax
cmp dword [esi + 0x14], 0x104
push edi
jb 0x40cf3f
xor al, al
jmp 0x40cfcc
and word [esp + 0x28], 0
push 0x208
lea eax, [esp + 0x2e]
push 0
push eax
call fcn.00497210
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x40cf64
mov esi, dword [esi + 4]
jmp 0x40cf67
add esi, 4
push esi
lea eax, [esp + 0x2c]
push 0x105
push eax
call fcn.00499c6d
and dword [esp + 0x14], 0
add esp, 0xc
push 6
xor eax, eax
pop ecx
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], 3
mov word [esp + 0x1c], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x1a], 0
jne 0x40cf38
test eax, eax
je 0x40cfc9
cmp eax, 2
je 0x40cfc9
cmp eax, 0x402
je 0x40cfc9
xor eax, eax
jmp 0x40cfcc
xor eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4de058
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
push esi
push edi
mov esi, ecx
jne 0x40d051
xor eax, eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x40d079
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40d079
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x40d03d
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x40d085
or eax, 0xffffffff
jmp 0x40d03d
cmp dword [esi + 0x3c], edi
jne 0x40d099
push eax
push ebx
call fcn.0040cee5
test al, al
pop ecx
pop ecx
je 0x40d080
jmp 0x40d075
push edi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x18], bl
call fcn.0040d691
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], edi
call fcn.0040bae5
mov ecx, eax
call fcn.0040d958
mov edi, dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040bae5
mov ecx, eax
call fcn.0040d958
lea edx, [esp + 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x40d1a9
cmp eax, 1
jg 0x40d1d1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.0040bae5
mov ecx, eax
call fcn.0040d958
mov edi, dword [esp + 0x18]
sub edi, eax
je 0x40d13e
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040bae5
mov ecx, eax
call fcn.0040d958
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00499ba9
add esp, 0x10
cmp edi, eax
jne 0x40d1e8
lea eax, [esp + 0x10]
cmp dword [esp + 0x1c], eax
mov byte [esi + 0x41], 1
jne 0x40d1ff
test edi, edi
ja 0x40d16c
cmp dword [esp + 0x58], 0x20
jae 0x40d1e8
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.00402900
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.0040bae5
mov ecx, eax
call fcn.0040d958
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040bae5
mov ecx, eax
call fcn.0040d958
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x21]
push edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x40d0ec
jmp 0x40d1e8
cmp eax, 3
jne 0x40d1e8
push dword [esi + 0x4c]
push dword [esp + 0x14]
call fcn.0040cee5
test al, al
pop ecx
pop ecx
jne 0x40d1ff
or esi, 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.004048fa
mov eax, esi
jmp 0x40d03d
mov esi, dword [ebp + 8]
jmp 0x40d1eb
Function at 0x40d768
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4dea18
call fcn.004daf98
sub esp, 0x48
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x40d878
cmp byte [esi + 0x41], 0
je 0x40d878
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40d7a2
xor al, al
jmp 0x40d87a
push edi
push 8
lea ecx, [ebp - 0x54]
call fcn.0040d691
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040bae5
mov ecx, eax
call fcn.0040d958
mov edi, dword [ebp - 0x40]
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040bae5
mov ecx, eax
call fcn.0040d958
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
add edi, ebx
push edi
push dword [ebp - 0x14]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x40d812
dec eax
je 0x40d816
dec eax
dec eax
je 0x40d874
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.004048fa
mov al, bl
jmp 0x40d87a
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040bae5
mov ecx, eax
call fcn.0040d958
mov edi, dword [ebp - 0x18]
sub edi, eax
je 0x40d856
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040bae5
mov ecx, eax
call fcn.0040d958
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00499ba9
add esp, 0x10
cmp edi, eax
jne 0x40d800
cmp byte [esi + 0x41], 0
je 0x40d874
test edi, edi
jne 0x40d7b0
push edi
push 8
lea ecx, [ebp - 0x54]
call fcn.00402900
jmp 0x40d7b0
mov bl, 1
jmp 0x40d802
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x410708
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebx, eax
mov eax, dword [0x520168]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
je 0x410725
mov esi, dword [eax + 4]
jmp 0x410727
xor esi, esi
cmp esi, edi
jne 0x410737
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, edi
je 0x41075c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x41075c
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41075c
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push dword [esp + 0x24]
mov ecx, ebx
push esi
mov dword [ebx + 0x438], edi
call fcn.00410b08
mov ecx, eax
cmp ecx, edi
mov dword [esp + 0x14], ecx
jne 0x410788
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4108a9
mov eax, dword [0x520168]
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x41079f
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov dword [eax + 4], ecx
cmp dword [esp + 0x24], edi
jne 0x4107ac
mov eax, esi
call fcn.00410ce5
cmp dword [ebx + 0x428], edi
je 0x41084a
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp ebp, dword [esp + 0x24]
je 0x4107f3
push 1
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x24]
je 0x41082b
push edi
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x41084a
push edi
push edi
push 0xf
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
push 0x97
lea ebp, [ebx + 4]
push ebp
mov dword [ebx + 0x438], edi
call fcn.0041819e
cmp dword [esp + 0x18], edi
je 0x41088a
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, edi
je 0x41088a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x41088a
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x520168]
cmp eax, edi
je 0x41089a
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x41129d
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4e24f9
call fcn.004daf98
sub esp, 0x7c
push ebx
push esi
push edi
lea eax, [ebp - 0x88]
push eax
mov esi, ecx
call fcn.0040178f
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x408], ebx
mov dword [esi + 0x3fc], ebx
mov dword [esi + 0x3e8], 0x80090000
mov dword [esi + 0x3ec], 0x10000
call fcn.00468fc9
push 1
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x88]
mov dword [esi + 0x3f0], ebx
mov dword [esi + 0x3f4], ebx
mov dword [esi + 0x3f8], ebx
call fcn.00405bb1
cmp byte [ebp - 0x44], bl
je 0x41137f
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x411319
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040c1e6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
inc eax
push eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push dword [ebp - 0x40]
lea ecx, [ebp + 8]
push str.__errorid_d__errorrow_d__errorcolom_d_n
call fcn.00411a98
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call fcn.004619d6
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040763c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.004052d1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 4
lea eax, [ebp - 0x88]
call fcn.00404f7b
push eax
mov edi, esi
call fcn.00411401
mov ebx, eax
jmp 0x41135d

Function at 0x413933
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.00497210
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x41398c
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x413a3a
mov eax, dword [ebp - 0x94]
dec eax
je 0x413a26
dec eax
jne 0x413a3a
cmp dword [ebp - 0xa0], 6
jne 0x4139d7
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x4139bf
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x4139d3
cmp dword [ebp - 0x9c], edi
jne 0x413a13
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x413a3a
cmp dword [ebp - 0xa0], 5
jne 0x413a06
cmp dword [ebp - 0x9c], 2
jne 0x4139ed
push 5
jmp 0x413a23
cmp dword [ebp - 0x9c], 1
jne 0x4139fa
push 6
jmp 0x413a23
cmp dword [ebp - 0x9c], edi
jne 0x413a3a
push 3
jmp 0x413a23
cmp dword [ebp - 0xa0], 4
ja 0x413a3a
push 4
jmp 0x413a23
cmp dword [ebp - 0x9c], 2
jne 0x413a3a
cmp byte [ebp + 0x76], al
jne 0x413a3a
push 0xa
pop edi
jmp 0x413a3a
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret