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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10062070]
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
lea ecx, [ebp - 0x20c]
call fcn.10034140
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100364a2
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
mov dword [ebp - method.CProfileIni.virtual_0], vtable.CProfileIni.0
call sub.MSVCR110.dll_memset
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10036471
xor ecx, ecx
cmp ecx, 1
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d966
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x414]
push eax
push 0
push str.silence
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, eax
xor eax, eax
cmp ecx, 1
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d966
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.1003d966
mov esp, ebp
pop ebp
ret

Function at 0x100364c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044858
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10062070]
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 edi, edx
mov ebx, dword [ebp + 8]
xor eax, eax
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.1000d980
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmp edx, 8
lea ecx, [ebp - 0x2c]
cmovae ecx, esi
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10036546
push 1
push 0x1004adc8
lea ecx, [ebp - 0x2c]
call fcn.1000b900
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x34]
push ecx
cmp edx, 8
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x2c]
cmovae eax, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
shrd edx, ecx, 0x14
shr ecx, 0x14
mov ecx, dword [ebp - 0x30]
mov dword [edi], edx
mov edx, dword [ebp - 0x34]
shrd edx, ecx, 0x14
shr ecx, 0x14
cmp dword [ebp - 0x18], 8
mov esi, eax
mov dword [ebx], edx
jb 0x10036594
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
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003d966
mov esp, ebp
pop ebp
ret
Function at 0x10036650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
test edi, edi
je 0x100366f6
test edx, edx
je 0x100366f6
push ebx
mov ebx, dword [edi + 0x3c]
add ebx, edi
je 0x1003667b
lea eax, [ebx + 0x78]
test eax, eax
jne 0x10036683
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
add eax, edi
push esi
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x20]
add ecx, edi
add esi, edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 4], esi
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x100366da
lea esp, [esp]
movsx eax, word [ecx + esi*2]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push edx
mov eax, dword [eax + esi*4]
add eax, edi
push eax
call dword [sym.imp.MSVCR110.dll__stricmp]
add esp, 8
test eax, eax
je 0x100366e3
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
inc esi
cmp esi, dword [ebp - 8]
jb 0x100366b0
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
pop esi
mov eax, dword [ecx + eax*4]
add eax, dword [ebx + 0x34]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10036940
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x10062070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x10036b68
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], 0x11c
call fcn.10036860
test eax, eax
jne 0x10036994
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], 0x114
call fcn.10036860
test eax, eax
je 0x10036b68
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100369b7
lea ecx, [ebp - 0x28]
push ecx
call eax
jmp 0x100369c1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x100520b8
push 0x14
push esi
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
mov eax, dword [ebp - 0x134]
add esp, 0xc
sub eax, 2
jne 0x10036b54
cmp dword [ebp - 0x140], 6
push edi
mov edi, dword [sym.imp.MSVCR110.dll_wcscat_s]
jne 0x10036a6a
cmp dword [ebp - 0x13c], 3
jne 0x10036a07
push 0x100520c0
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x13c], 2
jne 0x10036a1d
push 0x100520c8
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x13c], 1
jne 0x10036a40
cmp byte [ebp - 0x2a], 1
jne 0x10036a33
push 0x100520cc
jmp 0x10036a38
push 0x100520d0
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x13c], 0
jne 0x10036a63
cmp byte [ebp - 0x2a], 1
jne 0x10036a56
push str.vista
jmp 0x10036a5b
push str.2008
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x140], 6
jb 0x10036a8f
mov ax, word [ebp - 0x28]
cmp ax, 9
jne 0x10036a7d
push str._x64
jmp 0x10036a87
test ax, ax
jne 0x10036a8f
push str._x86
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x140], 5
jne 0x10036b53
cmp dword [ebp - 0x13c], 2
jne 0x10036b1e
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10036ab8
push str.2003_r2
jmp 0x10036adc
mov eax, 0x2000
cmp word [ebp - 0x2c], ax
je 0x10036ad7
cmp byte [ebp - 0x2a], 1
jne 0x10036ad7
cmp word [ebp - 0x28], 9
jne 0x10036ad7
push str.xp_x64
jmp 0x10036adc
push str.2003
push 0x14
push esi
call edi
add esp, 0xc
cmp byte [ebp - 0x2a], 1
je 0x10036b15
mov ax, word [ebp - 0x28]
cmp ax, 6
jne 0x10036afb
push str._ia64
jmp 0x10036b0d
cmp ax, 9
jne 0x10036b08
push str._x64
jmp 0x10036b0d
push str._x86
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x140], 5
jne 0x10036b53
cmp dword [ebp - 0x13c], 1
jne 0x10036b3d
push 0x10052148
push 0x14
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x140], 5
jne 0x10036b53
cmp dword [ebp - 0x13c], 0
jne 0x10036b53
push str.2000
push 0x14
push esi
call edi
add esp, 0xc
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d966
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1003d966
mov esp, ebp
pop ebp
ret
Function at 0x10036dd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 2
mov eax, ecx
dec ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 4]
test eax, eax
je 0x10036e5b
inc ecx
mov ebx, dword [esi]
add esi, 4
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x10063ec0]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x10063ec0]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x10063ec0]
xor edx, edi
mov eax, ebx
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x10063ec0]
xor edx, edi
dec ecx
jne 0x10036df6
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov ebx, dword [ebp - 0x10]
and ebx, 3
je 0x10036e98
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
nop
movzx ecx, byte [esi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10063ec0]
inc esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
dec ebx
jne 0x10036e70
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10038e70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10044a52
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10062070]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
mov eax, dword [0x10062070]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.100390d0
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.10039180
push ecx
mov dword [esp + 0x2c], 0
mov ecx, esp
mov dword [esp + 0x10], esp
push str.install.first.report
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
push eax
mov byte [esp + 0x34], 1
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_class_OUI::COString_const__]
mov ecx, esi
mov byte [esp + 0x30], 0
call fcn.100383f0
lea ecx, [esp + 0x14]
mov bl, al
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1003d966
mov esp, ebp
pop ebp
ret
Function at 0x10038f50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044a0c
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x10062070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x18
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call dword [sym.imp.MSVCR110.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x10038fe4
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x424]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_void_]
push str.bugreport.exe
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push str._s_s
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ouilibx.dll_public:_int___cdecl_OUI::COString::Format_wchar_t_const__]
push 0x44
lea eax, [ebp - 0x470]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x470]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x424]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1003909d
push 0xffffffffffffffff
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003d966
mov esp, ebp
pop ebp
ret
Function at 0x1003a4d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10062070]
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 dword [ebp - 0x48], edx
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0
jb 0x1003a51a
mov eax, dword [esi]
jmp 0x1003a51c
mov eax, esi
test eax, eax
je 0x1003a664
cmp word [eax], 0
je 0x1003a664
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
je 0x1003a664
xor eax, eax
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.1000d980
push dword [ebp + 0x18]
mov edx, dword [ebp - 0x48]
push dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.10039aa0
add esp, 0xc
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.10039300
test eax, eax
je 0x1003a621
cmp dword [ebp - 0x18], 8
jb 0x1003a5a2
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1003a5dc
jmp 0x1003a5a5
lea eax, [ebp - 0x2c]
cmp word [eax], 0
je 0x1003a5dc
push eax
call ebx
cmp eax, 0xffffffff
je 0x1003a5dc
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x1003a5e6
mov eax, dword [esi]
jmp 0x1003a5e8
mov eax, esi
test eax, eax
je 0x1003a621
cmp word [eax], 0
je 0x1003a621
push eax
call ebx
cmp eax, 0xffffffff
je 0x1003a621
cmp dword [esi + 0x14], 8
jb 0x1003a604
mov eax, dword [esi]
jmp 0x1003a606
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x1003a61a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.1000d740
cmp dword [ebp - 0x30], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x1003a640
push dword [ebp - 0x44]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x1003a684
push dword [ebp - 0x2c]
call esi
add esp, 4
jmp 0x1003a684
xor eax, eax
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push 0x10047900
mov ecx, edi
mov word [edi], ax
call fcn.1000dd10
mov eax, edi
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.1003d966
mov esp, ebp
pop ebp
ret
Function at 0x1003c500
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100450fe
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10062070]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 0xc
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], ebx
test edi, edi
je 0x1003c59e
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [edi + 8], ebx
call fcn.1003cb60
mov esi, eax
mov byte [esp + 0x30], 1
mov ebx, 1
push 0x2728
mov ecx, edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.curlpp.dll_public:_void___thiscall_curlpp::OptionBase::constructor_enum_CURLoption_]
mov dword [esp + 0x30], 2
push esi
mov ecx, edi
mov dword [edi], vtable.curlpp::Option_class_std::list_class_utilspp::clone_ptr_class_curlpp::FormPart___class_std::allocator_class_utilspp::clone_ptr_class_curlpp::FormPart____.0
mov dword [edi + 8], 0
call fcn.1003caa0
mov dword [edi], vtable.curlpp::OptionTrait_class_std::list_class_utilspp::clone_ptr_class_curlpp::FormPart___class_std::allocator_class_utilspp::clone_ptr_class_curlpp::FormPart_____10024_.0
jmp 0x1003c5a0
xor edi, edi
test bl, 1
je 0x1003c5bb
lea ecx, [esp + 0x1c]
call fcn.1003aff0
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003cf50
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004527b
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x10062070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003d0c2
push 0x1004adac
lea eax, [ebp - 0x154]
push esi
push eax
mov dword [ebp - 0x154], 0
call dword [sym.imp.MSVCR110.dll__wfopen_s]
mov esi, dword [ebp - 0x154]
add esp, 0xc
test esi, esi
je 0x1003d0c2
push 0x103
lea eax, [ebp - 0x11b]
push 0
push eax
mov byte [ebp - 0x11c], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x11c]
push esi
push 0x104
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fread]
push dword [ebp - 0x154]
mov esi, eax
call dword [sym.imp.MSVCR110.dll_fclose]
add esp, 0x14
test esi, esi
je 0x1003d0c2
lea ecx, [ebp - 0x11c]
call fcn.100297d0
mov esi, eax
test esi, esi
je 0x1003d0c2
push esi
lea ecx, [ebp - 0x14c]
call fcn.10011680
lea edx, [ebp - 0x14c]
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0
call fcn.10023a40
lea ecx, [ebp - 0x14c]
call fcn.100116e0
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [ebp - 0x120], 8
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push eax
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x150], 0
call fcn.1003cd70
test al, al
je 0x1003d0b7
cmp dword [ebp - 0x120], 8
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push eax
mov edx, 0x28
mov ecx, edi
call fcn.10003070
lea ecx, [ebp - 0x134]
call fcn.10003040
mov al, 1
jmp 0x1003d0d7
lea ecx, [ebp - 0x134]
call fcn.10003040
push ecx
push str.0.0.0
push ecx
mov edx, 0x14
mov ecx, edi
call fcn.10003110
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003d966
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003f860
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1003f8d0
push 0xffffffffffffffff
push 0x10040088
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10062070]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x10065878]
test eax, eax
jne 0x1003f902
xor ebx, ebx
jmp 0x1003f90b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or ecx, 0xffffffff
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1003f94f
jmp 0x1003f936
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebx + 0x14], 0
mov edi, dword [ebx + 0x10]
jne 0x1003f989
test edi, edi
jne 0x1003f990
push edi
call fcn.1003fa30
add esp, 4
or ecx, 0xffffffff
mov dword [esp + 0x20], 0xffffffff
test ebx, ebx
je 0x1003f975
lea eax, [ebx + 4]
lock xadd dword [eax], ecx
dec ecx
jne 0x1003f975
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax]
push ebx
push 0
call esi
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test edi, edi
je 0x1003f9c8
lea ecx, [ecx]
mov eax, dword [edi + 4]
mov dword [ebx + 0x10], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x1003f9b9
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebp
push edi
push 0
call esi
push eax
call ebp
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x1003f990
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x1003f930
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x14], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1003f9e8
mov eax, dword [ecx]
push dword [esi + 0xc]
call dword [eax + 4]
mov edi, dword [esi + 8]
test edi, edi
je 0x1003fa15
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1003fa15
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x1003fa15
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov esi, dword [ebx + 0x14]
test esi, esi
jne 0x1003f9d3
jmp 0x1003f930
Function at 0x1003f8d0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1003f8d0
push 0xffffffffffffffff
push 0x10040088
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10062070]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x10065878]
test eax, eax
jne 0x1003f902
xor ebx, ebx
jmp 0x1003f90b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or ecx, 0xffffffff
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1003f94f
jmp 0x1003f936
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebx + 0x14], 0
mov edi, dword [ebx + 0x10]
jne 0x1003f989
test edi, edi
jne 0x1003f990
push edi
call fcn.1003fa30
add esp, 4
or ecx, 0xffffffff
mov dword [esp + 0x20], 0xffffffff
test ebx, ebx
je 0x1003f975
lea eax, [ebx + 4]
lock xadd dword [eax], ecx
dec ecx
jne 0x1003f975
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax]
push ebx
push 0
call esi
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test edi, edi
je 0x1003f9c8
lea ecx, [ecx]
mov eax, dword [edi + 4]
mov dword [ebx + 0x10], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x1003f9b9
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebp
push edi
push 0
call esi
push eax
call ebp
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x1003f990
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x1003f930
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x14], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1003f9e8
mov eax, dword [ecx]
push dword [esi + 0xc]
call dword [eax + 4]
mov edi, dword [esi + 8]
test edi, edi
je 0x1003fa15
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1003fa15
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x1003fa15
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov esi, dword [ebx + 0x14]
test esi, esi
jne 0x1003f9d3
jmp 0x1003f930
Function at 0x1003fa30
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100400b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10062070]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x1003f7c0
push 0x10065870
call fcn.1003f460
mov eax, dword [0x10065878]
add esp, 8
test eax, eax
je 0x1003fa89
push dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_void_]
mov dword [esp + 0x10], 0
mov dword [esp + 4], vtable.boost::thread_resource_error.0
lea eax, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.100219b0
int3