joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab850
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x4ab86d.4
jmp dword [eax*4 + 0x4aba6c]
lea eax, [edi + 0x15c]
push eax
call fcn.004aaf40
movzx ecx, ax
add esp, 4
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
je 0x4ab8a9
push eax
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.00491e60
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
mov word [edi + 0x40], cx
push 4
push esi
mov dword [edi + 0x18], 0
call fcn.004aafa0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.004aaf80
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4ab9df
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
lea eax, [edi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [edi], ecx
call fcn.004de7f4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
lea esi, [edi + 0x160]
push 4
push esi
mov word [edi + 0x40], ax
mov dword [edi + 0x18], eax
call fcn.004aafa0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.004aaf80
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4ab9df
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.004de7f4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
inc eax
push dword [edi + 0x18]
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.00491e60
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x4ab9bb
mov dword [edi + 8], 0xffffff9d
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4aba45
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.00496680
push eax
push 0x5aac58
push ebx
call fcn.00491dc0
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
push 5
push esi
call fcn.004aafa0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.004aaf80
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push str.tftp_rx:_internal_error
push 0x5aac58
push ebx
call fcn.00491dc0
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4abf30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x4abf42
jmp dword [edx*4 + 0x4abf98]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004aba80
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004ab850
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004ac140
push str.TFTP_finished
push 0x5b4554
push eax
call fcn.00491e60
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x5aac58
push eax
call fcn.00491dc0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x4ac3f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004ed153
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x4ac454
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x4ac454
lea eax, [ebp - 0x108]
push eax
call dword [0x62b394]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484636
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00484636
mov esp, ebp
pop ebp
ret

Function at 0x4ac470
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ac3f0
Function at 0x4afa10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x62b388]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4afa3d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4afa84
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4afa8a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4afaeb
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4afab0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4afb17
mov eax, dword [esi + 4]
push 1
push 0x5bb60c
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5bb60d
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4afaf0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4afb40
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x4afb73
push 0x2e
push edi
call fcn.004d8200
add esp, 8
test eax, eax
je 0x4afb71
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4b20dd
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.004b36bb
lea eax, [ebp - 0x20c]
push eax
call fcn.004d915b
pop ecx
test eax, eax
je 0x4b2192
push ebx
mov ebx, 0x6194dc
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004ddf30
lea eax, [ebp - 0x20c]
push 0x5bb850
push eax
call fcn.004ddf30
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004ddf30
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x4b216b
lea eax, [ebp - 0x20c]
push eax
call fcn.004b4997
pop ecx
cmp word [ebp - 0x20c], si
je 0x4b2183
lea eax, [ebp - 0x20c]
push eax
call fcn.004d915b
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00427e30
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484636
mov esp, ebp
pop ebp
ret 4

Function at 0x4b230f
Capabilities:
Read .ini file

Disassembly:
push 0x838
mov eax, 0x5a4dae
call fcn.00485177
mov edi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x84]
cmp dword [eax + 0x14], 8
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x844], ecx
jb 0x4b233a
mov eax, dword [eax]
push eax
push dword [ebp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, dword [ebp + 0x10]
jne 0x4b2418
xor esi, esi
mov dword [ebp - 0x814], 7
push esi
xor eax, eax
mov dword [ebp - 0x818], esi
push 0x6172ac
lea ecx, [ebp - 0x828]
mov word [ebp - 0x828], ax
call fcn.00427e30
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], esi
push esi
push eax
call fcn.004d7c10
push dword [ebp + 0x10]
lea eax, [ebp - 0x810]
push 0x5bbb14
push eax
call fcn.00430670
add esp, 0x18
lea eax, [ebp - 0x810]
cmp byte [edi + 1], 0
mov ecx, edi
push eax
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push ebx
push eax
je 0x4b23cd
call fcn.004b222b
jmp 0x4b23d2
call fcn.004b22e5
push eax
lea ecx, [ebp - 0x828]
call fcn.00430d70
push esi
push 1
lea ecx, [ebp - 0x840]
call fcn.00427d40
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.004ddedc
pop ecx
push 0
push 1
lea ecx, [ebp - 0x828]
mov esi, eax
call fcn.00427d40
mov eax, esi
call fcn.00485121
ret 0xc
Function at 0x4b2422
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x5a47e5
call fcn.00485177
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], ecx
call fcn.004d7c10
lea eax, [edi + 0x84]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4b247f
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.004276b0
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x4b24c5
mov eax, dword [esi]
jmp 0x4b24c7
mov eax, esi
push ebx
push eax
call fcn.004d93a0
pop ecx
pop ecx
test eax, eax
jne 0x4b2513
cmp byte [edi + 1], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x4b24f7
call fcn.004b222b
jmp 0x4b24fc
call fcn.004b22e5
push eax
mov ecx, esi
call fcn.00430d70
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.00427d40
mov eax, esi
call fcn.00485121
ret 0x10

Function at 0x4b25a8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [esi + 0xc]
cmp dword [eax + 0x14], 8
jb 0x4b25c9
mov eax, dword [eax]
push 0x5bba30
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00430670
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b2601
lea eax, [ebp - 0x20c]
push eax
call fcn.004b4997
pop ecx
lea eax, [ebp - 0x20c]
push str.Related.ini
push eax
call fcn.004ddf30
cmp word [ebp - 0x20c], 0
pop ecx
pop ecx
jne 0x4b2622
xor eax, eax
jmp 0x4b262f
lea eax, [ebp - 0x20c]
push eax
call fcn.004d915b
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x6c]
call fcn.00427e30
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00484636
mov esp, ebp
pop ebp
ret
Function at 0x4b264e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc34]
push esi
push edi
push 0x208
xor edi, edi
mov esi, ecx
push edi
push eax
mov dword [ebp - 0xc3c], esi
call fcn.004d7c10
push 0x208
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.004d7c10
push 0x208
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.004d7c10
push 0x208
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.004d7c10
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004d7c10
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.004d7c10
add esp, 0x48
lea eax, [ebp - 0xc34]
mov ecx, esi
push edi
push 0x1a
push eax
push edi
call fcn.004b36bb
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004d95d7
lea eax, [ebp - 0x20c]
push eax
call fcn.004d915b
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004d84c9
add esp, 0x14
test eax, eax
jne 0x4b272d
mov ecx, esi
jmp 0x4b286f
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.004d95d7
lea eax, [ebp - 0x824]
push str.Local
push eax
call fcn.004ddf30
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
mov esi, edi
inc ecx
test eax, eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
cmovne esi, ecx
push eax
call fcn.004d95d7
lea eax, [ebp - 0x61c]
push str.LocalLow
push eax
call fcn.004ddf30
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa2c]
mov dword [ebp - 0xc38], ecx
push eax
call fcn.004d95d7
lea eax, [ebp - 0xa2c]
push str.Roaming
push eax
call fcn.004ddf30
add esp, 0x10
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x4b2869
cmp dword [ebp - 0xc38], edi
je 0x4b2869
test ecx, ecx
je 0x4b2869
push 0x5bb850
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x5bb868
push eax
call fcn.00430670
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b2840
lea eax, [ebp - 0x414]
push eax
call fcn.004b4997
pop ecx
cmp word [ebp - 0x414], di
je 0x4b2858
lea eax, [ebp - 0x414]
push eax
call fcn.004d915b
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.00427e30
jmp 0x4b2875
mov ecx, dword [ebp - 0xc3c]
push ebx
call fcn.004b20dd
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484636
mov esp, ebp
pop ebp
ret 4
Function at 0x4b2919
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
call fcn.004d7c10
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x26
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x20c], di
je 0x4b2970
lea eax, [ebp - 0x20c]
push eax
call fcn.004d915b
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x20c]
add esi, 0xe4
push eax
mov ecx, esi
call fcn.00427e30
mov edi, 0x6194dc
push edi
call fcn.004d915b
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00428a20
cmp dword [esi + 0x14], 8
jb 0x4b29a4
mov eax, dword [esi]
jmp 0x4b29a6
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b29c6
mov edi, str.C:Program_Files_
push edi
call fcn.004d915b
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00427e30
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484636
mov esp, ebp
pop ebp
ret
Function at 0x4b2f8b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x63b630]
test al, al
jne 0x4b3024
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004d7c10
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4b301b
lea eax, [ebp - 0x20c]
push eax
call fcn.004e7bc2
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.004d7710
pop ecx
pop ecx
test eax, eax
jne 0x4b3013
lea eax, [ebp - 0x20c]
push str.cocuments_and_settingslocalService
push eax
call fcn.004d7710
pop ecx
pop ecx
test eax, eax
je 0x4b301b
mov byte [0x63b630], bl
jmp 0x4b3021
mov bl, byte [0x63b630]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484636
mov esp, ebp
pop ebp
ret
Function at 0x4b346d
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x5a4882
call fcn.00485177
mov ebx, ecx
call fcn.004b21bc
lea edi, [ebx + 0x9c]
push eax
mov ecx, edi
call fcn.00427e00
mov esi, str.WanNengZip.ini
push esi
call fcn.004d915b
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00428a20
mov esi, 0x5bbaf8
lea eax, [ebp - 0x248]
push esi
push str.Spreader
push str.AppInfo
push eax
mov ecx, ebx
call fcn.004b22bb
and dword [ebp - 4], 0
lea eax, [ebp - 0x248]
push eax
call fcn.004b8366
cmp dword [ebp - 0x238], 0
pop ecx
jne 0x4b34f2
push esi
call fcn.004d915b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.00427e30
lea esi, [ebx + 0xb4]
lea eax, [ebp - 0x248]
cmp esi, eax
je 0x4b350e
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00427eb0
push 0x5bbaf8
mov ecx, esi
call fcn.00433010
test eax, eax
jne 0x4b358a
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004d7c10
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4b353b
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, 0x5bbaf8
push eax
push edi
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x4b356c
xor eax, eax
jmp 0x4b3579
lea eax, [ebp - 0x218]
push eax
call fcn.004d915b
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00427e30
jmp 0x4b358f
mov edi, 0x5bbaf8
push edi
mov ecx, esi
call fcn.00433010
test eax, eax
jne 0x4b3652
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004d7c10
add esp, 0xc
lea eax, [ebx + 0x3c]
lea ecx, [ebp - 0x230]
push eax
call fcn.0042f050
push str.WanNengZip.ini
mov byte [ebp - 4], 1
call fcn.004d915b
pop ecx
push eax
push str.WanNengZip.ini
lea ecx, [ebp - 0x230]
call fcn.00428a20
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x4b3623
xor eax, eax
jmp 0x4b3630
lea eax, [ebp - 0x218]
push eax
call fcn.004d915b
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00427e30
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00427d40
push edi
mov ecx, esi
call fcn.00433010
test eax, eax
jne 0x4b368e
push edi
push str.Spreader
push str.AppInfo
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.004b2422
push eax
mov ecx, esi
call fcn.00430d70
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00427d40
push esi
call fcn.004b8366
cmp dword [ebx + 0xc4], 0
pop ecx
jne 0x4b36a6
push edi
mov ecx, esi
call fcn.00427e00
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00427d40
call fcn.00485121
ret
Function at 0x4b47d9
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x61c]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0x620], ebx
call fcn.004d7c10
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004d7c10
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004d95d7
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.004d95d7
lea eax, [ebp - 0x61c]
push eax
call fcn.004e7bc2
lea eax, [ebp - 0x414]
push eax
call fcn.004e7bc2
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004d93a0
add esp, 0x38
test eax, eax
je 0x4b491e
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004d7c10
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x4b48a7
push edi
push 0x5bbe84
push eax
call fcn.004b9a6e
add esp, 0xc
jmp 0x4b48b7
push esi
push edi
push str._s.bak_d
push eax
call fcn.004b9a6e
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b48d5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004eb37c
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
lea eax, [ebp - 0x20c]
push 0
push eax
jne 0x4b491c
call ebx
cmp esi, 0xa
jge 0x4b491e
inc esi
jmp 0x4b4876
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484636
mov esp, ebp
pop ebp
ret

Function at 0x4b492f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call fcn.004d7c10
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], eax
call fcn.004b80ae
test eax, eax
mov ecx, 0x5bbe1c
lea eax, [ebp - 0x3c]
cmovne ecx, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
jne 0x4b4990
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b4997
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call fcn.004d915b
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004846b0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4b4a21
push ebx
push edi
push dword [ebp + 8]
push esi
call fcn.004d95d7
mov eax, dword [ebp - 4]
xor ebx, ebx
pop ecx
inc ebx
xor edi, edi
pop ecx
test eax, eax
js 0x4b4a16
push 0x5c
pop ecx
cmp word [esi + edi*2], cx
jne 0x4b4a0d
xor eax, eax
push esi
mov word [esi + edi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b4a03
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4b4a14
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + edi*2], cx
inc edi
cmp edi, eax
jle 0x4b49e0
jmp 0x4b4a16
xor ebx, ebx
push esi
call fcn.00484647
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret