joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d760
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4147b0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40d784
add eax, 8
inc ebp
cmp eax, 0x414840
jb 0x40d775
cmp ecx, dword [ebp*8 + 0x4147b0]
jne 0x40d92b
mov eax, dword [0x417b60]
cmp eax, 1
je 0x40d8ed
test eax, eax
jne 0x40d7b0
cmp dword [0x413f44], 1
je 0x40d8ed
cmp ecx, 0xfc
je 0x40d92b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d7eb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40d834
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x410694
add ebx, ecx
push ebx
call fcn.00408c80
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x410674
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4147b4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040f370
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x418f20]
test eax, eax
je 0x40d8fe
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40d908
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4147b4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40f050
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40f20e
push 0x3d
push edi
call fcn.0040f590
mov esi, eax
add esp, 8
test esi, esi
je 0x40f20e
cmp edi, esi
je 0x40f20e
mov dl, byte [esi + 1]
mov ecx, dword [0x417b1c]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x417b18]
cmp eax, ecx
jne 0x40f0a7
push eax
call fcn.0040f2e0
add esp, 4
mov dword [0x417b18], eax
test eax, eax
jne 0x40f122
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40f0ce
mov eax, dword [0x417b20]
test eax, eax
je 0x40f0ce
call fcn.0040ca20
test eax, eax
je 0x40f11d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x40f0da
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0040ace0
add esp, 4
mov dword [0x417b18], eax
test eax, eax
je 0x40f20e
mov dword [eax], 0
mov eax, dword [0x417b20]
test eax, eax
jne 0x40f11d
push 4
call fcn.0040ace0
add esp, 4
mov dword [0x417b20], eax
test eax, eax
je 0x40f20e
mov dword [eax], 0
mov eax, dword [0x417b18]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0040f260
mov esi, eax
add esp, 8
test esi, esi
jl 0x40f21f
cmp dword [ebx], 0
je 0x40f21f
test ebp, ebp
je 0x40f217
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0040ad90
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x40f179
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x40f168
lea eax, [esi*4]
push eax
push ebx
call fcn.0040b730
add esp, 8
test eax, eax
je 0x40f193
mov dword [0x417b18], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40f206
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040ace0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40f206
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0040ad90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x40f197
test ebp, ebp
jne 0x40f206
test esi, esi
jge 0x40f229
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0040b730
add esp, 8
test eax, eax
je 0x40f20e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x417b18], eax
jmp 0x40f197
Function at 0x40f410
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0040f710
mov eax, dword [0x419020]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x40f572
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x418f20]
test byte [edx + ecx*8 + 4], 1
je 0x40f572
push 1
push ebp
push ebx
call fcn.0040b0e0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40f57c
push 2
push ebp
push ebx
call fcn.0040b0e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40f57c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x40f518
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0040f690
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40f4bf
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040b3a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40f4db
sub esi, eax
test esi, esi
jle 0x40f4f1
jmp 0x40f4b0
cmp dword [0x417af4], 5
jne 0x40f4ee
mov dword [0x417af0], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0040f690
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0040b0e0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x40f559
push 0
push ecx
push ebx
call fcn.0040b0e0
add esp, 0xc
push ebx
call fcn.0040e600
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x40f559
mov dword [0x417af0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x417af4], eax
push 0
push edi
push ebx
call fcn.0040b0e0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x417af0], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0xa731f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x407000]
push edi
jmp 0xa7320a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa73211
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa73200
mov eax, 1
add ebx, ebx
jne 0xa73223
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa73234
jne 0xa73253
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa73253
dec eax
add ebx, ebx
jne 0xa73240
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa73218
add ebx, ebx
jne 0xa7324f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa732a5
xor ecx, ecx
sub eax, 3
jb 0xa7326b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa732da
sar eax, 1
mov ebp, eax
jmp 0xa73276
add ebx, ebx
jne 0xa73276
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa73244
inc ecx
add ebx, ebx
jne 0xa73284
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa73244
add ebx, ebx
jne 0xa73291
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa73286
jne 0xa732a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa73286
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa732c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa732b6
jmp 0xa73206
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa732c4
add edi, ecx
jmp 0xa73206
pop esi
mov edi, esi
mov ecx, 0x365cd3
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0xa732ff
cmp byte [edi], 0x35
jne 0xa732e4
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0xa732e2
lea edi, [esi + 0x66e000]
mov eax, dword [edi]
or eax, eax
je 0xa73350
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6966e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6968c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa73305
mov ecx, edi
jns 0xa73334
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6968c4]
or eax, eax
je 0xa7334a
mov dword [ebx], eax
add ebx, 4
jmp 0xa73322
call dword [esi + 0x6968d4]
mov ebp, dword [esi + 0x6968c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xa73384
sub esp, 0xffffff80
jmp 0x644f2b
Function at 0x10008ad0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b142
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100cc464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x424], 0x104
call fcn.10075cd0
add esp, 0xc
mov dword [ebp - 0x428], 1
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x428]
push eax
push str.local_m2
push 0x100a499c
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10008bae
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008b90
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.1000c570
cmp dword [esi + 0x10], 0
jne 0x10008c2a
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10075cd0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.1003bfa0
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008be4
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.1000c570
cmp dword [esi + 0x14], 8
mov eax, esi
mov ecx, dword [esi + 0x10]
jb 0x10008c0f
mov eax, dword [esi]
add ecx, ecx
push ecx
push eax
push 1
push str.local_m2
push 0x100a499c
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10058174
mov esp, ebp
pop ebp
ret

Function at 0x1000b520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000b579
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000b579
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000b56a
cmp esi, edx
jae 0x1000b579
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1000b558
cmp esi, edx
jae 0x1000b579
cmp word [esi], 0
je 0x1000b579
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1000cd20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b708
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100cc464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.10057dc5
mov edi, eax
add esp, 4
test edi, edi
je 0x1000cdc3
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10031a9a
add esp, 4
mov dword [edi + 4], eax
jmp 0x1000cdc5
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.10004ec0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x1000ce25
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1000ce25
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x1000ce49
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1000ce6b
cmp byte [ebp + 0xc], 0
je 0x1000ce58
push esi
call fcn.10031f2d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1000ce77
mov esi, str.ios_base::badbit_set
jmp 0x1000ce87
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.1000d150
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.10005c50
push 0x100c0d54
lea eax, [ebp - 0x30]
push eax
call fcn.10074db1
int3
Function at 0x1000eef0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x100cc464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x250]
mov eax, dword [ecx]
push edx
mov dword [ebp - 0x234], 1
mov eax, dword [eax + 0x24]
call eax
push 0xe
push str.debug_url.set
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.1000c2e0
mov dword [ebp - 0x220], 0
xor ecx, ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x234], 3
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x23c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x1000effe
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000eff4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f118
push edx
push ecx
call fcn.10057df5
add esp, 8
xor eax, eax
mov dword [ebp - 0x240], 0
cmp dword [ebp - 0x21c], 8
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
mov dword [ebp - 0x23c], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000f0be
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10075cd0
add esp, 0xc
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x100a4cfc
push str.UniversalPopup
push str.DebugUrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
je 0x1000f0be
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000f0a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.1000c570
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1000f0fa
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f0f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f11d
push edx
push ecx
call fcn.10057df5
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10058174
mov esp, ebp
pop ebp
ret 4
call fcn.10079209
call fcn.10079209
int3
Function at 0x1000f440
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b98b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x100cc464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.1000edd0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.10075cd0
add esi, 0x28
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1000f4a6
mov eax, dword [esi]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x100a4cfc
push str.write_date
push str.universal_popup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000f4f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.1000c570
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x250]
mov eax, dword [ebp - 0x250]
lea edi, [ebp - 0x230]
mov ebx, dword [ebp - 0x230]
cmovae ecx, eax
cmp dword [ebp - 0x21c], 8
mov edx, dword [ebp - 0x220]
cmovae edi, ebx
cmp edx, dword [ebp - 0x240]
jne 0x1000f578
test edx, edx
je 0x1000f569
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x1000f572
add ecx, 2
sub edx, 1
jne 0x1000f552
mov eax, dword [ebp - 0x250]
mov byte [ebp - 0x231], 1
jmp 0x1000f57f
mov eax, dword [ebp - 0x250]
mov byte [ebp - 0x231], 0
mov ecx, dword [ebp - 0x23c]
cmp ecx, 8
jb 0x1000f5c5
lea ecx, [ecx*2 + 2]
mov edx, eax
cmp ecx, 0x1000
jb 0x1000f5bb
mov eax, dword [eax - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x238], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1000f643
mov eax, dword [ebp - 0x238]
push ecx
push eax
call fcn.10057df5
add esp, 8
cmp byte [ebp - 0x231], 0
je 0x1000f5ed
cmp dword [esi + 0x14], 8
jb 0x1000f5d6
mov esi, dword [esi]
push esi
push 0
push str.showed_count
push str.universal_popup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
jmp 0x1000f5ef
xor esi, esi
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x1000f625
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x1000f61b
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f643
push ecx
push ebx
call fcn.10057df5
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.10058174
mov esp, ebp
pop ebp
ret
call fcn.10079209
int3
Function at 0x1001dd70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cb98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100cc464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
test edi, edi
je 0x1001ddab
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push 0x38
mov dword [ebp - 4], 0
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
call fcn.10057dc5
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1001ddfd
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
mov dword [eax], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8UniversalPopupClient__AEXXZPAV3__std__X__V_std__.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x24], eax
jmp 0x1001ddff
xor esi, esi
xorps xmm0, xmm0
lea eax, [esi + 0x10]
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1001de18
lock inc dword [esi + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
inc eax
mov byte [ebp - 4], 2
cmp ecx, eax
ja 0x1001de3a
push 1
lea ecx, [edi + 0x20]
call fcn.100235b0
mov ecx, dword [edi + 0x28]
lea eax, [ecx - 1]
and dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x20], eax
cmp dword [ecx + eax], 0
jne 0x1001de77
push 0x28
call fcn.10057dc5
mov ecx, dword [edi + 0x24]
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax]
lea ecx, [esi + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_07df6a45706ac5e3eb6e1bf85cdbdb04___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
inc dword [edi + 0x30]
cmp dword [edi + 0x18], 0
jne 0x1001deb6
lea eax, [edi + 0x1c]
push eax
push 0
push edi
push 0x100227e0
push 0
push 0
call fcn.1007d064
add esp, 0x18
mov dword [edi + 0x18], eax
mov byte [ebp - 0x19], 1
jmp 0x1001deba
mov byte [ebp - 0x19], 0
test esi, esi
je 0x1001dedf
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1001dedf
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1001dedf
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10058174
mov esp, ebp
pop ebp
ret 8