joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404221
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40422c
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4042e8
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x423070]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x423070]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x423070]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x423070]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x423070]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x423070]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x423070]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x423070]
sub edi, 1
jne 0x404241
pop edi
test esi, esi
je 0x404304
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x423070]
inc edx
sub esi, 1
jne 0x4042ec
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x40430b
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x423070]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x423070]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x404990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x42800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x4049d5
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4049d0
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x4049fc
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x4049e5
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.0041bef0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004097ab
mov esp, ebp
pop ebp
ret
Function at 0x40558b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x40562e
cmp dword [esi + 4], 0xffffffff
jne 0x40562e
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4055be
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4055f2
cmp eax, 0x2f
je 0x4055f2
push 0x4247f4
push 0x104
push edi
call fcn.0040d242
add esp, 0xc
push 0x20
call fcn.00409a4c
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], bl
mov dword [eax + 0x1c], ebx
mov dword [eax + 0xc], ebx
call fcn.00404c5a
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
pop edi
cmove ecx, edx
mov eax, ecx
jmp 0x405633
mov eax, 0x1000000
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x405c24
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x42800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x405c56
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405c56
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x405d0f
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x405c73
cmp ax, 0x5c
jne 0x405c75
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x405c67
cmp esi, ebx
je 0x405cb9
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.0041bef0
add esp, 0xc
cmp esi, 0x208
jae 0x405d1f
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, edi
mov word [ebp + esi - 0x414], ax
call fcn.00405c24
xor eax, eax
mov esi, 0x104
mov word [ebp - 0x20c], ax
test edi, edi
je 0x405cdc
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040d1de
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040d242
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
jne 0x405d0f
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004097ab
mov esp, ebp
pop ebp
ret
call fcn.00409910
int3
Function at 0x40614c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x42800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x64
xor ebx, ebx
lea eax, [ebp - 0x7c]
push ebx
push eax
mov esi, edx
mov edi, ecx
call fcn.0040c2a0
pop ecx
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.00401c2a
xor ecx, ecx
mov dword [ebp - 0x10], str.Open_Setup_Log
inc ecx
mov dword [ebp - 8], str.Close
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x50], ecx
push 2
pop edx
mov dword [ebp - 0xc], edx
test esi, esi
jne 0x4061a4
lea eax, [ebp - 0xc]
mov dword [ebp - 0x58], ecx
jmp 0x4061aa
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], edx
and dword [ebp - 0x70], 0xfffffffd
mov dword [ebp - 0x54], eax
mov eax, dword [edi]
push ecx
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x60], str.Installation_has_failed
mov dword [ebp - 0x64], 0xfffe
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004019da
test eax, eax
js 0x4061f4
cmp dword [ebp - 0x18], 1
jne 0x4061f4
test esi, esi
je 0x4061f4
push 5
push ebx
push ebx
push esi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004097ab
mov esp, ebp
pop ebp
ret
Function at 0x409044
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x41cbe2
call fcn.0041b9e1
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], esi
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], esi
push esi
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
call fcn.0040c2a0
add esp, 0xc
mov dword [ebp - 0x424], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x4090cd
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x4090cd
call fcn.00401c13
mov esi, eax
jmp 0x4091d0
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x4090f0
call fcn.00401c13
jmp 0x4091c3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x4090e6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x409123
mov esi, 0x8007000e
jmp 0x4091c5
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x409157
cmp eax, 0xffffffff
ja 0x409157
cmp eax, 0x400
jbe 0x409149
push eax
lea ecx, [ebp - 0x424]
call fcn.004079a7
jmp 0x409175
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x409175
push 0x80070216
call fcn.00402163
mov eax, 0x409167
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
je 0x409119
push ebx
push dword [ebp - 0x424]
push ebx
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4090e6
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00408eed
mov esi, eax
test edi, edi
je 0x4091d0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4091e9
lea ecx, [ebp - 0x424]
call fcn.00407992
mov eax, esi
call fcn.0041b92e
ret 0x10

Function at 0x40c73c
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x41d570
push str.FlsAlloc
push 0
call fcn.0040c6bc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c76e
push dword [ebp + 8]
mov ecx, esi
call fcn.0040a196
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x40c7b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x41d594
push str.FlsGetValue
push 2
call fcn.0040c6bc
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x40c7e1
mov ecx, esi
call fcn.0040a196
call esi
jmp 0x40c7e7
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret
Function at 0x40c7ea
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x41d5a8
push str.FlsSetValue
push 3
call fcn.0040c6bc
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x40c81e
mov ecx, esi
call fcn.0040a196
call esi
jmp 0x40c824
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x415064
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414d12

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402169
Capabilities:
Get file size

Disassembly:
push ecx
and dword [esp], 0
push ebp
push esi
push dword [esp + 0x10]
mov esi, ecx
call fcn.00407707
mov ebp, eax
cmp ebp, 0xffffffff
pop ecx
je 0x4021ca
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esi + 0x10], eax
jbe 0x4021c3
push ebx
push edi
lea ebx, [esi + 4]
mov edi, eax
mov eax, ebx
call fcn.00408d51
push dword [esi + 0x10]
mov ebx, dword [ebx]
push ebx
push ebp
call fcn.00408225
add esp, 0xc
test eax, eax
pop edi
pop ebx
je 0x4021c3
call fcn.00401f13
mov dword [esp + 8], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
pop ebp
pop ecx
ret 4
Function at 0x4037cb
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, eax
call fcn.00403846
push 0x445b04
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi], eax
je 0x403841
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CredReadA
push eax
call edi
push str.CredFree
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.CredDeleteA
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.CredEnumerateA
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.CredEnumerateW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x18], eax
pop edi
je 0x40383c
cmp dword [esi + 0xc], 0
je 0x40383c
mov dword [esi + 4], 1
jmp 0x403841
call fcn.00403846
mov eax, dword [esi + 4]
pop esi
ret

Function at 0x4038cc
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40392d
push edi
push 0x445b04
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push eax
mov dword [esi], eax
call edi
push str.CryptReleaseContext
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.CryptCreateHash
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.CryptGetHashParam
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.CryptHashData
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.CryptDestroyHash
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
ret
Function at 0x407739
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret

Function at 0x4078be
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x40791b
push ebx
push edi
push ebp
call sub.msvcrt.dll_wcslen
pop ecx
lea ebx, [eax + eax + 2]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x407919
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x407926
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.00407707
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x4079b8
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4079a1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4079a1
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x4079aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x4079c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x407b0b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x407d0b
Capabilities:
Get common file path

Disassembly:
cmp word [0x453718], 0
push esi
mov esi, 0x453718
jne 0x407d2c
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x453924], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x453924]
pop ecx
pop ecx
pop esi
ret
Function at 0x40804c
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x44551c
push eax
push eax
push dword [esp + 0x14]
push 0x44a434
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x4084a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4084fd
cmp word [ebp - 0x224], 0x2e
jne 0x4084e3
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4084c5
jmp 0x4084f6
mov edi, dword [ebp + 0xc]
mov ecx, 0x94
lea esi, [ebp - 0x250]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x408ba7
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x408bd3
lea eax, [esi + 0x28c]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x408bee
lea ecx, [esi + 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov dword [esp + 4], eax
jne 0x408bf5
call fcn.00408c40
cmp dword [esp + 4], 0
je 0x408c39
push ebx
push ebp
push edi
lea edi, [esi + 0x4dc]
lea ebx, [esi + 0x2b8]
add esi, 0x764
push esi
call sub.msvcrt.dll_wcslen
push ebx
mov ebp, eax
call sub.msvcrt.dll_wcslen
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x408c32
push ebx
push esi
mov eax, edi
call fcn.00407c91
pop ecx
pop ecx
jmp 0x408c36
and word [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x409235
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
push dword [ebp + 0xc]
xor esi, esi
mov eax, edi
mov word [ebx], si
call fcn.004050cc
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x409382
cmp dword [edi + 0x414], 0x20
jne 0x409382
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push ebx
mov dword [ebp - 8], esi
call fcn.00408f9c
test eax, eax
je 0x409382
mov edi, 0x8000
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x1388
call fcn.00408d51
push dword [ebp - 4]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x409369
push esi
push esi
push 0x80000000
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp dword [ebp + 0xc], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x409361
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [ebp + 8]
push 0x44a50c
mov dword [ebp - 8], eax
call fcn.00407a89
pop ecx
push edi
call fcn.00407720
pop ecx
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x409357
push dword [ebp - 8]
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x409352
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x18]
call ebx
push dword [ebp - 4]
call ebx
push dword [ebp + 0xc]
call ebx
push dword [ebp - 0xc]
call ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], si
je 0x40937a
mov eax, dword [ebp + 0x10]
push ebx
call fcn.004050cc
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x24]
call fcn.00408d6a
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409a42
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6390
call fcn.00444090
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409b8b
push 0x20
lea eax, [ebp - 0x90]
push eax
push ebx
push edi
call fcn.00408263
add esp, 0x10
cmp byte [ebp - 0x78], 0x34
je 0x409b84
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov eax, 0x5000
cmp dword [ebp - 8], eax
mov dword [ebp + 0xc], eax
jbe 0x409b84
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 0x2190]
push edi
call fcn.004099b1
test eax, eax
je 0x409b70
push 4
lea eax, [ebp - 0x215c]
push eax
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0x100
jbe 0x409af1
mov dword [ebp - 4], 0x68
mov eax, dword [ebp - 4]
lea eax, [ebp + eax - 0x2190]
push 0x40
push eax
call sub.msvcrt.dll_strchr
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x409b65
inc esi
push 0x3f
push esi
call sub.msvcrt.dll_strchr
cmp eax, ebx
pop ecx
pop ecx
je 0x409b1c
mov byte [eax], bl
push esi
call sub.msvcrt.dll__strlwr
mov dword [esp], 0x41fe
lea eax, [ebp - 0x638e]
push ebx
push eax
mov word [ebp - 0x6390], bx
call sub.msvcrt.dll_memset
push 0x2000
lea eax, [ebp - 0x6390]
push eax
push esi
call fcn.00408487
add esp, 0x18
push ebx
lea eax, [ebp - 0x6390]
push eax
mov eax, dword [ebp + 8]
add eax, 8
call fcn.00408687
mov eax, dword [ebp - 0xc]
shl eax, 7
add dword [ebp + 0xc], eax
jmp 0x409b77
add dword [ebp + 0xc], 0x80
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jb 0x409aad
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
leave
ret 8
Function at 0x409c32
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
push edi
xor esi, esi
push 0x208
mov edi, eax
lea eax, [ebp - 0x22e]
push esi
push eax
mov word [ebp - 0x230], si
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x22
pop eax
lea ebx, [ebp - 0x230]
call fcn.00413a56
mov ebx, dword [edi + 0x24]
lea eax, [ebp - 0x230]
push eax
mov ecx, edi
call fcn.00409b91
lea eax, [edi + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x44a864
call fcn.00409804
cmp ebx, dword [edi + 0x24]
jne 0x409d7c
mov edi, 0xfa00
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x1388
mov ebx, edi
call fcn.00408d51
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x18]
push eax
push edi
push str.visited:
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x409d74
mov eax, dword [edi + 4]
push 0x40
push eax
call sub.msvcrt.dll_wcschr
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x409d1c
mov eax, dword [ebp - 0xc]
inc esi
push 0
inc esi
push esi
call fcn.00408687
mov eax, dword [edi + 4]
push 0x3f
push eax
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x409d1c
and word [eax], 0
mov eax, dword [ebp - 0xc]
push 0
push esi
call fcn.00408687
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x409cdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409d6b
mov ebx, dword [ebp - 4]
add ebx, 0x2710
mov edi, ebx
lea eax, [ebp - 0x18]
call fcn.00408d51
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x409cdc
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
lea esi, [ebp - 0x18]
call fcn.00408d6a
pop edi
pop esi
pop ebx
leave
ret