joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027c0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x41d034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, edx
mov esi, ecx
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x18
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push 0x5c
push eax
call dword [sym.imp.MSVCR110.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x402842
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call sub.MSVCR110.dll_memset
push str.testmode.ini
lea eax, [ebp - 0x20c]
push eax
push str._s_s
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x2c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4028c0
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x61c]
push eax
push dword [ebp + 8]
push esi
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
mov dword [edi], eax
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret

Function at 0x4028f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41d034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
call fcn.004076d0
test al, al
mov ecx, 0x200
cmovne esi, ecx
lea eax, [ebp - 8]
push eax
or esi, 0x20006
push esi
push 0
push str.SoftwareFilseclab
push 0x80000001
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40294c
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
push str.UpdateServer
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push esi
push 0
push str.SoftwareFilseclab
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40293a
push str.UpdateServer
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
Function at 0x4029b0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41d034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov edi, ecx
call sub.MSVCR110.dll_memset
push 0x410d28
push edi
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
push 0x410d28
push 0x410d48
push edi
push str._s_s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x44
cmp word [ebp - 0x20c], 0
pop edi
je 0x402a5b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402a89
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402a89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret

Function at 0x402aa0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x41d034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x210]
push ecx
push eax
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push str.Global101054E0_E6BC_4269_9A4E_A169DDA85331
push str._s__u
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x20
lea ecx, [ebp - 0x21c]
xor esi, esi
call fcn.00407760
test eax, eax
je 0x402b55
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x402b55
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x218], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402b81
test esi, esi
je 0x402b6d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
Function at 0x402ba0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e280
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x41d034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x41e410], 0
je 0x402bdf
mov eax, 1
jmp 0x402d2e
push 0x2000
call dword [sym.imp.MSVCR110.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x402bfa
xor eax, eax
jmp 0x402d2e
push 0x1000
push esi
push str.Path
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
test ecx, ecx
je 0x402bf3
cmp ecx, 0x1000
jbe 0x402c48
mov eax, dword [edi + 0x10]
inc eax
add eax, ecx
mov dword [ebp - 0x14], eax
add eax, eax
push eax
push esi
call dword [sym.imp.MSVCR110.dll_realloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x402bf3
push dword [ebp - 0x14]
push esi
push str.Path
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x402bf3
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403140
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x402c6c
mov eax, dword [edi]
jmp 0x402c6e
mov eax, edi
push dword [edi + 0x10]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004032b0
push 1
mov esi, eax
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0x3b
call fcn.004032b0
cmp esi, 0xffffffff
je 0x402c9c
cmp esi, eax
jbe 0x402d0b
push ecx
mov edx, edi
lea ecx, [ebp - 0x5c]
call fcn.004039c0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00403a80
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
call fcn.00403210
lea ecx, [ebp - 0x44]
call fcn.00401dc0
lea ecx, [ebp - 0x5c]
call fcn.00401dc0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x402d0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_call_SetEnvironmentVariable__Error___d.
push 0xffffffffffffffff
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLog]
add esp, 0xc
xor esi, esi
jmp 0x402d1a
mov dword [0x41e410], 1
mov esi, 1
cmp dword [ebp - 0x18], 8
jb 0x402d2c
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
Function at 0x4041c0
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e3f8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x41d034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], edi
test bl, bl
jne 0x404246
cmp dword [esi + 0x14], 8
jb 0x404203
mov eax, dword [esi]
jmp 0x404205
mov eax, esi
test eax, eax
je 0x404246
cmp word [eax], 0
je 0x404246
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404246
cmp dword [esi + 0x14], 8
jb 0x404225
mov eax, dword [esi]
jmp 0x404227
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x40423d
mov eax, dword [esi]
jmp 0x40423f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x40424e
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40429a
test bl, bl
je 0x404318
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [ebx + 1]
push ecx
call fcn.0040c22d
mov edi, eax
add esp, 4
test edi, edi
jne 0x4042a1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x404387
push ebx
push 0
push edi
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x34]
push 0
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404293
mov eax, dword [ebp - 0x34]
cmp eax, 2
jbe 0x40430f
cmp eax, ebx
ja 0x40430f
push edi
lea ecx, [ebp - 0x4c]
mov byte [eax + edi], 0
call fcn.00401cc0
push ecx
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0
call fcn.00406f10
mov ecx, dword [ebp - 0x18]
add esp, 4
push eax
call fcn.00403210
lea ecx, [ebp - 0x64]
call fcn.00401dc0
lea ecx, [ebp - 0x4c]
call fcn.00401740
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
jmp 0x404378
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ecx
mov edx, edi
lea ecx, [ebp - 0x30]
call fcn.00406e00
add esp, 4
cmp dword [ebp - 0x1c], 0x10
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404363
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x404369
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x1c], 0x10
jb 0x40437b
push dword [ebp - 0x30]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
Function at 0x4047d0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41d034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov esi, ecx
lea eax, [ebp - 0x20a]
push eax
mov dword [esi], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
mov edx, str.cfgiSafeUpdate.ini
lea ecx, [ebp - 0x20c]
call fcn.00403bd0
test eax, eax
je 0x40489a
cmp word [ebp - 0x20c], 0
je 0x4048ae
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4048ae
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [ebp - 0x20c]
push eax
push 0
push str.uistart
push str.upcdn
call edi
test eax, eax
je 0x404861
or dword [esi], 1
lea eax, [ebp - 0x20c]
push eax
push 0
push str.uiupdate
push str.upcdn
call edi
test eax, eax
je 0x40487d
or dword [esi], 2
lea eax, [ebp - 0x20c]
push eax
push 0
push str.uptime
push str.upcdn
call edi
pop edi
test eax, eax
je 0x40489a
or dword [esi], 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret

Function at 0x4048c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e36b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x41d034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
test esi, esi
je 0x4049e3
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov edx, str.cfgiSafeUpdate.ini
lea ecx, [ebp - 0x218]
call fcn.00403bd0
test eax, eax
je 0x4049e1
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
push 0
push 0x411194
push str.uptime
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4049e1
push esi
lea ecx, [ebp - 0x248]
call fcn.00403140
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.00407030
cmp dword [eax + 0x14], 8
jb 0x40497f
mov eax, dword [eax]
push eax
push 0x104
push esi
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 0xc
cmp dword [ebp - 0x21c], 8
jb 0x4049a9
push dword [ebp - 0x230]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x4049da
push dword [ebp - 0x248]
call esi
add esp, 4
mov eax, 1
jmp 0x4049e3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
Function at 0x404a00
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41d034]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov edx, str.cfgiSafeUpdate.ini
lea ecx, [ebp - 0x20c]
call fcn.00403bd0
test eax, eax
je 0x404a88
cmp word [ebp - 0x20c], 0
je 0x404a88
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404a88
lea eax, [ebp - 0x20c]
push eax
push 0
push str.interval
push str.uptime
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret

Function at 0x404aa0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41d034]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov edx, str.cfgiSafeUpdate.ini
lea ecx, [ebp - 0x20c]
call fcn.00403bd0
test eax, eax
je 0x404b31
cmp word [ebp - 0x20c], 0
je 0x404b31
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404b31
lea eax, [ebp - 0x20c]
push eax
push 0
push str.random
push str.uprandom
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x404b31
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret

Function at 0x404b50
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41d034]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov edx, str.cfgiSafeUpdate.ini
lea ecx, [ebp - 0x20c]
call fcn.00403bd0
test eax, eax
je 0x404be2
cmp word [ebp - 0x20c], 0
je 0x404be2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404be2
lea eax, [ebp - 0x20c]
push eax
push 0x2d
push str.seed
push str.uprandom
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, 0x2d
test eax, eax
cmove eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x2d
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
Function at 0x405000
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41d034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x41e440]
mov ecx, esi
call fcn.00404ee0
test eax, eax
jne 0x4050ba
mov eax, dword [esi + 4]
test eax, eax
je 0x40503b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x405050
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
cmp dword [esi + 0xc], 0
jne 0x405068
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
test eax, eax
jne 0x405091
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 4
push esi
push dword [esi + 0xc]
mov dword [ebp - 8], 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x40507d
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040c4b2
mov esp, ebp
pop ebp
ret

Function at 0x4050d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
call fcn.00404ee0
test eax, eax
je 0x405134
mov eax, dword [esi + 8]
test eax, eax
je 0x4050ff
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40510a
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 4]
test eax, eax
je 0x40511f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x405134
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
xor eax, eax
pop esi
ret
Function at 0x4079d0
Capabilities:
Create directory

Disassembly:
push 0x208
xor eax, eax
push 0x41e448
push eax
mov dword [0x41e85c], 0
mov word [0x41e448], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x41e448
call dword [sym.imp.MSVCR110.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x407a0d
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, 0x41e448
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407a15
push esi
push edi
mov edi, dword [sym.imp.MSVCR110.dll_wcscat_s]
sub ecx, edx
sar ecx, 1
mov esi, 0x208
mov eax, esi
sub eax, ecx
push 0x417ed8
push eax
lea eax, [ecx*2 + 0x41e448]
push eax
call edi
add esp, 0xc
push 0
push 0x41e448
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x41e448
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407a60
sub ecx, edx
sar ecx, 1
mov eax, esi
sub eax, ecx
push 0x417e78
push eax
lea eax, [ecx*2 + 0x41e448]
push eax
call edi
mov ecx, 0x41e448
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407a90
sub ecx, edx
sar ecx, 1
push 0x411244
sub esi, ecx
lea eax, [ecx*2 + 0x41e448]
push esi
push eax
call edi
add esp, 0xc
push 0x4077d0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
pop edi
mov dword [0x41e444], eax
mov dword [0x41e858], 1
mov al, 1
pop esi
ret

Function at 0x40adb0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ade1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.0040dd30
mov dword [esp + 0xc], eax
test esi, esi
jne 0x40ade9
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x418428
lea ecx, [esp + 8]
call fcn.0040ac50
int3
Function at 0x40afe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ebb0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x41d034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00401f70
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x40b06b
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40bc70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ebd8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x41d034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00401f70
mov dword [edi + 0x2c], vtable.boost::exception.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4