joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440ec0
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using rc4 prga
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d9259
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x536f50]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov eax, dword [0x53ac30]
mov edx, dword [eax + 0xc]
mov esi, 1
mov ecx, 0x53ac30
mov dword [esp + 0x24], esi
call edx
mov ebx, dword [esp + 0x2c]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [0x53ac30]
mov edx, dword [eax + 0xc]
mov ecx, 0x53ac30
mov dword [esp + 0x18], esi
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x30]
mov edi, dword [eax - 0xc]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
mov byte [esp + 0x24], 2
jge 0x440f58
push esi
lea ecx, [esp + 0x18]
call fcn.0042aa80
mov ebp, dword [esp + 0x14]
push esi
push 0
push ebp
call fcn.0047a920
add esp, 0xc
xor esi, esi
test edi, edi
jle 0x440fc8
lea ebx, [ebx]
test esi, esi
jl 0x4410b3
mov eax, dword [esp + 0x30]
cmp esi, dword [eax - 0xc]
jg 0x4410b3
mov ecx, dword [0x53abdc]
cmp dword [ecx - 0xc], 0
mov al, byte [esi + eax]
jg 0x440f9b
mov eax, 0xffffffff
jmp 0x440fb7
movzx edx, al
push edx
push ecx
call fcn.0047f57d
add esp, 8
test eax, eax
jne 0x440fb1
or eax, 0xffffffff
jmp 0x440fb7
sub eax, dword [0x53abdc]
test eax, eax
setl cl
dec cl
and cl, al
mov byte [esi + ebp], cl
inc esi
cmp esi, edi
jl 0x440f70
lea eax, [edi + edi*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea esi, [eax + 1]
mov eax, dword [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x440ff5
push esi
mov ecx, ebx
call fcn.0042aa80
mov ebx, dword [ebx]
push esi
push 0
push ebx
call fcn.0047a920
add esp, 0xc
test edi, edi
jle 0x441054
dec edi
shr edi, 2
lea esi, [ebx + 1]
lea eax, [ebp + 1]
inc edi
movzx edx, byte [eax - 1]
movzx ecx, byte [eax]
add dl, dl
add dl, dl
shr cl, 4
and cl, 3
add dl, cl
mov byte [esi - 1], dl
movzx edx, byte [eax + 1]
movzx ecx, byte [eax]
shr dl, 2
and dl, 0xf
shl cl, 4
xor dl, cl
mov byte [esi], dl
movzx edx, byte [eax + 1]
shl dl, 6
add dl, byte [eax + 2]
add eax, 4
mov byte [esi + 1], dl
add esi, 3
sub edi, 1
jne 0x441012
add ebp, 0xfffffff0
mov byte [esp + 0x24], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x441076
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44109b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0x80070057
call fcn.00401020
int3
Function at 0x441620
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x4416e0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x441700
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004031c0
mov eax, dword [esi]
sub eax, 0x10
or ecx, 0xffffffff
add dword [eax + 0xc], ecx
jne 0x44170b
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esi]
mov edx, dword [ecx - 4]
sub ecx, 0x10
pop esi
test edx, edx
jge 0x44174b
add edx, 1
mov dword [ecx + 0xc], edx
jne 0x44174b
mov dword [ecx + 0xc], 1
ret

Function at 0x44202b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x53ac4c], 0
push esi
jne 0x441f9e
call fcn.00441ec4
test eax, eax
je 0x441fe1
mov eax, dword [0x53ac4c]
cmp eax, 1
jne 0x441fbf
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x441fe1
pop esi
ret
push eax
call dword [0x53ac54]
test eax, eax
jne 0x442029
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x441fe5
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x53ac4c]
call dword [0x53ac54]
mov edi, eax
test edi, edi
je 0x44200a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x442026
mov edi, esi
add esi, 0xff0
push edi
push dword [0x53ac4c]
call dword [0x53ac50]
add edi, 0x10
cmp edi, esi
jb 0x442012
mov eax, edi
pop edi
pop esi
ret
jmp 0x441f8b
Function at 0x44e281
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x44e297
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x44e2a3
or edi, 1
push 1
call esi
test ax, ax
jge 0x44e2af
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x44e2bb
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x44e2c7
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x44e445
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x536f50]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0047a920
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call sym.Uninst.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047a885
leave
ret

Function at 0x4509eb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x450a10
cmp ebx, dword [esi + 0x54]
je 0x450a10
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x450ad2
push edi
test eax, eax
je 0x450a63
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.Uninst.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x450ad1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x450ad1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x450ad1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x450ad1
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.Uninst.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x450ccf
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call sym.Uninst.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
test eax, eax
jle 0x450d1e
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call sym.Uninst.exe_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x450d7f
mov ecx, edi
inc ebx
call sym.Uninst.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
cmp ebx, eax
jl 0x450ced
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x450dd8
sub eax, 4
je 0x450d83
dec eax
dec eax
jne 0x450dcf
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.00482840
pop ecx
mov ecx, dword [esi + 0x50]
push reloc.WS2_32.dll_ioctlsocket
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push sym.Uninst.exe_private:_static_class_DuiLib::CControlUI____stdcall_DuiLib::CPaintManagerUI::__FindControlFromShortcut_class_DuiLib::CControlUI___void__
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x450dcf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x450dd1
cmp dword [esi + 0x54], 0
je 0x450dcf
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.0044e281
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x450dcf
cmp dword [esi + 0x54], 0
je 0x450e27
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x450e27
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x450e27
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.0047ab84
pop ecx
pop ecx
test eax, eax
je 0x450e27
mov ecx, dword [esi + 0x54]
call sym.Uninst.exe_public:_bool___thiscall_DuiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x450dcf
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call sym.Uninst.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetNextTabControl_bool_
jmp 0x450d7f
Function at 0x462af4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x536f50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x462b65
cmp dword [esi + 0x10], ebx
je 0x462b65
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.0047d7d0
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x462b65
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.0044d7fc
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call sym.Uninst.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a885
leave
ret 0x10

Function at 0x46737f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x4673e7
cmp dword [ebp + 8], 0x100
jne 0x4673d6
cmp word [ebp + 0xc], 0xd
jne 0x4673d6
cmp byte [esi + 0x4da], bl
je 0x4673bd
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4673d6
cmp byte [esi + 0x4db], bl
jne 0x4673d6
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x4673d2
push ebx
push ebx
push ebx
push str.return
push esi
call sym.Uninst.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x4673ea
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x46ffc1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x46ffcc
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x470087
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4ea0c0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4ea0c0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4ea0c0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4ea0c0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4ea0c0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4ea0c0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4ea0c0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4ea0c0]
inc edx
sub edi, 8
dec esi
jne 0x46ffec
pop ebx
test edi, edi
je 0x4700a0
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4ea0c0]
inc edx
dec edi
jne 0x47008b
pop edi
not eax
pop esi
ret

Function at 0x470537
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x47056b
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x470566
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x470593
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x47057c
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0047a520
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x471330
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x536f50]
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 0x4713da
movzx ecx, word [esi]
test cx, cx
je 0x4713da
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x47136e
cmp cx, 0x5c
jne 0x471370
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x471362
cmp eax, esi
je 0x4713ae
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0047d56c
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00471330
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00482d0f
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00482ce1
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a885
leave
ret
Function at 0x47290b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x472986
cmp dword [esi + 4], 0xffffffff
jne 0x472986
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4fba40
push edi
call fcn.00482ce1
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x472958
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x472958
mov eax, 0x2000000
jmp 0x47298b
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047034d
add esp, 0x10
test eax, eax
jne 0x472976
mov eax, dword [ebp + 0x10]
jmp 0x47298b
push eax
call fcn.00472507
mov dword [esi], eax
mov eax, dword [0x53b328]
pop ecx
jmp 0x47298b
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x475821
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x475846
cmp eax, edi
jge 0x47583e
mov eax, esi
call fcn.004751d5
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x475868
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x47584d
cmp ecx, 4
jge 0x475887
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x475875
xor eax, eax
jmp 0x47587d
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x47586b
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x4758b9
mov eax, str.zlib_corrupt
call fcn.00472df2
jmp 0x4758f4
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4758c9
mov eax, str.read_past_buffer
jmp 0x4758b2
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4758de
mov ecx, edi
call fcn.00475200
test eax, eax
je 0x4758f4
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0047a520
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x47a885
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x536f50]
jne 0x47a88f
repz ret
jmp fcn.00486c61

Function at 0x47f263
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 0x47f294
call fcn.00479af9
mov dword [eax], esi
call fcn.00479ae6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0047b9a5
add esp, 0x14
push 0x16
pop eax
jmp 0x47f2e9
test dword [ebp + 0xc], 0xfffffff9
jne 0x47f270
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47f2c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00479b0c
pop ecx
call fcn.00479ae6
mov eax, dword [eax]
jmp 0x47f2e9
test al, 0x10
jne 0x47f2e7
test al, 1
je 0x47f2e7
test byte [ebp + 0xc], 2
je 0x47f2e7
call fcn.00479af9
mov dword [eax], 5
call fcn.00479ae6
mov dword [eax], 0xd
jmp 0x47f2b8
xor eax, eax
pop esi
pop ebp
ret
Function at 0x490ced
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.004847de
and dword [ebp - 4], 0
cmp dword [0x53bfe0], 0
mov ebx, eax
jne 0x490d9e
push 0x4ec668
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x490e4f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x490e4f
push eax
call fcn.0048476c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x53bfe0], eax
call esi
push eax
call fcn.0048476c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x53bfe4], eax
call esi
push eax
call fcn.0048476c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x53bfe8], eax
call esi
push eax
call fcn.0048476c
pop ecx
mov dword [0x53bff0], eax
test eax, eax
je 0x490d9e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048476c
pop ecx
mov dword [0x53bfec], eax
mov eax, dword [0x53bfec]
cmp eax, ebx
je 0x490df6
cmp dword [0x53bff0], ebx
je 0x490df6
push eax
call fcn.004847e7
push dword [0x53bff0]
mov esi, eax
call fcn.004847e7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x490df6
test edi, edi
je 0x490df6
call esi
test eax, eax
je 0x490ded
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x490ded
test byte [ebp - 0xc], 1
jne 0x490df6
or dword [ebp + 0x10], 0x200000
jmp 0x490e2f
mov eax, dword [0x53bfe4]
cmp eax, ebx
je 0x490e2f
push eax
call fcn.004847e7
pop ecx
test eax, eax
je 0x490e2f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x490e2f
mov eax, dword [0x53bfe8]
cmp eax, ebx
je 0x490e2f
push eax
call fcn.004847e7
pop ecx
test eax, eax
je 0x490e2f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x53bfe0]
call fcn.004847e7
pop ecx
test eax, eax
je 0x490e4f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x490e51
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x498160
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4dafe3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x536f50]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x53c044
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x53c044
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x4fbc8f
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.004974c0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x49b2e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x536f50]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49b335
mov eax, dword [esp]
cmp al, 2
jne 0x49b32f
shr eax, 8
cmp al, 2
jne 0x49b32f
call fcn.0049b760
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0047a885
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0047a885
add esp, 0x194
ret