joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aefed
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 0x4af039
cmp dword [ebx + 0xc], edi
jl 0x4af02e
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x4af02e
call fcn.004012d0
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.004010d0
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
jmp 0x4af039
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, esi
call fcn.00401450
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 0x4af0b3
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 0x4af097
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 0x4af097
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
je 0x4af0b3
call fcn.004af172
test eax, eax
je 0x4af0b3
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4af0bb
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x4dd367
call fcn.004bea3c
xor edi, edi
lea esi, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call fcn.00416d00
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], edi
xor ebx, ebx
call fcn.004af1c7
cmp eax, edi
mov dword [ebp + 8], eax
je 0x4af154
cmp dword [eax], 0x4034b50
jne 0x4af154
push 0x24
call fcn.004b9230
mov esi, eax
cmp esi, edi
pop ecx
je 0x4af121
lea eax, [esi + 4]
mov dword [esi], vtable.QMDZipUtils::CZipExtract.0
xor ecx, ecx
mov dword [eax + 0x18], 7
call fcn.00402470
mov dword [esi + 0x20], edi
jmp 0x4af123
xor esi, esi
cmp esi, edi
mov ebx, esi
je 0x4af154
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 0x4af14d
lea ecx, [ebp - 0x14]
call fcn.00416ce0
mov eax, edi
call fcn.004beb14
ret 8
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], edi
je 0x4af163
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebx, edi
je 0x4af16d
mov eax, dword [ebx]
push ebx
call dword [eax + 0xc]
mov edi, dword [ebp - 0x18]
jmp 0x4af13b
Function at 0x4af2bf
Capabilities:
Create directory

Disassembly:
push 0x40
mov eax, 0x4de93e
call fcn.004beaa5
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 0x2c]
call fcn.00416980
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.0047c8c0
or edi, 0xffffffff
cmp eax, edi
je 0x4af33a
push eax
mov eax, esi
push eax
xor ecx, ecx
lea esi, [ebp - 0x4c]
call fcn.00416b30
push edi
push 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00402090
mov byte [ebp - 4], 1
call fcn.00416cb0
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov esi, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00416980
call fcn.004af2bf
add esp, 0x1c
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x4af346
lea eax, [ebp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4af378
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4af378
lea esi, [ebp - 0x2c]
call fcn.00416cb0
lea esi, [ebp + 8]
call fcn.00416cb0
mov eax, edi
call fcn.004beb28
ret
xor edi, edi
jmp 0x4af360
Function at 0x4af419
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 0x4af432
xor eax, eax
jmp 0x4af584
cmp dword [edi + 4], esi
je 0x4af42b
mov edx, dword [ebp + 8]
push ebx
lea eax, [edi + 0x10]
push eax
call fcn.004024a0
lea eax, [edi + 0x2c]
mov ebx, 0x4ef7d8
push eax
mov edx, ebx
call fcn.004024a0
lea eax, [edi + 0x48]
push eax
mov edx, ebx
call fcn.004024a0
mov edx, dword [ebp + 0xc]
cmp edx, esi
je 0x4af471
lea eax, [edi + 0x2c]
push eax
call fcn.004024a0
jmp 0x4af481
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x48]
push eax
lea ebx, [edi + 0x2c]
call fcn.004af660
pop ecx
cmp dword [edi + 8], esi
jne 0x4af494
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 0x4af4a2
xor eax, eax
jmp 0x4af583
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 0x88]
cmp ecx, esi
je 0x4af4bf
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x88], esi
call fcn.004afbda
test eax, eax
je 0x4af4e9
push 0x58
call fcn.004b9230
cmp eax, esi
pop ecx
je 0x4af4df
mov esi, eax
call fcn.004b5e37
xor esi, esi
jmp 0x4af4e1
xor eax, eax
mov dword [edi + 0x88], eax
jmp 0x4af524
push 0x30
call fcn.004b9230
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x4af51c
lea eax, [ebx + 0xc]
mov dword [ebx], vtable.QQDectector::CWininetFile.0
xor ecx, ecx
mov dword [eax + 0x18], 7
call fcn.00402470
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], esi
jmp 0x4af51e
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 0x4afb59
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 0x4af72d
push esi
push esi
mov dword [edi + 0x8c], 1
mov dword [ebp - 4], esi
call fcn.004b9394
add esp, 0x18
cmp eax, esi
mov dword [edi + 0xc], eax
jne 0x4af57a
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 0x4af660
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.004be320
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x2f
push esi
call fcn.004b8a34
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4af6ff
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.004036c0
call fcn.004af2bf
add esp, 0x1c
add edi, 2
push edi
lea eax, [ebp - 0x78]
push eax
call esi
push ebx
lea edx, [ebp - 0x78]
call fcn.004024a0
mov edx, edi
jmp 0x4af70e
mov esi, 0x4ef7d8
push ebx
mov edx, esi
call fcn.004024a0
mov edx, esi
push dword [ebp - 0x7c]
call fcn.004024a0
mov ecx, dword [ebp + 0x39c]
pop edi
xor ecx, ebp
pop esi
call fcn.004b84de
add ebp, 0x3a0
leave
ret

Function at 0x4afa91
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.004be320
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.004daba9
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 0x4afb12
sub esp, 0x1c
lea edx, [ebp - 0x210]
mov eax, esp
mov dword [ebp - 0x214], esp
call fcn.004036c0
call fcn.004af2bf
add esp, 0x1c
cmp dword [esi + 0x44], 8
jb 0x4afb1d
mov eax, dword [esi + 0x30]
jmp 0x4afb20
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 0x4afb47
cmp dword [esi + 0x44], 8
jb 0x4afb3d
mov esi, dword [esi + 0x30]
jmp 0x4afb40
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.004b84de
leave
ret 8

Function at 0x4afbda
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.004be320
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 0x4afc20
inc eax
jmp 0x4afc49
xor eax, eax
inc eax
cmp dword [ebp - 0x7c], 5
jne 0x4afc45
cmp dword [ebp - 0x78], eax
jne 0x4afc37
cmp word [ebp + 0x94], ax
jmp 0x4afc45
cmp dword [ebp - 0x78], 0
jne 0x4afc49
cmp word [ebp + 0x94], 3
jae 0x4afc49
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004b84de
add ebp, 0xa0
leave
ret
Function at 0x4affb1
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x4affd2
Capabilities:
Get file version info

Disassembly:
push 0x280
mov eax, 0x4de8a6
call fcn.004beaa5
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.004be320
add esp, 0xc
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.004daba9
pop ecx
pop ecx
push edi
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jne 0x4b00b7
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.004b2f2c
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.004b2f2c
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.004b2f2c
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.004b2f2c
mov eax, dword [ebp - 0x22c]
mov ebx, esi
call fcn.004b2e7c
call fcn.004b2ef3
jmp 0x4b01dd
push esi
call fcn.004b74d1
pop ecx
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x240], ebx
call fcn.004be320
add esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, edi
jne 0x4b00ff
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 2
jmp 0x4b0056
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 0x4b0143
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 3
jmp 0x4b0056
push 0x34
push dword [ebp - 0x244]
lea eax, [ebp - 0x28c]
push eax
call fcn.004bf380
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.004b2f2c
movzx eax, word [ebp - 0x284]
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.004b2f2c
mov eax, dword [ebp - 0x280]
shr eax, 0x10
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.004b2f2c
movzx eax, word [ebp - 0x280]
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.004b2f2c
push dword [ebp - 0x240]
call fcn.004b88f2
mov eax, dword [ebp - 0x22c]
pop ecx
mov ebx, esi
call fcn.004b2e7c
lea esi, [ebp - 0x254]
call fcn.004b2ef3
mov eax, dword [ebp - 0x22c]
call fcn.004beb28
ret
Function at 0x4b18c9
Capabilities:
Print debug messages

Disassembly:
push 0x50
mov eax, 0x4e4394
call fcn.004bea3c
xor esi, esi
cmp dword [ebx + 0x70], esi
je 0x4b18e3
xor eax, eax
jmp 0x4b1a17
mov eax, ebx
call fcn.004b0753
cmp byte [ebp + 8], 0
jne 0x4b1909
lea eax, [ebx + 0x84]
mov ecx, dword [eax]
cmp ecx, 1
ja 0x4b1909
inc ecx
mov dword [eax], ecx
mov ecx, ebx
call fcn.004b0563
jmp 0x4b1916
mov edi, ebx
call fcn.004b1fb4
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x18], eax
push dword [ebx + 0x88]
mov eax, ebx
call fcn.004b1590
push dword [ebx + 0x8c]
mov eax, ebx
call fcn.004b164d
cmp dword [ebx + 0x98], esi
je 0x4b1946
lea eax, [ebx + 0x9c]
push eax
mov eax, ebx
call fcn.004b17d7
cmp dword [ebx + 0x90], esi
je 0x4b195b
push dword [ebx + 0x94]
mov eax, ebx
call fcn.004b170b
push 0x4f89cc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x24]
lea ecx, [ebx + 0x11e8]
push eax
call fcn.004b267e
lea edi, [ebx + 0x11f4]
mov dword [ebp - 4], esi
call fcn.004972e5
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 0x4b19a2
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x18], eax
je 0x4b19a7
call fcn.004b9c0e
cmp dword [ebp - 0x14], esi
je 0x4b19fd
lea esi, [ebp - 0x18]
call fcn.004b2f82
push dword [eax]
push 0
call fcn.004b2f82
add eax, 4
push eax
push ebx
call fcn.004b080f
test eax, eax
jne 0x4b19f3
push 0x38
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004be320
or dword [ebp - 0x5c], 0xffffffff
add esp, 0xc
call fcn.004b2f82
lea ecx, [ebp - 0x5c]
push ecx
push dword [eax]
mov ecx, dword [ebx + 0x7c]
push 0x59
call fcn.004a7027
lea esi, [ebp - 0x18]
call fcn.004b385e
jmp 0x4b1991
push str.ReloadDownloadtask_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
call fcn.004b337b
xor eax, eax
inc eax
call fcn.004beb14
ret 4
Function at 0x4b48c6
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.004be320
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.004b8a64
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x26c]
push str.CLSID_sLocalServer32
push eax
call fcn.004b8a64
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 0x4b49a9
xor eax, eax
jmp 0x4b49ed
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 0x4b49df
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.004b84de
add ebp, 0x68
leave
ret
Function at 0x4b5218
Capabilities:
Enumerate processes

Disassembly:
push 0x458
mov eax, 0x4e08d3
call fcn.004beaa5
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
jne 0x4b530c
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b5259
xor esi, esi
lea ecx, [ebp + 8]
call fcn.00416ce0
mov eax, esi
call fcn.004beb28
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 0x4b52fb
and word [ebp - 0x224], 0
push 0x208
lea eax, [ebp - 0x222]
push 0
push eax
call fcn.004be320
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004daba9
lea eax, [ebp - 0x224]
push eax
call fcn.004bae7a
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x224]
call fcn.004099e0
lea eax, [ebp - 0x458]
push eax
lea eax, [esi + 4]
push eax
mov byte [ebp - 4], bl
call fcn.004b536f
lea ecx, [ebp - 0x458]
mov dword [eax], ebx
mov byte [ebp - 4], 0
call fcn.00416ce0
lea eax, [ebp - 0x454]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4b5278
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.004b5446
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.004b3918
test al, al
jne 0x4b5245
mov edi, dword [ebp - 0x45c]
test edi, edi
jne 0x4b5357
call fcn.004b9c0e
mov esi, dword [ebp - 0x458]
cmp esi, dword [edi + 4]
jne 0x4b5367
call fcn.004b9c0e
mov esi, dword [esi + 0x10]
jmp 0x4b5247
Function at 0x4b6a6f
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 [0x515610], 0
jne 0x4b6aea
and word [ebp - 0x210], 0
push 0x208
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.004be320
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 [0x515610], eax
mov eax, ecx
jmp 0x4b6aed
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b84de
leave
ret

Function at 0x4b720b
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.004b714a
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.004be320
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 0x4b725a
cmp dword [ebp - 0x1c], 5
jb 0x4b7272
jmp 0x4b726e
cmp dword [ebp - 0x10], 1
jne 0x4b7272
cmp dword [ebp - 0x1c], 4
ja 0x4b726e
jne 0x4b7272
cmp dword [ebp - 0x18], 0
jbe 0x4b7272
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4e7818
call fcn.00420bd0
test eax, eax
jge 0x4b7293
mov byte [0x515bbc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b84de
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x514430], 0
push esi
jne 0x4b73b8
call fcn.004b72e3
test eax, eax
je 0x4b73fb
mov eax, dword [0x514430]
cmp eax, 1
jne 0x4b73d9
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4b73fb
pop esi
ret
push eax
call dword [0x514438]
test eax, eax
jne 0x4b7443
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 0x4b73ff
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x514430]
call dword [0x514438]
mov edi, eax
test edi, edi
je 0x4b7426
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4b7442
lea edi, [esi + 0xff0]
push esi
push dword [0x514430]
call dword [0x514434]
add esi, 0x10
cmp esi, edi
jb 0x4b742c
mov eax, esi
pop edi
pop esi
ret
jmp 0x4b73a5

Function at 0x4b84de
Capabilities:
Terminate process

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4bbf94
call fcn.004bf856
mov dword [eax], esi
call fcn.004bf843
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004b9bea
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4bbf70
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4bbfc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004bf869
pop ecx
call fcn.004bf843
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4bbfea
test al, 1
je 0x4bbfea
test byte [esp + 0xc], 2
je 0x4bbfea
call fcn.004bf856
mov dword [eax], 5
call fcn.004bf843
mov dword [eax], 0xd
jmp 0x4bbfba
xor eax, eax
pop esi
ret
Function at 0x4bd2a6
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 0x4bd2e3
cmp dword [ebp + 0x14], edi
je 0x4bd2e3
cmp ecx, edi
jne 0x4bd2ea
call fcn.004bf843
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004b9bea
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4bd2fe
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4bd31f
cmp ebx, 0xffffffff
je 0x4bd30e
push ebx
push edi
push ecx
call fcn.004be320
add esp, 0xc
cmp esi, edi
je 0x4bd2cb
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4bd2cb
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4bd33b
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4bd342
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4bd433
test word [esi + 0xc], 0x10c
je 0x4bd396
mov eax, dword [esi + 4]
test eax, eax
je 0x4bd396
jl 0x4bd494
cmp ebx, eax
mov edi, ebx
jb 0x4bd367
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4bd43b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004b8503
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 0x4bd42b
cmp ebx, dword [ebp - 0xc]
jb 0x4bd403
cmp dword [ebp - 0xc], 0
je 0x4bd3c0
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4bd3b5
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4bd3bc
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4bd3cb
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4bd3cb
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4bd467
push eax
push dword [ebp - 8]
push esi
call fcn.004c4f11
pop ecx
push eax
call fcn.004cd121
add esp, 0xc
test eax, eax
je 0x4bd4a6
cmp eax, 0xffffffff
je 0x4bd494
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4bd42b
push esi
call fcn.004cca40
cmp eax, 0xffffffff
pop ecx
je 0x4bd498
cmp dword [ebp - 4], 0
je 0x4bd467
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 0x4bd34a
mov eax, dword [ebp + 0x14]
jmp 0x4bd2e5
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4bd452
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004be320
add esp, 0xc
call fcn.004bf843
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4bd2db
cmp dword [ebp + 0xc], 0xffffffff
je 0x4bd47d
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004be320
add esp, 0xc
call fcn.004bf843
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4bd2db
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4bd2e5
or dword [esi + 0xc], 0x10
jmp 0x4bd498