joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4140bb
Capabilities:
Set current directory

Disassembly:
push ebx
push edi
push 0x4c5c18
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0x60]
mov eax, dword [esi + 0x60]
xor ebx, ebx
cmp eax, ebx
jle 0x4140e9
xor ebx, ebx
inc ebx
push 0x4c5c18
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebx
pop ebx
ret 4
cmp dword [esi + 0x58], ebx
je 0x4140d7
lea edi, [esi + 0x3c]
cmp dword [edi + 0x18], 8
jb 0x4140fc
mov eax, dword [edi + 4]
jmp 0x4140ff
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, edi
call fcn.00403c9f
push dword [esp + 0xc]
mov eax, esi
call fcn.00414059
test eax, eax
jne 0x4140d7
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x4140d7
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x58], ebx
jmp 0x4140d4

Function at 0x415f30
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x4b7f10]
xor eax, ebp
mov dword [ebp + 0x3b8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3c4]
push 0x4c4d2c
mov ecx, edi
mov dword [ebp - 0x64], edi
call fcn.00415a7c
lea eax, [ebp + 0x1b0]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x415f8d
lea eax, [ebp + 0x1b0]
push eax
push edi
call fcn.00417a51
push edi
call fcn.00416244
mov ebx, fcn.00415f30
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x416030
push 0x1c
lea eax, [ebp - 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x416030
lea eax, [ebp - 0x58]
push eax
lea esi, [ebp - 0x60]
call fcn.0041794f
mov ebx, dword [ebp - 0x60]
push 0x5c
push ebx
call fcn.00473ab5
pop ecx
pop ecx
test eax, eax
je 0x416028
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x416028
lea edi, [eax + 1]
test edi, edi
jge 0x415fef
xor edi, edi
cmp edi, dword [ebx - 0xc]
lea eax, [ebp - 0x60]
jl 0x416002
push eax
lea ecx, [ebp - 0x5c]
call fcn.0041777b
jmp 0x416012
call fcn.00416595
push ebx
mov ecx, eax
lea esi, [ebp - 0x5c]
call fcn.00416543
mov edi, dword [ebp - 0x64]
lea eax, [ebp - 0x5c]
call fcn.00416201
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.00415aa1
lea ecx, [ebx - 0x10]
call fcn.00415aa1
mov ecx, dword [ebp + 0x3b8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046cc2a
add ebp, 0x3bc
leave
ret
Function at 0x417799
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4177b0
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4177e5
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4177e1
cmp edi, eax
jae 0x4177e5
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4177d3
cmp edi, eax
jb 0x4177e9
xor eax, eax
jmp 0x4177f2
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x41a915
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x850
mov eax, dword [0x4b7f10]
xor eax, esp
mov dword [esp + 0x84c], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x18]
lea eax, [esi + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
test edi, edi
je 0x41aa3e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x41aa3e
lea eax, [esp + 0x10]
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.00419792
mov eax, esi
mov ecx, ebx
call fcn.0041aa52
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.0046cbb0
add esp, 0xc
push 0x401
lea eax, [esp + 0x54]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x50]
push eax
lea esi, [esp + 0x10]
call fcn.0041794f
mov edi, dword [ebx + 0x5c]
add edi, 0x48
mov eax, esi
call fcn.00416201
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.00415aa1
mov eax, ebx
call fcn.0041aaa1
mov ecx, dword [ebx + 0x5c]
push dword [esp + 0x30]
mov esi, ebx
mov dword [ecx + 0x4c], eax
call fcn.0041a1c5
push dword [esp + 0x30]
lea eax, [esp + 0x14]
push dword [ebx + 0x5c]
call fcn.0041df88
cmp dword [ebx + 0x30], 0
je 0x41aa35
mov eax, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffffe
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea ecx, [esp + 0x30]
call fcn.00419710
mov ecx, dword [esp + 0x854]
pop edi
pop esi
xor ecx, esp
call fcn.0046cc2a
mov esp, ebp
pop ebp
ret
Function at 0x41f219
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ecx, ecx
push esi
mov esi, dword [eax*4 + 0x4c5bc8]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
cmp esi, ecx
jne 0x41f241
mov eax, 0x86180002
jmp 0x41f355
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x41f24a
mov dword [eax], ecx
lea eax, [esi + 0x4094]
push edi
mov edi, dword [eax]
cmp edi, dword [esi + 0x405c]
jae 0x41f352
lea edx, [edi + 1]
mov dword [eax], edx
mov dword [esi + edi*4 + 0x40a4], ecx
mov ecx, dword [esi + 0x70a4]
mov ebx, edi
lea ecx, [esi + ecx*2 + 0x60a4]
shl ebx, 5
add ebx, dword [esi + 0x4050]
lea eax, [esi + 0x4040]
push ecx
mov edx, edi
call fcn.00420c1c
mov eax, dword [ebp + 0xc]
pop ecx
test eax, eax
je 0x41f2a1
lea ecx, [esi + 0x60a4]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x41f352
cmp byte [ebx + 0x19], 0
jne 0x41f2fd
push 0x4b9f78
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x40a0]
push eax
lea eax, [esi + 0x409c]
push eax
lea eax, [esi + 0x4098]
push eax
lea eax, [esi + 0x24]
push edi
push eax
lea eax, [esi + 0x4040]
call fcn.0042162d
add esp, 0x20
test eax, eax
je 0x41f2fd
xor ecx, ecx
cmp eax, 2
setne cl
lea ecx, [ecx + ecx - 0x79e7fffd]
mov eax, ecx
jmp 0x41f354
mov eax, dword [esi + 0x70a4]
lea edi, [esi + eax*2 + 0x60a4]
cmp word [edi], 0
je 0x41f33f
mov dword [ebp + 8], edi
cmp word [edi], 0x2f
jne 0x41f331
xor eax, eax
mov word [edi], ax
lea eax, [esi + 0x60a4]
push eax
call fcn.0041f852
pop ecx
push 0x5c
pop eax
mov word [edi], ax
mov edi, dword [ebp + 8]
inc edi
inc edi
cmp word [edi], 0
mov dword [ebp + 8], edi
jne 0x41f313
cmp byte [ebx + 0x19], 0
je 0x41f359
add esi, 0x60a4
push esi
call fcn.0041f852
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [esi + 0x60a4]
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp + 8]
push eax
xor eax, eax
inc eax
call fcn.0041f86b
pop ecx
pop ecx
test eax, eax
jne 0x41f3b8
mov eax, dword [esi + 0x409c]
add eax, dword [ebp - 8]
mov edi, dword [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 4]
call fcn.0041f920
pop ecx
pop ecx
test eax, eax
jne 0x41f3b8
cmp edi, dword [ebp - 4]
jne 0x41f3b8
lea esi, [ebp + 8]
call fcn.0041f8ad
test eax, eax
jne 0x41f3b8
cmp byte [ebx + 0x1d], al
je 0x41f352
push dword [ebx + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x41f352
mov eax, 0x86180003
jmp 0x41f354
Function at 0x41f8cb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x41f913
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x41f8e4
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x41f918
test ecx, ecx
je 0x41f913
test edi, edi
ja 0x41f8d9
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41f915

Function at 0x41f920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x41f968
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x41f939
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x41f96d
test ecx, ecx
je 0x41f968
test edi, edi
ja 0x41f92e
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41f96a

Function at 0x42194b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x421953
mov dword [ecx*4 + 0x4c7340], eax
inc ecx
cmp ecx, 0x100
jb 0x42194e
mov edx, 0x800
jmp 0x4219a0
mov eax, dword [ecx*4 + 0x4c6f40]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4c7340]
inc ecx
mov dword [ecx*4 + 0x4c733c], eax
cmp ecx, edx
jb 0x42197f
mov dword [0x4c5bb4], 0x4221ea
call fcn.00422348
test eax, eax
jne 0x4219c1
mov dword [0x4c5bb4], 0x422286
pop esi
ret
Function at 0x422750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x422767
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x422786
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x42278b
inc edi
cmp edi, dword [ebp - 8]
jb 0x42277d
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x42287a
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x42280d
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x4227b7
cmp cl, 0xff
jne 0x42283c
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, 5
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x42284d
movzx esi, byte [edx + 0x4a9260]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x4227fd
cmp bl, 0xff
jne 0x42284a
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x4227d5
dec ecx
shl edx, cl
and edx, 7
je 0x4227a4
movzx ecx, byte [edx + 0x4a9260]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x4a9258], 0
mov cl, byte [ebx + 4]
je 0x422839
test cl, cl
je 0x422839
cmp cl, 0xff
jne 0x4227a4
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x422778
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x422778
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x4244c6
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 [0x4b7f10]
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 0x4244fe
push 0x20000
call fcn.0046b9bf
pop ecx
mov dword [esi + 0x30], eax
cmp eax, ebx
jne 0x4244fe
xor eax, eax
jmp 0x424670
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 0x424532
push dword [ebp - 0x18]
mov ecx, edi
call fcn.0040d9b6
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 0x424511
inc ebx
inc ebx
cmp ebx, 0x20000
ja 0x4244f7
call fcn.00424681
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 0x4244f7
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x424591
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00424681
jmp 0x4244f7
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 0x4245f9
push dword [ebp - 0x18]
mov ecx, edi
call fcn.0040d9b6
cmp dword [eax + 0x14], 0x20000
jbe 0x4245d7
and dword [ebp - 0x1c], 0
jmp 0x4245e5
push dword [ebp - 0x1c]
mov edx, eax
call fcn.004273d0
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 0x4245be
push 0x4a8818
lea ecx, [ebp - 0x38]
call fcn.004023fc
cmp dword [ebp - 0x24], 0x20000
ja 0x42461b
push dword [ebp - 0x1c]
lea edx, [ebp - 0x38]
call fcn.004273d0
pop ecx
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.004027d0
test ebx, ebx
jbe 0x424660
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 0x42465a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x424587
jmp 0x42465c
add edi, eax
cmp edi, ebx
jb 0x42462c
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.0046cc2a
leave
ret 0xc
Function at 0x424722
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4b7f10]
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 0x42474d
mov edx, dword [esi + 0x34]
mov eax, 0x1ffff
sub eax, dword [esi + 0x34]
jmp 0x42476e
mov eax, dword [esi + 0x38]
cmp eax, ebx
jne 0x424760
cmp dword [esi + 0x54], ebx
je 0x424760
mov eax, 0x20000
jmp 0x42476e
sub eax, dword [esi + 0x34]
mov ecx, 0x20000
cmp eax, ecx
jb 0x42476e
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 0x4248b9
cmp eax, ebx
je 0x4248ea
add dword [esi + 0x34], eax
mov ecx, dword [esi + 0x34]
cmp dword [esi + 0x40], ebx
je 0x424868
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.004700a0
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x4247eb
cmp dword [esi + 0x34], 0x800
mov dword [esi + 0x54], ebx
jbe 0x42487f
push 0x21
push 0x478
push dword [esi + 4]
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
call fcn.00424681
jmp 0x4248f2
mov eax, dword [esi + 0x30]
add edi, 4
mov ecx, edi
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.004248fc
lea eax, [esi + 0x38]
push eax
lea eax, [ebp - 0x20]
call fcn.004242d0
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x424822
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
push dword [esi + 0x3c]
call dword [eax + 8]
test eax, eax
jne 0x424848
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
sub eax, edi
add eax, ecx
cmp eax, ebx
je 0x424855
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x34], eax
cmp ecx, ebx
je 0x424858
mov edx, dword [ecx]
push eax
push edi
push dword [esi + 0x3c]
call dword [edx + 0xc]
test eax, eax
je 0x424858
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004027d0
jmp 0x4248a7
mov dword [esi + 0x34], ebx
push ebx
push 1
lea ecx, [ebp - 0x20]
mov dword [esi + 0x40], ebx
call fcn.004027d0
jmp 0x42487f
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x42487f
mov edx, dword [ecx]
push eax
push dword [esi + 0x30]
push dword [esi + 0x3c]
call dword [edx + 0xc]
test eax, eax
jne 0x4248a7
mov eax, dword [esi + 0x38]
cmp dword [esi + 0x34], eax
jne 0x42488b
cmp eax, ebx
jne 0x424894
cmp dword [esi + 0x54], ebx
je 0x424739
call fcn.00424681
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x4248a7
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.0046cc2a
leave
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
je 0x4248a7
cmp edi, 0x2736
je 0x4248a7
call fcn.00424681
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x4248e6
push edi
push dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x4248aa
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
je 0x4248a7
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x4248e6
push ebx
jmp 0x4248de
Function at 0x424a87
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.004268f6
lea ecx, [edi + 0x44]
call fcn.00426a88
lea ecx, [edi + 0x60]
call fcn.00426a88
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.0040311b
lea ecx, [edi + 0x14c]
call fcn.0040311b
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.0046cc54
pop ecx
cmp eax, ebx
je 0x424b63
mov esi, eax
call fcn.004275dd
jmp 0x424b65
xor eax, eax
push ebx
push ebx
push edi
push 0x42671f
push ebx
push ebx
mov dword [edi + 0x80], eax
call fcn.0046d985
add esp, 0x18
pop esi
mov dword [edi + 0x174], eax
mov eax, edi
pop ebx
ret
Function at 0x425447
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.004269f4
cmp dword [ebx + 0x144], 0
mov esi, dword [eax]
je 0x42561c
test esi, esi
je 0x42561c
mov edi, dword [ebp + 0xc]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
mov eax, edi
call fcn.00424309
mov ecx, dword [esp + 0x14]
cmp ecx, 0x190
jb 0x4254b1
mov esi, dword [esi]
call fcn.00424681
mov dword [ebx + 0x60], 3
xor eax, eax
inc eax
jmp 0x42561e
mov eax, dword [ebx + 0x144]
cmp eax, 1
jne 0x4254ee
cmp ecx, 0x12e
jne 0x4254f3
lea ecx, [ebx + 0x9c]
push edi
mov edi, str.Location:
mov dword [esp + 0x18], ecx
call fcn.00424340
mov edx, dword [esp + 0x14]
add ebx, 0xffffffdc
mov ecx, ebx
call fcn.0042593c
call fcn.00425c86
jmp 0x425538
cmp eax, 2
jne 0x42554d
cmp ecx, 0xc8
jne 0x4254a9
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x80]
push eax
lea ecx, [ebx + 0x9c]
call fcn.004019a1
lea eax, [ebx + 0x148]
push eax
mov eax, edi
call fcn.004242d0
push edi
lea ecx, [ebx + 0xb8]
mov edi, str.Last_Modified:
call fcn.00424340
add ebx, 0xffffffdc
call fcn.00425deb
test eax, eax
jne 0x4254a9
mov eax, dword [esp + 0x10]
mov dword [eax + 0x60], 3
jmp 0x425573
push 3
pop edi
cmp eax, edi
jne 0x42557f
cmp ecx, 0xce
jne 0x4254a9
lea eax, [ebx - 0x24]
call fcn.0042637c
test eax, eax
jne 0x4254a9
mov dword [ebx + 0x60], edi
mov esi, dword [esi]
call fcn.00424681
jmp 0x4254a9
cmp eax, 4
jne 0x4254a9
cmp ecx, 0x130
jne 0x4255ba
cmp dword [ebx + 0x7c], 8
jb 0x42559b
mov eax, dword [ebx + 0x68]
jmp 0x42559e
lea eax, [ebx + 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4255b5
mov dword [ebx + 0x60], 2
jmp 0x4254a9
add ebx, 0xffffffdc
jmp 0x425612
cmp ecx, 0xc8
jne 0x4254a9
cmp dword [ebx + 0x7c], 8
jb 0x4255d1
mov eax, dword [ebx + 0x68]
jmp 0x4255d4
lea eax, [ebx + 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425608
cmp dword [ebx + 0x7c], 8
jb 0x4255ea
mov eax, dword [ebx + 0x68]
jmp 0x4255ed
lea eax, [ebx + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add ebx, 0xffffffdc
mov ecx, ebx
call fcn.004265ba
test eax, eax
jne 0x4254a9
jmp 0x42560b
add ebx, 0xffffffdc
mov eax, ebx
call fcn.0042668c
call fcn.00426412
jmp 0x4254a9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8