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

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 2
push 0
mov dword [esp + 0x20], ecx
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, eax
test ebp, ebp
je 0x4bc230
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4bc1f9
push 0xe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4bc229
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4bc229
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4bc229
xor eax, eax
mov ax, word [edi + 4]
shl eax, 5
add eax, 0x210
push eax
call fcn.004c7207
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x10], esi
je 0x4bc229
xor ecx, ecx
lea edx, [esi + 0x108]
mov cx, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
mov dword [esi + 0x20c], ecx
call ebx
lea eax, [esi + 4]
push 0x54b38e
push eax
call ebx
mov eax, dword [esi + 0x20c]
mov dword [esp + 0x24], 0
test eax, eax
jbe 0x4bc1f9
mov ecx, esi
add edi, 0x12
mov dword [esp + 0x20], edi
lea ebx, [ecx + 0x21c]
mov eax, dword [esp + 0x20]
xor edx, edx
push 3
mov dx, word [eax]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4bc20e
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4bc215
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [ebx + 4], eax
call fcn.004c7207
add esp, 4
mov dword [ebx], eax
mov esi, dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebx]
mov ecx, esi
mov esi, eax
mov edx, ecx
lea eax, [ebx - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.004bbf40
test eax, eax
je 0x4bc21c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
inc eax
mov edx, dword [ecx + 0x20c]
add edi, 0xe
add ebx, 0x20
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jb 0x4bc15c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x10]
push edx
jmp 0x4bc221
mov eax, dword [esp + 0x10]
push eax
jmp 0x4bc221
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004c711e
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x4bc240
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x4bc270
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x4bc27f
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x4bc2a2
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x4bc2b1
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x4bc2d4
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret 8
Function at 0x4bc320
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
mov eax, dword [esp + 0x24]
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
mov esi, ecx
push 0x40000000
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x4bc497
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x20c]
push ecx
push ebx
mov ecx, esi
call fcn.004bc240
test eax, eax
jne 0x4bc383
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
mov eax, dword [edi + 0x20c]
xor ebp, ebp
test eax, eax
jbe 0x4bc432
lea esi, [edi + 0x224]
mov al, byte [esi - 0x10]
mov dl, byte [esi - 0x14]
mov byte [esp + 0x19], al
mov eax, dword [esi]
mov byte [esp + 0x18], dl
mov byte [esp + 0x1b], 0
mov cx, word [eax + 0xc]
mov word [esp + 0x1c], cx
mov dx, word [eax + 0xe]
mov word [esp + 0x1e], dx
mov ecx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and eax, 0xffff
imul ecx, eax
cmp ecx, 8
jl 0x4bc3e2
mov byte [esp + 0x1a], 0
jmp 0x4bc3ea
mov dl, 1
shl dl, cl
mov byte [esp + 0x1a], dl
mov eax, dword [esi - 4]
mov ecx, dword [esp + 0x14]
push ebp
push edi
mov dword [esp + 0x28], eax
call fcn.004bc2f0
lea ecx, [esp + 0x30]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x10
push edx
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4bc497
cmp dword [esp + 0x30], 0x10
jne 0x4bc497
mov eax, dword [edi + 0x20c]
inc ebp
add esi, 0x20
cmp ebp, eax
jb 0x4bc399
mov eax, dword [edi + 0x20c]
xor ebx, ebx
test eax, eax
jbe 0x4bc48c
lea esi, [edi + 0x224]
mov eax, dword [esi]
push 0
mov ebp, dword [eax + 0x14]
mov dword [eax + 0x14], 0
mov ecx, dword [esi - 4]
mov edx, dword [esi - 8]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4bc497
mov ecx, dword [esp + 0x30]
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x4bc497
mov edx, dword [esi]
inc ebx
add esi, 0x20
mov dword [edx + 0x14], ebp
mov eax, dword [edi + 0x20c]
cmp ebx, eax
jb 0x4bc444
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
Function at 0x4bc4b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4bc52f
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4bc52f
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4bc52f
push ebx
push ebp
push edi
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
mov ebp, eax
mov eax, ecx
mov edi, ebp
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x4bcc00
Capabilities:
Enumerate network shares

Disassembly:
push 0xffffffffffffffff
push 0x4dcbc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], ebx
call fcn.004d4a7a
push 0x400
mov dword [esp + 0x60], ebx
call fcn.004c7207
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x30], ebp
cmp dword [eax - 8], ebx
jne 0x4bcc5e
push ebp
mov ecx, esi
call fcn.004bd060
mov ebx, eax
jmp 0x4bcc92
push 0x104
mov ebx, 1
call fcn.004c7207
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x2000
call fcn.004c7207
add esp, 4
mov esi, eax
test ebx, ebx
mov dword [esp + 0x2c], esi
jle 0x4bcdde
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp]
mov eax, 2
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x34]
push edx
push ecx
push eax
push 1
push eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], 1
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x4bcdb8
mov ecx, 0x800
xor eax, eax
mov edi, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x28], 0x2000
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x68]
push esi
push ecx
push edx
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x4bcdae
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x4bccf9
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
lea ebp, [esi + 0x20]
lea ebx, [eax + ecx*4]
push 0x104
call fcn.004c7207
mov edx, eax
or ecx, 0xffffffff
mov dword [ebx], edx
mov edi, dword [esi + 0x14]
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebx, 4
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, ebp
inc ecx
inc eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x64]
add ebp, 0x20
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x4bcd4e
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
jmp 0x4bccf9
mov ecx, dword [esp + 0x18]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov edx, dword [ebp]
push edx
call fcn.004c711e
mov eax, dword [esp + 0x24]
add esp, 4
add ebp, 4
dec eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jne 0x4bccb5
mov ebp, dword [esp + 0x30]
push ebp
call fcn.004c711e
push esi
call fcn.004c711e
add esp, 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004d4a0c
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 8
Function at 0x4bd060
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
push ebx
push 2
push 1
push 2
mov dword [esp + 0x1c], ebx
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x4bd088
xor eax, eax
pop ebx
add esp, 0x18
ret 4
push ebp
push esi
push edi
push 0x2000
mov dword [esp + 0x1c], 0x2000
call fcn.004c7207
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov ecx, 0x800
xor eax, eax
mov edi, esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x18], 0x2000
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x4bd162
test eax, eax
jne 0x4bd162
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4bd0a6
mov ecx, dword [esp + 0x2c]
lea ebp, [esi + 0x20]
lea ebx, [ecx + ebx*4]
push 0x104
call fcn.004c7207
mov edx, eax
add esp, 4
mov dword [ebx], edx
mov edi, dword [esi + 0x14]
test edi, edi
jne 0x4bd116
mov edi, dword [esi + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebx, 4
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov esi, ebp
inc ecx
inc eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
add ebp, 0x20
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x4bd0fb
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
jmp 0x4bd0a6
mov ecx, dword [esp + 0x20]
push ecx
call sub.MPR.dll_WNetCloseEnum
push esi
call fcn.004c711e
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x4bdcd0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4dcc98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.004c5675
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.004d4a7a
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.004d3794
mov eax, dword [eax]
push 0x5467c2
push eax
call fcn.004c7b7e
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.004d4a0c
test bl, bl
je 0x4bdd50
push 0x5467c2
lea ecx, [esp + 0xc]
call fcn.004d4c4e
push 0x54680a
lea ecx, [esp + 0xc]
call fcn.004d4c4e
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.004c5738
test eax, eax
je 0x4bde14
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.004c5958
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x4bddd0
lea ecx, [esp + 0x18]
call fcn.004c591f
test eax, eax
jne 0x4bddd0
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004c5a27
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.004bdcd0
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x4bde05
lea ecx, [esp + 0x18]
call fcn.004c591f
test eax, eax
jne 0x4bde0a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x4bde0a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.004c5a27
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.004d4a0c
test edi, edi
jne 0x4bdd80
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.004c56ee
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.004d4a0c
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.004c56b2
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x4bdf10
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4dccc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x5474de]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.004d4b49
push 0x54682a
lea ecx, [esp + 0x10]
call fcn.004d4c4e
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4bdfb3
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.004d4a0c
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.004d4a0c
xor eax, eax
jmp 0x4be0f8
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x53e636
push edx
call fcn.004c7b7e
add esp, 8
test eax, eax
je 0x4be0a9
lea eax, [esp + 0x48]
push 0x546826
push eax
call fcn.004c7b7e
add esp, 8
test eax, eax
je 0x4be0a9
test ebp, ebp
jne 0x4be015
lea ecx, [esp + 0x48]
push 0x54681a
push ecx
call fcn.004c6d09
add esp, 8
test eax, eax
je 0x4be0a9
push esi
lea ecx, [esp + 0x14]
call fcn.004d4b49
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004d4c75
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.004d4c4e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4be055
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x4be077
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.004bdf10
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4be0a9
test edi, edi
je 0x4be09e
lea ecx, [esp + 0x48]
push 0x54680e
push ecx
call fcn.004c6d09
add esp, 8
test eax, eax
jne 0x4be09e
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.004be120
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4bdfc3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.004d4a0c
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004d4a0c
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x4be120
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dccdb
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.004c6ea0
mov eax, dword [0x5474de]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.004d4b49
push 0x5c
lea ecx, [esp + 8]
call fcn.004d4c75
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.004d4c4e
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4be1c6
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.004d4a0c
xor eax, eax
jmp 0x4be243
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x4be221
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x4be213
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x4be1ed
jmp 0x4be221
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.004d4a0c
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8
Function at 0x4be260
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x14
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebp
je 0x4be390
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
push eax
push 0x40000
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x4be37f
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push ecx
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x4be37f
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4be37a
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push 0x20019
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x4be37f
push eax
push eax
lea edx, [esp + 0x30]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
push ebp
lea eax, [esp + 0x44]
push edx
push eax
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4be37f
push 0x105
call fcn.004d474d
mov esi, eax
mov eax, dword [esp + 0x30]
add esp, 4
xor edi, edi
test eax, eax
jbe 0x4be371
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, dword [esp + 0x10]
push 0x105
push esi
push edi
push edx
call ebx
test eax, eax
jne 0x4be361
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push 1
push eax
push esi
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004be260
jmp 0x4be368
cmp eax, 0x103
je 0x4be371
mov eax, dword [esp + 0x2c]
inc edi
cmp edi, eax
jb 0x4be337
push esi
call fcn.004d4776
add esp, 4
mov ebp, 1
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebx
je 0x4be390
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop esi
pop ebp
add esp, 0x14
ret 0x10

Function at 0x4be870
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
xor esi, esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x4be8bc
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call edi
test eax, eax
jne 0x4be8bc
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0x18], 2
jne 0x4be8cf
cmp dword [esp + 0xc], 5
jb 0x4be8cf
mov esi, 1
mov eax, esi
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x4c204a
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [esp + 0x10c]
lea eax, [esp + 4]
push edx
push 0x546e1a
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4c209e
pop esi
add esp, 0x104
ret 8
lea eax, [esp + 4]
mov ecx, esi
push eax
push reloc.oledlg.dll_OleUIBusyA
call fcn.004c1ff0
mov eax, 1
pop esi
add esp, 0x104
ret 8

Function at 0x4c20ca
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [esp + 0x10c]
lea eax, [esp + 4]
push edx
push 0x546e1a
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 4]
mov ecx, esi
push 0
push 0
push edx
call fcn.004bdf10
test eax, eax
jne 0x4c2121
pop esi
add esp, 0x104
ret 8
lea eax, [esp + 4]
push eax
call fcn.004c7dff
add esp, 4
test eax, eax
je 0x4c213e
xor eax, eax
pop esi
add esp, 0x104
ret 8
lea ecx, [esp + 4]
push ecx
push reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, esi
call fcn.004c1ff0
mov eax, 1
pop esi
add esp, 0x104
ret 8

Function at 0x4c217b
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4dcfbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call fcn.004c5675
mov edi, dword [esp + 0x140]
push 0
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0
call fcn.004c5738
test eax, eax
lea ecx, [esp + 8]
jne 0x4c21ce
call fcn.004c56ee
lea ecx, [esp + 8]
mov dword [esp + 0x130], 0xffffffff
call fcn.004c56b2
xor eax, eax
jmp 0x4c2265
call fcn.004c56ee
mov eax, dword [esp + 0x144]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [esp + 0x13c]
mov eax, dword [esp + 0x138]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x30]
push 0x546e1e
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x24]
mov ecx, esi
push eax
push edi
call fcn.004c2300
test eax, eax
jne 0x4c223b
lea ecx, [esp + 8]
mov dword [esp + 0x130], 0xffffffff
call fcn.004c56b2
xor eax, eax
jmp 0x4c2265
lea ecx, [esp + 0x24]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.004c1ff0
lea ecx, [esp + 8]
mov dword [esp + 0x130], 0xffffffff
call fcn.004c56b2
mov eax, 1
mov ecx, dword [esp + 0x128]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x12c
ret 0x10