joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493a60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a299b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x534]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x493b04
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x493ab9
mov ecx, dword [edi + 0x534]
push ebx
push 0x1442
push 0x111
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, edi
call fcn.0048e0b0
mov esi, dword [edi + 0x534]
cmp esi, ebx
mov dword [ebp - 0x14], esi
je 0x493afe
mov al, byte [esi + 0x1e]
mov byte [ebp - 4], 1
cmp al, bl
je 0x493ae2
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x10]
call fcn.00586b33
lea ecx, [esi + 0xc]
mov byte [ebp - 4], bl
call fcn.00586b33
push esi
call fcn.00582ef5
add esp, 4
mov dword [edi + 0x534], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x494240
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a2a16
push eax
mov dword fs:[0], esp
sub esp, 0x148
or ecx, 0xffffffff
xor eax, eax
push ebp
mov ebp, dword [esp + 0x15c]
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
jne 0x49437c
mov eax, dword [0x65ca8c]
push ebx
push esi
mov esi, 1
mov dword [esp + 0x10], eax
push ebp
lea ecx, [esp + 0x14]
push str._sf
push ecx
mov dword [esp + 0x16c], 0
call fcn.0057f8fb
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x494366
test esi, esi
je 0x49435f
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x494306
mov al, byte [esp + esi + 0x44]
cmp al, 0x2e
je 0x494306
movsx ecx, al
push ecx
call fcn.0056b17c
add esp, 4
test eax, eax
jne 0x494301
cmp byte [esp + esi + 0x44], 0x66
jne 0x49434c
inc esi
cmp esi, edi
jl 0x4942e2
mov edx, dword [0x65ca8c]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x44]
lea ecx, [esp + 0x14]
push eax
push ebp
push 0x637020
push ecx
mov byte [esp + 0x170], 1
call fcn.0057f8fb
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 0
call fcn.00586b33
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
jmp 0x4942c4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov dword [esp + 0x160], 0xffffffff
call fcn.00586b33
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x154
ret
Function at 0x499830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a36c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x65ca8c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
lea ecx, [esi + 0x8a8]
mov byte [ebp - 4], 1
call fcn.004c7c40
mov ebx, dword [ebp + 8]
cmp ebx, eax
jge 0x4998c4
mov edx, dword [esi + ebx*4 + 0x8ac]
mov edi, dword [0x6614a8]
xor eax, eax
cmp eax, dword [0x6614ac]
jge 0x4998be
lea ecx, [eax + eax*2]
cmp edx, dword [edi + ecx*4]
lea ecx, [edi + ecx*4]
jne 0x4998ef
mov edx, dword [ecx + 8]
lea eax, [ebp - 0x14]
push edx
push 0x636fa0
push eax
call fcn.0057f8fb
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4998f2
mov al, 1
test al, al
je 0x4998f2
push ebx
lea ecx, [esi + 0x8a8]
call fcn.004c7e50
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc eax
jmp 0x499887
lea ecx, [esi + 0x738]
call fcn.00482fc0
mov edx, dword [ebp - 0x14]
mov ecx, esi
push edx
call fcn.0049b420
jmp 0x4998d0
Function at 0x49c9c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5a3c4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
cmp eax, edi
jne 0x49caa8
add edi, 0x64
mov dword [esi + 0x38], edi
lea eax, [edi*8 + 4]
push eax
call fcn.00582ecc
add esp, 4
mov dword [esp + 0x10], eax
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x49ca2c
push fcn.004093e0
push fcn.004093d0
lea ebx, [eax + 4]
push edi
push 8
push ebx
mov dword [eax], edi
call fcn.0056b673
mov dword [esp + 0x10], ebx
jmp 0x49ca32
mov dword [esp + 0x10], ebp
mov ebx, ebp
cmp ebx, ebp
mov dword [esp + 0x1c], 0xffffffff
jne 0x49ca55
lea ecx, [esp + 0x24]
push 0x60c9d8
push ecx
mov dword [esp + 0x2c], 0xc0000017
call fcn.0056c2f9
mov eax, dword [esi + 0x34]
xor edi, edi
cmp eax, ebp
jle 0x49ca81
mov edx, dword [esi + 0x30]
mov ecx, ebx
lea ebp, [edx + edi*8]
push ebp
call fcn.00586c6c
mov eax, dword [ebp + 4]
inc edi
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x34]
add ebx, 8
cmp edi, eax
jl 0x49ca5e
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x49caa5
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.004093e0
push ecx
push 8
push eax
call fcn.0056a558
push edi
call fcn.00582ef5
add esp, 4
mov dword [esi + 0x30], ebx
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
mov ebx, dword [esp + 0x24]
lea edi, [eax + edx*8]
push ebx
mov ecx, edi
call fcn.00586c6c
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esi + 0x34], eax
mov esi, eax
pop edi
mov dword fs:[0], ecx
lea eax, [esi - 1]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x49caf0
Capabilities:
Set registry value

Disassembly:
mov ax, word [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebp, [esi + 0x24]
mov dword [esi + 0x28], edi
mov word [ebp], ax
call fcn.0049cd30
mov ax, word [ebp]
cmp ax, 9
je 0x49cba6
mov ecx, dword [esi + 0x58]
cmp ecx, edi
jle 0x49cba6
mov ebx, dword [esi + 0x54]
mov edx, eax
and edx, 0xffff
lea eax, [ebx + 8]
cmp dword [eax], edx
je 0x49cb41
inc edi
add eax, 0x20
cmp edi, ecx
jl 0x49cb33
jmp 0x49cba6
shl edi, 5
add ebx, edi
lea ecx, [esi + 0x18]
push ebx
mov dword [esi + 0x28], 1
call fcn.00586c6c
mov ecx, dword [esi + 0x54]
lea edx, [ecx + edi + 0xc]
lea ecx, [esi + 4]
push edx
call fcn.00586c6c
mov eax, dword [esi + 0x54]
lea ecx, [eax + edi + 0x10]
push ecx
lea ecx, [esi + 8]
call fcn.00586c6c
mov edx, dword [esi + 0x54]
lea ecx, [esi + 0xc]
lea eax, [edx + edi + 0x14]
push eax
call fcn.00586c6c
mov ecx, dword [esi + 0x54]
lea edx, [ecx + edi + 0x18]
lea ecx, [esi + 0x10]
push edx
call fcn.00586c6c
mov eax, dword [esi + 0x54]
lea ecx, [eax + edi + 0x1c]
push ecx
lea ecx, [esi + 0x14]
call fcn.00586c6c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49cbd5
mov edx, dword [0x6614e8]
push 4
push ebp
push 4
push 0
push str.LanguageID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, esi
call fcn.004a07c0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x49cbe2
mov word [ebp], 9
mov ecx, esi
call fcn.004a07c0
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x49cbf0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push str.SoftwareDownloadManagermenuExt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x49cd26
mov edx, dword [0x661b10]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push str.ffdownl1_str
push edx
call esi
mov edx, dword [0x661af8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push str.ffdownlAll_str
push eax
call esi
mov edx, dword [0x661b08]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
push str.ffdownlFLV_str
push ecx
call esi
mov edx, dword [0x661b04]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push str.ffdownl10FLV_str
push edx
call esi
mov edx, dword [0x661b0c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push str.ffdownlppFLV_str
push eax
call esi
mov edx, dword [0x661b00]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
mov ecx, dword [esp + 0x14]
push eax
push str.ffdownlFLVa_str
push ecx
call esi
mov edx, dword [0x661afc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push str.ffdownl10FLVa_str
push edx
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret
Function at 0x4a0610
Capabilities:
Identify system language via api
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a3cb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push esi
push edi
mov esi, ecx
call fcn.0042e9c0
mov ecx, esi
call fcn.0049bdf0
mov edx, dword [0x6614e8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push str.LanguageID
push edx
mov dword [esp + 0x24], 4
call edi
test eax, eax
jne 0x4a068d
push eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, esi
call fcn.0049caf0
pop edi
pop esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
add esp, 0xac
ret
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
push 0
push eax
mov ecx, esi
call fcn.004a05d0
push eax
mov ecx, esi
call fcn.0049caf0
cmp word [esi + 0x24], 9
je 0x4a0750
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4a0750
mov eax, dword [0x6614e8]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
push str.LIDwa
push eax
mov dword [esp + 0x24], 4
call edi
test eax, eax
je 0x4a0750
push 0
lea ecx, [esp + 0x14]
call fcn.004d1df0
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0
call fcn.00582ac6
mov edx, dword [0x6614e8]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0
mov esi, 1
push str.LIDwa
push edx
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x6c]
mov dword [esp + 0xb0], esi
call fcn.0058e869
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00582707
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xac
ret
Function at 0x4a5d50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a3d66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x550
push esi
push edi
lea eax, [esp + 0x254]
mov edi, ecx
xor esi, esi
push 0x104
push eax
push esi
mov dword [edi + 0x58], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x458]
lea edx, [esp + 0x358]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x260]
push ecx
push edx
call fcn.0056b52c
mov eax, dword [0x65ca8c]
add esp, 0x14
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_sLanguagesidm_.lng
push eax
mov dword [esp + 0x570], esi
call fcn.0057f8fb
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a5e26
lea ecx, [esp + 0x10]
mov dword [esp + 0x560], eax
call fcn.00586b33
pop edi
pop esi
mov ecx, dword [esp + 0x550]
mov dword fs:[0], ecx
add esp, 0x55c
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x65ca8c]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x144]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_sLanguages_s
push ecx
mov byte [esp + 0x578], 1
call fcn.0057f8fb
mov ecx, dword [esp + 0x24]
add esp, 0x14
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push ecx
mov ecx, edi
call fcn.004a59d0
lea edx, [esp + 0x118]
push edx
push esi
call ebp
test eax, eax
mov byte [esp + 0x564], 0
lea ecx, [esp + 0x10]
je 0x4a5e9a
call fcn.00586b33
jmp 0x4a5e2d
call fcn.00586b33
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov dword [esp + 0x564], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 0x55c]
pop ebp
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x55c
ret

Function at 0x4a6080
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
mov ecx, esi
push eax
call fcn.004a05d0
cmp ax, 9
jne 0x4a60a1
xor ax, ax
pop esi
ret
push ebx
push edi
mov edi, dword [esi + 0x58]
xor edx, edx
test edi, edi
jle 0x4a60c6
mov ecx, dword [esi + 0x54]
mov ebx, eax
and ebx, 0xffff
add ecx, 8
cmp dword [ecx], ebx
je 0x4a60cf
inc edx
add ecx, 0x20
cmp edx, edi
jl 0x4a60ba
pop edi
pop ebx
and eax, 0xffff
pop esi
ret
pop edi
pop ebx
xor eax, eax
pop esi
ret
Function at 0x4a6f20
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3e80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x470
push ebx
mov edx, dword [0x6614e8]
push esi
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x24]
xor esi, esi
push eax
push ecx
push esi
push esi
push str.RunIEMonitor
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a6f79
cmp dword [ebp - 0x24], esi
je 0x4a7082
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x27c]
push 0x104
mov ebx, 1
push ecx
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x37c]
lea eax, [ebp - 0x47c]
push edx
lea ecx, [ebp - 0x178]
push eax
lea edx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x27c]
push edx
push eax
call fcn.0056b52c
add esp, 0x14
lea ecx, [ebp - 0x178]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x14]
push str.IEMonitor.exe
push ecx
push edx
push 0x6379c4
push eax
call fcn.0057f8fb
mov ecx, dword [ebp - 0x14]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4a7076
mov edx, dword [0x65ca8c]
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x4c], 0x81
mov word [ebp - 0x48], si
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push str.__s_
push ecx
mov byte [ebp - 4], 2
call fcn.0057f8fb
add esp, 0xc
lea edx, [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x78]
push edx
push eax
push esi
push esi
push 0x30
push ebx
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
je 0x4a706b
mov edx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x34]
push eax
call esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00586b33
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a7ed0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x5a4026
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebp
push edi
mov edi, ecx
push 0
mov dword [esp + 0xc], edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [0x65ca8c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov ebp, dword [edi + 0x14]
mov dword [esp + 0x184], 0
neg ebp
sbb ebp, ebp
test ebp, ebp
je 0x4a8052
push ebx
push esi
cmp ebp, 0xffffffff
mov ecx, ebp
jne 0x4a7f45
mov esi, dword [edi + 0x10]
xor eax, eax
test esi, esi
jbe 0x4a7f45
mov edx, dword [edi + 0xc]
mov ecx, dword [edx]
test ecx, ecx
jne 0x4a7f45
inc eax
add edx, 4
cmp eax, esi
jb 0x4a7f37
mov ebp, dword [ecx]
test ebp, ebp
jne 0x4a7f6d
mov eax, dword [ecx + 4]
mov esi, dword [edi + 0x10]
lea edx, [edi + 8]
inc eax
cmp eax, esi
jae 0x4a7f6d
mov edx, dword [edx + 4]
lea edx, [edx + eax*4]
mov ebp, dword [edx]
test ebp, ebp
jne 0x4a7f6d
inc eax
add edx, 4
cmp eax, esi
jb 0x4a7f5f
mov ebx, dword [ecx + 8]
lea esi, [ecx + 0xc]
push esi
lea ecx, [esp + 0x18]
call fcn.00586c6c
lea eax, [esi + 4]
lea ecx, [esp + 0x18]
push eax
call fcn.00586c6c
mov esi, dword [esi + 8]
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x4a8044
mov edx, dword [esp + 0x14]
mov ecx, 0x58
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
push 0x4411
lea ecx, [esp + 0x28]
push 0x160
push ecx
push 0x80
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
lea esi, [edx + 8]
push ecx
push ebx
mov ecx, esi
call fcn.004a87d0
test eax, eax
jne 0x4a8021
mov eax, dword [esi + 4]
test eax, eax
jne 0x4a7ffa
mov eax, dword [esi + 8]
push 1
push eax
mov ecx, esi
call fcn.004a89a0
mov ecx, esi
call fcn.004a8930
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ebx
mov dword [eax + 4], ecx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x20]
mov dword [ecx + edx*4], eax
lea esi, [eax + 0xc]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00586c6c
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 4]
call fcn.00586c6c
mov edx, dword [esp + 0x1c]
mov dword [esi + 8], edx
mov edi, dword [esp + 0x10]
test ebp, ebp
jne 0x4a7f24
pop esi
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edi, dword [edi + 4]
test edi, edi
je 0x4a8072
push 0
push 0x1446
push 0x111
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x184], 1
call fcn.00586b33
lea ecx, [esp + 0xc]
mov dword [esp + 0x184], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 0x17c]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x180
ret
Function at 0x4a9b60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a4219
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x5c5708
lea ebx, [esi + 8]
push 0xffffffffffffffff
push 0
mov ecx, ebx
mov dword [esp + 0x24], 2
call fcn.004580e0
lea edi, [esi + 0x1c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004580e0
add esi, 0x30
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004580e0
mov dword [esp + 0x10], esi
mov dword [esi], method.CCommandLineInfo.virtual_0
mov esi, dword [esi + 4]
mov byte [esp + 0x1c], 3
test esi, esi
je 0x4a9bd8
push esi
call fcn.00582ef5
add esp, 4
mov dword [esp + 0x10], edi
mov dword [edi], method.CCommandLineInfo.virtual_0
mov edi, dword [edi + 4]
mov byte [esp + 0x1c], 4
test edi, edi
je 0x4a9bf7
push edi
call fcn.00582ef5
add esp, 4
mov dword [esp + 0x10], ebx
mov dword [ebx], method.CCommandLineInfo.virtual_0
mov ebx, dword [ebx + 4]
mov dword [esp + 0x1c], 5
test ebx, ebx
je 0x4a9c19
push ebx
call fcn.00582ef5
add esp, 4
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4a9fd0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a4240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x65ca8c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0
push ecx
mov ecx, edi
call fcn.004aa0f0
mov edx, dword [0x65ca8c]
mov dword [esp + 8], edx
lea eax, [esp + 0x14]
mov byte [esp + 0x28], 1
push eax
call fcn.0056c17c
mov ecx, dword [esp + 0x18]
add esp, 4
lea edx, [esp + 8]
push ecx
push str._ld_n
push edx
call fcn.0057f8fb
mov eax, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4aa089
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.00586b33
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], esi
call fcn.00586b33
pop edi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x14]
mov ecx, dword [eax - 8]
push 0
push edx
push ecx
push eax
push esi
call ebp
lea eax, [esp + 0x14]
push 0
push eax
add edi, 0x44
push 0x1684
push edi
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.00586b33
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 0x24]
pop ebp
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4ab710
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov eax, dword [esp + 0x10]
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push closesocket
mov dword [esp + 0x2c], ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ab82c
lea ecx, [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4ab770
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4ab770
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x4ab78b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
test ebp, ebp
jne 0x4ab7a2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
lea edi, [ebp + 1]
push edi
call fcn.00582ecc
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ab7c7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4ab823
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4ab823
mov ecx, dword [esp + 0x14]
push eax
push esi
call fcn.004aab20
push esi
call fcn.00582ef5
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.00582ef5
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4