joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4341a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536cf6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x43424c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x43424c
call fcn.004329e0
mov esi, eax
jmp 0x43433c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x43426f
call fcn.004329e0
jmp 0x43432f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x43428d
call fcn.004329e0
jmp 0x43432f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4342ae
mov esi, 0x8007000e
jmp 0x434331
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004327c0
jmp 0x4342d8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4342ef
mov esi, 0x8007000e
jmp 0x434331
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x43430f
call fcn.004329e0
jmp 0x43432f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00434040
mov esi, eax
test edi, edi
je 0x43433c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x434360
lea ecx, [ebp - 0x418]
call fcn.00433870
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004682d0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x434c80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x434c99
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434ca5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x434ca0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x434ce0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x434cf5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434d00
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536eb6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x657114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 0x44]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4364b2
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
lea ecx, [esi + 0x68]
call fcn.0042d350
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 1
call fcn.0042d350
lea eax, [esi + 0x78]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x4364e7
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [esi + 0x90]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x436506
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0xc4]
mov byte [ebp - 4], 5
call fcn.0049a079
mov byte [ebp - 4], 6
call fcn.0046d97f
mov dword [esi + 0xc8], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0046fbab
mov dword [esi + 0xc], 0
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x38], 8
mov dword [esi + 0xa8], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4366e0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536f2e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x657114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0042d350
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
call fcn.0042d350
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.0042d350
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 2
call fcn.0042d350
mov dword [esi + 0x20], vtable.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
mov eax, esi
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], vtable.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], vtable.VectorParameter_struct_SInstallItem__.0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], vtable.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x441970
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5387c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x657114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push 0x441a10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea esi, [edi + 0xac]
mov dword [ebp + 8], eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x64]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x4419db
lea eax, [ebp + 8]
push eax
call fcn.00429910
push dword [edi + 0xd4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4694a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d483
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x657114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x65d118
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x65d118
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x54be0d
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0046d090
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x476f57
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 0x476f7a
or esi, 1
push 1
call edi
test ax, ax
jns 0x476f86
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x476f92
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x476f9e
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x47a20b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call fcn.00402160
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [ebx + 4]
je 0x47a243
cmp esi, dword [ebx + 0x60]
je 0x47a30a
cmp byte [ebx + 0xc4], 0
jne 0x47a243
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, dword [ebx + 0x60]
je 0x47a30a
cmp dword [ebx + 0x60], 0
push edi
je 0x47a29b
call fcn.00402160
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], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x60]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x118]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x60]
call fcn.00479f85
mov dword [ebx + 0x60], edi
test esi, esi
je 0x47a309
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
cmp eax, ebx
jne 0x47a309
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd8]
test al, al
je 0x47a309
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe4]
test al, al
je 0x47a309
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x60], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x60]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x118]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x60]
call fcn.00479f85
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47bba1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47bbd3
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x483b24
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x53fb82
call fcn.00506b61
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.00483eb3
call fcn.00476b16
push eax
lea ecx, [ebp - 0x94]
call fcn.004746ad
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00476b98
mov ecx, eax
call fcn.00474e8b
test al, al
je 0x483c3a
push ebx
lea ecx, [ebp - 0x94]
call fcn.004748eb
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.004ca09e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x483bab
push str.Error_opening_file
jmp 0x483d1b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x483cb4
cmp edi, 0x400000
ja 0x483cc5
and dword [ebp - 0x2c8], 0
push edi
call fcn.0046831d
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x483c23
push ebx
call fcn.00468326
pop ecx
mov ecx, esi
call fcn.00483eb3
push 0
push str.Could_not_read_file
jmp 0x483d1b
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.00483d66
push dword [ebp - 0x2cc]
jmp 0x483d49
call fcn.00476b98
push eax
lea ecx, [ebp - 0x94]
call fcn.004748ce
call fcn.00476d6b
test al, al
je 0x483c5b
call fcn.00476c1b
jmp 0x483c72
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004ca09e
push eax
call fcn.0049aa77
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x483c83
push eax
push str.Error_opening_zip_file
jmp 0x483d1b
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0049a4b8
add esp, 0x14
test eax, eax
je 0x483caa
push 0
push str.Could_not_find_ziped_file
jmp 0x483d1b
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x483cbd
push 0
push str.File_is_empty
jmp 0x483d1b
cmp ebx, 0x400000
jbe 0x483cce
push 0
push 0x5fa968
jmp 0x483d1b
push ebx
call fcn.0046831d
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.0049ae37
add esp, 0x18
test eax, eax
je 0x483d26
cmp eax, 0x600
je 0x483d26
push dword [ebp - 0x2c8]
call fcn.00468326
pop ecx
call fcn.00476d6b
test al, al
jne 0x483d14
push edi
call fcn.0049a312
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.00483edb
mov bl, al
jmp 0x483d51
call fcn.00476d6b
test al, al
jne 0x483d36
push edi
call fcn.0049a312
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.00483d66
push edi
mov bl, al
call fcn.00468326
pop ecx
lea ecx, [ebp - 0x94]
call fcn.004747e9
mov al, bl
call fcn.00506b0b
ret 8
Function at 0x497d6c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x497d80
xor eax, eax
pop ebp
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x497d92
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x497d7c
push esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x497dad
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x497de4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.004e3220
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x497de8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x497deb
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x499d23
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x88
mov eax, 0x53edd7
call fcn.00506b61
mov esi, ecx
cmp dword [esi + 0x4ec], 0
mov ebx, dword [ebp + 0x14]
je 0x499e17
cmp dword [ebp + 8], 0x100
jne 0x499dfd
cmp word [ebp + 0xc], 0xd
jne 0x499d96
cmp byte [esi + 0x4f2], 0
je 0x499d77
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x499d96
cmp byte [esi + 0x4f3], 0
jne 0x499d96
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x499d8f
push 0
push 0
push 0
push str.return
push esi
call fcn.00479f85
xor eax, eax
jmp 0x499e1a
cmp dword [ebp + 0xc], 0x43
jne 0x499dfd
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x499dfd
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.0049857b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.00474d3b
lea ecx, [ebp - 0x94]
lea eax, [eax*2 + 2]
push eax
call fcn.004ca09e
mov ecx, dword [esi + 0x40]
push eax
push 0x2042
call fcn.0047af29
push eax
call fcn.00497d6c
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.004747e9
jmp 0x499d8f
mov eax, dword [esi + 0x4ec]
push ebx
push dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x499e1a
xor eax, eax
inc eax
call fcn.00506b0b
ret 0x10
Function at 0x49a364
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x657114]
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 0x49a41a
movzx eax, word [esi]
test ax, ax
je 0x49a41a
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x49a3a4
cmp ax, 0x5c
jne 0x49a3a6
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x49a398
cmp edi, esi
je 0x49a3ed
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.004f3a74
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x49a42a
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0049a364
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004f3a37
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004f39c6
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.004682d0
mov esp, ebp
pop ebp
ret
call fcn.00468812
int3

Function at 0x49a9ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x49aa6b
cmp dword [edi + 4], 0xffffffff
jne 0x49aa6b
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x63d88c
push esi
call fcn.004f39c6
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x49aa3d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x49aa3d
mov eax, 0x2000000
jmp 0x49aa70
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0049cf1b
add esp, 0x10
test eax, eax
jne 0x49aa5b
mov eax, dword [ebp - 4]
jmp 0x49aa70
push eax
call fcn.0049d628
mov dword [edi], eax
mov eax, dword [0x65d85c]
pop ecx
jmp 0x49aa70
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49d028
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x49d05c
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49d057
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x49d083
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x49d06c
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004e3220
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x49d204
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x49d2c3
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 + 0x604d70]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604d70]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604d70]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604d70]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604d70]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604d70]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604d70]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604d70]
sub edi, 1
jne 0x49d21c
pop edi
test esi, esi
je 0x49d2df
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604d70]
inc edx
sub esi, 1
jne 0x49d2c7
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4b138e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.00471f41
cmp byte [esi + 0x24], 0
je 0x4b140a
cmp dword [esi + 0x1c], 0
je 0x4b140a
call fcn.0046faaf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00506c10
mov ebx, esp
test ebx, ebx
je 0x4b140a
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x1c]
push ebx
add ecx, 0x1bc
call fcn.00474887
call fcn.0046dc74
mov ecx, dword [esi + 0x1c]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00479f85
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004682d0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4bc6a5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x4bc6c9
cmp dword [esi + 8], edi
jge 0x4bc6c1
push esi
call fcn.004ba92d
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4bc6f2
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 0x4bc6d5
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4bc70f
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x4bc6fd
xor eax, eax
jmp 0x4bc705
mov al, byte [edx]
inc edx
mov dword [esi], edx
movzx eax, al
mov byte [ebp + ecx + 8], al
inc ecx
cmp ecx, 4
jl 0x4bc6f4
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 0x4bc744
push str.zlib_corrupt
call fcn.004ba7e8
add esp, 4
jmp 0x4bc781
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4bc754
push str.read_past_buffer
jmp 0x4bc73a
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4bc76b
push edi
push esi
call fcn.004ba7f7
pop ecx
pop ecx
test eax, eax
je 0x4bc781
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004e3220
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret