joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42973b
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x30], ebx
jne 0x429773
push 0x20000
call fcn.00475acf
pop ecx
mov dword [esi + 0x30], eax
cmp eax, ebx
jne 0x429773
xor eax, eax
jmp 0x4298e5
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
and dword [ebp - 0x18], ebx
test eax, eax
jbe 0x4297a7
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00429b97
add ebx, dword [eax + 0x14]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jb 0x429786
inc ebx
inc ebx
cmp ebx, 0x20000
ja 0x42976c
call fcn.004298f6
push 2
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x2c], eax
cmp eax, 0xffffffff
je 0x42976c
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x429806
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.004298f6
jmp 0x42976c
push 0x21
push 0x478
push dword [esi + 4]
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
and dword [ebp - 0x18], 0
test eax, eax
jbe 0x42986e
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00429b97
cmp dword [eax + 0x14], 0x20000
jbe 0x42984c
and dword [ebp - 0x1c], 0
jmp 0x42985a
push dword [ebp - 0x1c]
mov edx, eax
call fcn.0042c5d0
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jb 0x429833
push 0x4b4140
lea ecx, [ebp - 0x38]
call fcn.00402477
cmp dword [ebp - 0x24], 0x20000
ja 0x429890
push dword [ebp - 0x1c]
lea edx, [ebp - 0x38]
call fcn.0042c5d0
pop ecx
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.0040284b
test ebx, ebx
jbe 0x4298d5
push 0
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [esi + 0x30]
add eax, edi
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4298cf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4297fc
jmp 0x4298d1
add edi, eax
cmp edi, ebx
jb 0x4298a1
and dword [esi + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x48], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00476d3a
leave
ret 0xc
Function at 0x429997
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
xor edx, edx
cmp dword [esi + 0x40], ebx
je 0x4299c2
mov edx, dword [esi + 0x34]
mov eax, 0x1ffff
sub eax, dword [esi + 0x34]
jmp 0x4299e3
mov eax, dword [esi + 0x38]
cmp eax, ebx
jne 0x4299d5
cmp dword [esi + 0x54], ebx
je 0x4299d5
mov eax, 0x20000
jmp 0x4299e3
sub eax, dword [esi + 0x34]
mov ecx, 0x20000
cmp eax, ecx
jb 0x4299e3
mov eax, ecx
push ebx
push eax
mov eax, dword [esi + 0x30]
add eax, edx
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [esi + 0x44], ebx
cmp eax, 0xffffffff
je 0x429b2e
cmp eax, ebx
je 0x429b5f
add dword [esi + 0x34], eax
mov ecx, dword [esi + 0x34]
cmp dword [esi + 0x40], ebx
je 0x429add
mov eax, dword [esi + 0x30]
mov byte [ecx + eax], bl
mov eax, dword [esi + 0x30]
push str._r_n_r_n
push eax
call fcn.0047a490
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x429a60
cmp dword [esi + 0x34], 0x800
mov dword [esi + 0x54], ebx
jbe 0x429af4
push 0x21
push 0x478
push dword [esi + 4]
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
call fcn.004298f6
jmp 0x429b67
mov eax, dword [esi + 0x30]
add edi, 4
mov ecx, edi
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00429b71
lea eax, [esi + 0x38]
push eax
lea eax, [ebp - 0x20]
call fcn.00429545
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x429a97
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
push dword [esi + 0x3c]
call dword [eax + 8]
test eax, eax
jne 0x429abd
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
sub eax, edi
add eax, ecx
cmp eax, ebx
je 0x429aca
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x34], eax
cmp ecx, ebx
je 0x429acd
mov edx, dword [ecx]
push eax
push edi
push dword [esi + 0x3c]
call dword [edx + 0xc]
test eax, eax
je 0x429acd
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.0040284b
jmp 0x429b1c
mov dword [esi + 0x34], ebx
push ebx
push 1
lea ecx, [ebp - 0x20]
mov dword [esi + 0x40], ebx
call fcn.0040284b
jmp 0x429af4
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x429af4
mov edx, dword [ecx]
push eax
push dword [esi + 0x30]
push dword [esi + 0x3c]
call dword [edx + 0xc]
test eax, eax
jne 0x429b1c
mov eax, dword [esi + 0x38]
cmp dword [esi + 0x34], eax
jne 0x429b00
cmp eax, ebx
jne 0x429b09
cmp dword [esi + 0x54], ebx
je 0x4299ae
call fcn.004298f6
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x429b1c
push dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00476d3a
leave
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
je 0x429b1c
cmp edi, 0x2736
je 0x429b1c
call fcn.004298f6
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x429b5b
push edi
push dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x429b1f
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
je 0x429b1c
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x429b5b
push ebx
jmp 0x429b53
Function at 0x429d24
Capabilities:
Create thread

Disassembly:
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
push ebx
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x14], ebx
push esi
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], vtable.IAsynHttpClientEvent.0
lea esi, [edi + 0x2c]
mov dword [edi], vtable.AsynHttpFileClientImpl.0
mov dword [edi + 0x24], vtable.AsynHttpFileClientImpl.1.0
call fcn.0042bb93
lea ecx, [edi + 0x44]
call fcn.0042bd12
lea ecx, [edi + 0x60]
call fcn.0042bd12
lea ecx, [edi + 0x88]
mov dword [edi + 0x7c], 0x1e
mov dword [edi + 0x84], ebx
call fcn.004018e1
lea ecx, [edi + 0xa4]
call fcn.004018e1
lea ecx, [edi + 0xc0]
call fcn.004018e1
lea ecx, [edi + 0xdc]
call fcn.004018e1
lea ecx, [edi + 0xf8]
call fcn.004018e1
lea ecx, [edi + 0x114]
call fcn.004018e1
lea ecx, [edi + 0x130]
call fcn.00403263
lea ecx, [edi + 0x14c]
call fcn.00403263
xor eax, eax
push 0x108
mov dword [edi + 0x168], ebx
mov dword [edi + 0x16c], ebx
mov dword [edi + 0x178], ebx
mov word [edi + 0x17c], ax
call fcn.00476d64
pop ecx
cmp eax, ebx
je 0x429e00
mov esi, eax
call fcn.0042c7dd
jmp 0x429e02
xor eax, eax
push ebx
push ebx
push edi
push 0x42b9bc
push ebx
push ebx
mov dword [edi + 0x80], eax
call fcn.00477f45
add esp, 0x18
pop esi
mov dword [edi + 0x174], eax
mov eax, edi
pop ebx
ret
Function at 0x42a6e4
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
lea esi, [ebx + 8]
mov dword [esp + 0x10], ebx
call fcn.00403f82
cmp dword [ebx + 0x144], 0
mov esi, dword [eax]
je 0x42a8b9
test esi, esi
je 0x42a8b9
mov edi, dword [ebp + 0xc]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
mov eax, edi
call fcn.0042957e
mov ecx, dword [esp + 0x14]
cmp ecx, 0x190
jb 0x42a74e
mov esi, dword [esi]
call fcn.004298f6
mov dword [ebx + 0x60], 3
xor eax, eax
inc eax
jmp 0x42a8bb
mov eax, dword [ebx + 0x144]
cmp eax, 1
jne 0x42a78b
cmp ecx, 0x12e
jne 0x42a790
lea ecx, [ebx + 0x9c]
push edi
mov edi, str.Location:
mov dword [esp + 0x18], ecx
call fcn.004295b5
mov edx, dword [esp + 0x14]
add ebx, 0xffffffdc
mov ecx, ebx
call fcn.0042abd9
call fcn.0042af23
jmp 0x42a7d5
cmp eax, 2
jne 0x42a7ea
cmp ecx, 0xc8
jne 0x42a746
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x80]
push eax
lea ecx, [ebx + 0x9c]
call fcn.00401a1c
lea eax, [ebx + 0x148]
push eax
mov eax, edi
call fcn.00429545
push edi
lea ecx, [ebx + 0xb8]
mov edi, str.Last_Modified:
call fcn.004295b5
add ebx, 0xffffffdc
call fcn.0042b088
test eax, eax
jne 0x42a746
mov eax, dword [esp + 0x10]
mov dword [eax + 0x60], 3
jmp 0x42a810
push 3
pop edi
cmp eax, edi
jne 0x42a81c
cmp ecx, 0xce
jne 0x42a746
lea eax, [ebx - 0x24]
call fcn.0042b619
test eax, eax
jne 0x42a746
mov dword [ebx + 0x60], edi
mov esi, dword [esi]
call fcn.004298f6
jmp 0x42a746
cmp eax, 4
jne 0x42a746
cmp ecx, 0x130
jne 0x42a857
cmp dword [ebx + 0x7c], 8
jb 0x42a838
mov eax, dword [ebx + 0x68]
jmp 0x42a83b
lea eax, [ebx + 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a852
mov dword [ebx + 0x60], 2
jmp 0x42a746
add ebx, 0xffffffdc
jmp 0x42a8af
cmp ecx, 0xc8
jne 0x42a746
cmp dword [ebx + 0x7c], 8
jb 0x42a86e
mov eax, dword [ebx + 0x68]
jmp 0x42a871
lea eax, [ebx + 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a8a5
cmp dword [ebx + 0x7c], 8
jb 0x42a887
mov eax, dword [ebx + 0x68]
jmp 0x42a88a
lea eax, [ebx + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add ebx, 0xffffffdc
mov ecx, ebx
call fcn.0042b857
test eax, eax
jne 0x42a746
jmp 0x42a8a8
add ebx, 0xffffffdc
mov eax, ebx
call fcn.0042b929
call fcn.0042b6af
jmp 0x42a746
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42abd9
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 7
pop ebx
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
mov edi, edx
mov dword [ebp - 8], ebx
call fcn.00401d5a
push 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], ebx
call fcn.00401d5a
lea eax, [esi + 0x17c]
push eax
lea ebx, [ebp - 0x20]
mov eax, edi
call fcn.00429c3a
pop ecx
lea ebx, [esi + 0x130]
push ebx
lea eax, [ebp - 0x20]
call fcn.0042c4c0
pop ecx
lea eax, [ebp - 0x3c]
push eax
mov eax, edi
call fcn.00429cd8
pop ecx
lea eax, [esi + 0x14c]
push eax
lea eax, [ebp - 0x3c]
call fcn.0042c4c0
pop ecx
xor edi, edi
push edi
push 1
call fcn.00413714
pop ecx
pop ecx
cmp eax, edi
je 0x42ac65
lea ecx, [ebp - 0x5c]
mov dword [eax], ecx
mov dword [ebp - 0x5c], eax
jmp 0x42ac68
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x1e
dec dword [ebp - 0x44]
lea eax, [ebp - 0x5c]
call fcn.00401948
cmp dword [ebx + 0x18], 0x10
jb 0x42ac8e
mov eax, dword [ebx + 4]
jmp 0x42ac91
lea eax, [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x42acbe
cmp dword [ebx + 0x18], 0x10
jb 0x42aca9
mov eax, dword [ebx + 4]
jmp 0x42acac
lea eax, [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x178], eax
jmp 0x42ad44
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x178], eax
mov eax, dword [edi + 0xc]
cmp dword [eax], 0
je 0x42ad44
and dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp - 0x50]
mov eax, dword [eax]
add dword [ebp - 0x40], 4
mov dword [ebp - 0x60], eax
test ecx, ecx
jne 0x42acf1
xor eax, eax
jmp 0x42acf9
mov eax, dword [ebp - 0x48]
sub eax, ecx
sar eax, 2
mov edx, dword [ebp - 0x4c]
sub edx, ecx
sar edx, 2
cmp edx, eax
mov eax, dword [ebp - 0x4c]
jae 0x42ad15
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0x4c], eax
jmp 0x42ad38
mov dword [ebp - 0x64], eax
cmp ecx, eax
jbe 0x42ad21
call fcn.00476979
push dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
call fcn.0040ba8c
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + eax], 0
jne 0x42acd7
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
sar eax, 2
test eax, eax
ja 0x42ad66
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x44], 0
jne 0x42ac78
mov ebx, esi
call fcn.0042aa98
push esi
lea ebx, [ebp - 0x5c]
call fcn.0042a91a
xor esi, esi
cmp dword [ebp - 0x50], esi
je 0x42ad86
push dword [ebp - 0x50]
call fcn.00476811
pop ecx
push dword [ebp - 0x5c]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
call fcn.00476811
pop ecx
push esi
push 1
lea ecx, [ebp - 0x3c]
call fcn.00401ad3
push esi
push 1
lea ecx, [ebp - 0x20]
call fcn.00401ad3
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00476d3a
leave
ret
Function at 0x42b731
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xa0], 8
push edi
jb 0x42b75a
mov eax, dword [esi + 0x8c]
jmp 0x42b760
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b846
cmp dword [esi + 0xa0], 8
jb 0x42b780
mov eax, dword [esi + 0x8c]
jmp 0x42b786
lea eax, [esi + 0x8c]
lea ecx, [ebp - 0xc8]
push ecx
push eax
call fcn.0047c038
pop ecx
pop ecx
test eax, eax
jne 0x42b828
mov eax, dword [ebp - 0xb4]
cmp eax, dword [esi + 0x16c]
jne 0x42b828
lea eax, [ebp - 0xa8]
push eax
call fcn.0047bf10
mov edi, eax
pop ecx
test edi, edi
je 0x42b828
push 0x70
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00476cc0
add esp, 0xc
push edi
push 0x4b40e4
lea eax, [ebp - 0x78]
push 0x38
push eax
call fcn.0047c623
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x94]
call fcn.004018f6
lea ecx, [ebp - 0x94]
mov ebx, esi
call fcn.0042b210
mov ebx, eax
neg ebx
push 0
sbb bl, bl
push 1
lea ecx, [ebp - 0x94]
inc bl
call fcn.00401ad3
test bl, bl
je 0x42b823
mov dword [esi + 0x84], 3
xor eax, eax
inc eax
jmp 0x42b848
cmp dword [esi + 0xa0], 8
jb 0x42b839
mov esi, dword [esi + 0x8c]
jmp 0x42b83f
add esi, 0x8c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00476d3a
leave
ret

Function at 0x42b857
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov esi, dword [ebx + 0x80]
cmp dword [esi + 0x78], 8
push edi
jb 0x42b87d
mov eax, dword [esi + 0x64]
jmp 0x42b880
lea eax, [esi + 0x64]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x42b918
lea eax, [esi + 0x7c]
cmp dword [eax + 0x18], 8
jb 0x42b89f
mov eax, dword [eax + 4]
jmp 0x42b8a2
add eax, 4
push eax
call edi
test eax, eax
je 0x42b918
mov edi, dword [ebx + 0x80]
call fcn.0042ca88
test eax, eax
je 0x42b918
mov eax, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x16c]
cmp ecx, dword [eax + 0x34]
jne 0x42b918
xor esi, esi
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], 7
call fcn.00401d5a
mov eax, dword [ebx + 0x80]
push 0xffffffffffffffff
push esi
add eax, 0xd0
push eax
lea ecx, [ebp - 0x20]
call fcn.00401a1c
lea ecx, [ebp - 0x20]
call fcn.0042b210
test eax, eax
jne 0x42b908
mov dword [ebx + 0x84], 3
push esi
push 1
lea ecx, [ebp - 0x20]
call fcn.00401ad3
xor eax, eax
inc eax
jmp 0x42b91a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00476d3a
leave
ret
Function at 0x42c6d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x20]
push eax
mov ebx, ecx
push edi
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x14], 4
jae 0x42c721
xor eax, eax
jmp 0x42c7cf
mov ebx, dword [ebp - 0x10]
cmp ebx, edi
je 0x42c71a
push ebx
call fcn.00475acf
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x42c71a
push edi
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x14], ebx
jae 0x42c76d
push dword [ebp - 0x18]
call fcn.004769e6
pop ecx
jmp 0x42c71a
mov eax, dword [ebp - 0x18]
push ebx
mov edx, esi
call fcn.0042c5f6
lea edx, [esi + 4]
push ebx
call fcn.0042c5f6
lea edx, [esi + 8]
push ebx
call fcn.0042c5f6
lea edx, [esi + 0xc]
push ebx
call fcn.0042c5f6
lea edx, [esi + 0x10]
push ebx
mov dword [ebp - 0x1c], edx
call fcn.0042c5f6
lea edi, [esi + 0x14]
push ebx
call fcn.0042c652
lea edi, [esi + 0x30]
push ebx
call fcn.0042c652
lea edi, [esi + 0x4c]
push ebx
call fcn.0042c652
push dword [ebp - 0x18]
call fcn.004769e6
mov ecx, dword [ebp - 0x1c]
xor eax, eax
add esp, 0x24
cmp dword [ecx], eax
setne al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00476d3a
leave
ret
Function at 0x42cf65
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, edx
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x40], eax
cmp dword [esi + 0x104], edi
jne 0x42cf93
xor eax, eax
jmp 0x42d0c8
mov eax, dword [ebp + 8]
lea ecx, [eax + ebx]
cmp ecx, dword [esi + 0x34]
ja 0x42cf8c
push edi
lea ecx, [ebp - 0x48]
push ecx
push eax
push dword [esi + 0x3c]
mov dword [ebp - 0x48], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x44]
push eax
push ebx
push dword [ebp - 0x40]
mov dword [ebp - 0x44], edi
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
xor edx, edx
div dword [esi + 0x38]
lea edi, [esi + 0x30]
add dword [edi], ebx
mov ecx, esi
mov dword [ebp - 0x40], eax
call fcn.0042d1a8
mov ecx, dword [ebp - 0x40]
cmp ecx, eax
jae 0x42cff4
mov eax, dword [esi + 0x104]
mov byte [ecx + eax], 2
mov dword [esi + 0x28], 1
push ebx
push dword [edi]
lea eax, [ebp - 0x3c]
push str.totolrecv:_d__getsize:_d
push eax
call fcn.0047b6df
add esp, 0x10
call fcn.0042d156
cmp dword [esi + 0x34], 0
je 0x42d0c5
mov edi, dword [esi + 0x104]
test edi, edi
je 0x42d0c5
mov ecx, esi
call fcn.0042d1a8
test eax, eax
je 0x42d0c5
xor ecx, ecx
test eax, eax
jbe 0x42d049
cmp byte [edi + ecx], 2
jne 0x42d0c5
inc ecx
cmp ecx, eax
jb 0x42d03a
call fcn.0042d0d9
mov eax, dword [esi + 0x104]
test eax, eax
je 0x42d066
push eax
call fcn.004769e6
and dword [esi + 0x104], 0
pop ecx
mov eax, dword [esi + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
cmp eax, ebx
je 0x42d07c
push eax
call edi
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x42d089
push eax
call edi
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x5c], 8
jb 0x42d094
mov ecx, dword [esi + 0x48]
jmp 0x42d097
lea ecx, [esi + 0x48]
cmp dword [esi + 0x78], 8
jb 0x42d0a2
mov eax, dword [esi + 0x64]
jmp 0x42d0a5
lea eax, [esi + 0x64]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [esi + 0x7c]
cmp dword [eax + 0x18], 8
jb 0x42d0bb
mov eax, dword [eax + 4]
jmp 0x42d0be
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00476d3a
leave
ret 8
Function at 0x42d390
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4a35ea
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x4c3a60]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [0x4c3a60]
xor eax, esp
push eax
lea eax, [esp + 0x210]
mov dword fs:[0], eax
lea eax, [esi + 8]
push eax
mov dword [esp + 0xc], esi
call fcn.0042d930
lea ecx, [esi + 0x20]
push ecx
mov dword [esp + 0x21c], 0
call fcn.0042d930
lea edx, [esi + 0x38]
push edx
mov byte [esp + 0x21c], 1
call fcn.0042d930
mov byte [esp + 0x218], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4b4cb8
lea edx, [esp + 0x14]
mov dword [esi + 0x54], eax
call fcn.0042ddf0
add esp, 8
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esi + 4]
push ecx
push 4
push esi
push 0x42d370
push 0
push 0
mov dword [esi + 0x50], eax
call fcn.00477f45
add esp, 0x18
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00476d3a
add esp, 0x218
ret
Function at 0x43252c
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push edi
mov dword [esi + 0x1a4], eax
lea eax, [esi + 0x1b8]
push 0x4a5da0
lea edi, [esi + 0x1a0]
push eax
mov dword [edi], 0x3b8
mov dword [esi + 0x1b0], 0x401
mov dword [esi + 0x1ac], 0x17
call fcn.00476c96
lea eax, [esi + 0x4c4]
push 0x4a5d94
push eax
call fcn.00476c96
lea eax, [esi + 0x2c0]
push 0x4a5d80
push eax
call fcn.00476c96
add esp, 0x18
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x32
mov dword [esp + 0x18], eax
call ebx
push eax
push 0x31
call ebx
push eax
xor ebp, ebp
inc ebp
push ebp
push 0x66
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_LoadImageW]
push edi
mov ebx, eax
push 0
mov dword [esi + 0x1b4], ebx
mov dword [esi + 0x1a8], ebp
mov dword [esi + 0x544], ebp
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ebp, eax
test ebx, ebx
je 0x4325ea
push ebx
call dword [sym.imp.USER32.dll_DestroyIcon]
test ebp, ebp
je 0x432608
mov eax, dword [esi + 0x44]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [eax + 4]
call edi
mov eax, dword [esi + 0x30]
push 0
push dword [eax + 4]
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret

Function at 0x43265d
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 0xc], 0x203
push esi
mov esi, ecx
jne 0x4326bb
mov eax, dword [esi + 0x44]
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
push edi
add eax, 4
push dword [eax]
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
mov eax, dword [esi + 0x44]
je 0x43268a
push 0
push dword [eax + 4]
call edi
jmp 0x43269d
push 1
push dword [eax + 4]
call edi
mov eax, dword [esi + 0x44]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esi + 0x30]
add eax, 4
push dword [eax]
call ebx
test eax, eax
mov eax, dword [esi + 0x30]
je 0x4326b2
push 0
jmp 0x4326b4
push 1
push dword [eax + 4]
call edi
pop edi
pop ebx
xor eax, eax
pop esi
ret 0x10

Function at 0x433183
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
xor eax, eax
push eax
push ecx
push 0x4330b7
push eax
push eax
call fcn.00477f45
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret