joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4181e5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push edi
cmp dword [esi + 0xc], ebx
je 0x4181fa
xor eax, eax
jmp 0x418292
mov edi, str.MetalinkFile
lea eax, [esi + 0x5d558]
push edi
push eax
call fcn.0048986a
pop ecx
pop ecx
cmp eax, ebx
je 0x41823a
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
lea edx, [ecx + 2]
mov di, word [ecx]
inc ecx
inc ecx
cmp di, bx
jne 0x41821c
sub ecx, edx
sar ecx, 1
lea eax, [eax + ecx*2]
push eax
call fcn.0048c288
pop ecx
mov dword [esi + 0x2698], eax
mov ecx, esi
call fcn.0041c8da
test eax, eax
je 0x4181f3
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2464], eax
cmp eax, ebx
je 0x41828f
mov dword [ebp - 4], ebx
mov dword [esi + 0x5d120], 8
cmp dword [esi + 0x2480], ebx
jne 0x418289
lea eax, [ebp - 4]
push eax
push ebx
push esi
push fcn.004185c2
push ebx
push ebx
call fcn.0048a081
add esp, 0x18
mov dword [esi + 0xc], eax
jmp 0x41828f
push esi
call fcn.004185c2
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x419238
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x26ec]
call fcn.0041cb07
mov esi, dword [eax]
mov eax, dword [esi + 0x20]
xor edi, edi
inc edi
mov dword [esi + 0x28], 2
cmp dword [eax + 4], edi
je 0x4192af
cmp dword [ebx + 0x2484], 0
je 0x41929c
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
push dword [ebx + 0x2488]
push dword [ebx + 0x2484]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x4192a0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x4192d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4192d3
jmp 0x41929c
cmp dword [esi], 0
jne 0x4192c0
mov eax, dword [esi + 4]
test eax, eax
je 0x4192c0
mov dword [esi + 0x18], eax
jmp 0x41929c
mov eax, dword [ebp + 8]
and dword [esi + 0x28], 0
push edi
mov ecx, ebx
call fcn.0041a9ca
test eax, eax
jne 0x41929c
xor eax, eax
pop edi
pop esi
pop ecx
pop ebp
ret 4
Function at 0x419c34
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, eax
lea esi, [ebx + 0x26ec]
call fcn.0041cb07
mov esi, dword [eax]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x419caa
cmp dword [ebx + 0x2484], 0
je 0x419cd9
push dword [esi + 0xc]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x2488]
push dword [ebx + 0x2484]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x419c98
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x419cd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x419cdc
cmp dword [esi], 0
jne 0x419cbb
mov eax, dword [esi + 4]
test eax, eax
je 0x419cbb
mov dword [esi + 0x18], eax
jmp 0x419cd9
push 1
mov eax, edi
mov ecx, ebx
mov dword [esi + 0x28], 4
call fcn.0041a9ca
test eax, eax
jne 0x419cd9
push edi
mov eax, ebx
call fcn.0041a437
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x419fba
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
add esi, 0x26ec
call fcn.0041cb07
mov esi, dword [eax]
push 0xa
lea edx, [esi + 0x8044]
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x8000
push edi
push eax
lea ebx, [esi + 0x40]
push ebx
mov dword [edx], 0x28
call fcn.0048e0e0
mov eax, dword [esi + 0x8040]
mov dword [esi + 0x8058], ebx
add esp, 0xc
lea ebx, [esi + 0x805c]
mov dword [ebx], edi
test eax, eax
je 0x41a047
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
sbb edx, dword [eax + 0x1c]
sub ecx, dword [eax + 8]
sbb edx, dword [eax + 0xc]
add ecx, 1
mov eax, edx
adc eax, 0
test eax, eax
jb 0x41a040
ja 0x41a03a
cmp ecx, edi
jbe 0x41a040
and dword [ebp - 4], 0
jmp 0x41a080
mov edi, ecx
mov dword [ebp - 4], eax
jmp 0x41a080
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5d128]
mov ecx, dword [edx + 0x5d12c]
cmp eax, 0xffffffff
jne 0x41a05f
cmp ecx, eax
je 0x41a082
sub eax, dword [edx + 0x5d138]
sbb ecx, dword [edx + 0x5d13c]
test ecx, ecx
jb 0x41a07b
ja 0x41a075
cmp eax, edi
jbe 0x41a07b
and dword [ebp - 4], 0
jmp 0x41a080
mov edi, eax
mov dword [ebp - 4], ecx
mov dword [ebx], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x20]
xor edi, edi
inc edi
mov dword [esi + 0x28], 9
cmp dword [eax + 4], edi
je 0x41a0e1
push esi
push edi
lea eax, [esi + 0x8044]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x41a0c0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x41a0da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41a0bc
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.0041a437
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
push dword [ebx]
push dword [esi + 0x8058]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x41a0af
Function at 0x41a7f0
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.0049b9f0
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1014], edi
mov dword [ebp - 0x1010], 0x4c8ca8
cmp dword [edi + 0x2484], ebx
je 0x41a82f
mov dword [ebp - 0x1010], str.POST
xor eax, eax
push 0xffe
mov word [ebp - 0x1008], ax
lea eax, [ebp - 0x1006]
push ebx
push eax
mov dword [ebp - 0x100c], ebx
mov dword [ebp - 0x1020], 0x4c8cbc
mov dword [ebp - 0x101c], ebx
call fcn.0048e0e0
mov eax, dword [esi + 0x20]
add esp, 0xc
lea ecx, [eax + 0x1048]
push ecx
add eax, 0x48
push eax
push 0x4c441c
lea eax, [ebp - 0x1008]
push 0x7ff
push eax
call fcn.00488ec0
add esp, 0x14
mov eax, 0x8400c300
cmp dword [edi + 0x62ee4], ebx
je 0x41a89c
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x41a8aa
or eax, 0x803000
push esi
push eax
lea eax, [ebp - 0x1020]
push eax
push ebx
push str.HTTP_1.1
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 0x1010]
push dword [esi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x41a9b6
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x1010]
push ecx
push 2
push eax
mov dword [ebp - 0x1010], 0x3a98
call edi
push 4
lea eax, [ebp - 0x1018]
push eax
push 0x41
push dword [esi + 0x1c]
mov dword [ebp - 0x1018], 1
call edi
push 0xa
mov dword [ebp - 0x100c], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
xor ecx, ecx
push 2
pop edx
mov eax, 0x5168
mul edx
seto cl
mov dword [ebp - 0x1048], 0x28
neg ecx
or ecx, eax
push ecx
call fcn.00487d50
mov edi, eax
pop ecx
cmp edi, ebx
je 0x41a991
push 0xa2d0
push ebx
push edi
call fcn.0048e0e0
mov ecx, dword [ebp - 0x1014]
add esp, 0xc
push dword [ebp - 0x100c]
mov edx, esi
push edi
call fcn.0041aa98
mov eax, edi
mov dword [ebp - 0x1040], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x41a97d
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x103c], eax
push esi
push 1
push ebx
lea eax, [ebp - 0x1048]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
mov dword [ebp - 0x100c], eax
cmp edi, ebx
je 0x41a9b6
push edi
call fcn.00489298
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x100c]
pop edi
xor ecx, ebp
pop ebx
call fcn.00488e60
leave
ret
Function at 0x41b371
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 8], esi
je 0x41b395
xor eax, eax
inc eax
jmp 0x41b4fc
lea ebx, [edi + 0x5d148]
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push 0x3a
mov word [ebp - 0xc], ax
pop eax
push 0x5c
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
push esi
mov word [ebp - 6], ax
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x41b4fa
mov ecx, dword [edi + 0x5d128]
mov eax, dword [edi + 0x5d12c]
cmp ecx, 0xffffffff
jne 0x41b3f0
cmp eax, ecx
je 0x41b40f
mov edx, dword [ebp - 0x14]
cmp edx, eax
ja 0x41b40f
jb 0x41b400
mov eax, dword [ebp - 0x18]
cmp eax, ecx
ja 0x41b40f
mov dword [edi + 0x2470], 2
jmp 0x41b4fa
push esi
push 0x20
push 4
push esi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
je 0x41b4e4
cmp dword [edi + 0x271c], esi
je 0x41b38d
lea ebx, [edi + 0x2704]
mov eax, ebx
call fcn.0043385f
call fcn.0041b784
test eax, eax
jne 0x41b38d
lea eax, [edi + 0x2468]
cmp dword [eax], esi
ja 0x41b465
mov dword [eax], 5
push 0xa
pop ecx
cmp dword [eax], ecx
jbe 0x41b46e
mov dword [eax], ecx
mov eax, dword [edi + 0x5d128]
mov ecx, dword [edi + 0x5d12c]
add eax, 0xffffffff
mov dword [edi + 0x5cff0], eax
lea eax, [edi + 0x5cfe0]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
adc ecx, 0xffffffff
push eax
mov eax, ebx
mov dword [edi + 0x5cfe8], esi
mov dword [edi + 0x5cfec], esi
mov dword [edi + 0x5cff4], ecx
call fcn.0041cb20
mov eax, dword [edi + 0x5d128]
mov edx, dword [edi + 0x5d12c]
mov cl, 0x20
call fcn.004a6d20
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x5d128]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x41b38d
mov dword [edi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2474], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488e60
leave
ret
Function at 0x41b5b5
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call fcn.0048e0e0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebx
push 0xffffff4a
push dword [esi + 8]
call edi
push ebx
lea eax, [ebp - 0x7c]
push eax
mov ebx, 0xb6
push ebx
lea eax, [ebp - 0x78]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x7c], ebx
jne 0x41b698
mov edx, str._JZSTART_1E222D06_2CB2_4220_AF52_E0B7E800F5C1_CBA04DEF_39E0_45e4_854F_B3EA272DE745_JZEND_
lea eax, [ebp - 0x78]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x41b650
test cx, cx
je 0x41b64c
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x41b650
add eax, 4
add edx, 4
test cx, cx
jne 0x41b62a
xor eax, eax
jmp 0x41b655
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
cmp eax, ebx
jne 0x41b698
push 1
push ebx
push 0xffffff46
push dword [esi + 8]
call edi
push ebx
lea eax, [ebp - 0x7c]
push eax
push 4
lea eax, [ebp - 0x80]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
push 1
add eax, ecx
push ebx
neg eax
push eax
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp + 0x190]
pop edi
xor ecx, ebp
pop ebx
call fcn.00488e60
add ebp, 0x194
leave
ret

Function at 0x41b6af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 2
xor ebx, ebx
lea esi, [edi + 0x2704]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push ebx
push ebx
push dword [edi + 8]
sar eax, 2
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 8], ebx
je 0x41b774
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [edi + 8]
call ebx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
and dword [ebp - 4], 0
sar eax, 2
mov dword [ebp - 0x10], 4
test eax, eax
jbe 0x41b748
mov edi, dword [ebp - 4]
call fcn.0041cb07
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0x20
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call ebx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
add dword [ebp - 0x10], 0x20
inc dword [ebp - 4]
sar eax, 2
cmp dword [ebp - 4], eax
jb 0x41b716
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [edi + 8]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 0xb6
push str._JZSTART_1E222D06_2CB2_4220_AF52_E0B7E800F5C1_CBA04DEF_39E0_45e4_854F_B3EA272DE745_JZEND_
push dword [edi + 8]
call ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41b784
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x218], ebx
call fcn.0048e0e0
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebx
push 0xffffff4a
push dword [edi + 8]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
call esi
push ebx
lea eax, [ebp - 0x214]
push eax
push 0xb6
lea eax, [ebp - 0x210]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x214], 0xb6
jne 0x41b979
mov edx, str._JZSTART_1E222D06_2CB2_4220_AF52_E0B7E800F5C1_CBA04DEF_39E0_45e4_854F_B3EA272DE745_JZEND_
lea eax, [ebp - 0x210]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x41b848
cmp cx, bx
je 0x41b844
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x41b848
add eax, 4
add edx, 4
cmp cx, bx
jne 0x41b822
xor eax, eax
jmp 0x41b84d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41b979
push 1
push ebx
push 0xffffff46
push dword [edi + 8]
call esi
push ebx
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x22c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x214]
push 1
add eax, ecx
push ebx
neg eax
push eax
push dword [edi + 8]
call esi
push ebx
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x218]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x21c], ebx
cmp dword [ebp - 0x218], ebx
jbe 0x41b943
lea esi, [edi + 0x5cff8]
push ebx
lea ecx, [ebp - 0x214]
push ecx
push 0x20
lea eax, [esi - 0x18]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi]
add dword [esi - 0x10], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi - 4]
adc dword [esi - 0xc], eax
mov eax, dword [esi - 8]
sub eax, dword [esi - 0x10]
mov dword [esi - 0x18], ebx
sbb ecx, dword [esi - 0xc]
add eax, 1
adc ecx, ebx
add dword [ebp - 0x228], eax
lea eax, [esi - 0x18]
mov dword [ebp - 0x230], eax
adc dword [ebp - 0x224], ecx
lea eax, [ebp - 0x230]
push eax
lea eax, [edi + 0x2704]
mov dword [esi - 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.0041cb20
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
add esi, 0x20
cmp eax, dword [ebp - 0x218]
jb 0x41b8c7
mov ecx, dword [edi + 0x5d128]
sub ecx, dword [ebp - 0x228]
mov edx, dword [edi + 0x5d12c]
sbb edx, dword [ebp - 0x224]
lea eax, [edi + 0x5d140]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, edx
mov dword [edi + 0x5d13c], eax
xor eax, eax
mov dword [edi + 0x5d138], ecx
inc eax
jmp 0x41b97b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00488e60
leave
ret
Function at 0x41b989
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, eax
mov eax, dword [ebx + 0x805c]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x20]
cmp dword [eax + 4], 1
push edi
jne 0x41b9aa
mov eax, dword [ebx]
mov dword [ebp - 4], eax
xor edi, edi
cmp dword [esi + 0x271c], edi
je 0x41ba4a
call fcn.0041b5b5
mov edi, dword [ebx + 0x8040]
mov ecx, dword [edi + 8]
add ecx, dword [edi + 0x18]
mov eax, dword [edi + 0xc]
adc eax, dword [edi + 0x1c]
push 0
mov edx, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ecx
push dword [esi + 8]
sar edx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41b9fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41ba84
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebx + 0x40]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ba84
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x41ba84
add dword [edi + 0x18], eax
lea eax, [esi + 0x5d138]
adc dword [edi + 0x1c], 0
mov ecx, dword [ebp - 8]
add dword [eax], ecx
push ecx
push esi
adc dword [eax + 4], 0
mov ecx, ebx
call fcn.0041ba8a
push esi
call fcn.0041b6af
xor eax, eax
inc eax
jmp 0x41ba86
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebx + 0x40]
push eax
push dword [esi + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ba84
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jne 0x41ba84
lea eax, [esi + 0x5d138]
add dword [eax], ecx
push ecx
push esi
adc dword [eax + 4], edi
mov ecx, ebx
call fcn.0041ba8a
jmp 0x41ba45
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41df76
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x41dfa4
xor eax, eax
inc eax
jmp 0x41e062
and dword [ebp - 0x80], 0
mov eax, ebx
push esi
mov esi, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41dfb0
sub eax, ecx
sar eax, 1
cmp eax, 0x104
jbe 0x41dfcc
xor eax, eax
jmp 0x41e061
xor eax, eax
push edi
cmp ax, word [ebx]
je 0x41e05d
push 0x4c4ea0
push esi
call fcn.0048986a
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41dffe
push 0x4c43d8
push esi
call fcn.0048986a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41e05d
mov esi, edi
sub esi, ebx
sar esi, 1
test esi, esi
jle 0x41e04f
push 0x20a
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0048e0e0
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.00489972
add esp, 0x18
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x41e04c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x80], 1
cmp eax, 0xb7
je 0x41e04f
mov dword [ebp - 0x80], esi
lea esi, [edi + 2]
xor eax, eax
cmp ax, word [esi]
jne 0x41dfd8
mov eax, dword [ebp - 0x80]
pop edi
pop esi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.00488e60
add ebp, 0x194
leave
ret

Function at 0x41e077
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp + 0x190], eax
and dword [ebp - 0x7c], 0
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, ecx
push ebx
mov dword [ebp - 0x80], ebx
call esi
test eax, eax
jne 0x41e0b0
inc eax
jmp 0x41e146
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push ebx
call edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
test eax, eax
je 0x41e0d5
mov dword [ebp - 0x7c], 1
jmp 0x41e142
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.0048e0e0
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push str._s.df.del
push 0x103
push eax
call fcn.00488ec0
add esp, 0x1c
lea eax, [ebp - 0x78]
push eax
call esi
test eax, eax
je 0x41e11e
push 0x80
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
test eax, eax
je 0x41e142
push 4
push 0
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], edi
call esi
mov eax, dword [ebp - 0x7c]
pop edi
mov ecx, dword [ebp + 0x190]
pop esi
xor ecx, ebp
pop ebx
call fcn.00488e60
add ebp, 0x194
leave
ret
Function at 0x41e15d
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3a8]
and dword [ebp - 0x7c], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], ebx
test eax, eax
je 0x41e29c
test ebx, ebx
je 0x41e29c
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.0048e0e0
push ebx
push 0x4c2d64
mov edi, 0x103
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.00488ec0
add esp, 0x1c
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x74]
push eax
call esi
test eax, eax
jne 0x41e201
lea ebx, [ebp - 0x74]
call fcn.0041df76
test eax, eax
je 0x41e295
mov ebx, dword [ebp - 0x78]
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push eax
call fcn.0048e0e0
push ebx
push str._s.df.bak
lea eax, [ebp + 0x194]
push edi
push eax
call fcn.00488ec0
add esp, 0x1c
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x41e24a
lea ecx, [ebp + 0x194]
call fcn.0041e077
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp + 0x194]
push eax
push ebx
call edi
push ebx
mov dword [ebp - 0x78], eax
call esi
test eax, eax
jne 0x41e272
push eax
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x78], 0
je 0x41e295
cmp dword [ebp - 0x7c], 0
jne 0x41e28a
push ebx
lea eax, [ebp + 0x194]
push eax
call edi
jmp 0x41e295
lea ecx, [ebp + 0x194]
call fcn.0041e077
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
jmp 0x41e29e
xor eax, eax
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
pop ebx
call fcn.00488e60
add ebp, 0x3a0
leave
ret