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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x516ad4]
push ebx
push edi
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x224], bx
mov ecx, 0x81
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4afca9
push esi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x228], esi
jne 0x4afb97
xor eax, eax
jmp 0x4afca8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4afc9a
cmp eax, 0x40
jbe 0x4afc9a
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 - 0x22c], edi
je 0x4afc9a
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
jne 0x4afbec
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4afc9a
cmp word [esi], 0x5a4d
je 0x4afbfc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x4afbe0
cmp dword [ebp + 8], 1
jne 0x4afc11
movzx eax, word [esi + 0x26]
movzx ecx, word [esi + 0x24]
shl eax, 0x10
or eax, ecx
jmp 0x4afc7f
cmp dword [ebp + 8], 2
jne 0x4afc75
xor eax, eax
mov byte [ebp - 0x1c], bl
lea edi, [ebp - 0x1b]
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 - 0x1c]
xor edi, edi
sub ecx, edx
mov al, byte [edx]
cmp al, bl
je 0x4afc40
not al
inc edi
mov byte [ecx + edx], al
inc edx
cmp edi, 0x14
jl 0x4afc2e
lea eax, [ebp - 0x230]
push ebx
push eax
lea eax, [ebp - 0x1c]
call fcn.0040683d
pop ecx
mov edi, eax
mov eax, dword [ebp + 0x10]
pop ecx
call fcn.00403223
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4afc84
push eax
call fcn.004013aa
jmp 0x4afc84
cmp dword [ebp + 8], 3
jne 0x4afc84
movzx eax, word [esi + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.004eae3c
leave
ret

Function at 0x4b0cb7
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x20], 0
je 0x4b0ccb
cmp dword [esi + 0x14], 0
je 0x4b0ccb
call fcn.00413c98
mov ecx, esi
call fcn.004b0bcc
push edx
push eax
push esi
call fcn.00413bd5
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
jne 0x4b0ce7
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 0x4b0d74
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2498
call fcn.004eae50
mov eax, dword [0x516ad4]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [edi + 4], eax
push ebx
mov ebx, ecx
je 0x4b0d9d
mov eax, 0x80004005
jmp 0x4b0f4d
cmp dword [ebp + 0xc], eax
jne 0x4b0dac
mov eax, 0x80004003
jmp 0x4b0f4d
push esi
push 0x10000000
push eax
lea esi, [ebp - 0x248c]
mov dword [edi + 0x1c], eax
call fcn.0041e6dd
push 0x10000000
push dword [ebp + 8]
mov eax, esi
call fcn.0041e73e
test eax, eax
jne 0x4b0dde
mov eax, 0x80004005
jmp 0x4b0f4c
push 0
push 0
push 3
push dword [ebp - 0x2468]
push dword [ebp - 0x2470]
push dword [ebp - 0x2474]
push dword [ebp - 0x247c]
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [edi + 4], eax
je 0x4b0dd4
lea eax, [ebp - 0x2490]
push eax
lea eax, [ebp - 0x248c]
call fcn.0041e7a6
mov esi, eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x248c]
call fcn.0041e80a
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 + 8]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4b0e65
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x2490]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4b0e7c
push eax
call fcn.004013aa
cmp dword [edi + 8], ebx
jne 0x4b0e88
mov ebx, 0x80004005
jmp 0x4b0f00
cmp dword [ebp + 0x10], 0xffffffff
jne 0x4b0e9a
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
mov dword [ebp + 0x10], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4b0f0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x4b0f00
push dword [edi + 0x18]
mov eax, dword [edi + 0xc]
push ebx
lea ecx, [ebp - 0x2494]
push ecx
mov dword [ebp - 0x2494], eax
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x2490], eax
inc ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
neg eax
sbb eax, eax
neg eax
mov dword [ebp + 0x10], eax
je 0x4b0f0b
mov esi, edi
call fcn.004a30ef
mov eax, ebx
jmp 0x4b0f4c
push ebx
lea eax, [ebp - 0x2498]
push eax
lea ebx, [edi + 0x1c]
push ebx
push 0x20000013
push dword [edi + 8]
mov dword [ebp - 0x2498], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4b0f35
and dword [ebx], eax
mov esi, edi
call fcn.004a30ef
mov eax, dword [ebx]
sub eax, 0xc8
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004eae3c
leave
ret 0x18
Function at 0x4b13f7
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.00413dda
mov eax, dword [ebx + 0x70]
cmp eax, edi
je 0x4b1431
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, edi
pop ecx
mov dword [ebx + 0x74], eax
jne 0x4b142b
mov eax, 0x8007000e
jmp 0x4b1493
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], edi
push edi
lea ecx, [ebx + 4]
mov eax, 0x522510
call fcn.004a2cca
test eax, eax
jne 0x4b144a
mov eax, 0x80004014
jmp 0x4b1493
push dword [ebp + 0xc]
lea esi, [ebx + 0x60]
push dword [ebp + 8]
mov dword [esi], edi
push edi
mov dword [ebx + 0x64], edi
call fcn.004b15fa
cmp eax, edi
jl 0x4b1493
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 0x4b4130
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, eax
call fcn.004b3bb4
push dword [esp + 0x14]
lea eax, [edi + 0x14]
call fcn.00403483
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 0x4b4175
mov dword [edi + 0x24], 2
xor al, al
jmp 0x4b41e4
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 0x4b41a9
mov dword [edi + 0x24], 2
xor al, al
jmp 0x4b41e3
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 0x4b419e
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
call fcn.004b4d5b
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 0x4b41eb
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 0x4b4207
push dword [ebp + 8]
lea eax, [ebx + 0x14]
call fcn.00403483
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 0x4b422b
xor al, al
jmp 0x4b4292
mov esi, 0x4fcc30
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]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
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 0x4bced0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
test byte [edi + 0x10], 1
push ebx
push esi
jne 0x4bcf48
call dword [0x51a490]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4bcefd
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4bcf35
mov esi, dword [edi + 4]
test esi, esi
jne 0x4bcf08
xor eax, eax
jmp 0x4bcf2e
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.004eae50
mov eax, esp
push dword [ebp - 4]
push ebx
push esi
mov esi, eax
call fcn.004bce51
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4bcf48
test al, 1
je 0x4bcf44
and dword [edi + 0x10], 0xfffffffb
jmp 0x4bcf48
or dword [edi + 0x10], 4
mov eax, dword [edi + 0x10]
lea esp, [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x4c07e3
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x516ad4]
and dword [ebp - 0x24], 0
push ebx
push esi
mov dword [ebp - 4], 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.00407bfb
jmp 0x4c084e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004212cd
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], ebx
jl 0x4c0841
mov eax, ebx
lea ecx, [ebp - 0x18]
call fcn.004034d3
mov eax, dword [0x51a438]
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 0x4c087c
lea ecx, [ebp - 0x1c]
jmp 0x4c08e4
mov edx, dword [esi]
lea eax, [ebx - 1]
test eax, eax
jl 0x4c08a5
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 0x4c0899
lea ecx, [ebp - 0x24]
lea eax, [ebx + ebx + 1]
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.004034a7
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov edx, ebx
call fcn.004ae37d
mov eax, dword [ebp - 0x24]
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.004034d3
push dword [ebp - 0x20]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
lea eax, [ebp - 0x1c]
call fcn.0040f47c
mov ecx, eax
mov esi, dword [ebp + 8]
call fcn.00403446
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c0900
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c0914
push eax
call fcn.004013aa
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.004eae3c
leave
ret
Function at 0x4c0923
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x516ad4]
and dword [ebp - 0x18], 0
push ebx
mov dword [ebp - 4], 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.00407bfb
jmp 0x4c0995
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004212cd
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], esi
jl 0x4c0988
mov eax, esi
lea ecx, [ebp - 0x20]
call fcn.004034d3
mov eax, dword [0x51a438]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 1]
lea ecx, [ebp - 0x1c]
call fcn.004034a7
mov ecx, dword [ebx]
lea edi, [esi - 1]
test edi, edi
mov dword [ebp - 0x24], ecx
jl 0x4c0a13
mov ecx, eax
sub ecx, edi
lea ecx, [ecx + esi - 1]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x24]
mov al, byte [eax + edi*2]
call fcn.004ae3da
mov bl, al
mov eax, dword [ebp - 0x24]
mov al, byte [eax + edi*2 + 1]
call fcn.004ae3da
test bl, bl
jl 0x4c0a13
test al, al
jl 0x4c0a13
mov ecx, dword [ebp - 0x18]
shl bl, 4
add bl, al
mov eax, dword [ebp - 0x28]
xor bl, byte [ecx + eax]
dec edi
mov byte [eax], bl
inc eax
test edi, edi
mov dword [ebp - 0x28], eax
jge 0x4c09d9
mov eax, esi
lea ecx, [ebp - 0x1c]
call fcn.004034d3
lea eax, [ebp - 0x18]
push eax
push 0xd
pop eax
lea ecx, [ebp - 0x1c]
call fcn.00421314
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 [0x51a43c]
pop ecx
je 0x4c0a58
push eax
call fcn.004013aa
test bl, bl
je 0x4c0a91
push ecx
lea ecx, [ebp - 0x1c]
mov esi, esp
mov dword [ebp - 0x18], esp
call fcn.00403446
lea eax, [ebp - 0x18]
call fcn.004c076f
mov edi, eax
pop ecx
lea eax, [ebp - 0x1c]
call fcn.00410c80
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c0a91
push eax
call fcn.004013aa
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00403446
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c0ab0
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c0ac4
push eax
call fcn.004013aa
mov ecx, dword [ebp - 4]
mov eax, esi
call fcn.004eae3c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c280e
Capabilities:
Create directory

Disassembly:
mov eax, 0x4eed4d
call fcn.004eadec
sub esp, 0x31c
mov eax, dword [0x516ad4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x4c2837
xor eax, eax
jmp 0x4c2999
test edx, edx
je 0x4c2847
cmp word [edx], 0
je 0x4c2847
push edx
call fcn.00403266
push ebx
push esi
push edi
lea eax, [ebp - 0x2c4]
call fcn.004b411c
and dword [ebp - 4], 0
push 0x4f7488
push 0x4f7480
push 0x4f747c
lea esi, [ebp - 0x328]
call fcn.004b44a6
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 1
call fcn.004b3bf1
push 0x502dc4
lea edi, [ebp - 0x2fc]
call fcn.004b3d45
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.004b3e2c
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.004b3bf1
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c4]
push eax
mov ecx, esi
call fcn.004c2d05
mov eax, dword [esi]
lea ecx, [ebp - 0x29c]
push ecx
lea ecx, [ebp - 0x298]
push ecx
push 0x104
xor ebx, ebx
push eax
mov dword [ebp - 0x29c], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [ebp - 0x29c]
cmp eax, ebx
je 0x4c2926
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 + 8]
push ebx
push ecx
call fcn.00401754
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [eax]
push ebx
push eax
lea eax, [ebp - 0x2c4]
call fcn.004b41eb
movzx esi, al
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c295e
push eax
call fcn.004013aa
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 1
call fcn.004b3d94
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], bl
call fcn.004018ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2c4], 0x4f7200
call fcn.004b3b85
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004eae3c
leave
ret 4
Function at 0x4c32a8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x516ad4]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x28]
test eax, eax
push ebx
push edi
je 0x4c32e0
lea ebx, [eax - 1]
test ebx, ebx
jl 0x4c32e0
lea edi, [esi + 0x24]
mov eax, ebx
mov ecx, edi
call fcn.0045d964
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec ebx
jns 0x4c32cc
cmp dword [ebp + 8], 0
jle 0x4c33c3
cmp dword [ebp + 8], 1
mov eax, dword [0x51a438]
mov dword [ebp - 0x46c], eax
jne 0x4c3302
push str.ttcache__.tmp
jmp 0x4c330d
cmp dword [ebp + 8], 2
jne 0x4c3318
push str..tmp
lea eax, [ebp - 0x46c]
call fcn.00403266
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp + 8]
lea ecx, [esi + 0x10]
push eax
mov word [ebp - 0x10], 0x5c
call fcn.00403396
mov eax, dword [eax]
lea ebx, [ebp - 0x468]
call fcn.0040e51d
mov edi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c3363
push eax
call fcn.004013aa
test edi, edi
je 0x4c33a1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x468]
call fcn.0040e489
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c3392
push eax
call fcn.004013aa
lea eax, [ebp - 0x468]
call fcn.0040e5d3
test eax, eax
jne 0x4c3367
lea eax, [ebp - 0x468]
call fcn.0040e5fc
mov eax, dword [ebp - 0x46c]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c33c3
push eax
call fcn.004013aa
mov eax, dword [esi + 0x14]
cmp dword [eax - 8], 0
pop edi
pop ebx
je 0x4c33d5
push eax
push esi
call fcn.004c4260
mov ecx, dword [ebp - 4]
call fcn.004eae3c
leave
ret 4

Function at 0x4c33e1
Capabilities:
Delete file

Disassembly:
cmp dword [esp + 4], 0
push edi
mov edi, eax
je 0x4c33f8
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 0x4c3424
lea esi, [edi + 0x24]
mov eax, ebx
mov ecx, esi
call fcn.0045d964
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4c3421
push 1
mov ecx, ebx
call fcn.004c49d7
dec ebx
jns 0x4c3403
mov eax, dword [edi + 0x14]
xor esi, esi
cmp dword [eax - 8], esi
je 0x4c3439
cmp dword [edi], esi
je 0x4c3439
push eax
push edi
call fcn.004c4260
cmp dword [esp + 0x10], esi
pop esi
pop ebx
je 0x4c344e
add edi, 0x80
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
ret 4
Function at 0x4c3452
Capabilities:
Delete file

Disassembly:
mov eax, 0x4eecb9
call fcn.004eadec
sub esp, 0x474
mov eax, dword [0x516ad4]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x10], eax
jbe 0x4c3489
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.004217ba
test eax, eax
pop ecx
je 0x4c3632
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
push edi
mov edi, dword [ebp + 8]
je 0x4c349f
lea eax, [edi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x14]
cmp dword [eax - 8], ebx
je 0x4c360b
lea eax, [edi + 0x10]
mov ecx, dword [eax]
cmp dword [ecx - 8], ebx
je 0x4c360b
cmp esi, ebx
je 0x4c34cd
push dword [ebp + 0xc]
call fcn.0040337e
test al, al
je 0x4c360b
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.004033e6
mov eax, dword [eax]
lea ebx, [ebp - 0x474]
call fcn.0040e51d
mov esi, eax
mov eax, dword [ebp - 0x478]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c351e
push eax
call fcn.004013aa
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x4c3564
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x474]
call fcn.0040e489
push dword [eax]
call ebx
mov eax, dword [ebp - 0x478]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c3555
push eax
call fcn.004013aa
lea eax, [ebp - 0x474]
call fcn.0040e5d3
test eax, eax
jne 0x4c3528
mov eax, dword [edi + 0x3c]
and dword [ebp - 0x47c], 0
test eax, eax
jle 0x4c35e5
lea eax, [edi + 0x38]
mov dword [ebp - 0x480], eax
mov eax, dword [ebp - 0x47c]
mov ecx, dword [ebp - 0x480]
call fcn.0045d964
mov eax, dword [eax]
lea ecx, [eax + 8]
lea esi, [ebp - 0x478]
call fcn.0040318a
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x478]
push esi
call ebx
test eax, eax
jne 0x4c35bf
lea eax, [ebp - 0x478]
push eax
add edi, 0x24
call fcn.0040f4ba
mov edi, dword [ebp + 8]
lea eax, [esi - 0xc]
mov byte [ebp - 4], 0
cmp eax, dword [0x51a43c]
je 0x4c35d4
push eax
call fcn.004013aa
inc dword [ebp - 0x47c]
mov eax, dword [ebp - 0x47c]
cmp eax, dword [edi + 0x3c]
jl 0x4c357b
lea esi, [edi + 0x38]
call fcn.004c30e2
lea eax, [edi + 0x50]
call fcn.004c4af3
lea eax, [ebp - 0x474]
mov dword [edi], 1
call fcn.0040e5fc
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push dword [ebp + 0xc]
lea eax, [edi + 0x10]
call fcn.00403266
shl esi, 0x14
cmp dword [ebp + 0x14], ebx
mov dword [edi + 8], esi
mov dword [edi + 0xc], ebx
je 0x4c3631
add edi, 0x80
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004eae3c
leave
ret 0x10