joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4314f7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
lea esi, [edi + 0x208]
cmp dword [esi], 0
je 0x43151a
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43151a
xor eax, eax
inc eax
jmp 0x431554
lea eax, [ebp - 4]
push edi
push eax
call fcn.0043ee4b
mov edi, dword [ebp - 4]
xor eax, eax
cmp dword [ebp + 8], eax
push 0
setne al
lea eax, [eax*4 + 2]
push eax
push esi
push edi
call sym.hao123Juzi.exe_sqlite3_open_v2
mov esi, eax
add esp, 0x18
neg esi
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
call fcn.00406ace
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x431ad5
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004dbcc0
push 0x2454
push 0
push esi
call fcn.004dbcc0
lea eax, [esi + 8]
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x2148]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x48]
mov dword [ebp - 0x10], eax
mov eax, 0x800
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x2348]
lea ecx, [esi + 0x1048]
mov dword [ebp - 0x20], eax
mov eax, 0x80
mov dword [ebp - 8], ecx
lea ecx, [esi + 0x2048]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
add esp, 0x18
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x28], 0x100
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x431b59
sub eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp + 0xc]
sar eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x431bb2
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x431b8e
cmp eax, 4
je 0x431b8e
cmp eax, 1
jne 0x431bb2
mov cx, word [ebp - 0x24]
and dword [esi + 0x2448], 0
and dword [esi + 0x244c], 0
or dword [esi + 0x2450], 0xffffffff
mov dword [esi + 4], eax
xor eax, eax
mov word [esi], cx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x431bb6
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 0x431bcb
xor eax, eax
jmp 0x431c63
mov edi, str.MetalinkFile
lea eax, [esi + 0x5d558]
push edi
push eax
call fcn.004d621b
pop ecx
pop ecx
cmp eax, ebx
je 0x431c0b
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 0x431bed
sub ecx, edx
sar ecx, 1
lea eax, [eax + ecx*2]
push eax
call fcn.004d9c1a
pop ecx
mov dword [esi + 0x2698], eax
mov ecx, esi
call fcn.00436026
test eax, eax
je 0x431bc4
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2464], eax
cmp eax, ebx
je 0x431c60
mov dword [ebp - 4], ebx
mov dword [esi + 0x5d120], 8
cmp dword [esi + 0x2480], ebx
jne 0x431c5a
lea eax, [ebp - 4]
push eax
push ebx
push esi
push fcn.00431f7f
push ebx
push ebx
call fcn.004d67c7
add esp, 0x18
mov dword [esi + 0xc], eax
jmp 0x431c60
push esi
call fcn.00431f7f
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x432ba6
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.0044a99d
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 0x432c1d
cmp dword [ebx + 0x2484], 0
je 0x432c0a
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 0x432c0e
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x432c43
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x432c41
jmp 0x432c0a
cmp dword [esi], 0
jne 0x432c2e
mov eax, dword [esi + 4]
test eax, eax
je 0x432c2e
mov dword [esi + 0x18], eax
jmp 0x432c0a
mov eax, dword [ebp + 8]
and dword [esi + 0x28], 0
push edi
mov ecx, ebx
call fcn.0043430c
test eax, eax
jne 0x432c0a
xor eax, eax
pop edi
pop esi
pop ecx
pop ebp
ret 4
Function at 0x4335a2
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.0044a99d
mov esi, dword [eax]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x433618
cmp dword [ebx + 0x2484], 0
je 0x433647
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 0x433606
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x433647
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x43364a
cmp dword [esi], 0
jne 0x433629
mov eax, dword [esi + 4]
test eax, eax
je 0x433629
mov dword [esi + 0x18], eax
jmp 0x433647
push 1
mov eax, edi
mov ecx, ebx
mov dword [esi + 0x28], 4
call fcn.0043430c
test eax, eax
jne 0x433647
push edi
mov eax, ebx
call fcn.00433da5
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x433928
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.0044a99d
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.004dbcc0
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 0x4339b5
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 0x4339ae
ja 0x4339a8
cmp ecx, edi
jbe 0x4339ae
and dword [ebp - 4], 0
jmp 0x4339ee
mov edi, ecx
mov dword [ebp - 4], eax
jmp 0x4339ee
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5d128]
mov ecx, dword [edx + 0x5d12c]
cmp eax, 0xffffffff
jne 0x4339cd
cmp ecx, eax
je 0x4339f0
sub eax, dword [edx + 0x5d138]
sbb ecx, dword [edx + 0x5d13c]
test ecx, ecx
jb 0x4339e9
ja 0x4339e3
cmp eax, edi
jbe 0x4339e9
and dword [ebp - 4], 0
jmp 0x4339ee
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 0x433a4f
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 0x433a2e
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x433a48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x433a2a
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.00433da5
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 0x433a1d
Function at 0x434132
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.004e84e0
mov eax, dword [0x52ec00]
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], 0x516a68
cmp dword [edi + 0x2484], ebx
je 0x434171
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], 0x516a7c
mov dword [ebp - 0x101c], ebx
call fcn.004dbcc0
mov eax, dword [esi + 0x20]
add esp, 0xc
lea ecx, [eax + 0x1048]
push ecx
add eax, 0x48
push eax
push 0x515490
lea eax, [ebp - 0x1008]
push 0x7ff
push eax
call fcn.004d5add
add esp, 0x14
mov eax, 0x8400c300
cmp dword [edi + 0x62cdc], ebx
je 0x4341de
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x4341ec
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 0x4342f8
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.004d4f20
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4342d3
push 0xa2d0
push ebx
push edi
call fcn.004dbcc0
mov ecx, dword [ebp - 0x1014]
add esp, 0xc
push dword [ebp - 0x100c]
mov edx, esi
push edi
call fcn.004343da
mov eax, edi
mov dword [ebp - 0x1040], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x4342bf
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 0x4342f8
push edi
call fcn.004d5e58
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x100c]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d5a7d
leave
ret
Function at 0x434bf5
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x52ec00]
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 0x434c19
xor eax, eax
inc eax
jmp 0x434d80
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 0x434d7e
mov ecx, dword [edi + 0x5d128]
mov eax, dword [edi + 0x5d12c]
cmp ecx, 0xffffffff
jne 0x434c74
cmp eax, ecx
je 0x434c93
mov edx, dword [ebp - 0x14]
cmp edx, eax
ja 0x434c93
jb 0x434c84
mov eax, dword [ebp - 0x18]
cmp eax, ecx
ja 0x434c93
mov dword [edi + 0x2470], 2
jmp 0x434d7e
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 0x434d68
cmp dword [edi + 0x271c], esi
je 0x434c11
lea ebx, [edi + 0x2704]
mov eax, ebx
call fcn.004361f5
call fcn.00434ffa
test eax, eax
jne 0x434c11
lea eax, [edi + 0x2468]
cmp dword [eax], esi
ja 0x434ce9
mov dword [eax], 5
push 0xa
pop ecx
cmp dword [eax], ecx
jbe 0x434cf2
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.0043ab95
mov eax, dword [edi + 0x5d128]
mov edx, dword [edi + 0x5d12c]
mov cl, 0x20
call fcn.004f3660
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 0x434c11
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.004d5a7d
leave
ret
Function at 0x434e39
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x52ec00]
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.004dbcc0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebx
push 0xffffffffffffff96
push dword [esi + 8]
call edi
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0x6a
lea eax, [ebp - 0x78]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x7c], 0x6a
jne 0x434f11
mov edx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x78]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x434ece
cmp cx, bx
je 0x434eca
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x434ece
add eax, 4
add edx, 4
cmp cx, bx
jne 0x434ea8
xor eax, eax
jmp 0x434ed3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x434f11
push 1
push ebx
push 0xffffffffffffff92
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.004d5a7d
add ebp, 0x194
leave
ret

Function at 0x434f28
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 0x434fea
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 0x434fc1
mov edi, dword [ebp - 4]
call fcn.0044a99d
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 0x434f8f
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 0x6a
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
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 0x434ffa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x52ec00]
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.004dbcc0
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebx
push 0xffffffffffffff96
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 0x6a
lea eax, [ebp - 0x210]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x214], 0x6a
jne 0x4351e3
mov edx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x210]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x4350b5
cmp cx, bx
je 0x4350b1
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x4350b5
add eax, 4
add edx, 4
cmp cx, bx
jne 0x43508f
xor eax, eax
jmp 0x4350ba
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4351e3
push 1
push ebx
push 0xffffffffffffff92
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 0x4351ad
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.0043ab95
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
add esi, 0x20
cmp eax, dword [ebp - 0x218]
jb 0x435131
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 0x4351e5
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5a7d
leave
ret
Function at 0x4351f3
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 0x435214
mov eax, dword [ebx]
mov dword [ebp - 4], eax
xor edi, edi
cmp dword [esi + 0x271c], edi
je 0x4352b4
call fcn.00434e39
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 0x435264
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4352ee
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 0x4352ee
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x4352ee
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.004352f4
push esi
call fcn.00434f28
xor eax, eax
inc eax
jmp 0x4352f0
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 0x4352ee
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jne 0x4352ee
lea eax, [esi + 0x5d138]
add dword [eax], ecx
push ecx
push esi
adc dword [eax + 4], edi
mov ecx, ebx
call fcn.004352f4
jmp 0x4352af
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4371a4
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x52ec00]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x4371d2
xor eax, eax
inc eax
jmp 0x437290
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 0x4371de
sub eax, ecx
sar eax, 1
cmp eax, 0x104
jbe 0x4371fa
xor eax, eax
jmp 0x43728f
xor eax, eax
push edi
cmp ax, word [ebx]
je 0x43728b
push 0x5078f4
push esi
call fcn.004d621b
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x43722c
push 0x5110b4
push esi
call fcn.004d621b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43728b
mov esi, edi
sub esi, ebx
sar esi, 1
test esi, esi
jle 0x43727d
push 0x20a
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004dbcc0
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.004d6323
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 0x43727a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x80], 1
cmp eax, 0xb7
je 0x43727d
mov dword [ebp - 0x80], esi
lea esi, [edi + 2]
xor eax, eax
cmp ax, word [esi]
jne 0x437206
mov eax, dword [ebp - 0x80]
pop edi
pop esi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.004d5a7d
add ebp, 0x194
leave
ret

Function at 0x4372a5
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 [0x52ec00]
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 0x4372de
inc eax
jmp 0x437374
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 0x437303
mov dword [ebp - 0x7c], 1
jmp 0x437370
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.004dbcc0
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push str._s.df.bak
push 0x104
push eax
call fcn.004d5add
add esp, 0x1c
lea eax, [ebp - 0x78]
push eax
call esi
test eax, eax
je 0x43734c
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 0x437370
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.004d5a7d
add ebp, 0x194
leave
ret