joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436ca4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x4ca413
call fcn.0043c4c0
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
xor edi, edi
inc edi
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00421870
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push ebx
push str.SoftwareMGWPPCC
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0042a55a
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x436d7c
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x24], ecx
je 0x436d73
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], 1
mov dword [ebp - 0x20], eax
jne 0x436d68
mov ecx, esi
call fcn.004133ba
mov eax, dword [ebp - 0x10]
mov ecx, esi
shr eax, 1
inc eax
push eax
call fcn.0041364e
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x436d68
mov eax, dword [ebp - 0x10]
xor edx, edx
mov ecx, dword [ebp - 0x1c]
shr eax, 1
push 0xffffffffffffffff
mov word [ecx + eax*2], dx
mov ecx, esi
call fcn.0042b9cd
cmp dword [ebp - 0x24], 0
je 0x436d73
push dword [ebp - 0x24]
call edi
xor ebx, ebx
mov eax, ebx
mov dword [ebp - 0x24], eax
jmp 0x436d7f
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x436d86
push eax
call edi
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov dword [ebp - 0x24], ebx
call fcn.004136c2
mov eax, esi
call fcn.0043c48e
ret

Function at 0x4372ec
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x4ca56d
call fcn.0043c4c0
and dword [ebp - 4], 0
xor esi, esi
and dword [ebp - 0x18], esi
and dword [ebp - 0x14], esi
xor eax, eax
mov byte [ebp - 4], 2
inc eax
lea ecx, [ebp - 0x18]
push eax
push str.Control_PanelDesktop
push closesocket
call fcn.0042a55a
test eax, eax
je 0x437370
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x437369
push ebx
call fcn.004727f6
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
xor ebx, ebx
inc ebx
push ebx
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
cmove esi, ebx
test eax, eax
je 0x437369
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x437373
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43737e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
and dword [ebp - 0x18], 0
add ecx, 0xfffffff0
call fcn.004136c2
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004136c2
mov eax, esi
call fcn.0043c48e
ret
Function at 0x4380f8
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x4ca94d
call fcn.0043c4f3
mov dword [ebp - 0x30], ecx
cmp dword [ecx + 0x14], 0
mov ebx, dword [ebp + 8]
je 0x43814d
mov edi, dword [ebx + 8]
test edi, edi
je 0x43814d
xor esi, esi
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push 0
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebx + 4]
add eax, esi
push eax
push dword [ecx + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x438155
cmp dword [ebp - 0x2c], 0
je 0x438155
add esi, dword [ebp - 0x2c]
cmp esi, edi
jae 0x43814d
mov ecx, dword [ebp - 0x30]
jmp 0x438119
call fcn.0043c4a2
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00437ecb
and dword [ebp - 4], 0
sub esp, 0x10
mov ecx, esp
push eax
push str.wincolor_sink:_write_to_file__failed._GetLastError__:
push ecx
call fcn.00414811
add esp, 0xc
call fcn.00437e79
int3
Function at 0x439b68
Capabilities:
Check if file exists

Disassembly:
push 0x100
mov eax, 0x4caf40
call fcn.0043c4f3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10c], eax
or dword [ebp - 0x108], 0xffffffff
lea ecx, [ebp - 0x28]
push str.makepacket.exe
mov dword [ebp - 4], 1
call fcn.00404ed0
xor ebx, ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.00427554
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 3
push eax
call fcn.0042a875
add esp, 0xc
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x439bd5
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x439bd5
mov eax, ebx
jmp 0x439bdc
push esi
call fcn.004727f6
pop ecx
push eax
push esi
lea ecx, [ebp - 0x104]
call fcn.004256fd
push dword [ebp - 0x104]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x439d9a
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.00412e32
mov edi, eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00412e32
mov esi, eax
push dword [ebp - 0x10c]
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 5
push eax
call fcn.00412e32
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 6
push 0x4d4f78
push eax
call fcn.00414811
push 0x4e9534
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 7
push eax
call fcn.004147de
add esp, 0x30
push esi
push eax
push dword [ebp - 0x108]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
call fcn.00421b03
push 0x4e9534
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004147de
add esp, 0xc
push edi
push eax
push dword [ebp - 0x108]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.00421b03
lea ecx, [ebp - 0x70]
call fcn.00405ac0
lea ecx, [ebp - 0x58]
call fcn.00405ac0
lea ecx, [ebp - 0x88]
call fcn.00405ac0
lea ecx, [ebp - 0xa0]
call fcn.00405ac0
lea ecx, [ebp - 0xb8]
call fcn.00405ac0
lea ecx, [ebp - 0xd0]
call fcn.00405ac0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x12
call fcn.00405ac0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov esi, str.UploadFeedBack::makeZip
mov edi, str.E:Documentsmgtv2_packagepackageuploadUploadFeedback.cpp
cmovae eax, dword [ebp - 0x40]
push eax
push str.start_makeZip_process___cmd___s
push 0x5e
push esi
push edi
call fcn.00433eca
push eax
call fcn.00434ea2
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00412c9c
add esp, 0x20
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov byte [ebp - 4], 0x13
jb 0x439d41
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x108]
push ebx
push 0xea60
push edx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0042bd64
add esp, 0x14
mov byte [ebp - 4], 0x12
test eax, eax
lea ecx, [ebp - 0x100]
setne bl
call fcn.00406610
movzx eax, bl
push eax
push str.makeZip_end___ret___d
push 0x60
push esi
push edi
call fcn.00433eca
push eax
call fcn.00434ea2
add esp, 0x18
lea ecx, [ebp - 0x40]
call fcn.00405ac0
mov ecx, dword [ebp - 0x104]
add ecx, 0xfffffff0
call fcn.004136c2
lea ecx, [ebp - 0x28]
call fcn.00406610
lea ecx, [ebp + 0xc]
call fcn.00406610
lea ecx, [ebp + 0x24]
call fcn.00406610
mov al, bl
call fcn.0043c4a2
ret 0x34
Function at 0x43ac5c
Capabilities:
Get graphical window text

Disassembly:
push 0x48
mov eax, 0x4cb2a0
call fcn.0043c4f3
push str.pet3_hot_upgrade_finished__notify_tv.
push 0x11
mov edi, str.UploadMsgSender::sendPetHotUpgradeFinishedMsg
mov ebx, str.E:Documentsmgtv2_packagepackageuploadUploadMsgSender.cpp
push edi
push ebx
call fcn.00433eca
push eax
call fcn.00434ea2
add esp, 0x14
push 0
push 0x4d52f0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x43ad5f
push 0
lea ecx, [ebp - 0x44]
call fcn.0045c3f3
and dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
push 0xd
call fcn.0045c34a
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
push 0x4d4cd8
lea ecx, [ebp - 0x44]
call fcn.0045c8b3
mov ecx, eax
call fcn.0045c648
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.0045c5b4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call fcn.0045e48e
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00472ad0
pop ecx
push 1
inc eax
push 0x4a
mov dword [ebp - 0x30], eax
call dword [sym.imp.USER32.dll_ChangeWindowMessageFilter]
lea eax, [ebp - 0x34]
push eax
push esi
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.SendMessage___ret___d__error___d
push 0x1c
push edi
push ebx
call fcn.00433eca
push eax
call fcn.00434ea2
add esp, 0x1c
lea ecx, [ebp - 0x28]
call fcn.00405ac0
lea ecx, [ebp - 0x44]
call fcn.0045c5b4
jmp 0x43ad76
push 0x4d5328
push 0x1f
push edi
push ebx
call fcn.00433eca
push eax
call fcn.00434db7
add esp, 0x14
call fcn.0043c4a2
ret

Function at 0x43af30
Capabilities:
Check mutex on windows

Disassembly:
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x4d28d4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x43af65
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43af65
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x43be07
Capabilities:
Check if file exists

Disassembly:
push 0x34
mov eax, 0x4cb5cc
call fcn.0043c4f3
and dword [ebp - 4], 0
mov edi, str.WPDLLInstall::run
push str.start_install_mgwp.dll
push 0x11
push edi
mov esi, str.E:Documentsmgtv2_packagepackageuploadWPDLLInstall.cpp
push esi
call fcn.00433eca
push eax
call fcn.00434ea2
add esp, 0x14
lea ecx, [ebp - 0x40]
push str._s__nboot__nshortcut__nss
call fcn.00405c80
lea eax, [ebp + 8]
xor ebx, ebx
push eax
lea eax, [ebp - 0x28]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.00412c9c
pop ecx
pop ecx
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x43bf52
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43bf52
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x43becd
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x4d5514
push 0x1a
push edi
push str.E:Documentsmgtv2_packagepackageuploadWPDLLInstall.cpp
call fcn.00433eca
push eax
call fcn.00434ea2
add esp, 0x1c
jmp 0x43bf75
push 0x4d29b4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp + 8]
test edi, edi
jne 0x43bf13
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
push 0x4d5544
push 0x20
push str.WPDLLInstall::run
push str.E:Documentsmgtv2_packagepackageuploadWPDLLInstall.cpp
call fcn.00433eca
push eax
call fcn.00434ea2
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x43bf75
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
push str.WPDLLInstall:
push 0x24
push str.WPDLLInstall::run
push str.E:Documentsmgtv2_packagepackageuploadWPDLLInstall.cpp
call fcn.00433eca
push eax
call fcn.00434ea2
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x43bf77
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0x4d54e4
push 0x15
push edi
push esi
call fcn.00433eca
push eax
call fcn.00434ea2
add esp, 0x18
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.00406610
lea ecx, [ebp - 0x40]
call fcn.00405ac0
lea ecx, [ebp + 8]
call fcn.00405ac0
mov al, bl
call fcn.0043c4a2
ret 0x18

Function at 0x4af149
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e2adc
push 0x4e2ad4
push 0x4dc630
push 0x1e
call fcn.004aee16
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4af17d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cf4ec]
call esi
jmp 0x4af183
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4af1c7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e2aec
push 0x4e2ae4
push 0x4dc644
push 0x20
call fcn.004aee16
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4af1fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cf4ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4b313d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4ffad0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b317d
cmp byte [ebx], 0xa
jne 0x4b317d
or byte [eax + edi + 0x28], 4
jmp 0x4b3182
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4b3280
mov al, byte [edx]
cmp al, 0x1a
je 0x4b3262
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4b31b1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4b31d6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4b31e0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4b3193
jmp 0x4b3280
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b325d
cmp dword [ebp - 0xc], 0
je 0x4b325d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ffad0]
test byte [eax + edi + 0x28], 0x48
je 0x4b3237
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4b3222
mov byte [esi], dl
jmp 0x4b3233
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ffad0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4b3280
cmp byte [ebp - 1], 0xa
jne 0x4b3246
cmp esi, ebx
jne 0x4b3246
mov byte [esi], 0xa
jmp 0x4b327f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b30b5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b3280
mov byte [esi], 0xd
jmp 0x4b327f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ffad0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b327c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b3280
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b3289
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4ffad0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b32cc
cmp word [esi], dx
jne 0x4b32cc
or byte [edi + eax + 0x28], 4
jmp 0x4b32d1
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4b3424
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4b3404
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4b3313
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b3349
cmp eax, edx
jae 0x4b3355
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4b32eb
jmp 0x4b3424
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b3400
cmp dword [ebp - 0x14], 0
je 0x4b3400
mov eax, dword [ebx*4 + 0x4ffad0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4b33d8
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4b33a1
mov word [esi], cx
jmp 0x4b33d4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ffad0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ffad0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ffad0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4b3424
pop ebx
cmp word [ebp - 4], bx
jne 0x4b33e9
cmp esi, dword [ebp + 0xc]
jne 0x4b33e9
mov word [esi], bx
jmp 0x4b3421
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b30b5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4b3424
push 0xd
jmp 0x4b341d
mov ecx, dword [ebx*4 + 0x4ffad0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b341b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b3424
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b3f31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b3b18

Function at 0x4b3f3c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b3ca7
Function at 0x4b4a76
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4b4ac1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004b4e50
test al, al
jne 0x4b4abb
sub edx, 2
cmp edx, edi
jne 0x4b4aa1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4b4ae3
lea eax, [edi + 2]
cmp edx, eax
je 0x4b4ae3
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b473d
add esp, 0x10
jmp 0x4b4bdd
push esi
lea ecx, [ebp - 0x255]
call fcn.004b4e50
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b4b26
push dword [ebp - 0x25c]
jmp 0x4b4ad3
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4b4b63
cmp word [ebp - 0x226], 0
je 0x4b4b84
cmp word [ebp - 0x226], ax
jne 0x4b4b63
cmp word [ebp - 0x224], 0
je 0x4b4b84
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004b473d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4b4bd0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4b4b3d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4b4bb8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4b4bdd
push 0x4b425c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004c2010
add esp, 0x10
jmp 0x4b4bad
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c480
leave
ret
Function at 0x4b5fca
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4b6067
push ebx
push esi
call fcn.004b5f86
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004b259d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b6014
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b6066
push edi
push eax
call fcn.004aaa72
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4b6034
call fcn.004aaa38
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b6065
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004b259d
add esp, 0x20
test eax, eax
jne 0x4b6053
push edi
call fcn.004aaa38
jmp 0x4b605b
push ebx
call fcn.004aaa38
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4b606a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b607b
pop esi
ret
push ebx
push edi
push esi
call fcn.004b5f86
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004aaa72
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b60a3
push ebx
push esi
push edi
call fcn.004640d0
add esp, 0xc
push 0
call fcn.004aaa38
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4b6984
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b6316

Function at 0x4b772e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b7602
Function at 0x4c419d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c3fbd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4c4315
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4c4315
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4c42c4
jg 0x4c41f6
test eax, eax
je 0x4c42ba
push 1
push 0x1000
call fcn.004ace98
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4c421c
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4c42b1
push 0x8000
push ebx
call fcn.0049bf88
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4c4248
jg 0x4c4243
cmp ecx, 0x1000
jb 0x4c4248
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b09fd
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c428d
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4c4243
jl 0x4c4274
test ecx, ecx
jne 0x4c4235
push dword [ebp - 0xc]
push ebx
call fcn.0049bf88
push esi
call fcn.004aaa38
add esp, 0xc
xor edi, edi
jmp 0x4c4326
cmp byte [edi + 0x24], 0
je 0x4c42a4
cmp dword [edi + 0x20], 5
jne 0x4c42a4
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4c42af
mov edi, dword [edi + 0x18]
jmp 0x4c42b1
xor edi, edi
push esi
call fcn.004aaa38
pop ecx
jmp 0x4c4326
test ecx, ecx
jg 0x4c4286
jl 0x4c42c4
test eax, eax
jae 0x4c4286
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b30b5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c42e7
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4c4286
jmp 0x4c431e
push ebx
call fcn.004b2a7b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4c4286
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4c4326
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4c4323
mov edi, dword [edi + 0x18]
jmp 0x4c4326
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b30b5
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret