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

Disassembly:
push 0xffffffffffffffff
push 0x5321d5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x54]
lea eax, [edi + 0x538]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x4c], ebx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], ebx
call fcn.0044f84d
xor ebp, ebp
mov dword [esp + 0x4c], ebx
inc ebp
mov dword [esp + 0x14], ebp
cmp dword [esi + 0x10], ebx
jne 0x471419
lea eax, [edi + 0x274]
mov ecx, esi
push eax
call fcn.00451093
cmp dword [esi + 0x10], ebx
je 0x4714b9
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.0044f84d
sub esp, 0x18
mov dword [esp + 0x7c], ebp
mov ecx, esp
push str._localappdata_
call fcn.00450db2
mov byte [esp + 0x7c], bl
call fcn.00483e1d
add esp, 0x30
test al, al
je 0x47145e
lea ecx, [esp + 0x24]
call fcn.00486b9e
push eax
mov ecx, esi
call fcn.004615ab
jmp 0x4714a9
push 3
push ebx
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00453de3
mov dword [esp + 0x4c], 2
lea eax, [esp + 0x24]
cmp dword [esp + 0x38], 8
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4714a5
mov ebx, 0x568570
push ebx
call fcn.00450d8e
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.00450d21
xor ebx, ebx
mov byte [esp + 0x4c], bl
push ebx
push ebp
lea ecx, [esp + 0x2c]
call fcn.004510e8
cmp dword [esi + 0x10], ebx
jne 0x4714d8
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.004714fb
push eax
mov ecx, esi
call fcn.004615ab
push ebx
push ebp
lea ecx, [esp + 0x2c]
call fcn.004510e8
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00503aee
add esp, 0x3c
ret 4
Function at 0x4716ed
Capabilities:
Create process on windows

Disassembly:
push 0x34
mov eax, 0x532276
call fcn.00508cd4
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.00471bca
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], ebx
je 0x47176b
cmp dword [esi + 0x14], 8
jb 0x471719
mov ecx, dword [esi]
jmp 0x47171b
mov ecx, esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 4
cmovae eax, dword [ebp - 0x40]
push ebx
push ecx
push eax
push 0x568584
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp dword [0x59735c], ebx
je 0x4717d4
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004820e9
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x47175b
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___priority_browser_open_url__s___ret__d_.
jmp 0x4717b6
cmp dword [esi + 0x14], 8
jb 0x471775
mov eax, dword [esi]
jmp 0x471777
mov eax, esi
push 4
push ebx
push ebx
push eax
push 0x5685c0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp dword [0x59735c], ebx
je 0x4717d4
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004820e9
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x4717a8
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___browser_open_url__s___ret__d_.
push 3
push dword [0x59735c]
call fcn.0048161a
add esp, 0x18
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0044ea67
cmp byte [ebp + 0xc], 0
je 0x471831
push str.installpageopentime
lea ecx, [ebp - 0x28]
call fcn.0044ea3a
push ebx
mov byte [ebp - 4], 3
call fcn.00504ffe
pop ecx
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0046388b
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0044ea67
push str.installpageopencode
lea ecx, [ebp - 0x28]
call fcn.0044ea3a
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.0046382a
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0044ea67
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004510e8
cmp edi, 0x20
setg al
call fcn.00508c83
ret 8
Function at 0x471ced
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x532397
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov edi, dword [esp + 0x468]
xor ebx, ebx
mov esi, dword [esp + 0x46c]
xor eax, eax
mov dword [esp + 0x24], ebx
xor ebp, ebp
push 0x40e
mov word [esp + 0x48], ax
inc ebp
lea eax, [esp + 0x4a]
mov dword [esp + 0x2c], edi
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebp
call fcn.00508660
xor eax, eax
mov dword [esp + 0x28], 0x208
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
mov dword [esp + 0x46c], ebx
lea ecx, [esp + 0x38]
push esi
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
mov dword [esp + 0x34], ebp
call fcn.00465fd2
add esp, 0x10
lea ecx, [esp + 0x20]
mov dword [esp + 0x460], ebp
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
push ecx
cmovae eax, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x471e0f
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0x56865c
push dword [esp + 0x28]
call ebp
test eax, eax
jne 0x471e0f
lea eax, [esp + 0x44]
push eax
call esi
test eax, eax
jne 0x471e7f
cmp dword [esp + 0x14], 0
je 0x471e21
push dword [esp + 0x14]
call ebx
and dword [esp + 0x14], 0
cmp dword [esp + 0x40], 8
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
xor ecx, ecx
push ecx
push 0x20219
push ecx
push ecx
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x471e97
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0x5686b4
push dword [esp + 0x28]
call ebp
test eax, eax
jne 0x471e97
lea eax, [esp + 0x44]
push eax
call esi
test eax, eax
je 0x471e97
lea eax, [esp + 0x44]
push eax
call fcn.00450d8e
pop ecx
push eax
lea eax, [esp + 0x48]
mov ecx, edi
push eax
call fcn.00450d21
cmp dword [esp + 0x14], 0
je 0x471ea9
push dword [esp + 0x14]
call ebx
and dword [esp + 0x14], 0
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.004510e8
mov eax, edi
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.00503aee
add esp, 0x450
ret 8
Function at 0x471ee2
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5323f2
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
xor eax, esp
push eax
lea eax, [esp + 0x474]
mov dword fs:[0], eax
mov esi, dword [esp + 0x484]
xor ebx, ebx
mov dword [esp + 0x24], ebx
xor eax, eax
push 0x40e
mov word [esp + 0x60], ax
xor ebp, ebp
lea eax, [esp + 0x62]
mov dword [esp + 0x2c], esi
push ebx
inc ebp
mov dword [esp + 0x1c], ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebp
call fcn.00508660
xor eax, eax
mov dword [esp + 0x28], 0x208
mov dword [esi + 0x14], 7
add esp, 0xc
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov dword [esp + 0x47c], ebx
lea ecx, [esp + 0x2c]
push 0x5687b0
mov dword [esp + 0x28], ebp
call fcn.00450db2
lea ecx, [esp + 0x20]
mov dword [esp + 0x47c], ebp
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
push ecx
cmovae eax, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x47206b
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push 0x56873c
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47206b
lea eax, [esp + 0x5c]
push eax
call fcn.00450d8e
pop ecx
push eax
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.00450d21
mov edi, 0x5687ac
push edi
call fcn.00450d8e
pop ecx
push eax
push ebp
push edi
mov ecx, esi
call fcn.004616b8
cmp eax, 0xffffffff
je 0x47203f
dec eax
mov ecx, esi
push eax
push ebp
lea eax, [esp + 0x4c]
push eax
call fcn.00453de3
push eax
mov ecx, esi
call fcn.004615ab
push ebx
push ebp
lea ecx, [esp + 0x4c]
call fcn.004510e8
cmp dword [esi + 0x14], 8
jb 0x472049
mov eax, dword [esi]
jmp 0x47204b
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47206b
mov edi, 0x568804
push edi
call fcn.00450d8e
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00450d21
cmp dword [esp + 0x14], 0
je 0x472080
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
push ebx
push ebp
lea ecx, [esp + 0x34]
call fcn.004510e8
mov eax, esi
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.00503aee
add esp, 0x46c
ret 4
Function at 0x4722e5
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x468
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x460], eax
mov eax, dword [esp + 0x46c]
push ebx
push ebp
push esi
push 0
mov dword [esp + 0x18], eax
xor bl, bl
mov eax, dword [esp + 0x480]
push 2
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x472414
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x4723eb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x20], eax
je 0x4723df
xor eax, eax
push 0x206
push eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push eax
call fcn.00508660
add esp, 0xc
push dword [esp + 0x20]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x4723a5
push 0x104
lea eax, [esp + 0x264]
push eax
push 0
push ebp
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x24c]
call fcn.00450db2
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x250]
call fcn.00472a85
push 0
push 1
cmp eax, 0xffffffff
jne 0x4723f5
lea ecx, [esp + 0x250]
call fcn.004510e8
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x472341
jmp 0x47240d
mov ecx, dword [esp + 0x18]
mov bl, 1
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
lea ecx, [esp + 0x250]
call fcn.004510e8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x46c]
mov al, bl
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00503aee
add esp, 0x468
ret 8
Function at 0x478525
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x533257
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, ecx
cmp dword [ebp + 0x78c], 0
je 0x4786af
push ecx
lea ecx, [esp + 0x20]
call fcn.0047dc6e
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edi, [esp + 0x2c]
mov esi, eax
lea eax, [esp + 0x1c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
push 3
pop eax
mov word [esp + 0x1c], ax
lea esi, [esp + 0x1c]
mov dword [esp + 0x24], eax
lea edi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
mov ecx, dword [ebp + 0x78c]
call fcn.004ba6ab
push 1
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x54]
push ecx
push str.WSAppInvoke
push eax
call fcn.004ba943
add esp, 0x14
test eax, eax
jns 0x4786af
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x98], ebx
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
test eax, eax
js 0x478699
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47869d
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x478699
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x59735c], ebx
je 0x47868f
push dword [esp + 0x18]
lea ecx, [esp + 0x60]
call fcn.00450db2
lea edx, [esp + 0x5c]
mov byte [esp + 0x98], 1
lea ecx, [esp + 0x74]
call fcn.00482298
mov byte [esp + 0x98], 2
cmp dword [eax + 0x14], 0x10
jb 0x47865a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___bstrDescription___s
push 3
push dword [0x59735c]
call fcn.0048161a
add esp, 0x14
lea ecx, [esp + 0x74]
push ebx
push 1
call fcn.0044ea67
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.004510e8
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
or dword [esp + 0x98], 0xffffffff
test eax, eax
je 0x4786af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00503aee
add esp, 0x88
ret
Function at 0x478b8e
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x533342
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x888]
lea eax, [esp + 0x5c]
push eax
call fcn.00471987
mov edx, eax
xor ebx, ebx
mov dword [esp + 0x80], ebx
cmp dword [edx + 0x14], 8
jb 0x478be5
mov edx, dword [edx]
mov ecx, dword [esi + 0x7f4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x5c]
xor ebp, ebp
push ebx
inc ebp
push ebp
call fcn.004510e8
mov ecx, dword [esi + 0x7dc]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x104]
mov ecx, dword [esi + 0x774]
push ebp
mov eax, dword [ecx]
call dword [eax + 0x104]
mov ecx, dword [esi + 0x7e0]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x104]
lea edi, [esi + 0xcb8]
mov ecx, edi
call fcn.004d0213
test eax, eax
je 0x478c4e
push ebp
push ebx
mov ecx, edi
call fcn.004a118b
mov ecx, dword [esi + 0x7e4]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x104]
mov ecx, dword [esi + 0x7f0]
push ebp
mov eax, dword [ecx]
call dword [eax + 0x104]
push 0x7be
push dword [esi + 0x7c8]
lea ecx, [esi + 0x30]
call fcn.0049ba20
push 0x562fae
lea ecx, [esp + 0x30]
call fcn.0044ea3a
push 0x562faf
lea ecx, [esp + 0x18]
mov dword [esp + 0x84], ebp
call fcn.0044ea3a
push str.downloader_error_pop
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], 2
call fcn.0044ea3a
lea eax, [esp + 0x2c]
mov byte [esp + 0x80], 3
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0045fc30
mov ecx, eax
call fcn.0046005e
push ebx
push ebp
lea ecx, [esp + 0x4c]
call fcn.0044ea67
push ebx
push ebp
lea ecx, [esp + 0x1c]
call fcn.0044ea67
push ebx
push ebp
lea ecx, [esp + 0x34]
call fcn.0044ea67
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00503aee
add esp, 0x70
ret
Function at 0x47cfa7
Capabilities:
Create process on windows

Disassembly:
push 0x24
mov eax, 0x533d2a
call fcn.00508cd4
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
xor esi, esi
mov dword [ebp - 4], esi
push eax
call fcn.0044f84d
lea ecx, [ebp - 0x2c]
call fcn.004831cb
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x47cfdd
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x30]
call fcn.00450bfb
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004510e8
push 1
push esi
push esi
push dword [ebp - 0x30]
push str.Open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x30]
cmp eax, 0x20
setg bl
add ecx, 0xfffffff0
call fcn.00450cc2
push esi
push 1
lea ecx, [ebp + 8]
call fcn.004510e8
mov al, bl
call fcn.00508c83
ret

Function at 0x47dee4
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
push 0x56b9e4
push dword [esp + 0x144]
mov esi, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
call fcn.00507550
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
jne 0x47df51
test esi, esi
je 0x47df4a
lea ecx, [esp + 0x28]
call fcn.0047e8ad
push eax
mov ecx, esi
call fcn.004615ab
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004510e8
xor al, al
jmp 0x47e06e
xor ebx, ebx
test ebp, ebp
je 0x47df60
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
jmp 0x47df64
mov dword [esp + 0x1c], ebx
push 9
xor eax, eax
lea edi, [esp + 0x46]
pop ecx
mov word [esp + 0x40], ax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
push ebx
stosw word es:[edi], ax
call fcn.00450de1
mov edi, dword [esp + 0x18]
push 2
pop eax
push eax
push ebx
push edi
call fcn.00509cf5
add esp, 0xc
push edi
call fcn.0050a108
pop ecx
push ebx
push ebx
push edi
mov dword [esp + 0x20], eax
call fcn.00509cf5
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x47e025
mov ebx, eax
push ebx
call fcn.004eca91
pop ecx
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
push 1
push ebx
push edi
call fcn.00509bba
push ebx
mov edx, edi
xor ecx, ecx
call fcn.0047e657
add esp, 0x14
mov ebx, eax
xor ecx, ecx
push 2
pop edx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004eca91
pop ecx
push dword [esp + 0x14]
mov esi, eax
mov edx, edi
mov ecx, esi
call fcn.0047e657
pop ecx
mov ecx, dword [esp + 0x20]
push ebx
push esi
call fcn.00450d21
push esi
call fcn.0050479f
pop ecx
push edi
call fcn.0050479f
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
pop ecx
push ebx
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x74]
push str._s_d_bytes_to__d_wide_chars
push eax
call fcn.00507419
add esp, 0x14
test esi, esi
je 0x47e05a
lea eax, [esp + 0x68]
push eax
call fcn.00450d8e
pop ecx
push eax
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.00450d21
push edi
call fcn.005066f7
pop ecx
test ebp, ebp
je 0x47e06c
mov ecx, dword [esp + 0x1c]
mov dword [ebp], ecx
mov al, 1
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00503aee
add esp, 0x12c
ret
Function at 0x47e087
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x144]
mov ebp, edx
push 0x56b9ec
push dword [esp + 0x144]
mov esi, ecx
mov dword [esp + 0x2c], edi
mov bl, 1
call fcn.00507550
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
jne 0x47e0f4
test ebp, ebp
je 0x47e0ed
lea ecx, [esp + 0x28]
call fcn.0047e8ad
push eax
mov ecx, ebp
call fcn.004615ab
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004510e8
xor al, al
jmp 0x47e1fe
test edi, edi
je 0x47e100
mov edx, dword [edi]
mov dword [esp + 0x18], edx
jmp 0x47e105
and dword [esp + 0x18], 0
xor eax, eax
lea edi, [esp + 0x42]
push 9
mov word [esp + 0x44], ax
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x47e188
cmp dword [esi + 0x14], 8
jb 0x47e12e
mov edx, dword [esi]
jmp 0x47e130
mov edx, esi
push 0
xor ecx, ecx
call fcn.0047e552
mov edi, eax
pop ecx
lea ecx, [edi + 1]
push ecx
call fcn.004eca91
cmp dword [esi + 0x14], 8
mov ebx, eax
pop ecx
mov dword [esp + 0x20], ebx
jb 0x47e154
mov esi, dword [esi]
push edi
mov edx, esi
mov ecx, ebx
call fcn.0047e552
mov esi, dword [esp + 0x18]
pop ecx
push esi
push 1
push edi
push ebx
call fcn.0050614e
push dword [esp + 0x30]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.0050479f
mov eax, dword [esp + 0x30]
add esp, 0x14
jmp 0x47e18c
mov esi, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x44]
push ecx
push eax
lea eax, [esp + 0x74]
push str._d_wide_chars_to__s_d_bytes
push eax
call fcn.00507419
add esp, 0x14
test ebp, ebp
je 0x47e1c1
lea eax, [esp + 0x68]
push eax
call fcn.00450d8e
pop ecx
push eax
lea eax, [esp + 0x6c]
mov ecx, ebp
push eax
call fcn.00450d21
test bl, bl
jne 0x47e1e7
test ebp, ebp
je 0x47e1e7
lea ecx, [esp + 0x28]
call fcn.0047e8ad
push eax
mov ecx, ebp
call fcn.004615ab
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004510e8
push esi
call fcn.005066f7
mov eax, dword [esp + 0x28]
pop ecx
test eax, eax
je 0x47e1fc
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov al, bl
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00503aee
add esp, 0x12c
ret
Function at 0x481462
Capabilities:
Move file

Disassembly:
push 0x24
mov eax, 0x534237
call fcn.00508cd4
mov esi, 0x5983a8
mov dword [ebp - 0x30], esi
xor ebx, ebx
mov dword [ebp - 4], 2
cmp dword [0x59840c], ebx
je 0x4814c5
push ecx
call fcn.004810e6
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00480df5
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x4814a1
mov ecx, dword [ecx]
cmp dword [0x5983bc], 0x10
mov eax, esi
push ecx
cmovae eax, dword [0x5983a8]
push eax
call fcn.0050bfe0
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0044ea67
push ebx
push 1
mov ecx, 0x5983f0
call fcn.0044ea67
mov ecx, 0x5983c0
mov byte [ebp - 4], bl
call fcn.00480b9c
push ebx
push 1
mov ecx, esi
call fcn.0044ea67
call fcn.00508c83
ret

Function at 0x4814ef
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x534264
call fcn.00508ca1
cmp dword [0x598400], 0
jne 0x48150f
push str._simpleLog::Log__log_filename_is_empty_n
call fcn.0050bf31
pop ecx
cmp dword [0x598408], 0
mov esi, 0x5983a8
jne 0x481529
push 0x5983f0
mov ecx, esi
call fcn.0045451f
xor ebx, ebx
mov dword [ebp - 0x18], 0x5983cc
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x14], bl
call fcn.004819de
push ebx
push ebx
push esi
push 0x480cdf
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.005067e6
add esp, 0x18
mov dword [ebp - 0x10], eax
test eax, eax
je 0x481567
lea eax, [ebp - 0x10]
mov ecx, 0x5983c0
push eax
call fcn.00481a77
cmp byte [ebp - 0x14], 0
je 0x481578
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00508c6f
ret