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

Disassembly:
push ebp
lea ebp, [esp - 0xbc4]
sub esp, 0xc44
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0xbc0], eax
push ebx
mov ebx, dword [ebp + 0xbcc]
push esi
push edi
xor edi, edi
mov esi, 0x206
push esi
lea eax, [ebp - 0x6e]
push edi
push eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
mov word [ebp - 0x70], di
call fcn.0043d050
push esi
lea eax, [ebp + 0x19a]
push edi
push eax
mov word [ebp + 0x198], di
call fcn.0043d050
push esi
lea eax, [ebp + 0x7b2]
push edi
push eax
mov word [ebp + 0x7b0], di
call fcn.0043d050
push esi
lea eax, [ebp + 0x3a2]
push edi
push eax
mov word [ebp + 0x3a0], di
call fcn.0043d050
push esi
lea eax, [ebp + 0x9ba]
push edi
push eax
mov word [ebp + 0x9b8], di
call fcn.0043d050
push esi
lea eax, [ebp + 0x5aa]
push edi
push eax
mov word [ebp + 0x5a8], di
call fcn.0043d050
mov ecx, dword [ebp - 0x74]
add esp, 0x48
push edi
push 0x1a
lea eax, [ebp - 0x70]
push eax
push edi
call fcn.004093fd
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x9b8]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0x9b8]
push eax
call fcn.0043d03a
lea eax, [ebp + 0x9b8]
push 0x5c
push eax
call fcn.0043ed6b
add esp, 0x14
cmp eax, edi
je 0x40b4ff
mov word [eax], di
lea eax, [ebp + 0x9b8]
push eax
lea eax, [ebp + 0x198]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0x198]
push str.Local
push eax
call fcn.0043d0ca
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x198]
push eax
call esi
test eax, eax
je 0x40b430
mov dword [ebp - 0x78], 1
lea eax, [ebp + 0x9b8]
push eax
lea eax, [ebp + 0x7b0]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0x7b0]
push str.LocalLow
push eax
call fcn.0043d0ca
add esp, 0x10
lea eax, [ebp + 0x7b0]
push eax
call esi
test eax, eax
je 0x40b46b
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b8]
push eax
lea eax, [ebp + 0x3a0]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0x3a0]
push str.Roaming
push eax
call fcn.0043d0ca
add esp, 0x10
lea eax, [ebp + 0x3a0]
push eax
call esi
test eax, eax
je 0x40b4a6
mov dword [ebp - 0x7c], 1
cmp dword [ebp - 0x78], edi
je 0x40b4ff
cmp dword [ebp - 0x80], edi
je 0x40b4ff
cmp dword [ebp - 0x7c], edi
je 0x40b4ff
push str.SmartCloudWBIME.users
lea eax, [ebp + 0x7b0]
push eax
lea eax, [ebp + 0x5a8]
push str._s_s_
push eax
call fcn.0043d110
add esp, 0x10
lea eax, [ebp + 0x5a8]
push eax
call esi
test eax, eax
jne 0x40b4ef
lea eax, [ebp + 0x5a8]
push eax
call fcn.0040b615
pop ecx
lea eax, [ebp + 0x5a8]
push eax
mov ecx, ebx
call fcn.00401300
jmp 0x40b508
mov ecx, dword [ebp - 0x74]
push ebx
call fcn.0040a3b3
mov ecx, dword [ebp + 0xbc0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ca22
add ebp, 0xbc4
leave
ret 4
Function at 0x40b615
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call fcn.0043d03a
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c5f7
push dword [esp + 0x1c]
mov esi, eax
push esi
call fcn.0043d0f4
add esp, 0x10
xor ebp, ebp
test edi, edi
mov bl, 1
jl 0x40b684
cmp word [esi + ebp*2], 0x5c
jne 0x40b67b
and word [esi + ebp*2], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b675
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b682
mov word [esi + ebp*2], 0x5c
inc ebp
cmp ebp, edi
jle 0x40b652
jmp 0x40b684
xor bl, bl
push esi
call fcn.0041c5f2
pop ecx
pop edi
pop esi
pop ebp
movzx eax, bl
pop ebx
ret

Function at 0x40b968
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0043d050
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x40b9ee
cmp dword [ebp - 0x11c], 6
jb 0x40b9ee
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.ChangeWindowMessageFilter
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b9e7
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
sete cl
inc ecx
push ecx
push dword [ebp + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0043ca22
leave
ret

Function at 0x40ba6d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 0xc]
push eax
xor esi, esi
mov edi, 0xf013f
push edi
push esi
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bb27
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
lea eax, [ebp - 8]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0xc]
call ebx
test eax, eax
je 0x40bacb
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40bb26
push esi
lea eax, [ebp - 4]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call ebx
test eax, eax
je 0x40baf1
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x40bb24
push dword [ebp + 0x14]
call fcn.0043d03a
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40c2e5
Capabilities:
Enumerate processes

Disassembly:
push 0x268
mov eax, 0x529243
call fcn.0043ca9a
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x40c305
xor eax, eax
call fcn.0043cb1d
ret
push eax
lea ecx, [ebp - 0x48]
call fcn.00401130
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], ebx
call fcn.0040c027
mov dword [esp], 0x228
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], ebx
call fcn.0043d050
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c357
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00401330
mov eax, esi
jmp 0x40c2ff
lea eax, [ebp - 0x274]
push eax
push esi
mov dword [ebp - 0x274], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40c3b8
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401130
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.0040c027
pop ecx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402c42
test eax, eax
je 0x40c3c5
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401330
lea eax, [ebp - 0x274]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c370
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c346
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x26c]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401330
jmp 0x40c348
Function at 0x40c628
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x81c
lea ebp, [esp - 4]
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0x81c], eax
push 0x1c
mov eax, 0x5292fe
call fcn.0043ca31
mov eax, dword [ebp + 0x828]
mov ebx, dword [ebp + 0x82c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x830]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x834]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x838]
xor esi, esi
push eax
lea ecx, [ebp]
mov dword [ebp - 0x20], esi
call fcn.00401130
lea eax, [ebp - 0x14]
push eax
mov edi, 0xf013f
push edi
push esi
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c6bd
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.00401e50
jmp 0x40c770
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push esi
push esi
push esi
push ebx
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call ebx
test eax, eax
je 0x40c6e2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c6ac
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call ebx
test eax, eax
je 0x40c70a
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x18]
call edi
jmp 0x40c6ac
push 0x7fe
lea eax, [ebp + 0x1e]
push esi
push eax
mov word [ebp + 0x1c], si
call fcn.0043d050
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x1c]
push eax
push esi
push esi
push dword [ebp - 0x28]
mov dword [ebp - 0x20], 0x400
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x14]
call edi
lea eax, [ebp + 0x1c]
push eax
call fcn.0043d03a
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x10]
je 0x40c6af
lea eax, [ebp + 0x1c]
push eax
call fcn.00401130
push esi
push 1
lea ecx, [ebp]
call fcn.00401330
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x81c]
xor ecx, ebp
call fcn.0043ca22
add ebp, 0x820
leave
ret
Function at 0x40c7a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x81c
lea ebp, [esp - 4]
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0x81c], eax
push 0x24
mov eax, 0x52932e
call fcn.0043ca31
mov eax, dword [ebp + 0x828]
mov edi, dword [ebp + 0x830]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x82c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x834]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x838]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x83c]
xor esi, esi
push eax
lea ecx, [ebp]
mov dword [ebp - 0x24], esi
call fcn.00401130
lea eax, [ebp - 0x14]
push eax
mov ebx, 0x20119
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
call edi
test eax, eax
je 0x40c840
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.00401e50
jmp 0x40c910
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
push str.SoftWare
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x40c85f
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c82f
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x40c883
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x14]
call edi
jmp 0x40c82f
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push dword [ebp - 0x2c]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x40c8a5
push dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x18]
jmp 0x40c87a
push 0x7fe
lea eax, [ebp + 0x1e]
push esi
push eax
mov word [ebp + 0x1c], si
call fcn.0043d050
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x1c]
push eax
push esi
push esi
push dword [ebp - 0x30]
mov dword [ebp - 0x24], 0x400
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x18]
call edi
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x14]
call edi
lea eax, [ebp + 0x1c]
push eax
call fcn.0043d03a
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x10]
je 0x40c832
lea eax, [ebp + 0x1c]
push eax
call fcn.00401130
push esi
push 1
lea ecx, [ebp]
call fcn.00401330
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x81c]
xor ecx, ebp
call fcn.0043ca22
add ebp, 0x820
leave
ret
Function at 0x40c941
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x81c
lea ebp, [esp - 4]
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0x81c], eax
push 0x20
mov eax, 0x52935e
call fcn.0043ca31
mov eax, dword [ebp + 0x828]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x82c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x830]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x834]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x838]
xor esi, esi
push eax
lea ecx, [ebp]
mov dword [ebp - 0x20], esi
call fcn.00401130
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
mov ebx, 0x20119
push ebx
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
je 0x40c9db
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.00401e50
jmp 0x40ca82
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x40c9f8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c9ca
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x40ca1c
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x18]
call edi
jmp 0x40c9ca
push 0x7fe
lea eax, [ebp + 0x1e]
push esi
push eax
mov word [ebp + 0x1c], si
call fcn.0043d050
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x1c]
push eax
push esi
push esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x20], 0x400
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x14]
call edi
lea eax, [ebp + 0x1c]
push eax
call fcn.0043d03a
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x10]
je 0x40c9cd
lea eax, [ebp + 0x1c]
push eax
call fcn.00401130
push esi
push 1
lea ecx, [ebp]
call fcn.00401330
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x81c]
xor ecx, ebp
call fcn.0043ca22
add ebp, 0x820
leave
ret
Function at 0x40d07b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1380]
mov eax, 0x1400
call fcn.0043ed40
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0x137c], eax
push ebx
mov ebx, dword [ebp + 0x138c]
push esi
mov esi, dword [ebp + 0x1388]
push esi
lea eax, [ebp + 0x1d4]
push str._s.
push eax
call fcn.0040b5ff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x40d176
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40d176
cmp word [ebp - 0x50], 0x2e
je 0x40d0da
cmp word [ebp - 0x4e], 0
je 0x40d0da
cmp word [ebp - 0x4e], 0x2e
jne 0x40d10b
cmp word [ebp - 0x4c], 0
je 0x40d0da
and word [ebp + 0x1174], 0
push 0x206
lea eax, [ebp + 0x1176]
push 0
push eax
call fcn.0043d050
lea eax, [ebp - 0x50]
push eax
push esi
lea eax, [ebp + 0x9a4]
push 0x52de40
push eax
call fcn.0040b5ff
lea eax, [ebp + 0x1174]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040b938
lea eax, [ebp + 0x1174]
push ebx
push eax
call fcn.0043f326
add esp, 0x2c
test eax, eax
jne 0x40d0da
lea eax, [ebp + 0x9a4]
push eax
call fcn.0040cdf8
pop ecx
jmp 0x40d0da
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x137c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ca22
add ebp, 0x1380
leave
ret

Function at 0x40d5c9
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x40dfed
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov dword [esi + 4], ecx
pop esi
ret 4
Function at 0x40e01b
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xb94]
sub esp, 0xc14
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0xb90], eax
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x782]
push edi
push eax
mov word [ebp + 0x780], di
call fcn.0043d050
lea eax, [ebp + 0x780]
push str.C:log_
push eax
call fcn.0043d0f4
push esi
lea eax, [ebp + 0x372]
push edi
push eax
mov word [ebp + 0x370], di
call fcn.0043d050
push esi
lea eax, [ebp + 0x98a]
push edi
push eax
mov word [ebp + 0x988], di
call fcn.0043d050
add esp, 0x2c
push 0x104
lea eax, [ebp + 0x988]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x988]
push 0x5c
push eax
call fcn.0043ed6b
mov word [eax], di
push 0x3e6
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.0043d050
lea eax, [ebp + 0x780]
push eax
lea eax, [ebp + 0x578]
push str._sgswb.log
push eax
call fcn.0043d110
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x20
lea eax, [ebp + 0x578]
push eax
call esi
test eax, eax
je 0x40e1f4
lea eax, [ebp + 0x988]
push ebx
push eax
call fcn.0043d03a
lea eax, [ebp + eax*2 + 0x98a]
push eax
lea eax, [ebp + 0x370]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0x370]
push eax
lea eax, [ebp + 0x780]
push eax
lea eax, [ebp + 0x578]
push str._s_s.txt
push eax
call fcn.0043d110
lea eax, [ebp + 0xba0]
push eax
push dword [ebp + 0xb9c]
lea eax, [ebp - 0x78]
push 0x1f3
push eax
call fcn.00440880
add esp, 0x2c
lea eax, [ebp + 0x578]
push eax
mov word [ebp + 0x36e], di
mov dword [ebp - 0x7c], edi
call esi
xor ebx, ebx
inc ebx
test eax, eax
je 0x40e176
mov dword [ebp - 0x7c], ebx
lea eax, [ebp + 0x578]
push 0x52f198
push eax
call fcn.0044079b
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x40e1f3
cmp dword [ebp - 0x7c], edi
jne 0x40e1ab
push esi
push 2
lea eax, [ebp - 0x80]
push ebx
push eax
mov dword [ebp - 0x80], 0xfeff
call fcn.00440653
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
call fcn.0043d03a
push esi
add eax, eax
push eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.00440653
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xd
call fcn.00440653
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xa
call fcn.00440653
push esi
call fcn.00440478
add esp, 0x38
pop ebx
mov ecx, dword [ebp + 0xb90]
pop edi
xor ecx, ebp
pop esi
call fcn.0043ca22
add ebp, 0xb94
leave
ret
Function at 0x40e20b
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1fb4]
mov eax, 0x2034
call fcn.0043ed40
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0x1fb0], eax
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x1ba2]
push edi
push eax
mov word [ebp + 0x1ba0], di
call fcn.0043d050
lea eax, [ebp + 0x1ba0]
push str.C:log_
push eax
call fcn.0043d0f4
push esi
lea eax, [ebp + 0x1792]
push edi
push eax
mov word [ebp + 0x1790], di
call fcn.0043d050
push esi
lea eax, [ebp + 0x1daa]
push edi
push eax
mov word [ebp + 0x1da8], di
call fcn.0043d050
add esp, 0x2c
push 0x104
lea eax, [ebp + 0x1da8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x1da8]
push 0x5c
push eax
call fcn.0043ed6b
mov word [eax], di
push 0x7fe
lea eax, [ebp + 0xf92]
push edi
push eax
mov word [ebp + 0xf90], di
call fcn.0043d050
lea eax, [ebp + 0x1ba0]
push eax
lea eax, [ebp + 0x1998]
push str._sgswb.log
push eax
call fcn.0043d110
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x20
lea eax, [ebp + 0x1998]
push eax
call esi
test eax, eax
je 0x40e434
lea eax, [ebp + 0x1da8]
push ebx
push eax
call fcn.0043d03a
lea eax, [ebp + eax*2 + 0x1daa]
push eax
lea eax, [ebp + 0x1790]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0x1790]
push eax
lea eax, [ebp + 0x1ba0]
push eax
lea eax, [ebp + 0x1998]
push str._s_s.txt
push eax
call fcn.0043d110
lea eax, [ebp + 0x1fc0]
push eax
push dword [ebp + 0x1fbc]
lea eax, [ebp + 0xf90]
push 0x3ff
push eax
call fcn.00440880
push edi
call fcn.0043fa3e
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], edx
call fcn.0043f75a
lea ecx, [ebp + 0xf90]
push ecx
push dword [eax]
mov ecx, dword [eax + 0x10]
push dword [eax + 4]
inc ecx
push dword [eax + 8]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push ecx
add eax, 0x76c
push eax
lea eax, [ebp - 0x70]
push str.__d__d__d__d__d__d_:_s
push eax
call fcn.0043d110
add esp, 0x58
lea eax, [ebp + 0x1998]
push eax
mov word [ebp + 0x178e], di
mov dword [ebp - 0x74], edi
call esi
xor ebx, ebx
inc ebx
test eax, eax
je 0x40e3b6
mov dword [ebp - 0x74], ebx
lea eax, [ebp + 0x1998]
push 0x52f198
push eax
call fcn.0044079b
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x40e433
cmp dword [ebp - 0x74], edi
jne 0x40e3eb
push esi
push 2
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0x78], 0xfeff
call fcn.00440653
add esp, 0x10
lea eax, [ebp - 0x70]
push eax
call fcn.0043d03a
push esi
add eax, eax
push eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00440653
push esi
push 2
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x74], 0xd
call fcn.00440653
push esi
push 2
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x74], 0xa
call fcn.00440653
push esi
call fcn.00440478
add esp, 0x38
pop ebx
mov ecx, dword [ebp + 0x1fb0]
pop edi
xor ecx, ebp
pop esi
call fcn.0043ca22
add ebp, 0x1fb4
leave
ret