joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10163dc8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101c3584]
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.1000bff0
mov dword [esp + 0x18], 0
test edi, edi
je 0x10018a54
add edi, 0x28
jmp 0x10018a56
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x10018a6e
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.0
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 0x10019a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10163a38
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101c3584]
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.100011b0
mov dword [esi], vtable.boost::gregorian::bad_day_of_month.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x10019a7a
add edi, 0x28
jmp 0x10019a7c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x10019a94
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.0
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 0x1001a150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10163a38
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101c3584]
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.100011b0
mov dword [esi], vtable.boost::gregorian::bad_month.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x1001a19a
add edi, 0x28
jmp 0x1001a19c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x1001a1b4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.0
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 0x1001a9d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10163a38
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101c3584]
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.100011b0
mov dword [esi], vtable.boost::gregorian::bad_year.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x1001aa1a
add edi, 0x28
jmp 0x1001aa1c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x1001aa34
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.0
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 0x1002baf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10164770
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c3584]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
call fcn.1005ece0
mov esi, eax
inc dword [esi]
mov eax, dword [esi]
cmp eax, 1
ja 0x1002bb3d
call fcn.1005f090
test al, al
jne 0x1002bb3d
dec dword [esi]
xor ebx, ebx
mov edi, 0xf
mov eax, 0x101c4588
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002bb58
sub eax, edx
push eax
push 0x101c4588
lea ecx, [esp + 0x44]
call fcn.100019f0
mov dword [esp + 0x80], ebx
push 1
push 0x101a5984
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.100019f0
mov byte [esp + 0x80], 1
push 1
push 0x101a6db8
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.100019f0
mov byte [esp + 0x80], 2
xor esi, esi
mov ebp, 0x10
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], ebp
jae 0x1002bbd4
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x34]
push ecx
push esi
push eax
lea ecx, [esp + 0x48]
call fcn.100324b0
mov esi, eax
lea ecx, [esp + 0x3c]
cmp esi, 0xffffffff
je 0x1002bc08
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x60]
push edx
push eax
push esi
call fcn.10007300
add esi, dword [esp + 0x6c]
jmp 0x1002bbc6
push 0xa
push str._Debug.cfg
call fcn.100013d0
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], ebp
jae 0x1002bc22
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.1000ba40
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x84], 3
call fcn.1005e470
mov byte [esp + 0x84], 2
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
add esp, 4
cmp eax, edx
je 0x1002bc6a
cmp eax, ebx
je 0x1002bc6a
push eax
call fcn.1005a120
add esp, 4
cmp dword [esp + 0x70], ebp
jb 0x1002bc7d
mov eax, dword [esp + 0x5c]
push eax
call fcn.1013d576
add esp, 4
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x38], ebp
jb 0x1002bc9c
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1013d576
add esp, 4
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp dword [esp + 0x54], ebp
jb 0x1002bcbb
mov edx, dword [esp + 0x40]
push edx
call fcn.1013d576
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1013d581
add esp, 0x70
ret
Function at 0x1002ca40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10164180
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c3584]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
mov edi, 0xf
push 0x101a58ac
lea ecx, [esp + 0x74]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
call fcn.100019f0
mov dword [esp + 0x90], ebx
push ebx
push 0x101a58ac
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.100019f0
mov byte [esp + 0x90], 1
push ebx
push 0x101a58ac
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.100019f0
mov byte [esp + 0x90], 2
push ebx
push 0x101a58ac
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.100019f0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x54]
push ecx
push esi
lea ebx, [esp + 0x40]
lea eax, [esp + 0x24]
mov byte [esp + 0x9c], 3
call fcn.1002b9f0
mov ebp, 0x10
cmp dword [esp + 0x30], ebp
jb 0x1002cb34
mov edx, dword [esp + 0x1c]
push edx
call fcn.1013d576
add esp, 4
xor ebx, ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x4c], ebp
jb 0x1002cb55
mov eax, dword [esp + 0x38]
push eax
call fcn.1013d576
add esp, 4
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x68], ebp
jb 0x1002cb74
mov ecx, dword [esp + 0x54]
push ecx
call fcn.1013d576
add esp, 4
mov dword [esp + 0x90], 0xffffffff
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0x84], ebp
jb 0x1002cba1
mov edx, dword [esp + 0x70]
push edx
call fcn.1013d576
add esp, 4
mov ecx, dword [esi + 0x60]
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
cmp ecx, ebx
je 0x1002cbee
call fcn.1005a0b0
test al, al
je 0x1002cbee
mov ecx, dword [esi + 0x64]
push ebx
call fcn.1005ec90
mov ecx, dword [esi + 0x60]
call fcn.1005a0c0
mov edi, dword [esi + 0x60]
cmp edi, ebx
je 0x1002cbeb
mov ecx, edi
call fcn.1005a0e0
push edi
call fcn.1013d576
add esp, 4
mov dword [esi + 0x60], ebx
mov ecx, dword [esi + 0x64]
add esi, 0x64
cmp ecx, ebx
je 0x1002cc08
call fcn.1005ec20
test al, al
je 0x1002cc08
mov ecx, dword [esi]
call fcn.1005ec10
mov eax, esi
call fcn.10031d60
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
Function at 0x100350b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10163d19
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x101c3584]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov dword [esp + 0x30], 2
mov ecx, dword [esp + 0x48]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], esp
test eax, eax
je 0x10035113
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [esp + 0x48]
sub esp, 8
mov eax, esp
mov dword [eax], edx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], esp
test eax, eax
je 0x1003513d
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
push ecx
mov ecx, dword [esp + 0x50]
mov eax, esp
lea edi, [esp + 0x28]
mov dword [esp + 0x24], esp
mov dword [eax], ecx
call fcn.10035750
mov dword [esi], 0x1002bf70
mov edx, dword [eax]
mov dword [esi + 4], edx
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x1003517a
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x14], eax
test eax, eax
je 0x10035196
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x10], 1
call fcn.1002c890
mov byte [esp + 0x30], 1
mov edi, dword [esp + 0x44]
test edi, edi
je 0x100351df
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100351df
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100351df
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov byte [esp + 0x30], 0
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x10035216
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10035216
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10035216
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x10036a50
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1016341b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x101c3584]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
xor ecx, ecx
mov dword [eax], 0x4b
mov dword [eax + 4], 0x4b
mov dword [eax + 8], 3
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], cl
mov byte [eax + 0x11], cl
mov byte [eax + 0x12], cl
mov byte [eax + 0x13], cl
mov byte [eax + 0x14], cl
mov byte [eax + 0x15], cl
mov byte [eax + 0x16], cl
mov byte [eax + 0x17], cl
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov byte [eax + 0x2c], 0x64
xor edx, edx
mov word [eax + 0x30], dx
lea edx, [eax + 0x38]
mov byte [eax + 0x2d], cl
mov byte [eax + 0x2e], cl
mov byte [eax + 0x2f], cl
mov byte [eax + 0x32], cl
mov byte [eax + 0x33], cl
mov dword [edx], ecx
mov dword [eax + 0x34], edx
mov dword [eax + 0x40], ecx
lea edx, [eax + 0x40]
mov dword [eax + 0x3c], edx
mov byte [eax + 0x44], 1
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], 1
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], 2
mov byte [eax + 0x5c], cl
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

Function at 0x10036ba0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x101633eb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x101c3584]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
xor edx, edx
mov word [eax + 0x1c], dx
mov word [eax + 0x1e], dx
mov byte [eax + 0x20], cl
mov byte [eax + 0x21], cl
mov byte [eax + 0x22], cl
mov byte [eax + 0x23], cl
mov byte [eax + 0x24], cl
mov byte [eax + 0x25], cl
mov byte [eax + 0x26], cl
mov byte [eax + 0x27], cl
mov dl, 0x64
mov byte [eax + 0x32], dl
mov byte [eax + 0x33], dl
lea edx, [eax + 0x5c]
mov byte [eax + 0x28], cl
mov byte [eax + 0x29], cl
mov byte [eax + 0x2a], cl
mov byte [eax + 0x2b], cl
mov byte [eax + 0x2c], cl
mov byte [eax + 0x2d], cl
mov byte [eax + 0x2e], cl
mov byte [eax + 0x2f], cl
mov byte [eax + 0x30], cl
mov byte [eax + 0x31], cl
mov byte [eax + 0x34], 4
mov byte [eax + 0x35], cl
mov byte [eax + 0x36], cl
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov byte [eax + 0x4c], cl
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [edx], ecx
mov dword [eax + 0x58], edx
lea edx, [eax + 0x64]
mov dword [edx], ecx
mov dword [eax + 0x60], edx
mov dword [eax + 0x68], ecx
mov byte [eax + 0x6c], cl
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x10037350
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x40c
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
push ebp
mov ebp, dword [esp + 0x418]
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
push edi
mov byte [esp + 0x13], bl
cmp eax, ebx
je 0x10037387
cmp eax, 0xffffffff
je 0x10037387
lea eax, [ebx + 1]
jmp 0x10037389
xor eax, eax
movzx eax, al
push eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x17]
mov eax, str.Invariant
call fcn.10036cd0
add esp, 4
cmp byte [esp + 0x13], bl
je 0x100373ef
test byte [0x101f6274], 1
jne 0x100373ca
or dword [0x101f6274], 1
call fcn.10037710
push 0x10167590
call fcn.1013db43
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push 0x6f
mov ecx, str.bool___thiscall_PrintingPolicyFile::Print_const_char__
mov edi, str.IsValid__
mov ebx, 0x101f61e8
call fcn.10036ec0
add esp, 8
xor al, al
jmp 0x100374e2
mov eax, dword [esi]
cmp eax, ebx
je 0x100373e8
cmp eax, 0xffffffff
je 0x100373e8
cmp byte [esi + 4], bl
je 0x100373e8
cmp ebp, ebx
je 0x100373e8
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
sete al
cmp al, bl
je 0x10037451
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x18]
mov edi, eax
call fcn.10036c90
call fcn.10037510
mov edx, esi
push edx
push 0x85
mov ecx, str.bool___thiscall_PrintingPolicyFile::Print_const_char__
mov edi, str.___DWORD__1____moved_file_pointer_
mov ebx, eax
call fcn.10036ec0
add esp, 8
xor al, al
jmp 0x100374e2
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esi]
push ebx
mov edi, eax
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
sete al
cmp al, bl
je 0x100374aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x18]
mov edi, eax
call fcn.10036c90
call fcn.10037510
mov edx, esi
push edx
push 0x8f
mov ecx, str.bool___thiscall_PrintingPolicyFile::Print_const_char__
mov edi, str.file_written_ok
mov ebx, eax
call fcn.10036ec0
add esp, 8
xor al, al
jmp 0x100374e2
cmp dword [esp + 0x14], edi
setne al
cmp al, bl
je 0x100374e0
mov byte [esp + 0x18], bl
call fcn.10037510
lea ecx, [esp + 0x18]
push ecx
push 0x94
mov ecx, str.bool___thiscall_PrintingPolicyFile::Print_const_char__
mov edi, str._bytes_written__bytes_available_
mov ebx, eax
call fcn.10036ec0
add esp, 8
xor al, al
jmp 0x100374e2
mov al, 1
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1013d581
add esp, 0x40c
ret 4
Function at 0x100375b0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esi + 8]
push ebp
mov ebp, dword [esp + 0xc]
test eax, eax
je 0x100375c1
cmp byte [eax], 0
jne 0x100375ce
mov dword [esi + 4], 0xd
xor al, al
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
push edi
mov edi, dword [esp + 0x10]
push 0x104
push edi
call ebx
test eax, eax
jne 0x100375f2
push 0x104
push ebp
call ebx
test eax, eax
je 0x10037605
mov eax, 0x57
pop edi
mov dword [esi + 4], eax
pop ebx
mov dword [esi + 4], eax
xor al, al
pop ebp
ret 0xc
mov eax, dword [esp + 0x18]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x10037625
mov dword [esi + 4], 0x57
pop edi
pop ebx
xor al, al
pop ebp
ret 0xc
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0x1abc
push ebp
push edi
call ebx
mov edi, eax
cmp edi, 0x1abc
jne 0x10037654
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
push eax
push 0
push ebp
push ecx
call ebx
test eax, eax
je 0x1003761d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
mov dword [esi + 4], eax
mov dword [edx], edi
pop edi
pop ebx
mov al, 1
pop ebp
ret 0xc

Function at 0x10037670
Capabilities:
Print debug messages

Disassembly:
cmp byte [esi], 0
push ebp
mov ebp, dword [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
je 0x10037694
push str.Module
call edi
cmp byte [esi], 0
je 0x10037694
test ebp, ebp
je 0x10037694
push ebp
call edi
test bl, 1
je 0x100376a5
cmp byte [esi], 0
je 0x100376a5
push str._logs_to_debug_console
call edi
test bl, 2
je 0x100376b6
cmp byte [esi], 0
je 0x100376b6
push str._logs_to_file
call edi
test bl, 4
je 0x100376c7
cmp byte [esi], 0
je 0x100376c7
push str._beeps
call edi
test ebx, ebx
jne 0x100376d6
cmp byte [esi], bl
je 0x100376fe
push str._does_not_log
call edi
cmp byte [esi], 0
je 0x100376fe
push str.._For_settings_see:
call edi
cmp byte [esi], 0
je 0x100376fe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100376f2
push eax
call edi
cmp byte [esi], 0
je 0x100376fe
push 0x101a70e0
call edi
pop edi
pop ebp
ret

Function at 0x10037be0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xc04
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0xc00], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x40a]
push ecx
mov word [esp + 0x40c], ax
call fcn.1013f910
push ebx
push 0
push edi
lea edx, [esp + 0x418]
push 0x3ff
push edx
call fcn.1013eed1
push 0x3ff
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.1013f910
push 0x400
lea ecx, [esp + 0x430]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.1013f2ed
add esp, 0x38
cmp byte [esi + 0x8b], 0
je 0x10037c93
lea eax, [esp]
push eax
call fcn.100383f0
cmp byte [esi + 0x8b], 0
jne 0x10037c89
xor al, al
mov ecx, dword [esp + 0xc00]
xor ecx, esp
call fcn.1013d581
add esp, 0xc04
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0xc00]
xor ecx, esp
mov al, 1
call fcn.1013d581
add esp, 0xc04
ret
Function at 0x10037cb0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x400], eax
push 0x3ff
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.1013f910
push ebx
push edi
lea ecx, [esp + 0x14]
push 0x3ff
push ecx
call fcn.1014c2e6
add esp, 0x1c
cmp byte [esi + 0x8b], 0
je 0x10037d2a
lea edx, [esp]
push edx
call fcn.100383f0
cmp byte [esi + 0x8b], 0
jne 0x10037d20
xor al, al
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.1013d581
add esp, 0x404
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
mov al, 1
call fcn.1013d581
add esp, 0x404
ret

Function at 0x10037f70
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x504
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x500], eax
cmp byte [esi + 0x8b], 0
je 0x10038134
xor al, al
mov byte [esp + 0x100], 0
cmp byte [esi + 0x88], al
je 0x10037ff0
lea eax, [esp]
push eax
call fcn.10036d70
push 2
lea ecx, [esp + 0x108]
push str.___n
push ecx
call fcn.1013e8a0
push 0x100
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x118]
push eax
call fcn.1013e8a0
push 2
lea ecx, [esp + 0x120]
push 0x101a7354
push ecx
call fcn.1013e8a0
add esp, 0x28
mov al, 1
cmp byte [esi + 0x89], 0
je 0x1003802f
test al, al
je 0x10038014
push 2
lea edx, [esp + 0x104]
push 0x101a6458
push edx
call fcn.1013e8a0
add esp, 0xc
push 0x80
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x108]
push ecx
call fcn.1013e8a0
add esp, 0xc
mov al, 1
cmp byte [esi + 0x8a], 0
je 0x100380ad
test al, al
je 0x10038053
push 2
lea edx, [esp + 0x104]
push 0x101a6458
push edx
call fcn.1013e8a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esp + 4]
push 0x101a706c
push eax
call fcn.1013deee
push 2
lea ecx, [esp + 0x110]
push 0x101a7358
push ecx
call fcn.1013e8a0
push 0x80
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x120]
push eax
call fcn.1013e8a0
push 2
lea ecx, [esp + 0x128]
push 0x101a735c
push ecx
call fcn.1013e8a0
add esp, 0x30
jmp 0x100380b1
test al, al
je 0x100380c8
push 3
lea edx, [esp + 0x104]
push 0x101a5d20
push edx
call fcn.1013e8a0
add esp, 0xc
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100380d0
sub eax, edx
mov ecx, 0x3fd
sub ecx, eax
push ecx
lea edx, [esp + 0x104]
push edi
push edx
call fcn.1013e8a0
push 3
lea eax, [esp + 0x110]
push 0x101a70e0
push eax
call fcn.1013e8a0
add esp, 0x18
cmp byte [esi + 0x8b], 0
jne 0x10038126
xor al, al
mov ecx, dword [esp + 0x500]
xor ecx, esp
call fcn.1013d581
add esp, 0x504
ret
lea ecx, [esp + 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x500]
xor ecx, esp
mov al, 1
call fcn.1013d581
add esp, 0x504
ret