joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476f32
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x20000013
push dword [esi + 4]
mov dword [ebp - 4], 4
call fcn.0047549c
add esp, 0x14
test eax, eax
je 0x476f70
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x476f74
cmp eax, 0x12c
jae 0x476f74
mov al, 1
jmp 0x476f8a
add eax, 0xd3c0
or eax, 0x80040000
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
leave
ret

Function at 0x47721b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x47726d
push eax
call fcn.0049e01f
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x47726d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4e9118
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x477271
xor al, al
jmp 0x4772d2
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x4772d0
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0049e01f
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x4772d0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x4772be
mov al, 1
pop ebx
leave
ret 4
Function at 0x477c30
Capabilities:
Delete file

Disassembly:
mov eax, 0x4bb9f7
call fcn.0049dfc4
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.0047801c
test al, 0x10
pop ecx
je 0x477dab
push 1
lea eax, [ebp + 8]
pop edi
push 0x4e7e38
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00477f2b
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0043463b
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00434e1a
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x477d56
test edi, edi
je 0x477d4f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x4e7e34
push eax
call edi
test eax, eax
je 0x477d3a
lea eax, [ebp - 0x1bc]
push 0x4e7e30
push eax
call edi
test eax, eax
je 0x477d3a
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4c0924
mov dword [ebp - 0x20], 0x4c091c
call fcn.004344b0
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call 0x477de0
add esp, 0xc
call fcn.00477c30
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00434e1a
lea eax, [ebp - 0x1e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
jmp 0x477cb4
push esi
call ebx
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043463b
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x477d85
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.00434e7c
lea eax, [ebp - 0x60]
push 0x4d2b70
push eax
call fcn.0049e682
cmp dword [ebp - 0x10], 0xffffffff
je 0x477d90
push dword [ebp - 0x10]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00434e1a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.0043463b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x477d90
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.00434e7c
lea eax, [ebp - 0xa8]
push 0x4d2b70
push eax
call fcn.0049e682
mov eax, 0x4bba23
call fcn.0049dfc4
sub esp, 0x2c
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push 0
mov ebx, 0x4c0924
push dword [ebp + 0xc]
mov edi, 0x4c091c
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], edi
call fcn.00434ee8
push dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 1
call fcn.00477e59
mov esi, dword [ebp + 8]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.00434ee8
mov dword [ebp - 0x10], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00434e1a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x47801c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.0043463b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x478051
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.00434e7c
lea eax, [ebp - 0x48]
push 0x4d2b70
push eax
call fcn.0049e682
leave
ret

Function at 0x478750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jne 0x47876f
xor eax, eax
jmp 0x4787a0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0049dff0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, edi
xor edi, edi
lea ecx, [ebp - 4]
push edi
lea edx, [ebp - 8]
push ecx
push edx
lea ecx, [ebp - 0xc]
push edi
push ecx
push edi
push edi
push 2
push 0x400
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x4787f1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
mov eax, dword [ebp - 8]
push 1
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
cmp dword [ebp - 0xc], 0xa
jne 0x4787f1
mov eax, 3
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x478824
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.aLuZgUrU
call ebx
neg eax
push 2
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x478850
cmp esi, edi
je 0x4788e5
jmp 0x4788de
lea ecx, [ebp + 8]
push edi
push ecx
push str.aLuZgUrU
call ebx
lea edx, [ebp - 0x18]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push str.aLuZgUrU
call ebx
cmp dword [ebp + 8], eax
je 0x47887a
cmp esi, edi
je 0x4788e5
jmp 0x4788de
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x18]
push str.aLuZgUrU
push eax
mov byte [ebp - 0x10], 0
call ebx
test eax, eax
jne 0x4788af
cmp esi, edi
je 0x47889e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x18]
push str.gUrUaLuZ
push ecx
call ebx
test eax, eax
jne 0x4788da
cmp esi, edi
je 0x4788c9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, edi
je 0x4788e5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esp, [ebp - 0x24]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x479180
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bbab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
call fcn.00478e50
test eax, eax
je 0x4791c1
pop edi
pop esi
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4791e2
pop edi
pop esi
mov eax, 0x80000150
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [esp + 0x24], esi
cmp esi, 0xffffffff
mov dword [esp + 0x1c], 0
jne 0x47922e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x80000150
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.0049e01f
mov edi, eax
add esp, 4
test edi, edi
jne 0x47926c
test esi, esi
je 0x479253
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x80000152
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
lea eax, [esp + 0xc]
push 0
push eax
push ebx
push edi
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [esp + 0xc]
je 0x4792b7
push edi
call fcn.00491430
add esp, 4
test esi, esi
je 0x47929e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x80000155
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
mov ecx, dword [esp + 0x10]
mov edx, dword [0x4f4398]
add ecx, 0x30
push ecx
push 0
push 0
push ebx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
push edi
jne 0x479303
call fcn.00491430
add esp, 4
test esi, esi
je 0x4792ea
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x80000154
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
call fcn.00491430
add esp, 4
test esi, esi
je 0x479316
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x479330
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bbae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
mov dword [esp + 0x1c], edi
call fcn.00479180
xor ebp, ebp
cmp eax, ebp
jne 0x47951a
mov dword [esp + 0x38], ebp
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x38]
push ecx
push edx
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], ebp
call fcn.00478900
cmp eax, ebp
jne 0x47951a
mov ecx, dword [0x4f4398]
lea eax, [edi + 0x34]
mov dword [esp + 0x34], eax
push eax
mov eax, dword [edi + 0x24]
push ebp
push ebp
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4793c8
mov edx, dword [esp + 0x38]
push edx
call fcn.00491430
add esp, 4
mov eax, 0x80000080
jmp 0x47951a
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, 0xffffffff
mov byte [esp + 0x2c], 1
jne 0x47940d
mov eax, dword [esp + 0x38]
push eax
call fcn.00491430
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000020
jmp 0x47951a
push 0x400
call fcn.0049e01f
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x479442
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00491430
add esp, 4
cmp edi, ebp
je 0x479438
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000081
jmp 0x47951a
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push ebp
push edx
push 0x400
push esi
push edi
mov dword [esp + 0x24], ebp
call ebx
test eax, eax
je 0x47948e
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x47948e
push ebp
push eax
mov eax, dword [esp + 0x3c]
push esi
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4794db
lea edx, [esp + 0x10]
push ebp
push edx
push 0x400
push esi
push edi
call ebx
test eax, eax
jne 0x47945f
push esi
call fcn.00491430
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esp, 4
mov edx, dword [ecx + 0x30]
mov ecx, dword [esp + 0x38]
push ebp
push ebp
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
jne 0x479500
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00491430
add esp, 4
cmp edi, ebp
je 0x4794d4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000111
jmp 0x47951a
mov eax, dword [esp + 0x38]
push eax
call fcn.00491430
push esi
call fcn.00491430
add esp, 8
cmp edi, ebp
je 0x4794f9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000082
jmp 0x47951a
mov edx, dword [esp + 0x38]
push edx
call fcn.00491430
add esp, 4
cmp edi, ebp
je 0x479518
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x47d9f0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret
Function at 0x482bf0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x19c]
push ecx
mov ecx, esi
call fcn.00482d60
mov edx, dword [esi + 0x1a0]
mov dword [esi + 0x19c], eax
and eax, 0xff
mov ecx, esi
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x1a0], eax
shr eax, 0x18
mov byte [esp + 8], al
mov eax, dword [esi + 0x1a4]
mov edx, dword [esp + 8]
push edx
push eax
call fcn.00482d60
mov dword [esi + 0x1a4], eax
pop esi
ret 4
Function at 0x483a50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bbfc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
xor ebx, ebx
push eax
lea edx, [esp + 0x10]
push ebx
push edx
mov dword [esp + 0x14], ebx
call fcn.00484130
mov esi, dword [esp + 0x2c]
mov cl, byte [esp + 0x30]
mov dword [esp + 0x24], ebx
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x4be69c]
mov ecx, esi
push edx
push ebx
push eax
mov byte [esp + 0x30], 1
call fcn.0041ce6d
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x483ad1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x483ac8
cmp al, 0xff
je 0x483ac8
dec al
mov byte [ecx], al
jmp 0x483ad1
push ecx
call fcn.00491430
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x483af0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bbfe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x4be69c]
mov edx, dword [esp + 0x28]
push ebx
push esi
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push edx
push eax
mov dword [esp + 0x14], ebx
call fcn.00484130
mov esi, dword [esp + 0x2c]
mov cl, byte [esp + 0x30]
mov dword [esp + 0x24], ebx
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x4be69c]
mov ecx, esi
push edx
push ebx
push eax
mov byte [esp + 0x30], 1
call fcn.0041ce6d
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x483b76
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x483b6d
cmp al, 0xff
je 0x483b6d
dec al
mov byte [ecx], al
jmp 0x483b76
push ecx
call fcn.00491430
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x485ae0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bc150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
mov byte [esp + 0xc], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea edx, [esp + 0xc]
add ecx, 0x38
push edx
push ecx
mov dword [esp + 0x2c], ebx
call fcn.00482ef0
mov esi, dword [esp + 0x34]
mov al, byte [esp + 0x34]
add esp, 8
mov ecx, esi
mov byte [esi], al
push ebx
call fcn.00402d61
mov ecx, dword [0x4be69c]
lea edx, [esp + 0xc]
push ecx
push ebx
push edx
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.0041ce6d
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x485b78
mov al, byte [ecx - 1]
cmp al, bl
je 0x485b6e
cmp al, 0xff
je 0x485b6e
dec al
mov byte [ecx - 1], al
jmp 0x485b78
dec ecx
push ecx
call fcn.00491430
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x486720
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bc1fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 8]
call fcn.00486540
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [esp + 0x18], ebx
call fcn.00486540
mov al, byte [esp + 0xb]
mov dword [esi + 0x30], ebx
mov byte [esi + 0x2c], al
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov cl, byte [esp + 0xb]
mov dword [esi + 0x44], ebx
mov byte [esi + 0x40], cl
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov eax, 1
mov byte [esp + 0x18], 3
push eax
mov dword [esi], vtable.CUSCentralDir.0
mov byte [esi + 0x3c], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x50], bl
mov byte [esi + 0x58], bl
call fcn.0048a590
push eax
call fcn.00489410
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esi + 0x54], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], 0x8000
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x488070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bc448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
lea edx, [esp + 0xc]
push edi
xor ebx, ebx
mov ecx, dword [esi + 0x20]
push edx
mov dword [esp + 0x10], ebx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x28], ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov cl, byte [esp + 0x30]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x1c], esp
push ebx
mov dword [esp + 0x20], edi
mov byte [edi], cl
mov ecx, edi
call fcn.00402d61
mov edx, dword [0x4be69c]
lea eax, [esp + 0x20]
push edx
push ebx
push eax
mov ecx, edi
mov byte [esp + 0x44], 1
call fcn.0041ce6d
push 0xffffffffffffffff
mov ecx, esi
mov byte [esp + 0x3c], bl
call fcn.00488c40
mov esi, dword [esp + 0x30]
mov cl, byte [esp + 0x30]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x4be69c]
lea eax, [esp + 0x10]
push edx
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x34], 2
call fcn.0041ce6d
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x48813d
mov al, byte [ecx - 1]
cmp al, bl
je 0x488133
cmp al, 0xff
je 0x488133
dec al
mov byte [ecx - 1], al
jmp 0x48813d
dec ecx
push ecx
call fcn.00491430
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x488160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bc470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push ebx
lea edx, [esp + 0x10]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x2c]
cmp eax, ecx
mov dword [esp + 0xc], ebx
sete cl
push ecx
push edx
mov ecx, esi
call fcn.00488500
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x24], ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x2c]
mov cl, byte [esp + 0x2c]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x4be69c]
lea eax, [esp + 0xc]
push edx
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.0041ce6d
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x4881f7
mov al, byte [ecx - 1]
cmp al, bl
je 0x4881ed
cmp al, 0xff
je 0x4881ed
dec al
mov byte [ecx - 1], al
jmp 0x4881f7
dec ecx
push ecx
call fcn.00491430
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x489ba0
Capabilities:
Check for peb beingdebugged flag
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4bc798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
lea eax, [esp + 2]
lea ecx, [esp + 0x30]
push eax
call fcn.00484080
lea ecx, [esp + 3]
mov dword [esp + 0x88], 0
push ecx
lea ecx, [esp + 0x44]
call fcn.00484080
lea ecx, [esp + 0x50]
mov byte [esp + 0x88], 1
call fcn.00482900
lea ecx, [esp + 0x60]
mov byte [esp + 0x88], 2
call fcn.00482900
lea ecx, [esp + 0x70]
mov byte [esp + 0x88], 3
call fcn.00482900
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x8c], 4
mov dword [esp + 0x30], vtable.CUSPath.0
call fcn.0048d750
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
mov dword [esp + 0x8c], 5
call fcn.00489e00
mov eax, dword [esp + 0x20]
mov byte [esp + 0x88], 6
test eax, eax
jne 0x489c64
mov eax, 0x4bef90
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
lea ecx, [esp + 0x18]
push edi
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call ebp
test eax, eax
jne 0x489d8f
mov edi, 0x4ed980
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [0x4be69c]
push ebx
not ecx
dec ecx
push ecx
push edx
push 0x4ed980
lea ecx, [esp + 0x38]
call fcn.00484320
push eax
lea ecx, [esp + 0x30]
call fcn.004838d0
mov eax, dword [0x4be69c]
mov edx, dword [esp + 0x34]
mov bl, byte [0x4c5740]
sub eax, edx
cmp eax, 1
ja 0x489cd5
call fcn.004917ff
mov ecx, dword [esp + 0x34]
push 0
lea esi, [ecx + 1]
lea ecx, [esp + 0x30]
push esi
call fcn.0040308c
test al, al
je 0x489d07
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
movsx ecx, bl
add eax, edx
mov ch, cl
push esi
mov byte [eax], cl
lea ecx, [esp + 0x30]
call fcn.00484390
mov eax, dword [esp + 0x30]
pop ebx
test eax, eax
jne 0x489d15
mov eax, 0x4bef90
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call ebp
test eax, eax
jne 0x489d8f
mov ecx, dword [esp + 0x2c]
xor esi, esi
cmp ecx, esi
je 0x489d55
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x489d4c
cmp al, 0xff
je 0x489d4c
dec al
mov byte [ecx], al
jmp 0x489d55
push ecx
call fcn.00491430
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x94], 0xffffffff
call fcn.0048d650
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
add esp, 0x8c
ret
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
imul esi, dword [esp + 0x14]
imul esi, dword [esp + 0x18]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x24], edi
je 0x489dc6
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x489dbd
cmp al, 0xff
je 0x489dbd
dec al
mov byte [ecx], al
jmp 0x489dc6
push ecx
call fcn.00491430
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x94], 0xffffffff
call fcn.0048d650
mov ecx, dword [esp + 0x8c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x8c
ret