joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46eadc
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x94
mov eax, 0x4d8e2e
call fcn.004a9c62
mov eax, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x9c], eax
call fcn.0046e755
push eax
lea ecx, [ebp - 0x94]
call fcn.004749e2
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], edi
call fcn.00474bce
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.00474bae
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x46eb50
push 2
pop esi
jmp 0x46ebb3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x46eb63
push 0xd
pop esi
jmp 0x46ebac
mov eax, dword [ebp - 0x9c]
xor esi, esi
push 8
pop ecx
cmp edi, dword [eax]
mov dword [eax], edi
cmova esi, ecx
test esi, esi
jne 0x46ebac
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x46eb87
push 0x57
jmp 0x46eb60
and dword [ebp - 0x98], 0
lea ecx, [ebp - 0x98]
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x98], edi
push 0xc
pop eax
cmovne esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x94]
call fcn.00439cda
mov eax, esi
call fcn.004a9c0c
ret

Function at 0x46ecd8
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x46ecfb
or esi, 1
push 1
call edi
test ax, ax
jns 0x46ed07
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x46ed13
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x46ed1f
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x470442
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0xec]
call fcn.0046c92b
mov edi, dword [ebp + 8]
test eax, eax
jle 0x470498
push ebx
lea ecx, [esi + 0xec]
mov byte [ebp + 0xb], 0
call fcn.00412277
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x4704f3
lea ecx, [esi + 0xec]
inc ebx
call fcn.0046c92b
cmp ebx, eax
jl 0x470461
sub edi, 0x100
je 0x47055a
sub edi, 4
je 0x4704f7
dec edi
sub edi, 1
jne 0x470551
push dword [ebp + 0xc]
and dword [ebp + 8], edi
call fcn.004bc7a6
pop ecx
mov ecx, dword [esi + 0x6c]
lea edx, [ebp + 8]
push reloc.OLEAUT32.dll_VariantCopyInd
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x47192f
call dword [eax + 0x100]
mov esi, eax
test esi, esi
je 0x470551
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf4]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x470553
cmp dword [esi + 0x70], 0
je 0x470551
xor eax, eax
mov dword [ebp - 0x20], 6
mov word [ebp - 2], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x84]
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0xa], xmm0
mov dword [ebp - 0x10], eax
call fcn.0046ecd8
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x70]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x470551
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x4705a7
mov eax, dword [ecx]
call dword [eax + 0xcc]
test al, al
je 0x4705a7
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
call dword [eax + 0xd8]
test al, al
je 0x4705a7
mov ecx, dword [esi + 0x70]
push str.RichEdit
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004ab4d3
pop ecx
pop ecx
test eax, eax
je 0x4705a7
mov ecx, dword [esi + 0x70]
call fcn.0048b58f
test al, al
jne 0x470551
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.0047138e
jmp 0x470553
Function at 0x476747
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4767b4
cmp dword [esi + 0x10], 0
je 0x4767b4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004a9f20
mov ebx, esp
test ebx, ebx
je 0x4767b4
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1c4
call fcn.00474b55
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00470d32
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8d06
leave
ret 0x10

Function at 0x476eb6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
sub esp, 0x10
lea esi, [ebp + 8]
mov edi, esp
mov ebx, ecx
mov dword [ebp - 0x38], ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00483b0b
mov ecx, dword [ebx + 0x5a8]
test ecx, ecx
je 0x476fad
lea eax, [ebp - 0x14]
push eax
call fcn.00475edd
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x476f1d
mov ecx, dword [ebx + 0x5a8]
push 0
call fcn.0046c92b
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x476fad
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x476f7a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x30]
mov esi, eax
lea edi, [ebp - 0x24]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_UnionRect]
test eax, eax
je 0x476f6d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x476fbe
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov ebx, eax
test ebx, ebx
jne 0x476f2c
mov ecx, dword [ebp - 0x38]
inc eax
shl eax, 6
or eax, 0x14
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x5a8]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.0046c92b
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8d06
leave
ret 0x10
xor eax, eax
inc eax
jmp 0x476f7a
Function at 0x48c90c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4ec], edi
je 0x48c976
cmp dword [ebp + 8], 0x100
jne 0x48c965
cmp word [ebp + 0xc], 0xd
jne 0x48c965
cmp byte [esi + 0x4f2], 0
je 0x48c94c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x48c965
cmp byte [esi + 0x4f3], 0
jne 0x48c965
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x48c961
push edi
push edi
push edi
push str.return
push esi
call fcn.00470d32
xor eax, eax
jmp 0x48c979
mov eax, dword [esi + 0x4ec]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x48cd84
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x48ce3e
movzx eax, word [esi]
test ax, ax
je 0x48ce3e
push edi
mov edi, esi
mov ecx, esi
mov edx, eax
cmp dx, 0x2f
je 0x48cdc6
cmp dx, 0x5c
jne 0x48cdc8
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x48cdba
cmp edi, esi
je 0x48ce11
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.004ba6a5
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x48ce4c
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0048cd84
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004bce73
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004bce42
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8d06
leave
ret
call fcn.004a9027
int3

Function at 0x48d444
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x48d4c0
cmp dword [edi + 4], 0xffffffff
jne 0x48d4c0
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4f1ffc
push esi
call fcn.004bce42
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x48d492
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x48d492
mov eax, 0x2000000
jmp 0x48d4c5
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048f9de
add esp, 0x10
test eax, eax
jne 0x48d4b0
mov eax, dword [ebp - 4]
jmp 0x48d4c5
push eax
call fcn.004901a3
mov dword [edi], eax
mov eax, dword [0x513a80]
pop ecx
jmp 0x48d4c5
mov eax, 0x1000000
pop edi
leave
ret 0xc
Function at 0x48f9de
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
cmp eax, 1
je 0x48fa03
cmp eax, 2
je 0x48fa03
cmp eax, 3
je 0x48fa03
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x10000
xor eax, eax
leave
ret
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
mov byte [ebp - 8], dl
mov ecx, edx
mov dword [ebp - 4], ecx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [edi], edx
cmp eax, 1
jne 0x48fa62
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 4]
push 2
push edx
push edx
push eax
call esi
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x48fa47
mov dword [edi], 0x100
jmp 0x48fb25
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov ecx, dword [ebp - 4]
dec eax
neg eax
sbb al, al
inc al
xor edx, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x48fb11
push edx
push 0x80
push 3
push edx
push 1
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x48fa95
mov dword [edi], 0x200
jmp 0x48fb25
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
dec eax
neg eax
push 0
push dword [ebp - 4]
sbb al, al
inc al
mov byte [ebp - 8], al
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0xc], esi
test esi, esi
je 0x48fb01
push esi
call fcn.004af24b
mov ebx, eax
pop ecx
test ebx, ebx
je 0x48fb01
push 0
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 0x800
test eax, eax
jne 0x48fae9
mov dword [edi], ecx
mov eax, ecx
jmp 0x48faeb
mov eax, dword [edi]
cmp dword [ebp - 0x10], esi
je 0x48faf4
mov dword [edi], ecx
mov eax, ecx
test eax, eax
je 0x48fb01
push ebx
call fcn.004af246
pop ecx
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x48fb17
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test ecx, ecx
jne 0x48fb29
test ebx, ebx
jne 0x48fb29
mov dword [edi], 0x300
xor eax, eax
jmp 0x48fb89
push 0x24
call fcn.004a8eb3
mov esi, eax
xor edx, edx
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [esi + 4], eax
cmp dword [ebp - 4], edx
je 0x48fb6d
mov ecx, dword [ebp - 8]
mov byte [esi], 1
mov byte [esi + 8], cl
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], dl
mov dword [esi + 0x14], edx
test cl, cl
je 0x48fb85
push 1
push edx
push edx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x14], eax
xor edx, edx
jmp 0x48fb85
mov eax, dword [ebp - 0xc]
mov byte [esi], dl
mov byte [esi + 8], 1
mov dword [esi + 0xc], edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x14], edx
mov dword [edi], edx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48fb8e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x48fbc1
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48fbbc
mov byte [edi + 0x10], 1
mov eax, dword [ebp + 0x10]
jmp 0x48fbeb
mov edx, dword [edi + 0x20]
push esi
mov esi, dword [edi + 0x1c]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x1c]
cmovbe esi, ecx
mov ecx, dword [edi + 0x18]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004abb00
add esp, 0xc
mov eax, esi
add dword [edi + 0x20], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x48fd79
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x48fd87
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x48fe46
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 + 0x4e0dc0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e0dc0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e0dc0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e0dc0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e0dc0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e0dc0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e0dc0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e0dc0]
sub edi, 1
jne 0x48fd9f
pop edi
test esi, esi
je 0x48fe62
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e0dc0]
inc edx
sub esi, 1
jne 0x48fe4a
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x49a731
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x4da1d2
call fcn.004a9c62
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x5b8], ebx
cmp dword [edi + 4], ebx
jne 0x49a7c3
lea eax, [ebp - 0xa8]
push eax
call fcn.0049a40b
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0046774f
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.0046caf0
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.00480842
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0046e3da
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0047518d
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.00439cda
mov esi, 0x5a8
test bl, bl
je 0x49a7fe
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.004a9c0c
ret 4
Function at 0x4a5fd4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x4a6002
cmp eax, edi
jge 0x4a5ff6
push esi
call fcn.004a24cd
mov eax, dword [esi + 8]
pop ecx
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 0x4a6025
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4a600b
mov dword [esi + 8], edx
jmp 0x4a603a
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4a6030
xor dl, dl
jmp 0x4a6035
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4a6025
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4a6074
push str.zlib_corrupt
call fcn.004a23f8
add esp, 4
jmp 0x4a60b4
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4a6084
push str.read_past_buffer
jmp 0x4a606a
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4a609e
push edi
push ecx
push esi
call fcn.004a8af0
add esp, 0xc
test eax, eax
je 0x4a60b4
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004abb00
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x4c6ef4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c6bb4
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x60d564ab
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6c7227b4
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x100bfc5e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100d81b8]
jne 0x100bfc68
repz ret
jmp fcn.100c1dda

Function at 0x100c321f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100bfcdf
and dword [ebp - 4], 0
cmp dword [0x100d94e8], 0
mov ebx, eax
jne 0x100c32d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100c3381
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100c3381
push eax
call fcn.100bfc6d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100d94e8], eax
call esi
push eax
call fcn.100bfc6d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100d94ec], eax
call esi
push eax
call fcn.100bfc6d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100d94f0], eax
call esi
push eax
call fcn.100bfc6d
pop ecx
mov dword [0x100d94f8], eax
test eax, eax
je 0x100c32d0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100bfc6d
pop ecx
mov dword [0x100d94f4], eax
mov eax, dword [0x100d94f4]
cmp eax, ebx
je 0x100c3328
cmp dword [0x100d94f8], ebx
je 0x100c3328
push eax
call fcn.100bfce8
push dword [0x100d94f8]
mov esi, eax
call fcn.100bfce8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100c3328
test edi, edi
je 0x100c3328
call esi
test eax, eax
je 0x100c331f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100c331f
test byte [ebp - 0xc], 1
jne 0x100c3328
or dword [ebp + 0x10], 0x200000
jmp 0x100c3361
mov eax, dword [0x100d94ec]
cmp eax, ebx
je 0x100c3361
push eax
call fcn.100bfce8
pop ecx
test eax, eax
je 0x100c3361
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100c3361
mov eax, dword [0x100d94f0]
cmp eax, ebx
je 0x100c3361
push eax
call fcn.100bfce8
pop ecx
test eax, eax
je 0x100c3361
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100d94e8]
call fcn.100bfce8
pop ecx
test eax, eax
je 0x100c3381
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100c3383
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100c5115
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x100d7b38], 0x1938
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x100c51da
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.100c5555
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
mov dword [0x100d7b38], 0x2cd
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x18], ecx
mov dword [0x100d7b3c], 0x2226
mov ecx, dword [ebp - 0x38]
mov dword [edx + 4], ecx
add ecx, 0x18c5
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x100c51d1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x100c748a]
mov dh, byte [eax + 0x100c745b]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x100c51da
lea eax, [ebp - 0x24]
mov dword [0x100d7b3c], 0x14f9
mov dword [ebp - 0x44], eax
call fcn.100c4f8e
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.100c4af1
mov ecx, dword [0x100d7b38]
add ecx, 0xfffffb5f
mov dword [0x100d7b3c], ecx
cmp eax, 0
mov dword [ebp - 0x34], eax
jne 0x100c513c
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret