joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0100
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x517ad4]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
mov eax, dword [ebp + 0x1c0]
push ebx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x1c4]
push edi
mov dword [ebp - 0x7c], eax
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x70], bx
mov ecx, 0x81
lea edi, [ebp - 0x6e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4b029f
push esi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x80], esi
jne 0x4b0187
xor eax, eax
jmp 0x4b029e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4b0293
cmp eax, 0x40
jbe 0x4b0293
push ebx
push eax
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x78], edi
je 0x4b0293
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
jne 0x4b01d9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b0293
cmp word [esi], 0x5a4d
je 0x4b01e9
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x4b01cd
cmp dword [ebp + 0x1bc], 1
jne 0x4b0201
movzx eax, word [esi + 0x26]
movzx ecx, word [esi + 0x24]
shl eax, 0x10
or eax, ecx
jmp 0x4b027b
cmp dword [ebp + 0x1bc], 2
jne 0x4b026e
xor eax, eax
mov byte [ebp + 0x198], bl
lea edi, [ebp + 0x199]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edx, [esi + 0x28]
lea ecx, [ebp + 0x198]
xor edi, edi
sub ecx, edx
mov al, byte [edx]
cmp al, bl
je 0x4b023c
not al
inc edi
mov byte [ecx + edx], al
inc edx
cmp edi, 0x14
jl 0x4b022a
lea eax, [ebp - 0x74]
push ebx
push eax
lea eax, [ebp + 0x198]
call fcn.004063a9
pop ecx
mov edi, eax
mov eax, dword [ebp - 0x7c]
pop ecx
call fcn.0040311c
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4b0280
push eax
call fcn.004013b2
jmp 0x4b0280
cmp dword [ebp + 0x1bc], 3
jne 0x4b0280
movzx eax, word [esi + 0x1c]
mov ecx, dword [ebp - 0x74]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
mov ecx, dword [ebp + 0x1b0]
pop edi
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0x1b4
leave
ret
Function at 0x4b12d2
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x20], 0
je 0x4b12e6
cmp dword [esi + 0x14], 0
je 0x4b12e6
call fcn.00413661
mov ecx, esi
call fcn.004b11e7
push edx
push eax
push esi
call fcn.0041359e
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
jne 0x4b1302
xor eax, eax
pop esi
ret
push dword [esi]
and dword [esi + 0x18], 0
and dword [esi + 0x1c], 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
ret
Function at 0x4b138f
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov eax, 0x24a8
lea ebp, [esp - 0x2428]
call fcn.004ebd80
mov eax, dword [0x517ad4]
xor eax, ebp
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp + 0x2440]
mov dword [ebp + 0x2424], eax
mov eax, dword [ebp + 0x2430]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x2434]
xor ecx, ecx
cmp dword [edi + 4], ecx
push ebx
mov ebx, edx
mov dword [ebp - 0x6c], eax
je 0x4b13e0
mov eax, 0x80004005
jmp 0x4b1571
cmp eax, ecx
jne 0x4b13ee
mov eax, 0x80004003
jmp 0x4b1571
push esi
push 0x10000000
push ecx
lea esi, [ebp - 0x64]
mov dword [edi + 0x1c], ecx
call fcn.0041e202
push 0x10000000
push dword [ebp - 0x68]
mov eax, esi
call fcn.0041e263
test eax, eax
jne 0x4b141d
mov eax, 0x80004005
jmp 0x4b1570
push 0
push 0
push 3
push dword [ebp - 0x40]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x54]
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [edi + 4], eax
je 0x4b1413
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x64]
call fcn.0041e2cb
mov esi, eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
call fcn.0041e32f
mov esi, dword [esi]
mov eax, dword [eax]
push edi
or ebx, 0x400000
push ebx
xor ebx, ebx
push ebx
push esi
push ebx
push eax
push str.POST
push dword [edi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x68]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4b148f
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4b14a3
push eax
call fcn.004013b2
cmp dword [edi + 8], ebx
jne 0x4b14af
mov ebx, 0x80004005
jmp 0x4b152a
cmp dword [ebp + 0x2438], 0xffffffff
jne 0x4b14c7
push dword [ebp - 0x6c]
call sub.MSVCRT.dll_strlen
pop ecx
mov dword [ebp + 0x2438], eax
push dword [ebp + 0x2438]
push dword [ebp - 0x6c]
push dword [ebp + 0x243c]
push dword [ebp - 0x74]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4b1535
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x4b152a
push dword [edi + 0x18]
mov eax, dword [edi + 0xc]
push ebx
lea ecx, [ebp - 0x78]
push ecx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x70]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x74], eax
inc ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x70], eax
je 0x4b1535
mov esi, edi
call fcn.004a3786
mov eax, ebx
jmp 0x4b1570
push ebx
lea eax, [ebp - 0x7c]
push eax
lea ebx, [edi + 0x1c]
push ebx
push 0x20000013
push dword [edi + 8]
mov dword [ebp - 0x7c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4b1559
and dword [ebx], eax
mov esi, edi
call fcn.004a3786
mov eax, dword [ebx]
sub eax, 0xc8
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
mov ecx, dword [ebp + 0x2424]
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0x2428
leave
ret 0x14
Function at 0x4b1a26
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
xor edi, edi
lea esi, [ebx + 0x6c]
mov dword [ebx + 0x68], edi
call fcn.004137a3
mov eax, dword [ebx + 0x70]
cmp eax, edi
je 0x4b1a60
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, edi
pop ecx
mov dword [ebx + 0x74], eax
jne 0x4b1a5a
mov eax, 0x8007000e
jmp 0x4b1ac2
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], edi
push edi
lea ecx, [ebx + 4]
mov eax, 0x523510
call fcn.004a3360
test eax, eax
jne 0x4b1a79
mov eax, 0x80004014
jmp 0x4b1ac2
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea esi, [ebx + 0x60]
push edi
mov dword [esi], edi
mov dword [ebx + 0x64], edi
call fcn.004b1c29
cmp eax, edi
jl 0x4b1ac2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x20000005
push dword [ebx + 0x58]
mov dword [ebp - 8], 4
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [esi]
neg eax
sbb eax, eax
and eax, 0x7ffbff9b
add eax, 0x80040065
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4b4772
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, eax
call fcn.004b41f6
push dword [esp + 0x14]
lea eax, [edi + 0x14]
call fcn.00403368
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b47b7
mov dword [edi + 0x24], 2
xor al, al
jmp 0x4b4826
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, eax
call esi
cmp ebp, ebx
jne 0x4b47eb
mov dword [edi + 0x24], 2
xor al, al
jmp 0x4b4825
push dword [esp + 0x18]
push ebx
push ebx
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebp
mov dword [esp + 0x14], eax
call esi
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x4b47e0
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
call fcn.004b539d
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
cmp dword [edi + 0x24], ebx
sete al
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x4b482d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov ebx, eax
je 0x4b4849
push dword [ebp + 8]
lea eax, [ebx + 0x14]
call fcn.00403368
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4b486d
xor al, al
jmp 0x4b48d4
mov esi, 0x4fdb58
push 0x2000
mov dword [ebp - 0x14], esi
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
mov dword [ebp - 8], 0x2000
call dword [eax + 8]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, bl
pop esi
pop ebx
leave
ret 8
Function at 0x4bd86d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
test byte [edi + 0x10], 1
push ebx
push esi
jne 0x4bd8e5
call dword [0x51b490]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4bd89a
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4bd8d2
mov esi, dword [edi + 4]
test esi, esi
jne 0x4bd8a5
xor eax, eax
jmp 0x4bd8cb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.004ebd80
mov eax, esp
push dword [ebp - 4]
push ebx
push esi
mov esi, eax
call fcn.004bd7ee
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4bd8e5
test al, 1
je 0x4bd8e1
and dword [edi + 0x10], 0xfffffffb
jmp 0x4bd8e5
or dword [edi + 0x10], 4
mov eax, dword [edi + 0x10]
lea esp, [ebp - 0xc]
pop esi
pop ebx
leave
ret
Function at 0x4c1221
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x517ad4]
and dword [ebp - 0x24], 0
xor eax, ebp
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x28], eax
mov esi, ecx
mov eax, dword [esi]
mov ebx, dword [eax - 8]
push edi
lea eax, [ebp - 0x14]
push eax
lea edi, [ebp - 0x18]
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x63
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x64
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x29
mov byte [ebp - 0xb], 0x25
mov byte [ebp - 0xa], 0x21
mov byte [ebp - 9], 0x24
mov byte [ebp - 8], 0
call fcn.00407710
jmp 0x4c1294
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00420eda
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], ebx
jl 0x4c1287
mov eax, ebx
lea ecx, [ebp - 0x18]
call fcn.004033b8
mov eax, dword [0x51b438]
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
jne 0x4c12c2
lea ecx, [ebp - 0x1c]
jmp 0x4c132a
mov edx, dword [esi]
lea eax, [ebx - 1]
test eax, eax
jl 0x4c12eb
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
sub esi, eax
add ecx, eax
sub edx, dword [ebp - 0x18]
lea esi, [esi + ebx - 1]
lea edi, [eax + 1]
mov al, byte [edx + ecx]
xor al, byte [ecx]
dec ecx
mov byte [esi], al
inc esi
dec edi
jne 0x4c12df
lea ecx, [ebp - 0x24]
lea eax, [ebx + ebx + 1]
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.0040338c
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov edx, ebx
call fcn.004ae947
mov eax, dword [ebp - 0x24]
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.004033b8
push dword [ebp - 0x20]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
lea eax, [ebp - 0x1c]
call fcn.0040efdc
mov ecx, eax
mov esi, dword [ebp - 0x28]
call fcn.0040333f
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c1346
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c135a
push eax
call fcn.004013b2
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret
Function at 0x4c136b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x517ad4]
and dword [ebp - 0x18], 0
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x2c], eax
mov ebx, ecx
mov eax, dword [ebx]
mov eax, dword [eax - 8]
cdq
push esi
sub eax, edx
mov esi, eax
push edi
lea eax, [ebp - 0x14]
push eax
lea edi, [ebp - 0x20]
sar esi, 1
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x63
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x64
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x29
mov byte [ebp - 0xb], 0x25
mov byte [ebp - 0xa], 0x21
mov byte [ebp - 9], 0x24
mov byte [ebp - 8], 0
call fcn.00407710
jmp 0x4c13e5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00420eda
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], esi
jl 0x4c13d8
mov eax, esi
lea ecx, [ebp - 0x20]
call fcn.004033b8
mov eax, dword [0x51b438]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 1]
lea ecx, [ebp - 0x1c]
call fcn.0040338c
mov ecx, dword [ebx]
lea edi, [esi - 1]
test edi, edi
mov dword [ebp - 0x28], ecx
jl 0x4c1463
mov ecx, eax
sub ecx, edi
lea ecx, [ecx + esi - 1]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x28]
mov al, byte [eax + edi*2]
call fcn.004ae9a4
mov bl, al
mov eax, dword [ebp - 0x28]
mov al, byte [eax + edi*2 + 1]
call fcn.004ae9a4
test bl, bl
jl 0x4c1463
test al, al
jl 0x4c1463
mov ecx, dword [ebp - 0x18]
shl bl, 4
add bl, al
mov eax, dword [ebp - 0x24]
xor bl, byte [ecx + eax]
dec edi
mov byte [eax], bl
inc eax
test edi, edi
mov dword [ebp - 0x24], eax
jge 0x4c1429
mov eax, esi
lea ecx, [ebp - 0x1c]
call fcn.004033b8
lea eax, [ebp - 0x18]
push eax
push 0xd
pop eax
lea ecx, [ebp - 0x1c]
call fcn.00420f21
mov eax, dword [eax]
push str.http_3A_2F_2F
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ebx, eax
mov eax, dword [ebp - 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff4
pop ecx
inc bl
cmp eax, dword [0x51b43c]
pop ecx
je 0x4c14a8
push eax
call fcn.004013b2
test bl, bl
je 0x4c14e1
push ecx
lea ecx, [ebp - 0x1c]
mov esi, esp
mov dword [ebp - 0x18], esp
call fcn.0040333f
lea eax, [ebp - 0x18]
call fcn.004c11ad
mov edi, eax
pop ecx
lea eax, [ebp - 0x1c]
call fcn.004107e7
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c14e1
push eax
call fcn.004013b2
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
call fcn.0040333f
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c1500
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c1514
push eax
call fcn.004013b2
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret
Function at 0x4c32b8
Capabilities:
Create directory

Disassembly:
mov eax, 0x4efc9a
call fcn.004ebd20
sub esp, 0x320
mov eax, dword [0x517ad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
mov dword [ebp - 0x29c], eax
jne 0x4c32e9
xor eax, eax
jmp 0x4c3454
test edx, edx
je 0x4c32f9
cmp word [edx], 0
je 0x4c32f9
push edx
call fcn.0040315f
push ebx
push esi
push edi
lea eax, [ebp - 0x2c8]
call fcn.004b475e
and dword [ebp - 4], 0
push 0x4f8488
push 0x4f8480
push 0x4f847c
lea esi, [ebp - 0x32c]
call fcn.004b4b12
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 1
call fcn.004b4233
push 0x503ddc
lea edi, [ebp - 0x300]
call fcn.004b4387
push 0xa
lea eax, [ebp - 0x90]
push eax
push 3
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push str.version
mov ebx, edi
call fcn.004b446e
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x300]
call fcn.004b4233
mov esi, dword [ebp - 0x29c]
lea eax, [ebp - 0x2c8]
push eax
mov ecx, esi
call fcn.004c37c6
mov eax, dword [esi]
lea ecx, [ebp - 0x2a0]
push ecx
lea ecx, [ebp - 0x298]
push ecx
push 0x104
xor ebx, ebx
push eax
mov dword [ebp - 0x2a0], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [ebp - 0x2a0]
cmp eax, ebx
je 0x4c33db
mov word [eax], bx
push ebx
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esi]
lea ecx, [ebp - 0x29c]
push ebx
push ecx
call fcn.0040160b
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [eax]
push ebx
push eax
lea eax, [ebp - 0x2c8]
call fcn.004b482d
movzx esi, al
mov eax, dword [ebp - 0x29c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c3419
push eax
call fcn.004013b2
lea ecx, [ebp - 0x300]
mov byte [ebp - 4], 1
call fcn.004b43d6
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], bl
call fcn.00401765
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2c8], 0x4f8200
call fcn.004b41c7
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ebd70
leave
ret 4
Function at 0x4c3d72
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3f0]
sub esp, 0x470
mov eax, dword [0x517ad4]
xor eax, ebp
mov dword [ebp + 0x3ec], eax
mov eax, dword [esi + 0x28]
test eax, eax
push ebx
push edi
je 0x4c3db4
lea ebx, [eax - 1]
test ebx, ebx
jl 0x4c3db4
lea edi, [esi + 0x24]
mov eax, ebx
mov ecx, edi
call fcn.0045d61b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec ebx
jns 0x4c3da0
cmp dword [ebp + 0x3f8], 0
jle 0x4c3e91
cmp dword [ebp + 0x3f8], 1
mov eax, dword [0x51b438]
mov dword [ebp - 0x7c], eax
jne 0x4c3dd9
push str.ttcache__.tmp
jmp 0x4c3de7
cmp dword [ebp + 0x3f8], 2
jne 0x4c3def
push str..tmp
lea eax, [ebp - 0x7c]
call fcn.0040315f
xor eax, eax
mov dword [ebp + 0x3e4], eax
mov dword [ebp + 0x3e8], eax
mov word [ebp + 0x1d8], ax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
lea ecx, [esi + 0x10]
push eax
mov word [ebp + 0x3e0], 0x5c
call fcn.0040328f
mov eax, dword [eax]
lea ebx, [ebp - 0x78]
call fcn.0040e026
mov edi, eax
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c3e3d
push eax
call fcn.004013b2
test edi, edi
je 0x4c3e75
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
call fcn.0040df92
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c3e69
push eax
call fcn.004013b2
lea eax, [ebp - 0x78]
call fcn.0040e0dc
test eax, eax
jne 0x4c3e41
lea eax, [ebp - 0x78]
call fcn.0040e105
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c3e91
push eax
call fcn.004013b2
mov eax, dword [esi + 0x14]
cmp dword [eax - 8], 0
pop edi
pop ebx
je 0x4c3ea3
push eax
push esi
call fcn.004c4d6b
mov ecx, dword [ebp + 0x3ec]
xor ecx, ebp
call fcn.004ebd70
add ebp, 0x3f0
leave
ret 4

Function at 0x4c3eba
Capabilities:
Delete file

Disassembly:
cmp dword [esp + 4], 0
push edi
mov edi, eax
je 0x4c3ed1
lea eax, [edi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
mov ebx, dword [edi + 0x28]
dec ebx
push esi
js 0x4c3efd
lea esi, [edi + 0x24]
mov eax, ebx
mov ecx, esi
call fcn.0045d61b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4c3efa
push 1
mov ecx, ebx
call fcn.004c549c
dec ebx
jns 0x4c3edc
mov eax, dword [edi + 0x14]
xor esi, esi
cmp dword [eax - 8], esi
je 0x4c3f12
cmp dword [edi], esi
je 0x4c3f12
push eax
push edi
call fcn.004c4d6b
cmp dword [esp + 0x10], esi
pop esi
pop ebx
je 0x4c3f27
add edi, 0x80
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
ret 4
Function at 0x4c3f2b
Capabilities:
Delete file

Disassembly:
mov eax, 0x4efc03
call fcn.004ebd20
sub esp, 0x47c
mov eax, dword [0x517ad4]
push ebx
xor eax, ebp
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push edi
xor ebx, ebx
cmp esi, ebx
mov edi, ecx
mov dword [ebp - 0x484], edi
mov dword [ebp - 0x480], eax
jbe 0x4c3f75
push ebx
mov ebx, eax
call fcn.0045e51b
test eax, eax
pop ecx
je 0x4c4122
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4c3f87
lea eax, [edi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x14]
cmp dword [eax - 8], ebx
je 0x4c40f9
lea eax, [edi + 0x10]
mov ecx, dword [eax]
cmp dword [ecx - 8], ebx
je 0x4c40f9
cmp esi, ebx
je 0x4c3fb8
push dword [ebp - 0x480]
call fcn.00403277
test al, al
je 0x4c40f9
mov word [ebp - 0x1c], 0x5c
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x224], bx
push str..tmp
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x478]
push eax
mov dword [ebp - 4], ebx
call fcn.004032df
mov eax, dword [eax]
lea ebx, [ebp - 0x474]
call fcn.0040e026
mov esi, eax
mov eax, dword [ebp - 0x478]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c4009
push eax
call fcn.004013b2
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x4c404f
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x474]
call fcn.0040df92
push dword [eax]
call ebx
mov eax, dword [ebp - 0x478]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c4040
push eax
call fcn.004013b2
lea eax, [ebp - 0x474]
call fcn.0040e0dc
test eax, eax
jne 0x4c4013
mov eax, dword [edi + 0x3c]
and dword [ebp - 0x47c], 0
test eax, eax
jle 0x4c40d3
lea eax, [edi + 0x38]
mov dword [ebp - 0x488], eax
mov eax, dword [ebp - 0x47c]
mov ecx, dword [ebp - 0x488]
call fcn.0045d61b
mov eax, dword [eax]
lea ecx, [eax + 8]
lea esi, [ebp - 0x478]
call fcn.0040306f
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x478]
push esi
call ebx
test eax, eax
jne 0x4c40ad
lea eax, [ebp - 0x478]
push eax
add edi, 0x24
call fcn.0040f01a
mov edi, dword [ebp - 0x484]
lea eax, [esi - 0xc]
mov byte [ebp - 4], 0
cmp eax, dword [0x51b43c]
je 0x4c40c2
push eax
call fcn.004013b2
inc dword [ebp - 0x47c]
mov eax, dword [ebp - 0x47c]
cmp eax, dword [edi + 0x3c]
jl 0x4c4066
lea esi, [edi + 0x38]
call fcn.004c3bac
lea eax, [edi + 0x50]
call fcn.004c55b8
lea eax, [ebp - 0x474]
mov dword [edi], 1
call fcn.0040e105
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp - 0x480]
lea eax, [edi + 0x10]
call fcn.0040315f
shl esi, 0x14
cmp dword [ebp + 0x10], ebx
mov dword [edi + 8], esi
mov dword [edi + 0xc], ebx
je 0x4c4122
add edi, 0x80
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret 0xc