joyce8/EMBER2024-capa huggingface dataset:
Function at 0x571cc0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x571db6
push 0x610660
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0
jne 0x571cfa
jmp 0x571db6
push str.EnumProcessModules
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push str.EnumProcesses
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx], eax
push str.GetModuleBaseNameW
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
push 0x6106ac
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
push str.GetProcessImageFileNameW
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x571da6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x571da6
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x571da6
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x571da6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x571da6
mov dword [ebp - 8], 1
jmp 0x571dad
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x572000
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x244], 0
cmp dword [ebp + 8], 0
jne 0x57202e
mov eax, dword [ebp - 0x244]
jmp 0x572151
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0xffffffff
jne 0x572051
mov eax, dword [ebp - 0x244]
jmp 0x572151
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.00524800
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x5720b5
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
jmp 0x572151
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00525255
add esp, 0xc
test eax, eax
jne 0x5720f8
mov dword [ebp - 0x244], 1
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x250]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004e2970
push 0x22c
push 0
lea edx, [ebp - 0x238]
push edx
call fcn.00524800
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x5720b5
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret
Function at 0x572160
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x244], 0
cmp dword [ebp + 8], 0
jne 0x57218e
mov eax, dword [ebp - 0x244]
jmp 0x57231d
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0xffffffff
jne 0x5721b1
mov eax, dword [ebp - 0x244]
jmp 0x57231d
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.00524800
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x572215
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
jmp 0x57231d
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00525255
add esp, 0xc
test eax, eax
jne 0x5722c4
mov dword [ebp - 0x244], 1
mov eax, dword [ebp - 0x230]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0xffffffff
je 0x5722c2
mov dword [ebp - 0x670], 0
push 0x424
push 0
lea ecx, [ebp - 0x66c]
push ecx
call fcn.00524800
add esp, 0xc
mov dword [ebp - 0x670], 0x428
lea edx, [ebp - 0x670]
push edx
mov eax, dword [ebp - 0x248]
push eax
call sub.KERNEL32.dll_Module32FirstW
mov dword [ebp - 0x674], eax
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x450]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040b1c0
jmp 0x57230a
push 0x22c
push 0
lea eax, [ebp - 0x238]
push eax
call fcn.00524800
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x572215
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret
Function at 0x573360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4a44
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
jne 0x573395
mov eax, 0x80070057
jmp 0x57347d
push 1
mov eax, dword [ebp + 8]
add eax, 0x44
push eax
lea ecx, [ebp - 0x1c]
call fcn.00472ab0
mov dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x5c
call fcn.004e32d0
test eax, eax
jne 0x5733ee
push 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.004e7030
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
call fcn.004e7050
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x5c
call fcn.004e30a0
push 1
mov eax, dword [ebp + 8]
add eax, 4
push eax
lea ecx, [ebp - 0x14]
call fcn.00472ab0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1c], 0
jne 0x57345c
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0x573350
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1c], 0
jne 0x57345c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e680
add esp, 4
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x14]
call fcn.00472b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00472b00
mov eax, dword [ebp - 0x3c]
jmp 0x57347d
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x14]
call fcn.00472b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00472b00
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x575400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc84e
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x224], 0
push 0x208
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.00524800
add esp, 0xc
push 0
push 0x23
lea ecx, [ebp - 0x224]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x575492
push 0x613734
mov ecx, dword [ebp + 8]
call fcn.004092b0
mov edx, dword [ebp - 0x22c]
or edx, 1
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp + 8]
jmp 0x5754f9
push str.kingsoftminisitehotpop_
lea ecx, [ebp - 0x228]
call fcn.004092b0
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x238]
push ecx
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004dc810
add esp, 0xc
mov ecx, dword [ebp - 0x22c]
or ecx, 1
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.00403270
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret 4
Function at 0x575680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de678
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], ecx
mov eax, dword [ebp - 0x94]
movzx ecx, byte [eax + 0x10]
test ecx, ecx
je 0x57574d
mov ecx, dword [ebp - 0x94]
add ecx, 8
call fcn.00493020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5756e0
xor al, al
jmp 0x575765
mov edx, dword [ebp - 0x94]
mov byte [edx + 0x10], 0
push 0
mov ecx, dword [ebp - 0x94]
add ecx, 8
call fcn.00493020
push eax
lea ecx, [ebp - 0x90]
call fcn.004550e0
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 4], 0
push 1
mov ecx, dword [ebp - 0x9c]
call fcn.00493020
push eax
mov ecx, dword [ebp - 0x94]
add ecx, 0x14
call fcn.00566970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.0040e6c0
mov ecx, dword [ebp - 0x94]
add ecx, 0x14
call fcn.00512c50
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x575ee0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 8], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x575f17
jmp 0x575f92
push 2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x575f34
jmp 0x575f92
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 1
lea edx, [ebp - 0x30]
push edx
push 0x24
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x575f69
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp + 0xc]
jne 0x575f69
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0
je 0x575f92
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x575fa2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x34], 0
je 0x575fb2
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x577040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e37bf
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.0040ee60
movzx eax, al
test eax, eax
jne 0x577083
mov ecx, dword [ebp + 0xc]
call fcn.0040ee60
movzx ecx, al
test ecx, ecx
je 0x57708a
xor eax, eax
jmp 0x5771c0
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.0057a250
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402050
mov byte [ebp - 4], 1
call fcn.00448800
mov ecx, eax
call fcn.00493020
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jne 0x5770d1
push str.ksoft_
lea ecx, [ebp - 0x1c]
call fcn.0046ff60
push str.rcmdhelper.exe
lea ecx, [ebp - 0x1c]
call fcn.0046ff60
lea ecx, [ebp - 0x1c]
call fcn.00493020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x577144
cmp dword [0x67e1c8], 0
je 0x57711d
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
push ecx
push str.KCmppFunc::_OpenUrlByRcmdHelper::rcmdhelper.exe_is_not_exsit
call fcn.00447600
mov ecx, eax
call fcn.00447680
mov ecx, eax
call fcn.00447700
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00403270
mov eax, dword [ebp - 0x28]
jmp 0x5771c0
lea ecx, [ebp - 0x18]
call fcn.00403290
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push str._openurl:1__from:_s__url:__s_
lea eax, [ebp - 0x18]
push eax
call fcn.00403240
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.00493020
push eax
lea ecx, [ebp - 0x1c]
call fcn.00493020
push eax
call fcn.005767c0
add esp, 8
mov dword [ebp - 0x10], eax
xor ecx, ecx
cmp dword [ebp - 0x10], 0
sete cl
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00403270
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x577390
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3837
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x5773cd
mov eax, dword [ebp - 0x30]
jmp 0x57749c
lea ecx, [ebp - 0x2c]
call fcn.004481e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004d3e70
add esp, 4
test eax, eax
je 0x577484
push 0x6166d0
lea ecx, [ebp - 0x4c]
call fcn.00446280
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00447e00
push 0x6166d4
lea ecx, [ebp - 0x4c]
call fcn.00446920
push 0x6166d8
lea ecx, [ebp - 0x68]
call fcn.00446280
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x68]
call fcn.00446920
push 1
push 0
lea ecx, [ebp - 0x68]
call fcn.00447330
push eax
lea ecx, [ebp - 0x4c]
call fcn.00447330
push eax
push 0x6166e8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x6c], eax
xor eax, eax
cmp dword [ebp - 0x6c], 0x20
setg al
sub eax, 1
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00447350
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00447350
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00447350
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret
Function at 0x5774f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x577541
jmp 0x5775e9
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 8], 0
jne 0x57756f
cmp dword [ebp - 0x18], 0x200000
jbe 0x577573
jmp 0x5775e9
mov eax, dword [ebp - 0x18]
add eax, 2
push eax
call fcn.00521888
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5775bb
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
je 0x5775bf
jmp 0x5775e9
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x1c]
mov byte [ecx], 0
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x1c]
mov byte [edx + 1], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0x14], 0xffffffff
je 0x5775f9
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x577ca0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dfe3f
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
cmp dword [ebp + 8], 0
jne 0x577cdb
mov eax, 0x80070057
jmp 0x577e18
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00446280
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.004480a0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x577dee
mov ecx, dword [ebp - 0x30]
push ecx
push 0
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00448010
mov dword [ebp - 0x6c], eax
push 0
mov ecx, dword [ebp - 0x6c]
call fcn.00447330
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x54]
call fcn.00447350
cmp dword [ebp - 0x34], 0
je 0x577d75
cmp dword [ebp - 0x34], 0x50
je 0x577d75
cmp dword [ebp - 0x34], 0xb7
je 0x577d75
mov eax, dword [ebp - 0x34]
push eax
call fcn.0040e680
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00447350
mov eax, dword [ebp - 0x58]
jmp 0x577e18
push 0
push 0x80
push 1
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x2c]
call fcn.00447330
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x577dc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e680
add esp, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00447350
mov eax, dword [ebp - 0x5c]
jmp 0x577e18
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00447350
mov eax, dword [ebp - 0x60]
jmp 0x577e18
mov dword [ebp - 0x64], 0x80070057
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00447350
mov eax, dword [ebp - 0x64]
jmp 0x577e18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret 4
Function at 0x5783d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4b68
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x20]
call fcn.00403290
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x57846d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x57846d
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x130]
call fcn.00577ca0
xor edx, edx
test eax, eax
setge dl
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00403270
mov eax, dword [ebp - 0x24]
jmp 0x57858d
mov ecx, dword [ebp - 0x130]
call fcn.00577e40
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x130]
call fcn.005774f0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x57849e
cmp dword [ebp - 0x10], 0
jne 0x5784a3
jmp 0x578560
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 1
je 0x5784c9
cmp dword [ebp - 0x134], 2
je 0x5784e5
cmp dword [ebp - 0x134], 3
je 0x5784d7
jmp 0x578532
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00415910
jmp 0x578532
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
call fcn.0046ff60
jmp 0x578532
push 0xfde9
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x128]
call fcn.0040e420
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x13c]
call fcn.00493020
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b1c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.0040e6c0
push 0xa
push 0xd
lea ecx, [ebp - 0x20]
call fcn.0044c930
lea ecx, [ebp - 0x20]
call fcn.00493020
push eax
mov edx, dword [ebp - 0x130]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x130]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x130]
call fcn.005774c0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00403270
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5786b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x578701
jmp 0x5787a9
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 8], 0
jne 0x57872f
cmp dword [ebp - 0x18], 0x200000
jbe 0x578733
jmp 0x5787a9
mov eax, dword [ebp - 0x18]
add eax, 2
push eax
call fcn.00521888
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x57877b
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
je 0x57877f
jmp 0x5787a9
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x1c]
mov byte [ecx], 0
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x1c]
mov byte [edx + 1], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0x14], 0xffffffff
je 0x5787b9
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x579a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x579a8a
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x579a8a
mov dword [ebp - 8], 1
jmp 0x579a91
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret