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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40e99e
mov eax, dword [eax]
push edi
push 0x43e524
push eax
call fcn.00425ed7
mov edi, eax
add esp, 8
test edi, edi
jne 0x40e9bf
call fcn.0041ea52
pop edi
mov eax, dword [eax]
neg eax
pop ebp
ret
push ebx
push 2
push 0
push edi
call fcn.00426da0
push edi
call fcn.00427399
push 0
push 0
push edi
mov ebx, eax
call fcn.00426da0
add esp, 0x1c
test ebx, ebx
jne 0x40e9f2
push edi
call fcn.00425fa5
add esp, 4
xor eax, eax
pop ebx
pop edi
pop ebp
ret
push esi
xor esi, esi
cmp ebx, 3
jl 0x40ea49
xor eax, eax
push edi
push 1
mov word [ebp + 8], ax
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
push 3
push eax
call fcn.004269e0
add esp, 0x10
cmp eax, 1
je 0x40ea30
push edi
call fcn.00425fa5
add esp, 4
call fcn.0041ea52
pop esi
pop ebx
pop edi
mov eax, dword [eax]
neg eax
pop ebp
ret
cmp byte [ebp + 8], 0xef
jne 0x40ea49
cmp byte [ebp + 9], 0xbb
jne 0x40ea49
cmp byte [ebp + 0xa], 0xbf
jne 0x40ea49
mov esi, 3
sub ebx, esi
push 0
push esi
push edi
call fcn.00426da0
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [esi + 0x10]
lea eax, [ecx + 1]
add eax, ebx
cmp eax, ecx
ja 0x40ea77
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x40ea71
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x40ea83
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040ede0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40ea8d
mov eax, dword [esi]
push edi
push 1
push ebx
push eax
call fcn.004269e0
push edi
mov dword [ebp + 8], eax
call fcn.00425fa5
mov edx, dword [esi + 0x10]
add esp, 0x14
lea ecx, [edx - 1]
cmp ecx, edx
ja 0x40eabe
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x14], 0x10
jb 0x40eab8
mov esi, dword [esi]
mov byte [esi + ecx], 0
jmp 0x40eaca
sub ecx, edx
push 0
push ecx
mov ecx, esi
call fcn.0040ede0
cmp dword [ebp + 8], 1
jne 0x40ea22
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
ret

Function at 0x40eae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x453144]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x414], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x408], ecx
push edi
mov edi, dword [ebp + 0x18]
test ecx, ecx
je 0x40eb81
test ebx, ebx
je 0x40eb81
test eax, eax
je 0x40eb81
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00419520
add esp, 0xc
mov dword [ebp - 0x410], 1
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0x400
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x414]
push ebx
push dword [ebp - 0x408]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40eb81
lea eax, [ebp - 0x404]
jmp 0x40eb8b
test edi, edi
mov eax, 0x44c208
cmovne eax, edi
push eax
mov ecx, esi
call fcn.0040c800
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415060
mov esp, ebp
pop ebp
ret
Function at 0x40ebf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x453144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40ec91
cmp byte [esi + 0x3d], 0
je 0x40ec91
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40ec47
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40ec59
sub eax, 1
je 0x40ec5d
sub eax, 2
je 0x40ec91
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415060
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40ec7a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004275dc
add esp, 0x10
cmp edi, eax
jne 0x40ec47
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415060
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00415060
mov esp, ebp
pop ebp
ret
Function at 0x40f380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x453144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40f3b0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415060
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40f3ec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40f3ec
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415060
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40f4d1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40f414
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40f447
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00426710
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415060
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x40f4d1
cmp eax, 1
jle 0x40f4a4
cmp eax, 3
jne 0x40f4d1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0040d6e0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415060
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40f4c1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004275dc
add esp, 0x10
cmp edi, eax
jne 0x40f4d1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x40f3d7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415060
mov esp, ebp
pop ebp
ret 4
Function at 0x40fbb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40fbd4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fca0
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x40fbf5
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40fbf7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x40fc7f
jg 0x40fc0a
test esi, esi
je 0x40fc7f
test ecx, ecx
jl 0x40fc4c
jg 0x40fc14
test eax, eax
je 0x40fc4c
cmp ebx, ecx
jg 0x40fc26
jl 0x40fc1e
cmp esi, eax
jae 0x40fc26
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00418fa0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x40fc52
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x40fc7f
jg 0x40fc5c
test esi, esi
je 0x40fc7f
cmp dword [edi + 0x4c], 0
je 0x40fc7f
mov ecx, edi
call fcn.0040eda0
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.004269e0
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40fd70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40fd94
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fe50
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x40fdb5
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40fdb7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x40fe34
jg 0x40fdca
test esi, esi
je 0x40fe34
test ecx, ecx
jl 0x40fe0e
jg 0x40fdd4
test eax, eax
je 0x40fe0e
cmp edi, ecx
jg 0x40fde6
jl 0x40fdde
cmp esi, eax
jae 0x40fde6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00418fa0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40fe11
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40fe34
jg 0x40fe1b
test esi, esi
je 0x40fe34
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40fe34
push eax
push esi
push 1
push edx
call fcn.004275dc
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x453144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x412e55
xor eax, eax
jmp 0x412eb1
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x412e82
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x412e82
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x412f36
cmp dword [edi + 0x4c], 0
je 0x412eab
mov ecx, edi
call fcn.00412ae5
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x412ec1
push dword [edi + 0x4c]
push ebx
call fcn.004126a9
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x412eb0
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00415060
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x43e2b8]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x412eab
cmp eax, 1
jle 0x412f09
cmp eax, 3
jne 0x412eab
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x412e9d
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x412f26
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.004275dc
add esp, 0x10
cmp esi, eax
jne 0x412eab
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x412eab
mov ax, bx
jmp 0x412eb0
Function at 0x416bf0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cd4a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x453144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.004018e0
mov ecx, eax
test ecx, ecx
je 0x416db4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.004018e0
mov ecx, eax
test ecx, ecx
je 0x416dbe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.004018e0
mov ecx, eax
test ecx, ecx
je 0x416dc8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x416cd2
xor ecx, ecx
jmp 0x416cf0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416ce0
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00402f50
push edi
mov ecx, ebx
call fcn.00402cc0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x416d0c
xor ecx, ecx
jmp 0x416d24
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416d14
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.00402f50
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00417500
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00402cc0
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416d65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x416d9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x416d9e
cmp dword [esi + 0x10], 0
je 0x416d95
push dword [edi]
call fcn.0042c5a9
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00401660
push 0x80004005
call fcn.00401660
push 0x80004005
call fcn.00401660
int3
Function at 0x417300
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ce38
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x453144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x4174d4
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x417355
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x4174d4
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x417373
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x4174d4
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x417391
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x4174d4
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4173af
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x4174d4
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4174d4
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4173d4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x417407
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x41741f
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x41745d
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00403460
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.00418fa0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x43f2ac
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00417cb0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41748b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x4174c4
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x4174c4
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.004029c0
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.00402960
lea ecx, [ebp - 0x28]
call fcn.00402960
lea ecx, [ebp - 0x34]
call fcn.00416e00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415060
mov esp, ebp
pop ebp
ret 4
Function at 0x417870
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cef7
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x453144]
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 ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x4178ba
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4178c6
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.00402d30
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x417933
push 0x48
call fcn.004152fe
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x417927
push 0x48
push 0
push ebx
call fcn.00419520
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00416bf0
jmp 0x417929
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417960
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00402d30
push 3
push 0x43f2ac
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040ef40
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4179af
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x4179fe
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x4179fe
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push 0x4417d8
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00402d30
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.00402960
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x417a34
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417a2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417a71
push edx
push ecx
call fcn.004155ab
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x417a53
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.00415060
mov esp, ebp
pop ebp
ret 0x14
call fcn.0041e989
int3
Function at 0x4319ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004316c2

Function at 0x431a0a
Capabilities:
Read file on windows

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

Function at 0x436cb3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00436973
Function at 0x10018099
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x10028014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0xa4]
xor esi, esi
mov ecx, 0x100033a0
mov dword [ebp - 0x2a8], esi
call fcn.10024941
lea edx, [ebp - 0x54]
mov ecx, edi
call fcn.10024941
mov eax, edx
push eax
movzx eax, word [ebp + 8]
push eax
push 0x100086a4
lea eax, [ebp - 0xa4]
push eax
push 0x100086c8
push 0x10008620
lea eax, [ebp - 0x2a4]
push 0x100
push eax
call fcn.1001048c
add esp, 0x20
test eax, eax
js 0x10018155
sub esp, 0x14
lea eax, [ebp - 0x2a4]
lea ecx, [ebp - 0x2a8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10025120
mov esi, dword [ebp - 0x2a8]
test eax, eax
jne 0x10018155
push 4
lea eax, [ebp - 0x2ac]
xor edi, edi
push eax
push 4
push 0
push 0x10008644
inc edi
push esi
mov dword [ebp - 0x2ac], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10018157
xor edi, edi
test esi, esi
je 0x10018162
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10009f1f
mov esp, ebp
pop ebp
ret 8

Function at 0x1001833a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10028014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
xor edi, edi
push ecx
push eax
mov dword [ebp - 0x20c], edi
call fcn.10018176
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], edi
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x204]
mov esi, SysReAllocString
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001839f
mov esi, dword [ebp - 0x208]
jmp 0x100183bf
sub esp, 0x14
lea eax, [ebp - 0x204]
lea ecx, [ebp - 0x20c]
push eax
push esi
call fcn.10025120
mov esi, dword [ebp - 0x20c]
test eax, eax
jne 0x100183e7
mov eax, dword [ebp + 0x14]
push 4
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x208]
push eax
push 4
push edi
push 0x10009710
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100183e7
xor edi, edi
inc edi
test esi, esi
je 0x100183f2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10026d70
mov esp, ebp
pop ebp
ret 0x10