joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014e72
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10014ce3

Function at 0x1001526c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10009730
mov eax, dword [0x1002b080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10013d46
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100152ae
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001540a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001f6c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1002ca10]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10016249
mov ecx, dword [esi*4 + 0x1002ca10]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10015403
cmp eax, dword [edi + ecx + 0x24]
jne 0x10015403
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10015403
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10016249
add esp, 0x14
test edx, edx
jl 0x10015403
jg 0x10015379
test eax, eax
jb 0x10015403
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10015403
jl 0x10015393
cmp dword [ebp - 0x1008], eax
ja 0x10015403
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100153b1
test ebx, ebx
je 0x100153ea
cmp ecx, edi
jae 0x100153ea
mov al, byte [ecx]
cmp al, 0xd
jne 0x100153cb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100153d7
cmp byte [ecx + 1], 0xa
jne 0x100153d7
inc ecx
jmp 0x100153d7
movzx eax, al
movsx eax, byte [eax + 0x1002b328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100153b1
cmp edx, ebx
jne 0x100153b1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10015408
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008b36
leave
ret
Function at 0x10015701
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1002ca10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10015741
cmp byte [ebx], 0xa
jne 0x10015741
or byte [eax + edi + 0x28], 4
jmp 0x10015746
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10015844
mov al, byte [edx]
cmp al, 0x1a
je 0x10015826
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10015775
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1001579a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100157a4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10015757
jmp 0x10015844
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10015821
cmp dword [ebp - 0xc], 0
je 0x10015821
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1002ca10]
test byte [eax + edi + 0x28], 0x48
je 0x100157fb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100157e6
mov byte [esi], dl
jmp 0x100157f7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002ca10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10015844
cmp byte [ebp - 1], 0xa
jne 0x1001580a
cmp esi, ebx
jne 0x1001580a
mov byte [esi], 0xa
jmp 0x10015843
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10016267
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10015844
mov byte [esi], 0xd
jmp 0x10015843
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1002ca10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10015840
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10015844
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001584d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1002ca10]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10015890
cmp word [esi], dx
jne 0x10015890
or byte [edi + eax + 0x28], 4
jmp 0x10015895
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100159ce
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100159ae
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100158d7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001590d
cmp eax, edx
jae 0x10015919
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100158af
jmp 0x100159ce
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100159aa
cmp dword [ebp - 0x14], 0
je 0x100159aa
mov eax, dword [ebx*4 + 0x1002ca10]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10015982
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x100159c8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1002ca10]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x1002ca10]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1002ca10]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x100159cb
pop ebx
cmp word [ebp - 4], bx
jne 0x10015993
cmp esi, dword [ebp + 0xc]
jne 0x10015993
mov word [esi], bx
jmp 0x100159cb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10016267
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100159ce
push 0xd
jmp 0x100159c7
mov ecx, dword [ebx*4 + 0x1002ca10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100159c5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100159ce
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10019865
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10019902
push ebx
push esi
call fcn.1001982e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100185c5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100198af
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10019901
push edi
push eax
call fcn.10016949
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100198cf
call fcn.100132a5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10019900
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100185c5
add esp, 0x20
test eax, eax
jne 0x100198ee
push edi
call fcn.100132a5
jmp 0x100198f6
push ebx
call fcn.100132a5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1001f081
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001effd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001f1f9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001f1f9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001f1a8
jg 0x1001f0da
test eax, eax
je 0x1001f19e
push 1
push 0x1000
call fcn.100132df
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001f100
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1001f195
push 0x8000
push ebx
call fcn.1001ef2e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001f12c
jg 0x1001f127
cmp ecx, 0x1000
jb 0x1001f12c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10014ae3
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001f171
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001f127
jl 0x1001f158
test ecx, ecx
jne 0x1001f119
push dword [ebp - 0xc]
push ebx
call fcn.1001ef2e
push esi
call fcn.100132a5
add esp, 0xc
xor edi, edi
jmp 0x1001f20a
cmp byte [edi + 0x24], 0
je 0x1001f188
cmp dword [edi + 0x20], 5
jne 0x1001f188
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001f193
mov edi, dword [edi + 0x18]
jmp 0x1001f195
xor edi, edi
push esi
call fcn.100132a5
pop ecx
jmp 0x1001f20a
test ecx, ecx
jg 0x1001f16a
jl 0x1001f1a8
test eax, eax
jae 0x1001f16a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10016267
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001f1cb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1001f16a
jmp 0x1001f202
push ebx
call fcn.1001c387
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001f16a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1001f20a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1001f207
mov edi, dword [edi + 0x18]
jmp 0x1001f20a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10016267
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001f680
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001f6ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001f6ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x413a9c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x413ae3
cmp edx, 0x10
jl 0x413acf
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x413abc
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x413ae3
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x413adb
and edx, 3
cmp edx, 3
jne 0x413af7
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x413afc
cmp edx, 2
jne 0x413b08
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x413b0d
cmp edx, 1
jne 0x413b13
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x5fa3d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x138000]
push edi
jmp 0x5fa3ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5fa3f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fa3e0
mov eax, 1
add ebx, ebx
jne 0x5fa403
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5fa414
jne 0x5fa433
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fa433
dec eax
add ebx, ebx
jne 0x5fa420
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5fa3f8
add ebx, ebx
jne 0x5fa42f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5fa485
xor ecx, ecx
sub eax, 3
jb 0x5fa44b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5fa4ba
sar eax, 1
mov ebp, eax
jmp 0x5fa456
add ebx, ebx
jne 0x5fa456
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fa424
inc ecx
add ebx, ebx
jne 0x5fa464
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fa424
add ebx, ebx
jne 0x5fa471
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5fa466
jne 0x5fa482
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5fa466
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5fa4a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5fa496
jmp 0x5fa3e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5fa4a4
add edi, ecx
jmp 0x5fa3e6
pop esi
mov edi, esi
mov ecx, 0x85f4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5fa4c2
cmp byte [edi], 0x11
jne 0x5fa4c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5fa4c7
lea edi, [esi + 0x1f6000]
mov eax, dword [edi]
or eax, eax
je 0x5fa536
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x205d48]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x205e60]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5fa4f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x205e64]
or eax, eax
je 0x5fa530
mov dword [ebx], eax
add ebx, 4
jmp 0x5fa511
call dword [esi + 0x205e74]
mov ebp, dword [esi + 0x205e68]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0x5fa56a
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x404110
Capabilities:
Create thread

Disassembly:
cmp byte [0x4ca66c], 0
jne 0x404163
push 0
push 0
push 0
push 0
mov byte [0x4ca66c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov dword [0x4ca664], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0x4ca630
push 0x4040a0
push 0
push 0
mov dword [0x4ca668], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4ca660], eax
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480223
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c33d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x2c]
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
mov dword [edi + 4], 3
mov dword [edi + 0xc], 2
mov dword [edi + 0x10], eax
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_void_]
lea ecx, [edi + 0x1c]
mov dword [edi], vtable.libnotify::QueryModifyNotifyData.0
call esi
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 1
call esi
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 2
call esi
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 3
call esi
mov edx, edi
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
mov dword [edx + 0x38], 0
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x14]
mov byte [ebp - 4], 5
mov esi, dword [sym.imp.ouilibx.dll_public:_class_OUI::COString____thiscall_OUI::COString::operator_wchar_t_const__]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 0x10]
lea ecx, [edx + 0x1c]
mov dword [edx + 0x18], eax
call esi
push dword [ebp + 0x18]
mov ecx, edi
lea ecx, [ecx + 0x20]
call esi
push dword [ebp + 0x1c]
lea ecx, [edi + 0x24]
call esi
push dword [ebp + 0x28]
lea ecx, [edi + 0x28]
call esi
push dword [ebp + 0x20]
mov ebx, edi
lea ecx, [ebx + 0x30]
mov dword [ebx + 0x2c], 0
call fcn.004090e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
Function at 0x407990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x4c9770]
add esp, 0xc
test al, 1
jne 0x4079e3
or eax, 1
push 0x488dc0
mov dword [0x4c9770], eax
call fcn.0047ce4d
add esp, 4
sub esp, 8
lea eax, [ebp - 0x414]
push eax
call fcn.0045a650
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 eax, [ebp - 0x414]
push str.preference.ini
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x208
lea eax, [ebp - 0x61c]
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 - 0x61c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407a93
push eax
push eax
push 1
push eax
push eax
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x407a93
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x620]
push esi
push 0x4907f0
call fcn.0045e660
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 8

Function at 0x407ac0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x4c9770]
add esp, 0xc
test al, 1
jne 0x407b13
or eax, 1
push 0x488dc0
mov dword [0x4c9770], eax
call fcn.0047ce4d
add esp, 4
sub esp, 8
lea eax, [ebp - 0x414]
push eax
call fcn.0045a650
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 eax, [ebp - 0x414]
push str.preference.ini
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x208
lea eax, [ebp - 0x61c]
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 - 0x61c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407bb7
mov eax, dword [ebp + 0xc]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x61c]
push eax
push dword [ebp + 0xc]
push esi
push 0x4907f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 8
Function at 0x407be0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x4c9770]
add esp, 0xc
test al, 1
jne 0x407c37
or eax, 1
push 0x488dc0
mov dword [0x4c9770], eax
call fcn.0047ce4d
add esp, 4
sub esp, 8
lea eax, [ebp - 0x414]
push eax
call fcn.0045a650
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 eax, [ebp - 0x414]
push str.preference.ini
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x208
lea eax, [ebp - 0x61c]
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 - 0x61c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407cdc
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x61c]
push eax
push edi
push esi
push 0x4907f0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 8

Function at 0x407d10
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x4c9770]
add esp, 0xc
test al, 1
jne 0x407d67
or eax, 1
push 0x488dc0
mov dword [0x4c9770], eax
call fcn.0047ce4d
add esp, 4
sub esp, 8
lea eax, [ebp - 0x414]
push eax
call fcn.0045a650
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 eax, [ebp - 0x414]
push str.preference.ini
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x208
lea eax, [ebp - 0x61c]
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 - 0x61c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407e0c
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x61c]
push eax
push 0x104
push edi
push 0x48fcb8
push esi
push 0x4907f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047cd06
mov esp, ebp
pop ebp
ret 0x10