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

Disassembly:
push ebx
push edi
push 0x4c5c84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0x60]
mov eax, dword [esi + 0x60]
xor ebx, ebx
cmp eax, ebx
jle 0x413feb
xor ebx, ebx
inc ebx
push 0x4c5c84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebx
pop ebx
ret 4
cmp dword [esi + 0x58], ebx
je 0x413fd9
lea edi, [esi + 0x3c]
cmp dword [edi + 0x18], 8
jb 0x413ffe
mov eax, dword [edi + 4]
jmp 0x414001
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, edi
call fcn.00403c95
push dword [esp + 0xc]
mov eax, esi
call fcn.00413f5b
test eax, eax
jne 0x413fd9
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x413fd9
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 0x413fd6

Function at 0x415e0b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x4b7f60]
xor eax, ebp
mov dword [ebp + 0x3b8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3c4]
push 0x4c4d8c
mov ecx, edi
mov dword [ebp - 0x64], edi
call fcn.00415957
lea eax, [ebp + 0x1b0]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x415e68
lea eax, [ebp + 0x1b0]
push eax
push edi
call fcn.0041798e
push edi
call fcn.0041611f
mov ebx, fcn.00415e0b
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x415f0b
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 0x415f0b
lea eax, [ebp - 0x58]
push eax
lea esi, [ebp - 0x60]
call fcn.0041788c
mov ebx, dword [ebp - 0x60]
push 0x5c
push ebx
call fcn.004745ce
pop ecx
pop ecx
test eax, eax
je 0x415f03
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x415f03
lea edi, [eax + 1]
test edi, edi
jge 0x415eca
xor edi, edi
cmp edi, dword [ebx - 0xc]
lea eax, [ebp - 0x60]
jl 0x415edd
push eax
lea ecx, [ebp - 0x5c]
call fcn.004176b8
jmp 0x415eed
call fcn.00416402
push ebx
mov ecx, eax
lea esi, [ebp - 0x5c]
call fcn.004163b0
mov edi, dword [ebp - 0x64]
lea eax, [ebp - 0x5c]
call fcn.004160dc
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.0041597c
lea ecx, [ebx - 0x10]
call fcn.0041597c
mov ecx, dword [ebp + 0x3b8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d79a
add ebp, 0x3bc
leave
ret
Function at 0x4176d6
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 0x4176ed
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x417722
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x41771e
cmp edi, eax
jae 0x417722
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x417710
cmp edi, eax
jb 0x417726
xor eax, eax
jmp 0x41772f
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x41a708
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x850
mov eax, dword [0x4b7f60]
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 0x41a831
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x41a831
lea eax, [esp + 0x10]
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.00419672
mov eax, esi
mov ecx, ebx
call fcn.0041a845
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.0046d720
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.0041788c
mov edi, dword [ebx + 0x5c]
add edi, 0x48
mov eax, esi
call fcn.004160dc
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.0041597c
mov eax, ebx
call fcn.0041a894
mov ecx, dword [ebx + 0x5c]
push dword [esp + 0x30]
mov esi, ebx
mov dword [ecx + 0x4c], eax
call fcn.0041b8cd
push dword [esp + 0x30]
lea eax, [esp + 0x14]
push dword [ebx + 0x5c]
call fcn.0041dcfb
cmp dword [ebx + 0x30], 0
je 0x41a828
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.004195f0
mov ecx, dword [esp + 0x854]
pop edi
pop esi
xor ecx, esp
call fcn.0046d79a
mov esp, ebp
pop ebp
ret
Function at 0x41f033
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 + 0x4c5c28]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
cmp esi, ecx
jne 0x41f05b
mov eax, 0x86180002
jmp 0x41f16f
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x41f064
mov dword [eax], ecx
lea eax, [esi + 0x4094]
push edi
mov edi, dword [eax]
cmp edi, dword [esi + 0x405c]
jae 0x41f16c
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.00420f1a
mov eax, dword [ebp + 0xc]
pop ecx
test eax, eax
je 0x41f0bb
lea ecx, [esi + 0x60a4]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x41f16c
cmp byte [ebx + 0x19], 0
jne 0x41f117
push 0x4b9fcc
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.0042192b
add esp, 0x20
test eax, eax
je 0x41f117
xor ecx, ecx
cmp eax, 2
setne cl
lea ecx, [ecx + ecx - 0x79e7fffd]
mov eax, ecx
jmp 0x41f16e
mov eax, dword [esi + 0x70a4]
lea edi, [esi + eax*2 + 0x60a4]
cmp word [edi], 0
je 0x41f159
mov dword [ebp + 8], edi
cmp word [edi], 0x2f
jne 0x41f14b
xor eax, eax
mov word [edi], ax
lea eax, [esi + 0x60a4]
push eax
call fcn.0041fb50
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 0x41f12d
cmp byte [ebx + 0x19], 0
je 0x41f173
add esi, 0x60a4
push esi
call fcn.0041fb50
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.0041fb69
pop ecx
pop ecx
test eax, eax
jne 0x41f1d2
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.0041fc1e
pop ecx
pop ecx
test eax, eax
jne 0x41f1d2
cmp edi, dword [ebp - 4]
jne 0x41f1d2
lea esi, [ebp + 8]
call fcn.0041fbab
test eax, eax
jne 0x41f1d2
cmp byte [ebx + 0x1d], al
je 0x41f16c
push dword [ebx + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x41f16c
mov eax, 0x86180003
jmp 0x41f16e
Function at 0x41f6c1
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x3ac]
sub esp, 0x42c
mov eax, dword [0x4b7f60]
xor eax, ebp
mov dword [ebp + 0x3a8], eax
mov eax, dword [ebp + 0x3b4]
push esi
push edi
mov dword [ebp - 0x4c], eax
xor eax, eax
xor esi, esi
push 0x3e6
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push esi
push eax
mov dword [ebp - 0x44], esi
call fcn.0046d720
push 0x30
lea eax, [ebp - 0x7c]
push esi
push eax
lea edi, [ebp - 0x40]
mov dword [ebp - 0x80], esi
call fcn.0046d720
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x41f72d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41f785
lea eax, [ebp - 0x40]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x41f785
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x48]
push eax
push esi
push esi
push edi
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x41f760
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x64]
je 0x41f76f
add edi, 8
lea eax, [ebp + 0x3a8]
cmp edi, eax
jb 0x41f740
jmp 0x41f785
push 0x104
push edi
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x44], 1
mov ecx, dword [ebp + 0x3a8]
mov eax, dword [ebp - 0x44]
pop edi
xor ecx, ebp
pop esi
call fcn.0046d79a
add ebp, 0x3ac
leave
ret
Function at 0x41fbc9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x41fc11
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x41fbe2
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 0x41fc16
test ecx, ecx
je 0x41fc11
test edi, edi
ja 0x41fbd7
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41fc13

Function at 0x41fc1e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x41fc66
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x41fc37
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 0x41fc6b
test ecx, ecx
je 0x41fc66
test edi, edi
ja 0x41fc2c
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41fc68

Function at 0x421c49
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 0x421c51
mov dword [ecx*4 + 0x4c73a0], eax
inc ecx
cmp ecx, 0x100
jb 0x421c4c
mov edx, 0x800
jmp 0x421c9e
mov eax, dword [ecx*4 + 0x4c6fa0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4c73a0]
inc ecx
mov dword [ecx*4 + 0x4c739c], eax
cmp ecx, edx
jb 0x421c7d
mov dword [0x4c5c14], 0x4224e8
call fcn.00422646
test eax, eax
jne 0x421cbf
mov dword [0x4c5c14], 0x422584
pop esi
ret
Function at 0x422a4e
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 0x422a65
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 0x422a84
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x422a89
inc edi
cmp edi, dword [ebp - 8]
jb 0x422a7b
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x422b78
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x422b0b
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x422ab5
cmp cl, 0xff
jne 0x422b3a
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 0x422b4b
movzx esi, byte [edx + 0x4a940c]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x422afb
cmp bl, 0xff
jne 0x422b48
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x422ad3
dec ecx
shl edx, cl
and edx, 7
je 0x422aa2
movzx ecx, byte [edx + 0x4a940c]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x4a9404], 0
mov cl, byte [ebx + 4]
je 0x422b37
test cl, cl
je 0x422b37
cmp cl, 0xff
jne 0x422aa2
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x422a76
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 0x422a76
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 0x4247d2
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 [0x4b7f60]
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 0x42480a
push 0x20000
call fcn.0046c52f
pop ecx
mov dword [esi + 0x30], eax
cmp eax, ebx
jne 0x42480a
xor eax, eax
jmp 0x42497c
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 0x42483e
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00424c2e
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 0x42481d
inc ebx
inc ebx
cmp ebx, 0x20000
ja 0x424803
call fcn.0042498d
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 0x424803
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x42489d
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0042498d
jmp 0x424803
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 0x424905
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00424c2e
cmp dword [eax + 0x14], 0x20000
jbe 0x4248e3
and dword [ebp - 0x1c], 0
jmp 0x4248f1
push dword [ebp - 0x1c]
mov edx, eax
call fcn.004277c7
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 0x4248ca
push 0x4a8988
lea ecx, [ebp - 0x38]
call fcn.004023e0
cmp dword [ebp - 0x24], 0x20000
ja 0x424927
push dword [ebp - 0x1c]
lea edx, [ebp - 0x38]
call fcn.004277c7
pop ecx
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.004027b4
test ebx, ebx
jbe 0x42496c
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 0x424966
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x424893
jmp 0x424968
add edi, eax
cmp edi, ebx
jb 0x424938
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.0046d79a
leave
ret 0xc
Function at 0x424a2e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4b7f60]
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 0x424a59
mov edx, dword [esi + 0x34]
mov eax, 0x1ffff
sub eax, dword [esi + 0x34]
jmp 0x424a7a
mov eax, dword [esi + 0x38]
cmp eax, ebx
jne 0x424a6c
cmp dword [esi + 0x54], ebx
je 0x424a6c
mov eax, 0x20000
jmp 0x424a7a
sub eax, dword [esi + 0x34]
mov ecx, 0x20000
cmp eax, ecx
jb 0x424a7a
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 0x424bc5
cmp eax, ebx
je 0x424bf6
add dword [esi + 0x34], eax
mov ecx, dword [esi + 0x34]
cmp dword [esi + 0x40], ebx
je 0x424b74
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.00470c10
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x424af7
cmp dword [esi + 0x34], 0x800
mov dword [esi + 0x54], ebx
jbe 0x424b8b
push 0x21
push 0x478
push dword [esi + 4]
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
call fcn.0042498d
jmp 0x424bfe
mov eax, dword [esi + 0x30]
add edi, 4
mov ecx, edi
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00424c08
lea eax, [esi + 0x38]
push eax
lea eax, [ebp - 0x20]
call fcn.004245dc
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x424b2e
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
push dword [esi + 0x3c]
call dword [eax + 8]
test eax, eax
jne 0x424b54
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
sub eax, edi
add eax, ecx
cmp eax, ebx
je 0x424b61
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x34], eax
cmp ecx, ebx
je 0x424b64
mov edx, dword [ecx]
push eax
push edi
push dword [esi + 0x3c]
call dword [edx + 0xc]
test eax, eax
je 0x424b64
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004027b4
jmp 0x424bb3
mov dword [esi + 0x34], ebx
push ebx
push 1
lea ecx, [ebp - 0x20]
mov dword [esi + 0x40], ebx
call fcn.004027b4
jmp 0x424b8b
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x424b8b
mov edx, dword [ecx]
push eax
push dword [esi + 0x30]
push dword [esi + 0x3c]
call dword [edx + 0xc]
test eax, eax
jne 0x424bb3
mov eax, dword [esi + 0x38]
cmp dword [esi + 0x34], eax
jne 0x424b97
cmp eax, ebx
jne 0x424ba0
cmp dword [esi + 0x54], ebx
je 0x424a45
call fcn.0042498d
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x424bb3
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.0046d79a
leave
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
je 0x424bb3
cmp edi, 0x2736
je 0x424bb3
call fcn.0042498d
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x424bf2
push edi
push dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x424bb6
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
je 0x424bb3
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x424bf2
push ebx
jmp 0x424bea
Function at 0x424dbb
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.00426c2a
lea ecx, [edi + 0x44]
call fcn.00426d28
lea ecx, [edi + 0x60]
call fcn.00426d28
lea ecx, [edi + 0x88]
mov dword [edi + 0x7c], 0x1e
mov dword [edi + 0x84], ebx
call fcn.004018a5
lea ecx, [edi + 0xa4]
call fcn.004018a5
lea ecx, [edi + 0xc0]
call fcn.004018a5
lea ecx, [edi + 0xdc]
call fcn.004018a5
lea ecx, [edi + 0xf8]
call fcn.004018a5
lea ecx, [edi + 0x114]
call fcn.004018a5
lea ecx, [edi + 0x130]
call fcn.00403111
lea ecx, [edi + 0x14c]
call fcn.00403111
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.0046d7c4
pop ecx
cmp eax, ebx
je 0x424e97
mov esi, eax
call fcn.004279d4
jmp 0x424e99
xor eax, eax
push ebx
push ebx
push edi
push 0x426a53
push ebx
push ebx
mov dword [edi + 0x80], eax
call fcn.0046e4f5
add esp, 0x18
pop esi
mov dword [edi + 0x174], eax
mov eax, edi
pop ebx
ret
Function at 0x42577b
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.004042e1
cmp dword [ebx + 0x144], 0
mov esi, dword [eax]
je 0x425950
test esi, esi
je 0x425950
mov edi, dword [ebp + 0xc]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
mov eax, edi
call fcn.00424615
mov ecx, dword [esp + 0x14]
cmp ecx, 0x190
jb 0x4257e5
mov esi, dword [esi]
call fcn.0042498d
mov dword [ebx + 0x60], 3
xor eax, eax
inc eax
jmp 0x425952
mov eax, dword [ebx + 0x144]
cmp eax, 1
jne 0x425822
cmp ecx, 0x12e
jne 0x425827
lea ecx, [ebx + 0x9c]
push edi
mov edi, str.Location:
mov dword [esp + 0x18], ecx
call fcn.0042464c
mov edx, dword [esp + 0x14]
add ebx, 0xffffffdc
mov ecx, ebx
call fcn.00425c70
call fcn.00425fba
jmp 0x42586c
cmp eax, 2
jne 0x425881
cmp ecx, 0xc8
jne 0x4257dd
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x80]
push eax
lea ecx, [ebx + 0x9c]
call fcn.00401965
lea eax, [ebx + 0x148]
push eax
mov eax, edi
call fcn.004245dc
push edi
lea ecx, [ebx + 0xb8]
mov edi, str.Last_Modified:
call fcn.0042464c
add ebx, 0xffffffdc
call fcn.0042611f
test eax, eax
jne 0x4257dd
mov eax, dword [esp + 0x10]
mov dword [eax + 0x60], 3
jmp 0x4258a7
push 3
pop edi
cmp eax, edi
jne 0x4258b3
cmp ecx, 0xce
jne 0x4257dd
lea eax, [ebx - 0x24]
call fcn.004266b0
test eax, eax
jne 0x4257dd
mov dword [ebx + 0x60], edi
mov esi, dword [esi]
call fcn.0042498d
jmp 0x4257dd
cmp eax, 4
jne 0x4257dd
cmp ecx, 0x130
jne 0x4258ee
cmp dword [ebx + 0x7c], 8
jb 0x4258cf
mov eax, dword [ebx + 0x68]
jmp 0x4258d2
lea eax, [ebx + 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4258e9
mov dword [ebx + 0x60], 2
jmp 0x4257dd
add ebx, 0xffffffdc
jmp 0x425946
cmp ecx, 0xc8
jne 0x4257dd
cmp dword [ebx + 0x7c], 8
jb 0x425905
mov eax, dword [ebx + 0x68]
jmp 0x425908
lea eax, [ebx + 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42593c
cmp dword [ebx + 0x7c], 8
jb 0x42591e
mov eax, dword [ebx + 0x68]
jmp 0x425921
lea eax, [ebx + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add ebx, 0xffffffdc
mov ecx, ebx
call fcn.004268ee
test eax, eax
jne 0x4257dd
jmp 0x42593f
add ebx, 0xffffffdc
mov eax, ebx
call fcn.004269c0
call fcn.00426746
jmp 0x4257dd
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8