joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e764
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
call fcn.0040e662
cmp dword [edi + 0x14], 8
jb 0x40e78a
mov eax, dword [edi]
jmp 0x40e78c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
jne 0x40e7ae
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], edx
jb 0x40e7a7
mov eax, dword [edi]
jmp 0x40e7a9
mov eax, edi
xor ecx, ecx
mov word [eax], cx
push 0x4447ef
xor eax, eax
mov dword [ebp - 0xc], 7
push str.Read_HKEY_CURRENT_USER_
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov word [ebp - 0x20], ax
mov byte [ebp - 8], dl
call fcn.00404175
mov esi, str.SoftwareYandexYandexBrowser
push esi
call fcn.004011cd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.00403916
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00401752
push ebx
mov esi, eax
call fcn.004011cd
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.00403916
push str._which_is__
mov ecx, esi
call fcn.00401699
push 0xffffffffffffffff
xor ebx, ebx
mov esi, eax
push ebx
push edi
mov ecx, esi
call fcn.00403870
push 0x22
mov ecx, esi
call fcn.00401752
lea eax, [ebp - 0x20]
push eax
push eax
push 0x1f9
push str.lite_installer::ReadFilePathFromRegistry
push ebx
call fcn.004100c4
add esp, 0x14
lea ecx, [ebp - 0x20]
push ebx
push 1
call fcn.00403af5
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e398
mov esp, ebp
pop ebp
ret

Function at 0x40ecd5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push ebx
mov ebx, edx
push esi
mov esi, ecx
cmp dword [ebx + 0x10], eax
jne 0x40ecf7
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov word [esi], ax
jmp 0x40ed5a
push ecx
lea ecx, [ebp - 0xc]
call fcn.0040a109
cmp dword [ebx + 0x14], 8
jb 0x40ed08
mov ebx, dword [ebx]
push edi
mov edi, dword [ebp - 0xc]
xor eax, eax
push edi
push eax
push 0x444b54
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40ed2f
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov word [esi], ax
jmp 0x40ed4e
mov eax, edi
cmp edi, dword [ebp - 8]
je 0x40ed45
xor ecx, ecx
cmp word [eax], cx
je 0x40ed45
add eax, 2
cmp eax, dword [ebp - 8]
jne 0x40ed38
push eax
push edi
mov ecx, esi
call fcn.0040a33f
test edi, edi
je 0x40ed59
push edi
call fcn.0041e393
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f10c
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x28], ebx
je 0x40f12e
xor eax, eax
jmp 0x40f257
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
push 0x8000
push dword [esi + 0x58]
push dword [esi + 0x54]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40f1b9
mov edx, str.internet_read_
lea ecx, [ebp - 0x1c]
call fcn.0040d71c
push eax
lea ecx, [esi + 0x18]
call fcn.00403350
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403af5
push 0x444995
xor eax, eax
mov dword [ebp - 0xc], 7
push str.Download_chunk_error.
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call fcn.00404175
lea eax, [ebp - 0x20]
push eax
push eax
push 0x30b
push str.lite_installer::Downloader::ReadChunk
push 1
call fcn.004100c4
add esp, 0x14
lea ecx, [ebp - 0x20]
push ebx
push 1
call fcn.00403af5
jmp 0x40f127
cmp dword [ebp - 0x24], ebx
jbe 0x40f224
mov ecx, dword [esi + 0x4c]
push dword [ebp - 0x24]
push dword [esi + 0x58]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x40f224
mov edx, str.write_file_
lea ecx, [ebp - 0x1c]
call fcn.0040d71c
push eax
lea ecx, [esi + 0x18]
call fcn.00403350
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403af5
push 0x444a01
xor eax, eax
mov dword [ebp - 0xc], 7
push str.Write_file_error.
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call fcn.00404175
lea eax, [ebp - 0x20]
push eax
push eax
push 0x312
jmp 0x40f19a
cmp dword [esi + 0x48], ebx
jne 0x40f254
push ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 4
push eax
push 0x20000005
push dword [esi + 0x54]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40f254
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e398
mov esp, ebp
pop ebp
ret
Function at 0x40f267
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
cmp dword [edi + 0x28], eax
jne 0x40f390
push eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 4
push eax
push 0x20000013
push dword [edi + 0x54]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40f2bc
cmp dword [ebp - 0x48], 0xc8
jne 0x40f2bc
mov al, 1
jmp 0x40f392
push 0xa
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x48]
call fcn.0041f80b
add esp, 0xc
lea ecx, [ebp - 0x28]
push str.final_query_info_
call fcn.004031b5
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401238
pop ecx
push eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004035bf
mov ebx, 0x444a18
mov esi, eax
push ebx
call fcn.00401238
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.004035bf
cmp dword [eax + 0x14], 0x10
jb 0x40f311
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.0040d71c
push eax
lea ecx, [edi + 0x18]
call fcn.00403350
xor ebx, ebx
lea ecx, [ebp - 0x44]
xor esi, esi
push ebx
inc esi
push esi
call fcn.00403af5
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.004037de
push 0x444a33
xor eax, eax
mov dword [ebp - 0x18], 7
push str.Unsuccessful_download:
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov byte [ebp - 0x14], bl
call fcn.00404175
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403870
lea eax, [ebp - 0x2c]
push eax
push eax
push 0x330
push str.lite_installer::Downloader::FinalizeDownload
push esi
call fcn.004100c4
add esp, 0x14
lea ecx, [ebp - 0x2c]
push ebx
push esi
call fcn.00403af5
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e398
mov esp, ebp
pop ebp
ret
Function at 0x41091b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movsd xmm0, qword [0x4455e8]
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
push edi
push ebx
mov dword [ebx + 4], ecx
lea edi, [ebx + 0x20]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], ecx
mov dword [edi], 0x444e14
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x28], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebx], 0x444dd4
mov dword [edi], 0x444de4
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x60], eax
lea eax, [ebx + 0x6c]
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x5c], ecx
mov dword [ebx + 0x40], 0x444e40
mov dword [ebx + 0x68], ecx
mov dword [eax], eax
lea eax, [ebx + 0x7c]
mov dword [ebx + 0x78], ecx
mov dword [eax], eax
lea eax, [ebx + 0x94]
mov dword [ebx + 0x88], ecx
mov dword [ebx + 0x90], ecx
mov dword [eax], eax
mov dword [ebx + 0xa0], ecx
mov dword [ebx + 0xa4], ecx
movsd qword [ebx + 0x70], xmm0
mov dword [ebx + 0xa8], ecx
lea ecx, [ebx + 0xac]
movsd qword [ebx + 0x80], xmm0
movsd qword [ebx + 0x98], xmm0
call fcn.0041050b
push ebx
lea ecx, [ebx + 0xd8]
call fcn.0041050b
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
xor eax, eax
mov dword [ebx + 0x104], eax
mov dword [ebx + 0x108], eax
mov dword [ebx + 0x10c], eax
push str.yandex.lite.set_import_progress
mov dword [ebx + 0x110], eax
call esi
push str.yandex.lite.close_window
mov dword [ebx + 0x114], eax
call esi
push str.yandex.lite.set_install_progress
mov dword [ebx + 0x118], eax
call esi
push str.yandex.higher_version_exist
mov dword [ebx + 0x11c], eax
call esi
mov dword [ebx + 0x120], eax
xor eax, eax
push 0xa8
mov byte [ebx + 0x124], al
mov dword [ebx + 0x128], eax
mov byte [ebx + 0x12c], al
call fcn.0041f100
pop ecx
test eax, eax
je 0x410a6f
push dword [ebx + 0x28]
mov ecx, eax
push dword [ebx + 0x24]
push edi
call fcn.0040ae29
jmp 0x410a71
xor eax, eax
mov esi, dword [ebx + 0x88]
mov dword [ebx + 0x88], eax
test esi, esi
je 0x410a8f
mov ecx, esi
call fcn.0040afb5
push esi
call fcn.0041e393
pop ecx
mov edi, dword [ebx + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [edi + 0x80]
call esi
push dword [edi + 0x84]
call esi
xor eax, eax
push eax
push eax
push edi
push 0x40b302
push eax
push eax
call fcn.0041f4b4
add esp, 0x18
mov dword [edi + 0x7c], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x411a3f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqa xmm0, xmmword [0x445770]
or dword [ebp - 8], 0xffffffff
push ebx
push esi
movdqu xmmword [ebp - 0x2c], xmm0
mov ebx, ecx
mov dword [ebp - 0xc], 0x3fc
movdqa xmm0, xmmword [0x445780]
push edi
movdqu xmmword [ebp - 0x1c], xmm0
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x30], 0xa
jmp 0x411a8c
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [edi]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x411a85
add edi, 4
dec dword [ebp - 0x30]
jne 0x411a8c
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [ebx + 0x44]
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x640000
push 0
push 0x401
push dword [ebx + 0x44]
call esi
push 0
push 0
push 0x402
push dword [ebx + 0x44]
call esi
push 0x3f5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e398
mov esp, ebp
pop ebp
ret

Function at 0x411c82
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
movzx eax, ax
mov dword [ebp - 0xc], esi
sub eax, 0x3fc
je 0x411cce
dec eax
jne 0x411d09
mov edx, dword [ecx + 0x24]
lea ecx, [ebp - 0x34]
call fcn.0041088e
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403350
lea ecx, [ebp - 0x34]
jmp 0x411ce5
mov edx, dword [ecx + 0x24]
lea ecx, [ebp - 0x4c]
call fcn.0040f411
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403350
lea ecx, [ebp - 0x4c]
push esi
push 1
call fcn.00403af5
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 5
cmovae eax, dword [ebp - 0x1c]
push esi
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push str.clicked_link
lea ecx, [ebp - 0x34]
call fcn.00405a7b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040cade
push esi
push 1
lea ecx, [ebp - 0x34]
call fcn.00403af5
push esi
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403af5
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0041e398
mov esp, ebp
pop ebp
ret 0x10

Function at 0x411de9
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0xa8]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
ret
Function at 0x412820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x412833
push 0xd
pop eax
jmp 0x412877
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x412846
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x41283e
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x412c59
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x410], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x408], eax
call ebx
mov edi, eax
test edi, edi
jne 0x412cc2
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x412cc2
call fcn.00412404
mov esi, eax
jmp 0x412d9c
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x412ce5
call fcn.00412404
jmp 0x412d8f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412cdb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea ecx, [esi + 1]
cmp ecx, esi
jae 0x412d0e
mov esi, 0x8007000e
jmp 0x412d91
xor eax, eax
shld eax, ecx, 1
add ecx, ecx
test eax, eax
jne 0x412dca
cmp ecx, 0xffffffff
ja 0x412dca
cmp ecx, 0x400
jbe 0x412d3d
push ecx
lea ecx, [ebp - 0x408]
call fcn.00414361
jmp 0x412d49
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
je 0x412d04
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x412cdb
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.004137a6
mov esi, eax
test edi, edi
je 0x412d9c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x412db5
lea ecx, [ebp - 0x408]
call fcn.00414358
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e398
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.004094e3
int3
Function at 0x4143e9
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042fc60
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x100c], 0x800
push edx
lea edx, [ebp - 0x1008]
inc ebx
push edx
push 0
push eax
push dword [ecx]
mov dword [ebp - 0x1008], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4144b5
cmp dword [ebp - 0x1008], ebx
jne 0x414460
lea eax, [ebp - 0x804]
push eax
call fcn.004011cd
pop ecx
push eax
lea eax, [ebp - 0x804]
jmp 0x4144a6
mov ebx, 0x400
mov dword [ebp - 0x1008], 2
push ebx
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x4144b0
cmp eax, ebx
ja 0x4144b0
lea eax, [ebp - 0x1004]
push eax
call fcn.004011cd
pop ecx
push eax
lea eax, [ebp - 0x1004]
push eax
mov ecx, edi
call fcn.00405ec9
jmp 0x4144b5
mov esi, 0xea
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e398
mov esp, ebp
pop ebp
ret 8
Function at 0x415212
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x44cce8]
push ebx
xor ebx, ebx
push esi
test eax, eax
jne 0x4152a1
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004230a0
add esp, 0xc
mov esi, ebx
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [esi + 0x445294]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x415289
push 8
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x44cce8], eax
jmp 0x41528e
mov eax, dword [0x44cce8]
test eax, eax
jne 0x4152a1
add esi, 4
cmp esi, 0xc
jb 0x415249
mov eax, dword [0x44cce4]
jmp 0x4152d8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
call esi
push str.FDIDestroy
push dword [0x44cce8]
mov dword [0x44cce0], eax
call esi
push str.FDICopy
push dword [0x44cce8]
mov dword [0x44ccec], eax
call esi
mov dword [0x44cce4], eax
cmp dword [0x44cce0], ebx
je 0x4152ef
cmp dword [0x44ccec], ebx
je 0x4152ef
test eax, eax
je 0x4152ef
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e398
mov esp, ebp
pop ebp
ret

Function at 0x4153a1
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.0041543e
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x415434
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x41542d
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x415424
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415424
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x415436
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0041543e
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41547c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x41548d
xor al, al
jmp 0x4154f6
mov ecx, 0x5a4d
push esi
cmp word [eax], cx
jne 0x4154f3
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x4154f3
mov edx, dword [ecx + eax + 0x98]
xor ecx, ecx
lea esi, [edx + eax]
test edx, edx
jne 0x4154b6
mov esi, ecx
test esi, esi
je 0x4154f3
lea eax, [esi + 8]
test eax, eax
je 0x4154f3
cmp byte [eax], 0x30
lea edx, [eax + 1]
jne 0x4154e5
mov al, byte [edx]
cmp al, 0x82
jne 0x4154e5
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, 0x13
add ecx, eax
and ecx, 0xffffff8
test ecx, ecx
je 0x4154f3
mov dword [edi + 0x14], ecx
mov al, 1
mov dword [edi + 0x18], esi
jmp 0x4154f5
xor al, al
pop esi
pop edi
pop ebp
ret 4
Function at 0x416a00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x416a08
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

Function at 0x416a20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x416ba0
cmp eax, 0x104
ja 0x416ba0
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp word [ebp - 0x210], ax
jne 0x416a8e
xor ecx, ecx
jmp 0x416aa6
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416a97
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00405ec9
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.00416c00
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x416af7
mov ecx, dword [eax]
jmp 0x416af9
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00416c00
lea ecx, [ebp - 0x240]
call fcn.00416fb0
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x416b2d
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004039b9
cmp dword [ebp - 0x22c], 8
jb 0x416b44
push dword [ebp - 0x240]
call fcn.0041e393
add esp, 4
xor eax, eax
mov dword [ebp - 0x22c], 7
cmp dword [ebp - 0x244], 8
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
jb 0x416b78
push dword [ebp - 0x258]
call fcn.0041e393
add esp, 4
cmp dword [ebp - 0x214], 8
jb 0x416b8f
push dword [ebp - 0x228]
call fcn.0041e393
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e398
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0041e398
mov esp, ebp
pop ebp
ret
Function at 0x417e10
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x44a2f0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor eax, eax
mov dword [esp + 0x24], 7
push edi
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x14]
xor bl, bl
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.00416a20
test al, al
je 0x417e93
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00416cb0
cmp dword [esp + 0x3c], 0
je 0x417e80
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov bl, 1
cmp dword [esp + 0x40], 8
jb 0x417e93
push dword [esp + 0x2c]
call fcn.0041e393
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x417e9b
mov esi, dword [esi]
push esi
call dword [esp + 0x14]
mov esi, eax
test esi, esi
jne 0x417eb2
test edi, edi
je 0x417eb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test bl, bl
je 0x417ecb
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esp + 0x28], 8
jb 0x417ede
push dword [esp + 0x14]
call fcn.0041e393
add esp, 4
mov ecx, dword [esp + 0x44]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041e398
mov esp, ebp
pop ebp
ret