joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100366e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e348
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004e2d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004e28c]
cmp eax, 0xffffffff
jne 0x10036716
xor ebx, ebx
jmp 0x1003671f
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003675f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003679e
test esi, esi
jne 0x100367a2
push 0x10035270
push 0x1004fad8
call fcn.1001a2d0
mov eax, dword [0x1004e28c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003675f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003678c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003678c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100367e4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x100367cd
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x100367a2
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036730
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10036809
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x10036809
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1001a2d0
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100367f0
jmp 0x10036730

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x9d8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009d81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9d807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9d806a
add dl, dl
jne 0x9d8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9d80dc
xor eax, eax
add dl, dl
jne 0x9d8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9d817d
add dl, dl
jne 0x9d80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9d80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9d80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9d80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9d80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9d8075
mov eax, 1
add dl, dl
jne 0x9d80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9d80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9d80e1
sub eax, ebx
mov ebx, 1
jne 0x9d8128
mov ecx, 1
add dl, dl
jne 0x9d810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9d8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9d8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9d8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9d813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9d814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9d8136
cmp eax, 0x7d00
jae 0x9d816d
cmp eax, 0x500
jb 0x9d8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9d8075
cmp eax, 0x7f
ja 0x9d8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9d8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9d819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9d8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401040
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x401060
xor al, al
jmp 0x40118b
mov byte [ebp - 1], 1
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x401188
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.0048e940
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4010c1
xor al, al
jmp 0x40118b
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40116f
mov edx, dword [ebp - 0x238]
push edx
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x40116f
push 0
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne cl
mov byte [ebp - 1], cl
mov dword [ebp - 0x248], 0
push 0x64
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401162
mov eax, dword [ebp - 0x248]
add eax, 1
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0xa
jg 0x401162
push 0
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne dl
mov byte [ebp - 1], dl
jmp 0x40111e
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4010c1
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret

Function at 0x401320
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.00404180
push eax
mov ecx, dword [ebp + 8]
call fcn.00404180
push eax
push 0x4d1188
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
ja 0x401372
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.00404180
push eax
push str.IEXPLORE.EXE
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
mov eax, 0x20
cmp eax, dword [ebp - 4]
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x402df0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x14], 0x30
mov byte [ebp - 0x13], 0x31
mov byte [ebp - 0x12], 0x32
mov byte [ebp - 0x11], 0x33
mov byte [ebp - 0x10], 0x34
mov byte [ebp - 0xf], 0x35
mov byte [ebp - 0xe], 0x36
mov byte [ebp - 0xd], 0x37
mov byte [ebp - 0xc], 0x38
mov byte [ebp - 0xb], 0x39
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x62
mov byte [ebp - 8], 0x63
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0x66
movzx eax, byte [ebp + 8]
movzx cx, byte [ebp + eax - 0x14]
mov word [ebp - 0x18], cx
mov ax, word [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret

Function at 0x404c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2c8b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x238]
call fcn.004025b0
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.0048e940
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404c8e
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004026c0
lea ecx, [ebp - 0x238]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov edx, dword [ebp - 0x23c]
or edx, 1
mov dword [ebp - 0x23c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00404230
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret

Function at 0x404ec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2c58
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x2c]
call fcn.004025b0
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x234], ax
push 0x206
push 0
lea ecx, [ebp - 0x232]
push ecx
call fcn.0048e940
add esp, 0xc
push 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x234]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404f4b
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004026c0
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov eax, dword [ebp - 0x238]
or eax, 1
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404230
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret
Function at 0x404fa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x404fea
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x404fea
mov dword [ebp - 8], 1
jmp 0x404ff1
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4052d0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4341
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00404180
push eax
call fcn.00404fa0
add esp, 4
movzx eax, al
test eax, eax
jne 0x40531a
mov al, 1
jmp 0x40551f
mov dword [ebp - 0x284], 0
push 0x24c
push 0
lea ecx, [ebp - 0x280]
push ecx
call fcn.0048e940
add esp, 0xc
push 0x4d0604
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00402e60
add esp, 0xc
mov dword [ebp - 0x2dc], eax
lea ecx, [ebp - 0x284]
push ecx
mov ecx, dword [ebp - 0x2dc]
call fcn.00404180
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x2c]
call fcn.00404230
cmp dword [ebp - 0x30], 0xffffffff
jne 0x405395
mov ecx, dword [ebp + 8]
call fcn.00404180
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor al, al
jmp 0x40551f
lea edx, [ebp - 0x258]
push edx
lea ecx, [ebp - 0x2bc]
call fcn.00404a80
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2bc]
push eax
push 0x4d060c
call fcn.00406f90
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x4053e4
lea edx, [ebp - 0x2bc]
push edx
push 0x4d0610
call fcn.00406f90
add esp, 8
movzx eax, al
test eax, eax
je 0x4053fb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2bc]
call fcn.00404230
jmp 0x4054d2
push 0x4d0618
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call fcn.00402e60
add esp, 0xc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004026e0
mov ecx, dword [ebp - 0x284]
and ecx, 1
je 0x40544b
push 0x80
lea ecx, [ebp - 0x2a0]
call fcn.00404180
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x284]
and edx, 0x10
je 0x405467
lea eax, [ebp - 0x2a0]
push eax
call fcn.004052d0
add esp, 4
jmp 0x4054b1
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.004041a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d8]
call fcn.00404180
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x2d8]
push edx
lea eax, [ebp - 0x2a0]
push eax
call fcn.00406a00
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2d8]
call fcn.00404230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a0]
call fcn.00404230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2bc]
call fcn.00404230
lea ecx, [ebp - 0x284]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405395
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
call fcn.00404180
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 8]
call fcn.00404180
push eax
call fcn.00404fa0
add esp, 4
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret
Function at 0x406550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b38bb
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x480], 0
xor eax, eax
mov word [ebp - 0x254], ax
push 0x206
push 0
lea ecx, [ebp - 0x252]
push ecx
call fcn.0048e940
add esp, 0xc
push 0x104
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x48]
call fcn.00404a80
mov dword [ebp - 4], 0
push 1
push 0
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00402800
mov byte [ebp - 4], 1
xor edx, edx
mov word [ebp - 0x47c], dx
push 0x206
push 0
lea eax, [ebp - 0x47a]
push eax
call fcn.0048e940
add esp, 0xfffffff0
mov ecx, 7
lea esi, [ebp - 0x270]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push 0x4d0ec4
lea ecx, [ebp - 0x47c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea edx, [ebp - 0x47c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00404a80
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov ecx, dword [ebp - 0x480]
or ecx, 1
mov dword [ebp - 0x480], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00404230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x270]
call fcn.00404230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404230
mov eax, dword [ebp + 8]
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.0048a346
mov esp, ebp
pop ebp
ret
Function at 0x406a00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00404180
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406a31
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004066a0
add esp, 8
movzx edx, al
test edx, edx
jne 0x406a31
xor al, al
jmp 0x406a33
mov al, 1
pop ebp
ret

Function at 0x407740
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b727b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x64]
call fcn.0040a8e0
mov dword [ebp - 4], 0
lea edi, [ebp - 0x48]
call fcn.00454480
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404180
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4077fa
lea ecx, [ebp - 0x48]
call fcn.00404180
push eax
lea ecx, [ebp - 0x68]
call fcn.00404020
mov byte [ebp - 4], 2
call fcn.00407570
lea esi, [ebp - 0x68]
lea edi, [ebp - 0x2c]
call fcn.00460d70
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00407f20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0040aa00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00404120
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x18], 0
je 0x407848
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x407834
push 1
mov ecx, dword [ebp - 0x6c]
call fcn.004076b0
mov dword [ebp - 0x88], eax
jmp 0x40783e
mov dword [ebp - 0x88], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x18], 0
push 0x50
call fcn.0048a5d7
add esp, 4
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x78], 0
je 0x407873
lea edx, [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x78]
call fcn.00410370
mov dword [ebp - 0x8c], eax
jmp 0x40787d
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x74]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00404230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0040aa00
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.0048a346
mov esp, ebp
pop ebp
ret
Function at 0x407d40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7506
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], 0
lea edi, [ebp - 0x70]
call fcn.00454480
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00404180
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407e6c
lea ecx, [ebp - 0x8c]
call fcn.00407620
mov byte [ebp - 4], 1
push 0x4d0234
lea ecx, [ebp - 0x2c]
call fcn.00404a80
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xa8]
push edx
lea ecx, [ebp - 0x8c]
call fcn.004078e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00404230
lea ecx, [ebp - 0xa8]
call fcn.0040d0b0
movzx eax, al
test eax, eax
jne 0x407e4e
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov edx, dword [ebp - 0xac]
or edx, 1
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.00404230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404230
mov eax, dword [ebp + 8]
jmp 0x407f03
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.00404230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407650
lea eax, [ebp - 0x54]
call fcn.00454500
mov byte [ebp - 4], 5
push 0x4d02ac
lea ecx, [ebp - 0x48]
call fcn.00404a80
mov byte [ebp - 4], 6
push 0x4d031c
mov eax, 0x20119
mov ecx, SysReAllocString
lea esi, [ebp - 0x54]
call fcn.00454510
mov ecx, dword [ebp + 0xc]
call fcn.00404180
lea ecx, [ebp - 0x54]
push ecx
lea edi, [ebp - 0x48]
mov ecx, eax
call fcn.00454640
lea esi, [ebp - 0x54]
call fcn.00454610
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov eax, dword [ebp - 0xac]
or eax, 1
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00404230
mov byte [ebp - 4], 0
lea esi, [ebp - 0x54]
call fcn.00454610
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404230
mov eax, dword [ebp + 8]
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.0048a346
mov esp, ebp
pop ebp
ret 8
Function at 0x40b6a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b37f0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
call fcn.00404a80
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 0x4cfb18
lea ecx, [ebp - 0x64]
call fcn.0040b910
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x64]
call fcn.00404290
sub eax, 1
cmp dword [ebp - 0x68], eax
jne 0x40b737
mov ecx, dword [ebp - 0x68]
push ecx
push 0
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x64]
call fcn.00402800
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00402670
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404230
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b765
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00404a80
lea ecx, [ebp - 0x48]
push ecx
call fcn.00404bb0
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.00404230
lea edx, [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x6c]
call fcn.004026a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00404230
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret 4

Function at 0x40bd80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x40bde0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x90], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 0
mov esp, ebp
pop ebp
ret