joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475710
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x475739
xor al, al
leave
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
push edi
jle 0x47574f
lea esi, [esi + eax*2 - 0x9e]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x47577a
cmp edi, 0xea
jne 0x475786
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret

Function at 0x475d42
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [eax]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x475d5a
xor eax, eax
jmp 0x475e01
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x475d7b
push eax
jmp 0x475df8
mov eax, dword [ebp + 0xc]
sub dword [ebp + 0x10], 2
push edi
push edi
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x475df3
mov eax, dword [ebp + 0x10]
shr eax, 1
push eax
push 0x78
pop ecx
lea edx, [ebp - 4]
call fcn.0044863c
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea esi, [ebp - 4]
call fcn.00411f01
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x475deb
cmp dword [ebp - 8], edi
je 0x475deb
mov eax, esi
push eax
push dword [ebp + 8]
call fcn.0047588a
lea ecx, [ebp - 4]
movzx esi, al
call fcn.00402907
cmp ebx, edi
je 0x475de7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x475e01
lea ecx, [ebp - 4]
call fcn.00402907
cmp ebx, edi
je 0x475dfe
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x478134
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x51f714]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x41c]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebx, ebx
mov dword [ebp - 0x430], eax
cmp eax, ebx
je 0x4782d0
lea eax, [ebp - 0x214]
push eax
push ebx
push 0x4f5304
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4782d0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004046e4
push str..url
lea eax, [ebp - 0x420]
push eax
call fcn.00443470
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4781f2
push eax
jmp 0x4782bf
lea eax, [ebp - 0x424]
push eax
call fcn.004441b6
push dword [esi]
lea eax, [ebp - 0x42c]
push eax
call fcn.004441dd
push dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push str._InternetShortcut__r_nURL_s_r_n
call fcn.0044457a
mov eax, dword [ebp - 0x424]
pop ecx
pop ecx
mov ecx, dword [eax - 0xc]
push ebx
lea edx, [ebp - 0x430]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
cmp edi, ebx
je 0x47824d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp esi, ebx
je 0x478267
push 5
push ebx
push ebx
push dword [ebp - 0x420]
push 0x4ed238
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x428]
add eax, 0x18
push eax
push 0x5c
lea esi, [ebp - 0x420]
call fcn.00443314
lea ecx, [ebp - 0x428]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.00438242
push eax
call fcn.0045cf40
pop ecx
pop ecx
lea ecx, [ebp - 0x428]
call fcn.00402907
lea eax, [ebp - 0x42c]
push eax
call fcn.0044421f
lea eax, [ebp - 0x424]
push eax
call fcn.0044421f
cmp edi, ebx
je 0x4782c5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x420]
call fcn.00402907
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ad67b
leave
ret 4
Function at 0x47904a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea esi, [edi + 4]
push dword [esi]
call fcn.0047f7ca
pop ecx
push esi
call fcn.00416ec5
mov eax, dword [edi + 0x28]
push dword [eax]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi]
call ebx
lea eax, [ebp - 4]
push eax
call fcn.004441b6
push 0xdc
lea eax, [ebp - 4]
push eax
call fcn.004045bd
push 0x40a
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp - 4]
push eax
call ebx
lea eax, [edi + 0x40]
push eax
mov eax, dword [esi]
call fcn.00481d86
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
lea ecx, [edi + 0x30]
push ecx
push 0x4790cf
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 4]
mov dword [edi + 0x38], eax
call fcn.00402907
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x47a443
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0x4fb3c8
test eax, eax
je 0x47a495
push 0xea60
push eax
mov byte [esi + 0xd], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x47a490
cmp dword [ebp - 4], 0x103
jne 0x47a490
push 0
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x1c]
call edi
lea ecx, [esi + 0x78]
call fcn.00402907
mov eax, dword [esi + 0x70]
test eax, eax
je 0x47a4ab
push eax
call edi
and dword [esi + 0x70], 0
mov eax, dword [esi + 0x68]
test eax, eax
je 0x47a4b9
push eax
call edi
and dword [esi + 0x68], 0
lea ecx, [esi + 0x48]
call fcn.00402907
lea ecx, [esi + 0x30]
call fcn.00402907
lea ecx, [esi + 0x2c]
call fcn.00402907
lea ecx, [esi + 0x28]
call fcn.00402907
pop edi
leave
ret

Function at 0x47a4dc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
call fcn.004432a9
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x2c]
call fcn.004432a9
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x50], eax
mov al, byte [ebp + 0x1c]
mov byte [esi + 0x64], al
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
cmp eax, edi
je 0x47a521
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0x14]
push edi
mov dword [esi + 0x1c], edi
mov byte [esi + 0x4c], al
mov dword [esi + 0x84], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x47a87b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
cmp eax, edi
jne 0x47a559
push esi
call fcn.0047bf37
jmp 0x47a55b
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x18
Function at 0x47ae54
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
call fcn.0047bf4a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
and dword [ebp - 4], 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [esi + 0x4c], 0
mov dword [ebp + 0xc], eax
je 0x47ae89
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov edi, esi
mov byte [esi + 0xc], 1
call fcn.0047adcd
mov ecx, dword [ebp + 0xc]
mov byte [esi + 0xc], 0
test ecx, ecx
jbe 0x47aeb3
cmp dword [ebp - 4], ecx
je 0x47aeb3
mov eax, 0x2ee2
test eax, eax
jne 0x47aeca
mov esi, dword [esi + 0x14]
mov edi, dword [ebp + 0x10]
cmp esi, dword [edi]
je 0x47aec8
call fcn.0047bf4a
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x47aed0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x68]
lea ebx, [edi + 0x44]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0x14]
mov byte [edi + 0x4d], 0
push dword [ebp + 0x10]
mov dword [edi + 0x40], 3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x47af66
push edi
call fcn.0047bf37
cmp eax, 0x3e5
jne 0x47af68
jmp 0x47af43
push edi
call fcn.0047bf37
cmp eax, 0x3e5
jne 0x47af48
lea esi, [edi + 4]
push ebx
call fcn.00488813
mov eax, esi
call fcn.004887fc
test al, al
jne 0x47af53
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x47af17
cmp dword [edi + 0x3c], 0
jne 0x47af5a
mov eax, dword [edi + 0x38]
jmp 0x47af68
mov eax, 0xe0000008
jmp 0x47af68
mov edi, dword [edi + 0x38]
test edi, edi
jle 0x47af66
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x47af6f
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x68]
lea ebx, [edi + 0x44]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push dword [esp + 0x1c]
mov byte [edi + 0x4d], 0
push dword [esp + 0x1c]
mov dword [edi + 0x40], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x47b003
push edi
call fcn.0047bf37
cmp eax, 0x3e5
jne 0x47b005
jmp 0x47afdf
push edi
call fcn.0047bf37
cmp eax, 0x3e5
jne 0x47afe4
lea esi, [edi + 4]
push ebx
call fcn.00488813
mov eax, esi
call fcn.004887fc
test al, al
jne 0x47afef
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x47afb3
cmp dword [edi + 0x3c], 0
jne 0x47aff6
mov eax, dword [edi + 0x38]
jmp 0x47b005
mov eax, 0xe0000008
jmp 0x47b005
mov edi, dword [edi + 0x38]
test edi, edi
jle 0x47b003
mov eax, dword [esp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x47bb42
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004af810
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x47bb81
push dword [ebp + 8]
call fcn.0047bf37
jmp 0x47bba4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, 3
je 0x47bba2
cmp eax, 4
je 0x47bba2
cmp eax, 1
je 0x47bba2
cmp eax, 2
je 0x47bba2
push 2
pop eax
jmp 0x47bba4
xor eax, eax
leave
ret 0xc

Function at 0x47cf6b
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi], ebx
jne 0x47cf83
xor al, al
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0xc]
push eax
call fcn.004441b6
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0xc]
push str.SELECT__Value__FROM__Property__WHERE__Property____s
push eax
call fcn.004492b5
mov esi, dword [esi]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
push esi
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x47cfcf
cmp dword [ebp - 4], ebx
je 0x47cfc5
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0xc]
call fcn.00402907
jmp 0x47cf7b
push ebx
push dword [ebp - 4]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x47cfb8
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
je 0x47d018
cmp dword [ebp - 8], ebx
je 0x47cffc
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x47d009
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0xc]
call fcn.00402907
mov al, bl
jmp 0x47cf7d
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0047d11d
mov byte [ebp + 0xb], al
cmp dword [ebp - 8], ebx
je 0x47d033
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x47d040
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov bl, byte [ebp + 0xb]
jmp 0x47d009

Function at 0x47d329
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 0x7d1
push dword [ebp + 4]
lea esi, [ebp + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x47d369
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
push edi
call fcn.00402872
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.004028ba
pop edi
jmp 0x47d36e
call fcn.00404602
push 1
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_EndDialog]
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x47d3cb
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x51f714]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x47d3ec
xor al, al
jmp 0x47d50c
push 2
lea esi, [ebp - 0x408]
pop edi
jmp 0x47d3fe
mov word [esi], ax
add ecx, edi
add esi, edi
movzx eax, word [ecx]
test ax, ax
jne 0x47d3f7
xor eax, eax
mov word [esi], ax
push 0x5c
xor dl, dl
pop ebx
sub esi, edi
xor al, al
mov byte [ebp - 0x409], dl
cmp word [ebp - 0x408], bx
jne 0x47d43c
cmp word [ebp - 0x406], bx
jne 0x47d43c
mov byte [ebp - 0x409], 1
cmp word [esi], bx
je 0x47d443
inc al
jmp 0x47d443
cmp word [esi], bx
jne 0x47d443
mov dl, 1
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x410], ecx
cmp word [ebp - 0x404], bx
je 0x47d465
add ecx, edi
cmp word [ecx], bx
jne 0x47d458
mov dword [ebp - 0x410], ecx
test al, al
jne 0x47d46f
test dl, dl
je 0x47d47f
jmp 0x47d478
add esi, edi
mov eax, ebx
mov word [esi], ax
add esi, edi
xor eax, eax
mov word [esi], ax
sub esi, edi
and dword [ebp - 0x418], 0
and dword [ebp - 0x414], 0
lea eax, [ebp - 0x420]
push eax
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x47d4ed
cmp word [esi], bx
jne 0x47d4bb
jmp 0x47d4b9
cmp word [esi], bx
je 0x47d4c5
sub esi, edi
lea eax, [ebp - 0x408]
cmp esi, eax
ja 0x47d4b4
cmp esi, dword [ebp - 0x410]
jb 0x47d3e5
cmp byte [ebp - 0x409], 0
jne 0x47d4e2
cmp esi, dword [ebp - 0x410]
jne 0x47d4e4
add esi, edi
xor eax, eax
mov word [esi], ax
sub esi, edi
jmp 0x47d48d
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x414]
ja 0x47d50a
jb 0x47d505
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x418]
jae 0x47d50a
xor eax, eax
inc eax
jmp 0x47d50c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ad67b
leave
ret

Function at 0x47d544
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [esi], bl
je 0x47d555
mov al, 1
jmp 0x47d5db
mov al, byte [ebp + 8]
push edi
mov byte [esi + 1], al
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov byte [esi], 1
call fcn.004432a9
push 0x4fb4a8
lea eax, [ebp + 8]
push eax
call fcn.004046e4
mov edi, dword [edi]
push dword [edi - 0xc]
lea eax, [ebp + 8]
push edi
call fcn.004434e9
pop edi
cmp byte [esi + 1], bl
je 0x47d5b3
push ebx
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 8], eax
cmp byte [esi + 1], bl
jne 0x47d5ca
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
lea ecx, [ebp + 8]
setne bl
call fcn.00402907
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x47d7a2
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp byte [ebp + 0x10], bl
jne 0x47d7d4
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x47d7d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
jne 0x47d7d4
cmp byte [esi + 0x11], bl
je 0x47d826
mov eax, dword [esi + 0xc]
push edi
push ebx
lea ecx, [ebp + 0x10]
push ecx
push 0x7f90
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 0xc]
xor edi, edi
shr ecx, 1
mov word [edx + ecx*2], di
pop edi
cmp eax, ebx
je 0x47d826
cmp dword [ebp + 0x10], ebx
je 0x47d826
push dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004046e4
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00425ecf
lea ecx, [ebp - 4]
call fcn.00402907
jmp 0x47d82e
push dword [ebp + 8]
call fcn.004441b6
mov eax, dword [ebp + 8]
pop ebx
leave
ret 0xc

Function at 0x47d836
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xffffffff
jne 0x47d847
push edi
call fcn.004441b6
jmp 0x47d871
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp + 0xc]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47d83f
push 1
push dword [ebp + 8]
push edi
call fcn.0047d7a2
mov eax, edi
pop ebp
ret 8

Function at 0x47d877
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x47ddd2
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004af810
add esp, 0xc
push 0x64
pop eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x40], esi
mov edi, dword [eax - 0xc]
mov ebx, 0x521fcc
push eax
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.0043846a
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x47de46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 4]
call fcn.00402907
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.0043846a
mov edi, dword [ebp + 0x14]
mov eax, esi
call fcn.004432a9
mov ecx, esi
call fcn.00402907
push dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.0043846a
mov edi, dword [ebp + 0x18]
mov eax, esi
call fcn.004432a9
mov ecx, esi
call fcn.00402907
cmp dword [ebp - 0x24], 0
je 0x47deaf
push dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.0043846a
mov edi, dword [ebp + 0x1c]
mov eax, esi
call fcn.004432a9
mov ecx, esi
call fcn.00402907
cmp dword [ebp - 0x1c], 0
je 0x47ded6
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.0043846a
mov edi, dword [ebp + 0x20]
mov eax, esi
call fcn.004432a9
mov ecx, esi
call fcn.00402907
cmp dword [ebp - 0xc], 0
je 0x47defd
push dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.0043846a
mov edi, dword [ebp + 0x24]
mov eax, esi
call fcn.004432a9
mov ecx, esi
call fcn.00402907
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ax, word [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
xor esi, esi
jmp 0x47de37
Function at 0x47e017
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x51f714]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocStringLen
push ecx
mov dword [ebp - 0x90], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x98], esi
cmp esi, 0xffffffff
jne 0x47e061
push eax
jmp 0x47e09f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x47e09a
cmp eax, dword [ebp + 0xc]
jbe 0x47e09a
sub eax, dword [ebp + 0xc]
mov edi, 0x10000
mov dword [ebp - 0x8c], eax
push edi
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], ebx
call fcn.00441691
cmp dword [ebp - 0x80], ebx
jne 0x47e0b6
push ebx
call fcn.004af6b2
pop ecx
cmp esi, ebx
je 0x47e0a5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ad67b
leave
ret
lea eax, [ebp - 0x78]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x79], bl
call fcn.004aa400
jmp 0x47e0d5
mov esi, dword [ebp - 0x98]
push ebx
lea eax, [ebp - 0x88]
push eax
push edi
push dword [ebp - 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47e131
mov esi, dword [ebp - 0x88]
cmp esi, ebx
je 0x47e131
mov eax, dword [ebp - 0x84]
lea ecx, [esi + eax]
cmp ecx, dword [ebp - 0x8c]
jbe 0x47e119
mov esi, dword [ebp - 0x8c]
sub esi, eax
mov dword [ebp - 0x88], esi
mov byte [ebp - 0x79], 1
push dword [ebp - 0x80]
mov eax, esi
lea ecx, [ebp - 0x78]
call fcn.004aa220
add dword [ebp - 0x84], esi
cmp byte [ebp - 0x79], bl
je 0x47e0cf
lea esi, [ebp - 0x78]
call fcn.004aa2e0
mov ebx, dword [ebp - 0x90]
mov eax, esi
call fcn.004aa3b0
push dword [ebp - 0x80]
mov bl, al
call fcn.004af6b2
cmp dword [ebp - 0x98], 0
pop ecx
je 0x47e166
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x47e0a7
Function at 0x47e94e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [eax + 0x10], ebx
cmp dword [eax + 4], edi
je 0x47e9e0
cmp ebx, edi
je 0x47e98b
push edi
push edi
push edi
push edi
lea esi, [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
call fcn.004185f7
push dword [esi]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
mov eax, dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push 0x47e9e9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp ebx, edi
je 0x47e9ab
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x47e9d5
mov ebx, dword [ebp - 4]
cmp esi, edi
je 0x47e9d1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x47e9e2
cmp esi, edi
je 0x47e9e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4