joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002ed40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100b876b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x100f6f50]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
lea eax, [esp + 0x4c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1002edef
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x4023
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x1002edef
push 0x1b
push str.Cannot_set_logging_location
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.10058f70
mov dword [esp + 0x260], 0
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x28]
call fcn.10056080
push 0x100e3b10
lea eax, [esp + 0x28]
push eax
call fcn.100909fc
lea eax, [esp + 0x4c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002edf6
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, 0x10104d80
call fcn.10058390
push 0xf
push str.NvidiaLogging_
mov ecx, 0x10104d80
call fcn.10040440
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.1008db44
add esp, 0x260
ret

Function at 0x1002fac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b9bb1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x14], ebx
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.10059df0
mov dword [esp + 0x34], 1
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.10044480
push 0xffffffffffffffff
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push ebx
mov word [esi + 4], cx
push eax
mov ecx, esi
call fcn.10059df0
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x1002fb63
mov edx, dword [esp + 0x14]
push edx
call fcn.10063187
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x10030540
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100b8700
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebx, dword [edi + 0x14]
xor ebp, ebp
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], eax
jb 0x10030582
mov eax, dword [eax]
push ebp
push ebp
push ebp
push ebp
push ebx
push eax
push ebp
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x74], 0
test esi, esi
jle 0x100305e3
push esi
call fcn.1007dc9e
add esp, 4
mov ecx, eax
lea edx, [esp + 0x18]
call fcn.100304e0
cmp dword [edi + 0x18], 8
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
jb 0x100305ce
mov eax, dword [eax]
push 0
push 0
push esi
push ebp
push ebx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003062d
cmp dword [esp + 0x20], esi
jne 0x1003062d
mov dword [esp + 0x74], 0xffffffff
push ebp
call fcn.1008fa7d
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4
push 0x14
push str.Error_writing_to_log
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.10058f70
mov byte [esp + 0x74], 1
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
call fcn.10056080
push 0x100e3b10
lea eax, [esp + 0x44]
push eax
call fcn.100909fc
int3

Function at 0x100307a0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x100b86c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0xfffe
call fcn.1007dc9e
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
cmp dword [edi + 0x18], 8
jb 0x100307e8
mov eax, dword [edi + 4]
jmp 0x100307eb
lea eax, [edi + 4]
push 0x7fff
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10030800
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.10058390
mov dword [esp + 0x14], 0xffffffff
test esi, esi
je 0x1003082d
push esi
call fcn.10063187
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x10030b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b86a1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov dword [esp + 0xc], 0
call fcn.10030d40
mov dword [esp + 0x30], 1
push eax
push esi
push edi
call fcn.10030cc0
add esp, 0xc
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
cmp dword [esp + 0x24], 8
jb 0x10030b70
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10063187
add esp, 4
xor edx, edx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], dx
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret 4

Function at 0x10030f90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b86a1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call fcn.10030f30
mov dword [esp + 0x30], 1
push eax
push esi
mov esi, dword [esp + 0x40]
push esi
call fcn.10030cc0
add esp, 0xc
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
cmp dword [esp + 0x24], 8
jb 0x10031000
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10063187
add esp, 4
xor edx, edx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], dx
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 4

Function at 0x100315f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100b7a03
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.10055f90
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
lea eax, [edi + 0x30]
push edx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edx
push eax
mov byte [ecx + 4], dl
call fcn.10059540
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x10034e90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100bb7fa
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
cmp eax, ecx
jl 0x10034ee9
test byte [esi + 0x68], 4
je 0x10034fce
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.10036540
mov dword [esp + 0x38], 0
push eax
call fcn.100364d0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x10034fce
mov dword [esp + 0x10], edi
cmp edi, eax
jb 0x10034f15
call fcn.1008ddef
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + eax]
cmp edx, dword [esi + 0x40]
jne 0x10034fa9
cmp byte [esi + 0xb8], 0
je 0x10034f3d
lea ecx, [esi + 0xbc]
mov dword [esp + 0x14], ecx
jmp 0x10034f45
mov dword [esp + 0x14], 0
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10034f64
call fcn.1008ddef
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
sub ecx, ebx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x10034f86
call fcn.1008ddef
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea edx, [eax + ebx + 4]
push edx
mov edx, dword [esi + 0xc]
add edx, eax
mov eax, dword [ebp + 8]
push edx
lea ecx, [esi + 0x6c]
push eax
call fcn.100349c0
add esp, 0x10
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
add dword [esp + 0x10], 0x64
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x10034f15
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10035ba0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100bb7fa
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
cmp eax, ecx
jl 0x10035bf9
test byte [esi + 0x68], 4
je 0x10035cde
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.10036540
mov dword [esp + 0x38], 0
push eax
call fcn.100364d0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x10035cde
mov dword [esp + 0x10], edi
cmp edi, eax
jb 0x10035c25
call fcn.1008ddef
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + eax]
cmp edx, dword [esi + 0x40]
jne 0x10035cb9
cmp byte [esi + 0xb8], 0
je 0x10035c4d
lea ecx, [esi + 0xbc]
mov dword [esp + 0x14], ecx
jmp 0x10035c55
mov dword [esp + 0x14], 0
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10035c74
call fcn.1008ddef
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
sub ecx, ebx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x10035c96
call fcn.1008ddef
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea edx, [eax + ebx + 4]
push edx
mov edx, dword [esi + 0xc]
add edx, eax
mov eax, dword [ebp + 8]
push edx
lea ecx, [esi + 0x6c]
push eax
call fcn.100356e0
add esp, 0x10
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
add dword [esp + 0x10], 0x64
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x10035c25
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100368a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b998b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x18], ebx
lea ebp, [edi + 8]
lea ecx, [edi + 0xc]
mov dword [ebp], 0x100d2318
call fcn.100519d0
mov dword [esp + 0x28], ebx
mov esi, dword [esp + 0x34]
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x20], 1
call fcn.10036800
mov dword [esp + 0x28], 2
mov ecx, dword [edi]
mov eax, ebp
mov edx, dword [eax]
mov dword [esp + 0x34], ecx
mov ecx, dword [edx + 4]
mov dword [eax + ecx], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.10051880
mov eax, dword [esp + 0x34]
push 0x20
mov ecx, esi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
call fcn.100518e0
mov word [esi + 0x30], ax
cmp dword [esi + 0x28], ebx
jne 0x1003695e
mov eax, dword [esi + 8]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, esi
call fcn.10053b30
mov dword [esi + 4], ebx
mov dword [esp + 0x28], 4
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
mov dword [edx + edi + 8], vtable.boost::io::basic_oaltstringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esp + 0x28], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x10037110
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100bb7fa
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
cmp eax, ecx
jl 0x10037169
test byte [esi + 0x68], 4
je 0x1003724e
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.10036540
mov dword [esp + 0x38], 0
push eax
call fcn.100364d0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x1003724e
mov dword [esp + 0x10], edi
cmp edi, eax
jb 0x10037195
call fcn.1008ddef
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + eax]
cmp edx, dword [esi + 0x40]
jne 0x10037229
cmp byte [esi + 0xb8], 0
je 0x100371bd
lea ecx, [esi + 0xbc]
mov dword [esp + 0x14], ecx
jmp 0x100371c5
mov dword [esp + 0x14], 0
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x100371e4
call fcn.1008ddef
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
sub ecx, ebx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x10037206
call fcn.1008ddef
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea edx, [eax + ebx + 4]
push edx
mov edx, dword [esi + 0xc]
add edx, eax
mov eax, dword [ebp + 8]
push edx
lea ecx, [esi + 0x6c]
push eax
call fcn.10036c50
add esp, 0x10
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
add dword [esp + 0x10], 0x64
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x10037195
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10037d20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ba432
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x10037d79
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x4c]
push ecx
push edx
call fcn.1003e340
add esp, 8
jmp 0x10037e95
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
cmp eax, ecx
jge 0x10037da3
test byte [esi + 0x68], 2
je 0x10037da3
push ecx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10037980
mov dword [esp + 0x38], 0
push eax
call fcn.10037910
test byte [esi + 0x3c], 4
je 0x10037e01
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.10037ad0
mov dword [esp + 0x38], 1
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.1003e340
add esp, 8
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x10037de5
mov edx, dword [esp + 0x14]
push edx
call fcn.10063187
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
jmp 0x10037e95
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x4c]
push ecx
push edx
call fcn.1003e340
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add esp, 8
xor ebx, ebx
add eax, edx
je 0x10037e95
mov dword [esp + 0xc], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x10037e50
call fcn.1008ddef
mov edi, dword [esi + 0xc]
add edi, dword [esp + 0xc]
mov eax, dword [ebp + 8]
lea edx, [edi + 4]
push edx
push eax
call fcn.1003e340
mov ecx, dword [ebp + 8]
add edi, 0x20
push edi
push ecx
call fcn.1003e340
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
add dword [esp + 0x1c], 0x64
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add esp, 0x10
cmp ebx, eax
jb 0x10037e30
mov byte [esi + 0x48], 1
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003c8a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ba3f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call edx
mov dword [esp + 0x38], 0
push 0x100d1034
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call fcn.1003e340
add esp, 0xc
push eax
call fcn.10040a20
add esp, 8
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x1003c91e
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10063187
add esp, 4
mov eax, dword [edi]
xor edx, edx
lea ecx, [esi + 8]
mov word [esp + 0x14], dx
mov edx, dword [eax + 0xc]
push ecx
mov ecx, edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call edx
mov eax, dword [esi + 4]
push 0x100d103c
push eax
call fcn.10040a20
add esp, 8
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1003c980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ba3f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
test eax, eax
jbe 0x1003c9d3
mov eax, dword [esi + 4]
push 0x100d1024
push ecx
push ecx
push eax
call fcn.1003e340
add esp, 0xc
push eax
call fcn.10040a20
add esp, 8
mov edi, dword [ebp + 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 4]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call edx
mov dword [esp + 0x38], 0
push 0x100d1034
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call fcn.1003e340
add esp, 0xc
push eax
call fcn.10040a20
add esp, 8
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x1003ca24
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10063187
add esp, 4
mov eax, dword [edi]
xor edx, edx
mov word [esp + 0x14], dx
mov edx, dword [eax + 0xc]
push esi
mov ecx, edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call edx
mov eax, dword [esi + 4]
push 0x100d103c
push eax
call fcn.10040a20
add esp, 8
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10040560
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x100b9bb1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x14], ebx
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.10059df0
mov dword [esp + 0x34], 1
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100405c0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.10040440
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.10059df0
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x10040615
mov eax, dword [esp + 0x14]
push eax
call fcn.10063187
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x10040640
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x100bf0ee
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.1003efd0
mov dword [esp + 0x54], 0
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x40], esp
push ecx
call fcn.1003fdc0
mov byte [esp + 0x6c], 1
push 0
sub esp, 0x74
mov edx, esp
mov dword [esp + 0xbc], esp
push edx
call fcn.1003fe40
mov byte [esp + 0xe4], 2
mov dword [esp + 0xe4], 0xffffffff
call fcn.1003ec90
mov dword [esp + 0x3c], 3
xor eax, eax
mov word [esp + 0x1c], ax
mov eax, 0x100cb6c0
mov dword [esi], vtable.boost::date_time::time_facet_class_boost::posix_time::ptime__wchar_t__class_std::ostreambuf_iterator_wchar_t__struct_std::char_traits_wchar_t___.0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100406f0
sub eax, edx
sar eax, 1
push eax
push 0x100cb6c0
lea ecx, [esp + 0x20]
call fcn.10058390
mov byte [esp + 0x3c], 4
lea ecx, [esi + 0x160]
push ecx
mov edi, str._H:_M:_S_F
lea ecx, [esp + 0x1c]
call fcn.10040560
add esp, 4
mov byte [esp + 0x3c], 6
cmp dword [esp + 0x30], 8
jb 0x10040744
mov edx, dword [esp + 0x1c]
push edx
call fcn.10063187
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x3c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x34
ret 4