joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437a80
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00441500
mov eax, dword [0x4e4150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1008], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x437bf0
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jb 0x437bf0
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x437ae5
push ebx
push eax
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x437bf0
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0047e850
add esp, 0xc
lea eax, [ebp - 0x804]
xor ebx, ebx
push 0x400
push eax
push ebx
push esi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x437ba8
push 0x800
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.0047e850
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.0047ef62
add esp, 0x14
test eax, eax
je 0x437b65
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x437b65
lea ecx, [ebx + 1]
jmp 0x437b67
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1004]
push edi
lea eax, [ebp - 0x804]
cmovne eax, edx
push eax
push edi
push dword [ebp - 0x1008]
call fcn.00486803
add esp, 0x10
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004414e0
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
je 0x437bd6
push edi
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
call fcn.00436730
add esp, 0xc
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004414e0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004414e0
mov esp, ebp
pop ebp
ret

Function at 0x437c20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
cmp dword [esi + 0x10], 0
je 0x437c4b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x437c3a
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x437c4b
pop esi
mov al, bl
pop ebx
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x437c53
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x406
pop esi
setne al
pop ebx
pop ebp
ret
Function at 0x437c70
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4e4150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4be6c0]
movq xmm0, qword [str._:]
push esi
mov dword [ebp - 0x204], eax
xor esi, esi
mov ax, word [0x4be6c4]
push 0x1fa
mov word [ebp - 0x200], ax
lea eax, [ebp - 0x1fe]
push esi
push eax
movq qword [ebp - 0x20c], xmm0
call fcn.0047e850
mov cl, byte [ebp + 8]
xorps xmm0, xmm0
add esp, 0xc
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
movq qword [ebp - 0x224], xmm0
movups xmmword [ebp - 0x244], xmm0
movups xmmword [ebp - 0x234], xmm0
cmp cl, 0x41
jl 0x437cf5
cmp cl, 0x5a
jle 0x437cfc
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x437d74
push edi
push 0
push 0x80
push 3
movsx ax, cl
push 0
push 3
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x20c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x437d71
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], esi
push eax
push 0x28
lea eax, [ebp - 0x244]
mov dword [ebp - 0x21c], esi
push eax
push 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push edi
cmovne esi, dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x437d76
xor esi, esi
mov ecx, dword [ebp - 4]
cmp esi, 7
pop esi
sete al
xor ecx, ebp
call fcn.004414e0
mov esp, ebp
pop ebp
ret

Function at 0x437d90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b02b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4e4150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x10], esi
call fcn.00438250
add esp, 4
push 4
push str.log
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040c3d0
push eax
mov ecx, esi
call fcn.0040a060
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x437e1b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437e11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437e42
push edx
push ecx
call fcn.0044122a
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x437e25
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00481cc9
int3
Function at 0x437fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b454b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4e4150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push 0
push edx
push dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4380ed
call fcn.00440230
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4380ed
push 0x6f
push str.d:jenkins.jenkinsworkspacepay_groupduplicate_file_cleanduplicate_file_mgrduplicate_file_mgr_srcutils.cc
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.004087e0
push 3
push 0x4bb7c0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004087e0
mov byte [ebp - 4], 1
call fcn.00440230
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0x2d5
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405c60
mov esi, eax
push str._error__read_file_failed
push esi
mov byte [ebp - 4], 2
call fcn.00406b60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.00406d70
lea ecx, [ebp - 0x2c]
call fcn.00406600
lea ecx, [ebp - 0x44]
call fcn.00406600
mov eax, dword [ebp - 0x14]
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.004414e0
mov esp, ebp
pop ebp
ret
Function at 0x438250
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b45cb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4e4150]
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]
lea eax, [ebp - 0x21c]
push 0x20a
push 0
push eax
mov dword [ebp - 0x238], esi
call fcn.0047e850
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4382d4
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0040c560
push 8
push str.ludashi
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.0040c3d0
push eax
mov ecx, esi
call fcn.0040a060
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x438353
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438349
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438384
push edx
push ecx
call fcn.0044122a
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43835d
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
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.004414e0
mov esp, ebp
pop ebp
ret
call fcn.00481cc9
int3
Function at 0x438390
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4610
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
mov eax, dword [0x4e4150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x28], esi
call fcn.00438250
add esp, 4
push 0x15
push str.duplicate_file_clean
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040c3d0
push eax
lea ecx, [ebp - 0x24]
call fcn.0040a060
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x438427
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43841d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4384b7
push edx
push ecx
call fcn.0044122a
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x10], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push 0
push eax
push 0
mov dword [ebp - 0x2c], 7
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0xe
push str._scan_info.dat
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.0040c3d0
push eax
mov ecx, esi
call fcn.0040a060
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x4384a5
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43849b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4384bc
push edx
push ecx
call fcn.0044122a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00481cc9
call fcn.00481cc9
int3

Function at 0x438610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e4150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.0047e850
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov ecx, esi
cmp eax, 0x102
ja 0x43867d
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push 2
push eax
jmp 0x438688
xor eax, eax
push eax
mov word [esi], ax
push 0x4bd3dc
call fcn.0040c560
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004414e0
mov esp, ebp
pop ebp
ret
Function at 0x438f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0xc
mov ecx, dword [ebp + 0x18]
and eax, 0x1f
mov dword [ebp + 0x14], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
cmp eax, 8
jb 0x438fe1
shr eax, 3
mov dword [ebp - 4], eax
nop dword [eax]
cmp ecx, 1
jne 0x438f66
movq xmm0, qword [esi]
movq qword [ebp - 0xc], xmm0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
jmp 0x438f6b
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push 0xc2b2ae3d
push 0x27d4eb4f
push ecx
push eax
call fcn.00441530
mov ecx, eax
add esi, 8
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.00441530
mov ecx, eax
xor edx, ebx
xor ecx, edi
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.00441530
mov ecx, dword [ebp + 0x18]
mov edi, eax
mov eax, dword [ebp + 0x14]
add edi, 0xc2b2ae63
mov ebx, edx
adc ebx, 0x85ebca77
sub eax, 8
sub dword [ebp - 4], 1
mov dword [ebp + 0x14], eax
jne 0x438f50
mov dword [ebp + 0x10], edi
cmp eax, 4
jb 0x43903c
cmp ecx, 1
mov eax, 0x9e3779b1
mov ecx, dword [esi]
add esi, 4
mul ecx
push 0xc2b2ae3d
mov edi, eax
mov eax, 0x85ebca87
mul ecx
push 0x27d4eb4f
xor eax, dword [ebp + 0x10]
add edi, edx
xor edi, ebx
mov ecx, eax
shld ecx, edi, 0x17
shld edi, eax, 0x17
push edi
push ecx
call fcn.00441530
mov edi, eax
mov ebx, edx
mov eax, dword [ebp + 0x14]
add edi, 0x9e3779f9
adc ebx, 0x165667b1
sub eax, 4
mov dword [ebp + 0x14], eax
test eax, eax
je 0x439081
movzx eax, byte [esi]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.00441530
xor edi, eax
lea esi, [esi + 1]
xor ebx, edx
mov eax, edi
push 0x9e3779b1
shld eax, ebx, 0xb
push 0x85ebca87
shld ebx, edi, 0xb
push ebx
push eax
call fcn.00441530
sub dword [ebp + 0x14], 1
mov edi, eax
mov ebx, edx
jne 0x439040
push 0xc2b2ae3d
xor ecx, ecx
mov esi, ebx
push 0x27d4eb4f
xor ecx, ebx
shr esi, 1
push ecx
xor esi, edi
push esi
call fcn.00441530
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.00441530
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f250
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4a2a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e4150]
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.0041cd20
mov ecx, eax
test ecx, ecx
je 0x43f414
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.0041cd20
mov ecx, eax
test ecx, ecx
je 0x43f41e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.0041cd20
mov ecx, eax
test ecx, ecx
je 0x43f428
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 0x43f332
xor ecx, ecx
jmp 0x43f350
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 0x43f340
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004290d0
push edi
mov ecx, ebx
call fcn.00426f70
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x43f36c
xor ecx, ecx
jmp 0x43f384
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f374
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.004290d0
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.0043fdc0
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00426f70
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 0x43f3c5
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 0x43f3fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43f3fe
cmp dword [esi + 0x10], 0
je 0x43f3f5
push dword [edi]
call fcn.0048b50e
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.00427350
push 0x80004005
call fcn.00427350
push 0x80004005
call fcn.00427350
int3
Function at 0x43fae0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4b18
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4e4150]
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 0x43fcb4
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43fb35
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x43fcb4
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43fb53
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x43fcb4
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43fb71
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x43fcb4
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43fb8f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x43fcb4
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43fcb4
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x43fbb4
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 0x43fbe7
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x43fbff
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x43fc3d
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00408430
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.0047dd50
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x4c1ebc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00440a50
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 0x43fc6b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x43fca4
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x43fca4
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.0040fb70
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.00406650
lea ecx, [ebp - 0x28]
call fcn.00406650
lea ecx, [ebp - 0x34]
call fcn.004068d0
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.004414e0
mov esp, ebp
pop ebp
ret 4
Function at 0x440360
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4c07
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4e4150]
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 0x4403aa
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 0x4403b6
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.0040c560
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 0x440423
push 0x48
call fcn.004411fa
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x440417
push 0x48
push 0
push ebx
call fcn.0047e850
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.0043f250
jmp 0x440419
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 0x440450
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040c560
push 3
push 0x4c1ebc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040c3d0
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 0x44049f
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x4404ee
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x4404ee
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.0040c560
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.00406650
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x440524
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44051a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440561
push edx
push ecx
call fcn.0044122a
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 0x440543
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.004414e0
mov esp, ebp
pop ebp
ret 0x14
call fcn.00481cc9
int3