joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497e63
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x497e8f
cmp eax, edi
jge 0x497e83
call fcn.00497833
mov eax, dword [esi + 8]
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x497eb2
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx - 4], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x497e98
mov dword [esi + 8], edx
jmp 0x497ec7
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x497ebd
xor dl, dl
jmp 0x497ec2
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x497eb2
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x497f08
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0x10], str.zlib_corrupt
xor eax, eax
jmp 0x497f53
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x497f25
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0x10], str.read_past_buffer
jmp 0x497f04
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x497f3d
push edi
mov ecx, esi
call fcn.0049790b
pop ecx
test eax, eax
je 0x497f04
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00504830
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x4acb33
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004881f4

Function at 0x4ad02f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x20]
sub esp, 0x18
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebx + 0x28], edx
xor edi, edi
mov edx, dword [ebp + 8]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], 6
test edx, edx
jne 0x4ad072
call fcn.004afae4
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.004afae4
lea ecx, [ebx + 0x10]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebx + 0x30]
test ecx, ecx
jne 0x4ad090
mov eax, dword [esi + 0xa8]
jmp 0x4ad09b
mov eax, dword [ecx]
call dword [eax + 0x40]
mov eax, dword [eax + 0xa8]
sub esp, 0x10
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
lea esi, [ebp - 0x14]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov edi, esp
push ecx
push 0x88
push SysReAllocString
movsd dword es:[edi], dword [esi]
push ecx
push eax
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0047e0b0
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x4ad0d7
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x4ad0d2
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [0x53e4ec]
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x4b01bd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4b0298
cmp dword [esi + 0x10], 0
je 0x4b0298
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
call fcn.00500c80
mov edi, esp
test edi, edi
je 0x4b0298
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push edi
mov eax, dword [ecx]
call dword [eax + 0x50]
cmp byte [esi + 0x1a], 0
jne 0x4b024e
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push 0x54f938
push ecx
call dword [eax + 0x40]
mov ecx, eax
call fcn.00483447
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1e
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c4]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp byte [eax + 0x172], 0
je 0x4b0267
mov ecx, dword [esi + 0x10]
call fcn.00470647
mov ecx, dword [esi + 0x10]
call fcn.004b1d88
test al, al
je 0x4b0298
push edi
call dword [0x53e2dc]
mov ecx, dword [esi + 0x10]
test eax, eax
je 0x4b0291
mov eax, dword [ecx]
call dword [eax + 0x3c]
push dword [esi + 4]
call dword [0x53e5e0]
jmp 0x4b0298
push 1
call fcn.004b2041
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000f2
leave
ret 0x10
Function at 0x4bb22a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4bb235
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4bb2f1
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54c770]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54c770]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54c770]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54c770]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54c770]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54c770]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54c770]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54c770]
sub edi, 1
jne 0x4bb24a
pop edi
test esi, esi
je 0x4bb30d
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54c770]
inc edx
sub esi, 1
jne 0x4bb2f5
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4bb314
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
movsx eax, dl
mov ecx, dword [esi]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x54c770]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [esi + 8]
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54c770]
add byte [ecx - 0x3ca1f7b2], cl

Function at 0x4bbaac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov ecx, ebx
imul ecx, dword [ebp + 8]
cmp byte [edi], 0
je 0x4bbae5
push 0
lea edx, [ebp + 8]
push edx
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4bbae0
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x4bbb0f
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.00504830
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
xor edx, edx
pop edi
div ebx
pop ebx
leave
ret
Function at 0x4bc91c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jne 0x4bc9dc
cmp dword [esi + 4], 0xffffffff
jne 0x4bc9dc
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4bc950
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4bc987
cmp eax, 0x2f
je 0x4bc987
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, bx
jne 0x4bc974
mov eax, dword [0x557034]
mov dword [edi], eax
cmp dword [ebp + 0x10], 1
jne 0x4bc9a6
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4bc9a6
mov eax, 0x2000000
jmp 0x4bc9e1
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
mov ecx, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
call fcn.004bb914
pop ecx
pop ecx
test eax, eax
jne 0x4bc9c3
mov eax, dword [ebp - 4]
jmp 0x4bc9e1
mov ecx, eax
call fcn.004bbddc
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x4bc9e1
mov eax, 0x1000000
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4bcf99
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x58a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, edx
test esi, esi
je 0x4bcfcd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4bcfcd
push edi
push esi
call dword [0x53e2ec]
movzx eax, word [ebx]
test ax, ax
je 0x4bd0b0
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x4bcfeb
cmp dx, 0x5c
jne 0x4bcfed
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4bcfdf
cmp edi, ebx
je 0x4bd037
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.00504830
add esp, 0xc
cmp edi, 0x208
jae 0x4bd0bf
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, esi
mov word [ebp + edi - 0x414], ax
call fcn.004bcf99
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x4bd05b
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x4bd04c
mov esi, ebx
xor ecx, ecx
mov ax, word [ebx]
add ebx, 2
cmp ax, cx
jne 0x4bd05f
lea edi, [ebp - 0x20c]
sub ebx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x4bd075
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4bd0b0
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [0x53e2ec]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005000f2
leave
ret
call fcn.00500805
int3
Function at 0x4c4774
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x58a06c]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, eax
push esi
mov esi, dword [ebp + 0x14]
shr ecx, 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], esi
mov dword [esp + 8], 0x3c
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
test cx, cx
je 0x4c47f5
mov ecx, dword [esp + 0xc]
cmp word [eax], cx
je 0x4c47f5
call fcn.0040ae80
push 1
push dword [ebp + 8]
lea ecx, [eax + 0x24]
call fcn.0047d65a
mov edx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x4c47f5
cmp dword [ecx], 0
cmovne eax, dword [ecx]
mov dword [ebp + 8], eax
mov ecx, eax
shr ecx, 0x10
test cx, cx
je 0x4c4838
mov ecx, dword [esp + 0xc]
cmp word [eax], cx
mov ecx, ebx
push eax
jne 0x4c4812
call fcn.004c0441
jmp 0x4c4817
call fcn.004c054a
test al, al
jne 0x4c48e6
xor eax, eax
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005000f2
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebx + 0x94]
test esi, esi
jne 0x4c4851
mov esi, dword [0x58ee68]
test esi, esi
cmove esi, dword [0x58ee60]
push edx
push eax
push esi
push ecx
call 0x86e899
mov edi, eax
test edi, edi
je 0x4c481f
push edi
push esi
push edx
call 0x5f5356
mov dword [esp + 0xc], eax
push edi
test eax, eax
jne 0x4c4879
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4c481f
mov eax, dword [esp + 0x18]
push esi
mov dword [ebx + 0x8c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, ebx
call fcn.004c04ce
test al, al
je 0x4c481f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
mov dword [ebx + 0x90], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], eax
mov ax, word [ebp + 8]
mov word [esp + 0x24], ax
xor eax, eax
mov word [esp + 0x26], ax
lea eax, [esp + 0x24]
mov dword [ebp + 8], eax
call fcn.0047ce58
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x7a0]
xor eax, eax
test ecx, ecx
je 0x4c48fa
push dword [ebp + 8]
call fcn.004c1a7c
push eax
push dword [esp + 0x20]
mov ecx, ebx
push esi
push edi
call fcn.004c490d
jmp 0x4c4821
Function at 0x4c8e9d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x10], eax
test ecx, ecx
jne 0x4c8f26
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.004c8f62
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x14]
mov ecx, dword [ebx + 0x10]
sub esp, 0x10
mov edi, esp
mov eax, 0x40000009
cmp dword [edx + 0x6f4], 1
push ecx
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax - 9]
cmovne eax, esi
push eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0x40]
mov ecx, ebx
push dword [eax + 0xa8]
call fcn.0047e0b0
mov ecx, dword [ebx + 0x10]
push 1
mov eax, dword [ecx]
push dword [ecx + 0x6c0]
call dword [eax + 0x40]
mov ecx, eax
call fcn.0048412a
push dword [eax + 4]
push 0x30
push dword [ebx + 4]
call dword [0x53e4ec]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 4]
add eax, 0x6e0
lea edi, [ebx + 0x1a]
mov esi, eax
push eax
push 0
push 0x1002
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x53e4ec]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [0x53e5e0]
pop edi
pop esi
mov byte [ebx + 0x18], 1
pop ebx
leave
ret 4
Function at 0x4c9c71
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x58a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4c9cf7
cmp dword [esi + 0x10], 0
je 0x4c9cf7
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00500c80
mov ebx, esp
test ebx, ebx
je 0x4c9cf7
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x2c4
call fcn.0047cff3
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push 0x54f938
push ecx
call dword [eax + 0x40]
mov ecx, eax
call fcn.00483447
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp byte [eax + 0x172], 0
je 0x4c9cf7
mov ecx, dword [esi + 0x10]
call fcn.00470647
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000f2
leave
ret 0x10

Function at 0x4cba1f
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x58a06c]
xor eax, esp
mov dword [esp + 0x298], eax
push esi
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4cbab4
mov esi, 0xff
push esi
push eax
lea eax, [esp + 0x1a0]
push eax
call fcn.00504db0
add esp, 0xc
lea eax, [esp + 0x198]
push esi
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [esp + 0x198]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4cbab4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov eax, ecx
shr eax, 8
mov edx, ecx
movzx esi, al
movzx eax, cl
shl eax, 8
add eax, esi
shr edx, 0x10
shl eax, 8
movzx edx, dl
add eax, edx
shr ecx, 0x18
shl eax, 8
add eax, ecx
jmp 0x4cbab6
xor eax, eax
mov ecx, dword [esp + 0x29c]
pop esi
xor ecx, esp
call fcn.005000f2
mov esp, ebp
pop ebp
ret
Function at 0x4cbaed
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x10], eax
and dword [eax + 0x6e8], 0
cmp dword [ebx + 4], 0
jne 0x4cbb7c
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 8
push eax
mov dword [ebp - 8], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x4cbb65
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x9c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0047c8d8
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0x1c]
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ecx
movsd dword es:[edi], dword [esi]
push 0
push 0x40030000
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x40]
mov ecx, ebx
push dword [eax + 0xa8]
call fcn.0047e0b0
mov ecx, ebx
call fcn.004cbd9a
push 1
push dword [ebx + 0x20]
push 0x30
push dword [ebx + 4]
call dword [0x53e4ec]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x4c]
push eax
call dword [0x53e2dc]
test eax, eax
jne 0x4cbb9d
call fcn.004cba1f
mov ecx, dword [ebx + 0x10]
mov dword [ecx + 0x6e0], eax
mov eax, dword [ebx + 0x10]
push dword [eax + 0x6e0]
push 0
push 0x465
push dword [ebx + 4]
call dword [0x53e4ec]
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [0x53e5e0]
pop edi
pop esi
mov byte [ebx + 0x18], 1
pop ebx
leave
ret 4
Function at 0x4d1fcb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x58a06c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4d20e2
lea eax, [ebp - 0xa4]
push eax
call fcn.004d20f3
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ecx
movsd dword es:[edi], dword [esi]
push 0
push 0x40000080
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x40]
mov ecx, ebx
push dword [eax + 0xa8]
call fcn.0047e0b0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d20e2
mov ecx, dword [ebx + 0x10]
push 1
mov eax, dword [ecx]
push dword [ecx + 0x6c0]
call dword [eax + 0x40]
mov ecx, eax
call fcn.0048412a
mov esi, dword [0x53e4ec]
push dword [eax + 4]
push 0x30
push dword [ebx + 4]
call esi
mov eax, dword [ebx + 0x10]
push 0
movzx ecx, byte [eax + 0x8fe]
movzx eax, byte [eax + 0x8fc]
shl ecx, 8
or ecx, eax
push ecx
push 0x401
push dword [ebx + 4]
call esi
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.004d25de
mov ecx, dword [ebx + 0x10]
push 0xffffffffffffffff
add ecx, 0x2c4
push dword [eax]
call fcn.0047cf25
lea ecx, [ebp - 0x94]
call fcn.0047ce58
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x17c]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [0x53e5e0]
mov byte [ebx + 0x18], 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005000f2
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x58a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x26
ja 0x4d25cf
je 0x4d257a
sub esi, 0x21
je 0x4d257a
sub esi, 1
je 0x4d257a
sub esi, 1
je 0x4d257a
sub esi, 1
je 0x4d257a
sub esi, 1
jne 0x4d2580
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00504db0
add esp, 0xc
shl edi, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0047ce0f
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005000f2
leave
ret 0xc
sub esi, 0x27
je 0x4d257a
sub esi, 1
je 0x4d257a
sub esi, 5
jmp 0x4d2573
Function at 0x4d50c7
Capabilities:
Enumerate files on windows

Disassembly:
push 0x504
mov eax, 0x539cc9
call fcn.00500c07
mov ebx, ecx
mov dword [ebp - 0x50c], ebx
mov eax, dword [ebx]
call dword [eax + 0x40]
push 0x58ab80
lea ecx, [ebp - 0x120]
call fcn.0047ce33
push dword [ebx + 0x6b8]
lea ecx, [ebp - 0x120]
call fcn.0047ce68
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x120]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4d5114
sub ecx, esi
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
je 0x4d513b
push 0x557034
lea ecx, [ebp - 0x120]
call fcn.0047ce68
push 0x569504
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x120]
call fcn.0047d017
lea ecx, [ebp - 0x508]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x2b8]
mov ebx, eax
call fcn.0047ce58
cmp ebx, 0xffffffff
je 0x4d5339
jmp 0x4d5323
lea eax, [ebp - 0x4dc]
push 0x54ec20
push eax
call fcn.00508b12
pop ecx
pop ecx
test eax, eax
je 0x4d5323
lea eax, [ebp - 0x4dc]
push 0x54ec24
push eax
call fcn.00508b12
pop ecx
pop ecx
test eax, eax
je 0x4d5323
test byte [ebp - 0x508], 0x10
jne 0x4d5323
lea eax, [ebp - 0x94]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x98]
xor eax, eax
mov word [ebp - 0x94], ax
lea eax, [ebp - 0x4dc]
push 0xffffffffffffffff
push eax
call fcn.0047cf25
push 0x2e
lea ecx, [ebp - 0x98]
call fcn.0047d255
mov edx, eax
test edx, edx
js 0x4d5313
mov ecx, dword [ebp - 0x98]
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4d520a
sub ecx, esi
lea eax, [ebp - 0x1a8]
sar ecx, 1
sub ecx, edx
dec ecx
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.0047d1b8
mov byte [ebp - 4], 2
push 0x56950c
push dword [ebp - 0x1a8]
call fcn.00508b12
pop ecx
pop ecx
test eax, eax
je 0x4d5279
push 0x569514
push dword [ebp - 0x1a8]
call fcn.00508b12
pop ecx
pop ecx
test eax, eax
je 0x4d5279
push 0x56951c
push dword [ebp - 0x1a8]
call fcn.00508b12
pop ecx
pop ecx
test eax, eax
jne 0x4d5308
push 0x34
call fcn.0050058b
pop ecx
mov ecx, eax
call fcn.004d6bf9
mov edi, eax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x120]
mov dword [ebp - 0x510], edi
push eax
call fcn.0047ce33
push dword [ebp - 0x98]
lea ecx, [ebp - 0x230]
call fcn.0047ce68
push dword [ebp - 0x230]
mov ecx, edi
call fcn.004d6798
lea ecx, [ebp - 0x230]
mov esi, eax
call fcn.0047ce58
test esi, esi
jne 0x4d52fc
mov ecx, dword [ebp - 0x50c]
add ecx, 0x744
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4d52ed
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x4d5308
lea edx, [ebp - 0x510]
push edx
push eax
call fcn.00486d37
jmp 0x4d5308
test edi, edi
je 0x4d5308
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
lea ecx, [ebp - 0x1a8]
call fcn.0047ce58
xor eax, eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], al
call fcn.0047ce58
lea eax, [ebp - 0x508]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4d517c
lea ecx, [ebp - 0x120]
call fcn.0047ce58
call fcn.00500bc5
ret