joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aee8d
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, dword [eax]
mov ebx, dword [esi]
push edi
xor edi, edi
lea eax, [ecx - 0x10]
sub ebx, 0x10
cmp eax, ebx
mov dword [ebp - 8], edi
je 0x4aeed9
cmp dword [ebx + 0xc], edi
jl 0x4aeece
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x4aeece
call fcn.004012e0
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.004010d0
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
jmp 0x4aeed9
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, esi
call fcn.00401470
mov eax, dword [esi]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4aef53
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [esi + 4], eax
je 0x4aef37
push dword [esi + 0xc]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
je 0x4aef37
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
je 0x4aef53
call fcn.004af012
test eax, eax
je 0x4aef53
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4aef5b
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x4dd207
call fcn.004be95c
xor edi, edi
lea esi, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call fcn.004016f0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], edi
xor ebx, ebx
call fcn.004af067
cmp eax, edi
mov dword [ebp + 8], eax
je 0x4aeff4
cmp dword [eax], 0x4034b50
jne 0x4aeff4
push 0x24
call fcn.004b9140
mov esi, eax
cmp esi, edi
pop ecx
je 0x4aefc1
lea eax, [esi + 4]
mov dword [esi], vtable.QMDZipUtils::CZipExtract.0
xor ecx, ecx
mov dword [eax + 0x18], 7
call fcn.004024d0
mov dword [esi + 0x20], edi
jmp 0x4aefc3
xor esi, esi
cmp esi, edi
mov ebx, esi
je 0x4aeff4
push dword [ebp + 0xc]
mov eax, dword [esi]
push dword [ebp - 0x10]
push dword [ebp + 8]
push esi
call dword [eax]
test eax, eax
je 0x4aefed
lea ecx, [ebp - 0x14]
call fcn.004016d0
mov eax, edi
call fcn.004bea34
ret 8
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], edi
je 0x4af003
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebx, edi
je 0x4af00d
mov eax, dword [ebx]
push ebx
call dword [eax + 0xc]
mov edi, dword [ebp - 0x18]
jmp 0x4aefdb
Function at 0x4af15f
Capabilities:
Create directory

Disassembly:
push 0x40
mov eax, 0x4def30
call fcn.004be9c5
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 0x2c]
call fcn.00416a60
mov eax, esi
xor edi, edi
mov byte [ebp - 4], 1
push eax
inc edi
lea ebx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x5c
call fcn.0047c800
or edi, 0xffffffff
cmp eax, edi
je 0x4af1da
push eax
mov eax, esi
push eax
xor ecx, ecx
lea esi, [ebp - 0x4c]
call fcn.00416c10
push edi
push 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004020f0
mov byte [ebp - 4], 1
call fcn.0040c0b0
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov esi, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00416a60
call fcn.004af15f
add esp, 0x1c
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x4af1e6
lea eax, [ebp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4af218
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4af218
lea esi, [ebp - 0x2c]
call fcn.0040c0b0
lea esi, [ebp + 8]
call fcn.0040c0b0
mov eax, edi
call fcn.004bea48
ret
xor edi, edi
jmp 0x4af200
Function at 0x4af2b9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x8c], esi
je 0x4af2d2
xor eax, eax
jmp 0x4af424
cmp dword [edi + 4], esi
je 0x4af2cb
mov edx, dword [ebp + 8]
push ebx
lea eax, [edi + 0x10]
push eax
call fcn.00402500
lea eax, [edi + 0x2c]
mov ebx, 0x4ef7d8
push eax
mov edx, ebx
call fcn.00402500
lea eax, [edi + 0x48]
push eax
mov edx, ebx
call fcn.00402500
mov edx, dword [ebp + 0xc]
cmp edx, esi
je 0x4af311
lea eax, [edi + 0x2c]
push eax
call fcn.00402500
jmp 0x4af321
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x48]
push eax
lea ebx, [edi + 0x2c]
call fcn.004af500
pop ecx
cmp dword [edi + 8], esi
jne 0x4af334
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
mov eax, dword [edi + 8]
cmp eax, esi
jne 0x4af342
xor eax, eax
jmp 0x4af423
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 0x88]
cmp ecx, esi
je 0x4af35f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x88], esi
call fcn.004afa7a
test eax, eax
je 0x4af389
push 0x58
call fcn.004b9140
cmp eax, esi
pop ecx
je 0x4af37f
mov esi, eax
call fcn.004b5d4d
xor esi, esi
jmp 0x4af381
xor eax, eax
mov dword [edi + 0x88], eax
jmp 0x4af3c4
push 0x30
call fcn.004b9140
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x4af3bc
lea eax, [ebx + 0xc]
mov dword [ebx], vtable.QQDectector::CWininetFile.0
xor ecx, ecx
mov dword [eax + 0x18], 7
call fcn.004024d0
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], esi
jmp 0x4af3be
xor ebx, ebx
mov dword [edi + 0x88], ebx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x4ef794
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x4af9f9
push 0xfffffffffffffffc
push eax
mov dword [edi + 0x64], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x4af5cd
push esi
push esi
mov dword [edi + 0x8c], 1
mov dword [ebp - 4], esi
call fcn.004b92a4
add esp, 0x18
cmp eax, esi
mov dword [edi + 0xc], eax
jne 0x4af41a
mov dword [edi + 0x8c], esi
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x4af500
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3a8]
and word [ebp - 0x78], 0
push esi
push edi
push 0x410
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x76]
push 0
push eax
mov esi, ecx
call fcn.004be240
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x2f
push esi
call fcn.004b8944
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4af59f
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.QMDownload
lea eax, [ebp - 0x78]
push eax
call esi
sub esp, 0x1c
lea edx, [ebp - 0x78]
mov eax, esp
mov dword [ebp - 0x80], esp
call fcn.00403710
call fcn.004af15f
add esp, 0x1c
add edi, 2
push edi
lea eax, [ebp - 0x78]
push eax
call esi
push ebx
lea edx, [ebp - 0x78]
call fcn.00402500
mov edx, edi
jmp 0x4af5ae
mov esi, 0x4ef7d8
push ebx
mov edx, esi
call fcn.00402500
mov edx, esi
push dword [ebp - 0x7c]
call fcn.00402500
mov ecx, dword [ebp + 0x39c]
pop edi
xor ecx, ebp
pop esi
call fcn.004b83ee
add ebp, 0x3a0
leave
ret

Function at 0x4af931
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push esi
push edi
mov edi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x20e]
push 0
push eax
mov esi, ecx
call fcn.004be240
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.004daab9
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4af9b2
sub esp, 0x1c
lea edx, [ebp - 0x210]
mov eax, esp
mov dword [ebp - 0x214], esp
call fcn.00403710
call fcn.004af15f
add esp, 0x1c
cmp dword [esi + 0x44], 8
jb 0x4af9bd
mov eax, dword [esi + 0x30]
jmp 0x4af9c0
lea eax, [esi + 0x30]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0xc], 0
mov edi, eax
je 0x4af9e7
cmp dword [esi + 0x44], 8
jb 0x4af9dd
mov esi, dword [esi + 0x30]
jmp 0x4af9e0
add esi, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004b83ee
leave
ret 8

Function at 0x4afa7a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x118
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004be240
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4afac0
inc eax
jmp 0x4afae9
xor eax, eax
inc eax
cmp dword [ebp - 0x7c], 5
jne 0x4afae5
cmp dword [ebp - 0x78], eax
jne 0x4afad7
cmp word [ebp + 0x94], ax
jmp 0x4afae5
cmp dword [ebp - 0x78], 0
jne 0x4afae9
cmp word [ebp + 0x94], 3
jae 0x4afae9
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004b83ee
add ebp, 0xa0
leave
ret
Function at 0x4afe5a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x4afe78
cmp word [eax], 0
je 0x4afe78
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4afe78
and al, 0x10
cmp al, 0x10
setne al
ret
xor al, al
ret

Function at 0x4afe7b
Capabilities:
Get file version info

Disassembly:
push 0x280
mov eax, 0x4de640
call fcn.004be9c5
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x22c], eax
mov esi, ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
push 0x20a
lea eax, [ebp - 0x224]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.004be240
add esp, 0xc
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.004daab9
pop ecx
pop ecx
push edi
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jne 0x4aff60
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x228]
lea esi, [ebp - 0x23c]
mov dword [ebp - 0x228], edi
call fcn.004b2dba
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.004b2dba
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.004b2dba
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.004b2dba
mov eax, dword [ebp - 0x22c]
mov ebx, esi
call fcn.004b2d25
call fcn.004a965d
jmp 0x4b0086
push esi
call fcn.004b73e1
pop ecx
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x240], ebx
call fcn.004be240
add esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, edi
jne 0x4affa8
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 2
jmp 0x4afeff
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x244]
push eax
push 0x4f09a4
push ebx
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x258], edi
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
jne 0x4affec
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 3
jmp 0x4afeff
push 0x34
push dword [ebp - 0x244]
lea eax, [ebp - 0x28c]
push eax
call fcn.004bf2a0
mov eax, dword [ebp - 0x284]
shr eax, 0x10
add esp, 0xc
lea ebx, [ebp - 0x228]
lea esi, [ebp - 0x254]
mov dword [ebp - 0x228], eax
call fcn.004b2dba
movzx eax, word [ebp - 0x284]
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.004b2dba
mov eax, dword [ebp - 0x280]
shr eax, 0x10
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.004b2dba
movzx eax, word [ebp - 0x280]
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.004b2dba
push dword [ebp - 0x240]
call fcn.004b8802
mov eax, dword [ebp - 0x22c]
pop ecx
mov ebx, esi
call fcn.004b2d25
lea esi, [ebp - 0x254]
call fcn.004a965d
mov eax, dword [ebp - 0x22c]
call fcn.004bea48
ret
Function at 0x4b1772
Capabilities:
Print debug messages

Disassembly:
push 0x50
mov eax, 0x4e4214
call fcn.004be95c
xor esi, esi
cmp dword [ebx + 0x70], esi
je 0x4b178c
xor eax, eax
jmp 0x4b18c0
mov eax, ebx
call fcn.004b05fc
cmp byte [ebp + 8], 0
jne 0x4b17b2
lea eax, [ebx + 0x84]
mov ecx, dword [eax]
cmp ecx, 1
ja 0x4b17b2
inc ecx
mov dword [eax], ecx
mov ecx, ebx
call fcn.004b040c
jmp 0x4b17bf
mov edi, ebx
call fcn.004b1e5d
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x18], eax
push dword [ebx + 0x88]
mov eax, ebx
call fcn.004b1439
push dword [ebx + 0x8c]
mov eax, ebx
call fcn.004b14f6
cmp dword [ebx + 0x98], esi
je 0x4b17ef
lea eax, [ebx + 0x9c]
push eax
mov eax, ebx
call fcn.004b1680
cmp dword [ebx + 0x90], esi
je 0x4b1804
push dword [ebx + 0x94]
mov eax, ebx
call fcn.004b15b4
push 0x4f89bc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x24]
lea ecx, [ebx + 0x11e8]
push eax
call fcn.004b2527
lea edi, [ebx + 0x11f4]
mov dword [ebp - 4], esi
call fcn.004a8194
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x20]
je 0x4b184b
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x18], eax
je 0x4b1850
call fcn.004b9ac9
cmp dword [ebp - 0x14], esi
je 0x4b18a6
lea esi, [ebp - 0x18]
call fcn.004b2e10
push dword [eax]
push 0
call fcn.004b2e10
add eax, 4
push eax
push ebx
call fcn.004b06b8
test eax, eax
jne 0x4b189c
push 0x38
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004be240
or dword [ebp - 0x5c], 0xffffffff
add esp, 0xc
call fcn.004b2e10
lea ecx, [ebp - 0x5c]
push ecx
push dword [eax]
mov ecx, dword [ebx + 0x7c]
push 0x59
call fcn.004a6fcb
lea esi, [ebp - 0x18]
call fcn.004b36ec
jmp 0x4b183a
push str.ReloadDownloadtask_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
call fcn.004b3209
xor eax, eax
inc eax
call fcn.004bea34
ret 4
Function at 0x4b4754
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2f0
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp + 0x64], eax
push esi
push edi
lea esi, [ebp + 0x70]
lea edi, [ebp - 0x27c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x64
xor edi, edi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.004be240
movzx eax, byte [ebp - 0x270]
movzx ecx, byte [ebp - 0x26f]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x26e]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x26d]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x271]
push eax
movzx eax, byte [ebp - 0x272]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x273]
push eax
movzx eax, byte [ebp - 0x274]
shl eax, 8
or eax, ecx
push eax
movzx eax, word [ebp - 0x276]
push eax
movzx eax, word [ebp - 0x278]
push eax
push dword [ebp - 0x27c]
lea eax, [ebp - 0x64]
push str._X__X__X__X__X_X
push eax
call fcn.004b8974
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x26c]
push str.CLSID_sLocalServer32
push eax
call fcn.004b8974
add esp, 0x38
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x26c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4b4837
xor eax, eax
jmp 0x4b487b
lea eax, [ebp - 0x288]
push eax
push ebx
lea eax, [ebp - 0x284]
push eax
push edi
push edi
push dword [ebp - 0x280]
xor esi, esi
inc esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x288], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4b486d
xor esi, esi
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp + 0x64]
pop edi
xor ecx, ebp
pop esi
call fcn.004b83ee
add ebp, 0x68
leave
ret
Function at 0x4b50a6
Capabilities:
Enumerate processes

Disassembly:
push 0x458
mov eax, 0x4e07c3
call fcn.004be9c5
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
jne 0x4b519a
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b50e7
xor esi, esi
lea ecx, [ebp + 8]
call fcn.004016d0
mov eax, esi
call fcn.004bea48
ret 4
lea eax, [ebp - 0x454]
push eax
push edi
mov dword [ebp - 0x454], 0x22c
call sub.KERNEL32.dll_Process32FirstW
xor ebx, ebx
inc ebx
jmp 0x4b5189
and word [ebp - 0x224], 0
push 0x208
lea eax, [ebp - 0x222]
push 0
push eax
call fcn.004be240
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004daab9
lea eax, [ebp - 0x224]
push eax
call fcn.004badb8
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x224]
call fcn.00409c00
lea eax, [ebp - 0x458]
push eax
lea eax, [esi + 4]
push eax
mov byte [ebp - 4], bl
call fcn.004b51fd
lea ecx, [ebp - 0x458]
mov dword [eax], ebx
mov byte [ebp - 4], 0
call fcn.004016d0
lea eax, [ebp - 0x454]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4b5106
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x45c]
push eax
add esi, 4
push esi
call fcn.004b52d4
mov eax, dword [esi + 4]
mov dword [ebp - 0x464], esi
lea edi, [ebp - 0x464]
lea esi, [ebp - 0x45c]
mov dword [ebp - 0x460], eax
call fcn.004b37a6
test al, al
jne 0x4b50d3
mov edi, dword [ebp - 0x45c]
test edi, edi
jne 0x4b51e5
call fcn.004b9ac9
mov esi, dword [ebp - 0x458]
cmp esi, dword [edi + 4]
jne 0x4b51f5
call fcn.004b9ac9
mov esi, dword [esi + 0x10]
jmp 0x4b50d5
Function at 0x4b697f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x515630], 0
jne 0x4b69fa
and word [ebp - 0x210], 0
push 0x208
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.004be240
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4ef8ac
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x515630], eax
mov eax, ecx
jmp 0x4b69fd
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b83ee
leave
ret

Function at 0x4b711b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004b705a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004be240
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4b716a
cmp dword [ebp - 0x1c], 5
jb 0x4b7182
jmp 0x4b717e
cmp dword [ebp - 0x10], 1
jne 0x4b7182
cmp dword [ebp - 0x1c], 4
ja 0x4b717e
jne 0x4b7182
cmp dword [ebp - 0x18], 0
jbe 0x4b7182
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4e7818
call fcn.00420c70
test eax, eax
jge 0x4b71a3
mov byte [0x515bdc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b83ee
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x514450], 0
push esi
jne 0x4b72c8
call fcn.004b71f3
test eax, eax
je 0x4b730b
mov eax, dword [0x514450]
cmp eax, 1
jne 0x4b72e9
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4b730b
pop esi
ret
push eax
call dword [0x514458]
test eax, eax
jne 0x4b7353
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 0x4b730f
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x514450]
call dword [0x514458]
mov edi, eax
test edi, edi
je 0x4b7336
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4b7352
lea edi, [esi + 0xff0]
push esi
push dword [0x514450]
call dword [0x514454]
add esi, 0x10
cmp esi, edi
jb 0x4b733c
mov eax, esi
pop edi
pop esi
ret
jmp 0x4b72b5

Function at 0x4b83ee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x50f130]
jne 0x4b83f8
repz ret
jmp fcn.004c1a43
Function at 0x4bbe7a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4bbea7
call fcn.004bf776
mov dword [eax], esi
call fcn.004bf763
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004b9aa5
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4bbe83
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4bbed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004bf789
pop ecx
call fcn.004bf763
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4bbefd
test al, 1
je 0x4bbefd
test byte [esp + 0xc], 2
je 0x4bbefd
call fcn.004bf776
mov dword [eax], 5
call fcn.004bf763
mov dword [eax], 0xd
jmp 0x4bbecd
xor eax, eax
pop esi
ret
Function at 0x4bd1c6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4bd203
cmp dword [ebp + 0x14], edi
je 0x4bd203
cmp ecx, edi
jne 0x4bd20a
call fcn.004bf763
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004b9aa5
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4bd21e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4bd23f
cmp ebx, 0xffffffff
je 0x4bd22e
push ebx
push edi
push ecx
call fcn.004be240
add esp, 0xc
cmp esi, edi
je 0x4bd1eb
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4bd1eb
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4bd25b
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4bd262
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4bd353
test word [esi + 0xc], 0x10c
je 0x4bd2b6
mov eax, dword [esi + 4]
test eax, eax
je 0x4bd2b6
jl 0x4bd3b4
cmp ebx, eax
mov edi, ebx
jb 0x4bd287
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4bd35b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004b8413
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4bd34b
cmp ebx, dword [ebp - 0xc]
jb 0x4bd323
cmp dword [ebp - 0xc], 0
je 0x4bd2e0
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4bd2d5
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4bd2dc
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4bd2eb
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4bd2eb
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4bd387
push eax
push dword [ebp - 8]
push esi
call fcn.004c4e31
pop ecx
push eax
call fcn.004cd031
add esp, 0xc
test eax, eax
je 0x4bd3c6
cmp eax, 0xffffffff
je 0x4bd3b4
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4bd34b
push esi
call fcn.004cc950
cmp eax, 0xffffffff
pop ecx
je 0x4bd3b8
cmp dword [ebp - 4], 0
je 0x4bd387
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4bd26a
mov eax, dword [ebp + 0x14]
jmp 0x4bd205
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4bd372
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004be240
add esp, 0xc
call fcn.004bf763
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4bd1fb
cmp dword [ebp + 0xc], 0xffffffff
je 0x4bd39d
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004be240
add esp, 0xc
call fcn.004bf763
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4bd1fb
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4bd205
or dword [esi + 0xc], 0x10
jmp 0x4bd3b8