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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push str.YYSetupDecompressor::_syncDecompress_begin__silence_model_.
mov esi, ecx
call fcn.0044c398
and dword [ebp - 8], 0
pop ecx
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.00415465
test al, al
je 0x415cd6
push str.YYSetupDecompressor::_syncDecompress___isYYRunning_return_true.
call fcn.0044c398
pop ecx
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x415d2a
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
mov ecx, esi
mov byte [ebp - 8], 0
call fcn.00414de5
mov edi, eax
test edi, edi
je 0x415d1e
mov ecx, esi
call fcn.004156b8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push dword [esi + 0x28]
lea ecx, [esi + 0x2c]
push ecx
push dword [ebp - 4]
push eax
call fcn.004153f3
add esp, 0x14
push edi
mov ecx, esi
mov byte [ebp - 8], al
call fcn.00414e3f
mov ecx, dword [esi + 0x28]
push dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0x14]
pop edi
pop esi
leave
ret

Function at 0x41623f
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x418126
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d9778]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4df258], 0
jne 0x4181be
push esi
push 0x4db1d0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0044d0c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0xffffffffffffffff
push eax
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0044e8de
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0044e8c7
lea eax, [ebp - 0x20c]
push str._disablemempool
push eax
call fcn.0044dc2c
add esp, 0x20
pop esi
test eax, eax
je 0x4181b4
mov byte [0x4df254], 1
mov dword [0x4df258], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044cad9
leave
ret

Function at 0x418b63
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
lea eax, [ebp - 0x1c]
lea edi, [esi + 0x10]
push eax
mov ecx, edi
call fcn.0040edde
lea eax, [ebp - 0x1c]
push eax
push 0x477810
push 0x4e0fa8
call fcn.00410444
pop ecx
pop ecx
push eax
call fcn.00418966
push eax
call fcn.00418b2f
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004064bb
lea ebx, [esi + 4]
test ebx, ebx
je 0x418bb8
lea eax, [esi + 0xc]
jmp 0x418bba
xor eax, eax
push 0x47780c
push eax
call fcn.00410444
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0040edde
cmp dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
jae 0x418bde
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004064bb
mov ecx, ebx
call fcn.00418897
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419d89
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.00419bc2
and byte [esi + 0x24], 0xf8
xor eax, eax
push 0x10
mov dword [esi], 0x4779bc
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
call dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [esi + 0x24]
mov edi, 0x4000000
push edi
shr eax, 8
test al, al
seta al
xor cl, al
and cl, 1
xor byte [esi + 0x24], cl
call fcn.00418ef6
add al, al
xor al, byte [esi + 0x24]
mov ebx, 0x8000000
and al, 2
xor byte [esi + 0x24], al
push ebx
call fcn.00418ef6
shl al, 2
xor al, byte [esi + 0x24]
pop ecx
and al, 4
xor byte [esi + 0x24], al
mov al, byte [esi + 0x24]
pop ecx
test al, 1
je 0x419dfe
and dword [esi + 0x28], 0x2000000
test al, 2
je 0x419e05
and dword [esi + 0x28], edi
test al, 4
je 0x419e0c
and dword [esi + 0x28], ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x42c872
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x42c8c3
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x42c8d4
push 0xd
pop eax
jmp 0x42c901
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x42c8d7
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x42ce33
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4d9778]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.0042c831
mov ebx, eax
cmp ebx, esi
je 0x42cea3
lea ecx, [ebp - 0x70]
call fcn.0042c7bc
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044cad9
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x42cebb
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.0042ce33
cmp eax, esi
jne 0x42ceed
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x42ceab
lea ecx, [ebp - 0x70]
call fcn.0042c7bc
push dword [ebp - 0x78]
mov ecx, edi
call fcn.0042c761
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0042c7bc
mov eax, esi
jmp 0x42ce89
Function at 0x42e16d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x4d9778]
xor eax, ebp
mov dword [ebp + 0x394], eax
mov eax, dword [ebp + 0x3a0]
push ebx
mov ebx, dword [ebp + 0x3a8]
push esi
mov esi, dword [ebp + 0x3a4]
push edi
xor edi, edi
push 2
push edi
push eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x70], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x74], eax
cmp eax, edi
jne 0x42e1c8
call fcn.0042c684
mov esi, eax
jmp 0x42e28e
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x42e1e1
call fcn.0042c684
jmp 0x42e283
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x42e1d7
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x42e23d
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x42e214
lea ecx, [ebp - 0x70]
call fcn.0042cde4
mov esi, 0x8007000e
lea ecx, [ebp - 0x78]
call fcn.0042cd49
mov ecx, dword [ebp + 0x394]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044cad9
add ebp, 0x398
leave
ret 0x10
push eax
lea ecx, [ebp - 0x70]
call fcn.0042d30f
cmp dword [ebp - 0x70], edi
jne 0x42e252
mov esi, 0x8007000e
jmp 0x42e285
push esi
push dword [ebp - 0x70]
push esi
push ebx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x42e1d7
mov edx, dword [ebp - 0x70]
push dword [ebp + 0x3ac]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x70]
lea ecx, [ebp - 0x80]
call fcn.0042de84
mov esi, eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x42e219
lea ecx, [ebp - 0x70]
call fcn.0042cde4
jmp 0x42e219
Function at 0x4433bf
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4433d6
inc eax
jmp 0x443478
push esi
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x4433f3
push 0xd
call esi
test eax, eax
jne 0x4433f3
inc eax
jmp 0x443477
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push edi
push 0xd
call esi
mov edi, eax
test edi, edi
jne 0x44343c
push 1
call esi
mov esi, eax
test esi, esi
je 0x44346e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x44346e
push 0xffffffffffffffff
push eax
lea eax, [ebp - 4]
push eax
call fcn.004172ae
mov ecx, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.00416fca
lea ecx, [ebp - 4]
call fcn.00416fbc
push esi
jmp 0x443468
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x44346e
push 0xffffffffffffffff
push eax
lea eax, [ebp - 4]
push eax
call fcn.004172c6
mov ecx, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.00416fca
lea ecx, [ebp - 4]
call fcn.00416fbc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x4434ee
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x443501
inc eax
jmp 0x44358c
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
cmp dword [eax + 8], 0
jne 0x44351e
mov bl, 1
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x443584
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x44354a
call dword [sym.imp.USER32.dll_CloseClipboard]
xor bl, bl
jmp 0x443582
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
mov eax, dword [ebx]
push esi
push dword [eax + 0xc]
push ebp
call fcn.0044caf0
add esp, 0xc
xor eax, eax
push edi
mov word [esi + ebp], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov bl, 1
pop ebp
pop edi
pop esi
xor eax, eax
test bl, bl
sete al
pop ebx
ret 4
Function at 0x448681
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4d9778]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
mov esi, dword [ebp + 0x1a8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], eax
call edi
push esi
mov ebx, eax
call edi
cmp ebx, 0xffffffff
je 0x448782
cmp eax, 0xffffffff
je 0x448782
test bl, 0x10
je 0x448782
test al, 0x10
jne 0x448782
mov ebx, 0x20a
push ebx
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0044d0c0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
mov edi, 0x104
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
call esi
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push eax
add ecx, 4
call fcn.00409234
push ebx
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0044d0c0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp - 0x78]
call esi
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
add esi, 8
push eax
mov ecx, esi
call fcn.00409234
push 0x5c
push 1
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.00408dc2
push eax
call fcn.00447fe2
pop ecx
pop ecx
mov ecx, dword [ebp - 0x78]
add ecx, 0xfffffff0
mov bl, al
call fcn.00408324
test bl, bl
je 0x44877e
push 0x473a64
mov ecx, esi
call fcn.00448269
mov al, 1
jmp 0x448784
xor al, al
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044cad9
add ebp, 0x19c
leave
ret 8
Function at 0x4490d7
Capabilities:
Copy file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4d9778]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
mov eax, dword [ebp + 0x1f4]
push ebx
push esi
mov esi, dword [ebp + 0x1f0]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00449094
push 0x47ada0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00448359
and dword [ebp - 0x6c], 0
push 0x24c
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0044d0c0
add esp, 0x20
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x7c]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x4491c6
test byte [ebp - 0x6c], 0x10
jne 0x4491ac
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00448359
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00448359
add esp, 0x18
push 0
push dword [ebp - 0x74]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.00408324
test bl, bl
je 0x44919f
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x44919f
mov bl, 1
jmp 0x4491a1
xor bl, bl
mov ecx, dword [ebp - 0x74]
add ecx, 0xfffffff0
call fcn.00408324
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44914a
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
call fcn.00408324
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.00408324
mov ecx, dword [ebp + 0x1e4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0044cad9
add ebp, 0x1e8
leave
ret

Function at 0x44a093
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4d9778]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
push edi
mov edi, dword [ebp + 0x194]
push 0x206
lea eax, [ebp - 0x7e]
push 0
push eax
call fcn.0044d0c0
xor eax, eax
add esp, 0xc
mov word [ebp - 0x80], ax
mov esi, 0x104
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x80]
push eax
call fcn.0044d49e
pop ecx
test eax, eax
jle 0x44a108
cmp word [ebp + eax*2 - 0x82], 0x5c
je 0x44a108
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x80], cx
inc eax
xor ecx, ecx
mov word [ebp + eax*2 - 0x80], cx
sub esi, eax
push str.WinSxs_
lea eax, [ebp + eax*2 - 0x80]
push esi
push eax
call fcn.0044e9b1
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.00406c07
mov ecx, dword [ebp + 0x188]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0044cad9
add ebp, 0x18c
leave
ret
Function at 0x44c49e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x4d9778]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0044c841
lea ecx, [edi + 0x24]
call fcn.004065e8
lea esi, [edi + 0x40]
mov ecx, esi
call fcn.004065e8
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push ebx
push eax
mov dword [edi + 0x20], ebx
call fcn.0044d0c0
add esp, 0xc
push ebx
push 0x1a
lea eax, [ebp - 0x64]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x80]
push str._sduowan_setup_
push eax
call fcn.0044c8aa
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00406799
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.004064bb
cmp dword [esi + 0x18], 8
jb 0x44c536
mov eax, dword [esi + 4]
jmp 0x44c539
lea eax, [esi + 4]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [esi + 0x18], 8
jb 0x44c54c
mov esi, dword [esi + 4]
jmp 0x44c54f
add esi, 4
push str.setup.log
push esi
lea eax, [ebp - 0x80]
push str._s_s
push eax
call fcn.0044c8aa
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x24]
call fcn.00406799
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.004064bb
mov ecx, dword [ebp + 0x1a4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044cad9
add ebp, 0x1a8
leave
ret

Function at 0x44cad9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d9778]
jne 0x44cae3
repz ret
jmp fcn.00453323
Function at 0x4665f7
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x46b2c7
call fcn.004693a6
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x466621
lea eax, [ebp + 8]
push eax
call fcn.0040e3a7
pop ecx
jmp 0x46679c
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x46664f
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x46664f
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x46679c
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x466797
cmp dword [esi + 0x3c], ebx
jne 0x466678
push eax
push edi
call fcn.00465d3b
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x46679c
jmp 0x466797
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.00466412
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
lea edx, [ebp - 0x38]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x466769
cmp eax, 1
jg 0x4667a4
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
mov edi, dword [ebp - 0x38]
sub edi, eax
je 0x46670e
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044e596
add esp, 0x10
cmp edi, eax
jne 0x46678b
lea eax, [ebp - 0x30]
mov byte [esi + 0x42], 1
cmp dword [ebp - 0x3c], eax
jne 0x4667d4
test edi, edi
ja 0x466734
cmp dword [ebp - 0x18], 0x20
push 0
lea ecx, [ebp - 0x2c]
jae 0x466790
push 8
call fcn.00408e3d
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004661ee
mov ecx, eax
call fcn.00465b95
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x40]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x2e]
push edx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x4666c5
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.00408976
mov eax, 0xffff
call fcn.004693f0
ret 4
cmp eax, 3
jne 0x46678b
push dword [esi + 0x4c]
push dword [ebp - 0x30]
call fcn.00465d3b
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x4667c3
mov esi, 0xffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408976
mov ax, si
jmp 0x46679c
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408976
mov ax, word [ebp + 8]
jmp 0x46679c
Function at 0x467062
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4e111c], 0
push esi
jne 0x466fd5
call fcn.00466efb
test eax, eax
je 0x467018
mov eax, dword [0x4e111c]
cmp eax, 1
jne 0x466ff6
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x467018
pop esi
ret
push eax
call dword [0x4e1124]
test eax, eax
jne 0x467060
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 0x46701c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4e111c]
call dword [0x4e1124]
mov edi, eax
test edi, edi
je 0x467041
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x46705d
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4e111c]
call dword [0x4e1120]
add edi, 0x10
cmp edi, esi
jb 0x467049
mov eax, edi
pop edi
pop esi
ret
jmp 0x466fc2

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

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret
Function at 0x59f660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x489b48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.0059a580
test eax, eax
jne 0x59f6cc
push ebp
push 0x4adf60
mov ecx, edi
call fcn.0059e8e0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.0059a100
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.0058dd40
push ebx
mov dword [esp + 0x4c], ebp
call fcn.0059a730
add esp, 4
test eax, eax
je 0x59f76f
add esi, 0x18
push esi
call fcn.0058e730
add esi, eax
push esi
call fcn.0058e730
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x59fa72
jmp dword [ecx*4 + 0x41dab0]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.0059ea20
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.0058e730
add esi, eax
push esi
call fcn.0058e730
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x59f7c0
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x48e43c]
test eax, eax
je 0x59f7c0
mov eax, 1
jmp 0x59f7c2
xor eax, eax
cmp ebx, 8
jge 0x59fa27
cmp ebx, 7
ja 0x59fa72
jmp dword [ebx*4 + 0x41dac0]
test eax, eax
jne 0x59fa3a
mov ecx, dword [esp + 0x10]
push eax
push 0x4adf4c
call fcn.0059e8e0
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.0059ff80
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x493de8
call fcn.0058df40
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10