joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475f6c
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
xor esi, esi
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
cmp ebx, esi
je 0x47606d
cmp word [ebx], si
je 0x47606d
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x475f92
sub eax, edx
sar eax, 1
push 0x3a
push ebx
mov dword [ebp - 4], eax
call fcn.00534049
cmp dword [ebp - 4], 2
pop ecx
pop ecx
jl 0x47606d
cmp eax, esi
je 0x47606d
inc eax
inc eax
mov edi, eax
sub edi, ebx
sar edi, 1
push ebx
mov ecx, 0x5beb28
lea esi, [ebp - 8]
mov dword [ebp - 0xc], eax
call fcn.0041679e
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x475ff3
push esi
call edi
test eax, eax
je 0x476065
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x476005
push ebx
call edi
test eax, eax
je 0x476065
cmp word [ebx], 0x5c
jne 0x476012
cmp word [ebx + 2], 0x5c
je 0x476065
push str._:_____r_n
push dword [ebp - 0xc]
call fcn.00534006
pop ecx
pop ecx
test eax, eax
jne 0x476065
cmp dword [ebp - 4], 0x64
jg 0x476065
xor ecx, ecx
mov dword [ebp - 0x30], ecx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
mov dword [ebp - 0x28], ecx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ecx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x476065
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [esi - 0x10]
call fcn.00407d09
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
pop edi
pop esi
leave
ret
Function at 0x479195
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
mov eax, dword [esi + 0x4cc]
test eax, eax
je 0x4791b1
push str.PROP_CHILD_FIND
push eax
call dword [sym.imp.USER32.dll_RemovePropW]
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x479203
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x479203
push 0xfffe
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x10000
call fcn.00479358
cmp byte [ebp + 8], 0
jne 0x4791f6
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x479203
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [esi + 0x10], 0
pop esi
pop ebp
ret 4

Function at 0x47a359
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [0x5d6534]
push esi
push edi
push dword [ebp + 0x10]
lea eax, [ebx + 0x4c4]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x47a39b
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0x10]
je 0x47a39b
push 0
mov ecx, ebx
call fcn.0047a419
push 0
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push str.item_ctn
lea ecx, [ebx + 0x1c]
call fcn.004bb867
mov ecx, eax
test ecx, ecx
je 0x47a412
mov eax, dword [ecx + 0x348]
test eax, eax
jl 0x47a412
call fcn.004dbb21
test eax, eax
je 0x47a412
lea esi, [eax + 0x94]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
mov edi, ebx
call fcn.00468616
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x47a412
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0x10]
jne 0x47a412
xor esi, esi
push esi
mov ecx, ebx
call fcn.0047a111
push esi
mov ecx, ebx
call fcn.0047a419
push esi
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x47a4c0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov ecx, esi
call fcn.0047a419
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x481735
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 0x564], 0
push esi
mov esi, eax
je 0x481752
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x18]
jmp 0x481803
mov eax, dword [esi + 4]
push ebx
mov ebx, 0x101
lea ecx, [ebx + 3]
cmp eax, ecx
je 0x481774
cmp eax, 0x100
je 0x481774
cmp eax, 0x105
je 0x481774
cmp eax, ebx
jne 0x4817bd
mov edx, dword [esi + 8]
cmp eax, ecx
je 0x481782
cmp eax, 0x100
jne 0x4817bd
cmp edx, 9
jne 0x4817bd
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4817bd
push 0
call dword [sym.imp.USER32.dll_SetFocus]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
movzx eax, al
push eax
mov eax, dword [edi + 0x4dc]
call fcn.0044f2f5
xor eax, eax
inc eax
jmp 0x481802
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x18]
mov dword [ebp - 4], eax
cmp dword [esi + 4], ebx
jne 0x4817ff
mov esi, dword [esi + 8]
add esi, 0xffffffdb
cmp esi, 3
ja 0x4817ff
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4817ff
mov eax, dword [edi + 0x4dc]
call fcn.0044fdb5
test eax, eax
je 0x4817ff
push 0
push 0
call fcn.004213fe
mov eax, dword [ebp - 4]
pop ebx
pop esi
leave
ret

Function at 0x482266
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
add eax, 0x588
xor edi, edi
cmp dword [eax], edi
jne 0x482323
xor ecx, ecx
inc ecx
mov dword [eax], ecx
cmp dword [0x5bb9c8], edi
je 0x482323
push ecx
mov dword [0x5bb9c8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call esi
call fcn.004422df
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x4822af
push edi
push eax
call esi
call fcn.00442b81
push edi
push edi
push 0x403
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
push 3
call fcn.004518da
mov esi, eax
call fcn.004533b0
push edi
push edi
push edi
push 0x37f5
call fcn.004422df
xor ebx, ebx
mov edi, eax
call fcn.0044243a
cmp dword [0x64a72c], ebx
je 0x482308
push 0x7ffffffc
push ebx
push 0x3407
push dword [0x5d12ac]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.004101e2
test eax, eax
je 0x482323
call fcn.004aad5d
call fcn.004abea6
pop edi
pop esi
pop ebx
jmp fcn.00410191
pop edi
pop esi
pop ebx
ret
Function at 0x486b8b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566e34
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x5afee0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
push 1
push str.item_ctn
lea ecx, [esi + 0x1c]
call fcn.004bb867
mov edi, eax
xor ebx, ebx
mov dword [esp + 0x18], edi
cmp edi, ebx
je 0x486d4d
lea ecx, [esp + 0x1c]
call fcn.00416626
mov dword [esp + 0x78], ebx
call fcn.0045c2a1
lea eax, [esp + 0x1c]
push eax
call fcn.0045c5ec
push 1
push edi
call fcn.004db506
push 0x586e30
lea ecx, [esp + 0x54]
call fcn.0040319e
push str.itemheight
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 1
call fcn.0040319e
push ebx
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 2
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x14]
push ebx
push 1
lea ecx, [esp + 0x3c]
call fcn.00403211
push ebx
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], bl
call fcn.00403211
add esi, 0x2c0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x4c]
mov edx, dword [eax]
mov edi, str.manager_ad_item.xml
push edi
mov ecx, eax
call dword [edx + 0xc]
mov ebx, eax
test ebx, ebx
jbe 0x486d2f
lea eax, [ebx + 1]
push eax
call fcn.0052f69b
pop ecx
mov dword [esp + 0x14], eax
lea eax, [ebx + 1]
push eax
push 0
push dword [esp + 0x1c]
call fcn.00537010
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
call dword [eax + 0x4c]
mov edx, dword [eax]
push ebx
push dword [esp + 0x18]
mov ecx, eax
push edi
call dword [edx + 0x14]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
push 0x1c
cdq
pop ecx
idiv ecx
xor ebx, ebx
test eax, eax
jbe 0x486d25
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
call fcn.004db8b1
mov ecx, dword [esp + 0x18]
call fcn.004dbb21
test eax, eax
je 0x486d12
push 1
push 0x57d550
mov ecx, eax
call fcn.004bb867
mov edi, eax
test edi, edi
je 0x486d12
push ebx
lea esi, [esp + 0x20]
call fcn.0047448e
cmp dword [eax + 0x18], 8
jb 0x486d07
mov eax, dword [eax + 4]
jmp 0x486d0a
add eax, 4
push eax
mov ecx, edi
call fcn.004bb3ba
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
push 0x1c
cdq
pop ecx
idiv ecx
inc ebx
cmp ebx, eax
jb 0x486cc2
push dword [esp + 0x14]
call fcn.00530cbd
pop ecx
mov ebx, dword [esp + 0x18]
xor edx, edx
call fcn.004db9d8
lea ecx, [esp + 0x1c]
call fcn.0041675a
push dword [esp + 0x1c]
call fcn.0052f7c5
pop ecx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x488d23
Capabilities:
Hide graphical window

Disassembly:
push dword [esi + 0x10]
mov dword [0x656360], 1
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x488d52
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x488d52
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x489968
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x489ab6
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
neg eax
push eax
mov eax, dword [ebp - 0x20]
neg eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
mov dword [ebp - 8], edx
fild dword [ebp - 8]
fdiv st(1)
fld1
fcomp st(1)
fnstsw ax
test ah, 5
mov eax, 0x140
jp 0x4899ef
cmp edx, eax
fstp st(1)
mov dword [esi + 0x34], eax
jle 0x4899dc
mov edx, eax
mov dword [ebp - 4], eax
jmp 0x4899df
mov dword [ebp - 4], edx
fidivr dword [ebp - 4]
mov dword [esi + 0x34], edx
call fcn.00538b90
mov dword [esi + 0x38], eax
jmp 0x489a10
cmp ecx, eax
fstp st(0)
mov dword [esi + 0x38], eax
jg 0x4899fa
mov eax, ecx
mov dword [esi + 0x38], eax
imul eax, edx
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fdivrp st(1)
call fcn.00538b90
mov dword [esi + 0x34], eax
add dword [esi + 0x34], 2
add dword [esi + 0x38], 2
push ebx
push edi
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x38]
mov ebx, eax
push dword [esi + 0x34]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
mov dword [esi + 0x30], eax
call edi
push 0x808080
push 1
push 0
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
mov dword [ebp - 0xc], eax
call edi
push dword [esi + 0x38]
mov dword [ebp - 8], eax
push dword [esi + 0x34]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
push dword [ebp - 8]
push ebx
call edi
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push 4
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push dword [ebp - 0x10]
push ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 4]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ReleaseDC]
push 5
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebx
leave
ret
Function at 0x48c543
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 4], 0xffffffff
push esi
push edi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0048c97a
xor edi, edi
cmp dword [ebp - 4], 0xffffffff
je 0x48c5bf
cmp dword [esi + 0xdac], edi
jne 0x48c5ae
cmp dword [0x64a644], edi
je 0x48c5ae
cmp dword [esi + 0xda8], 0xffffffff
je 0x48c5ae
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
jne 0x48c5ae
cmp dword [esi + 0xdb0], edi
jne 0x48c5f1
push 1
mov eax, esi
call fcn.0048d65d
neg eax
sbb eax, eax
neg eax
mov dword [esi + 0xdb4], eax
jmp 0x48c5f1
mov ecx, dword [esi + 0xcdc]
cmp ecx, edi
je 0x48c5f1
push dword [ebp - 4]
push 2
jmp 0x48c5ed
lea ecx, [esi + 0xdb8]
cmp dword [ecx], edi
je 0x48c5e0
cmp eax, 3
jne 0x48c5e0
mov dword [ecx], edi
mov ecx, dword [esi + 0xcdc]
cmp ecx, edi
je 0x48c5f1
push 1
push 1
jmp 0x48c5ed
mov ecx, dword [esi + 0xcdc]
cmp ecx, edi
je 0x48c5f1
push edi
push 8
mov eax, dword [ecx]
call dword [eax]
or dword [esi + 0xda8], 0xffffffff
mov dword [esi + 0xdb0], edi
pop edi
pop esi
leave
ret 8

Function at 0x48fe40
Capabilities:
Capture screenshot

Disassembly:
mov dword [esi + 0x84], eax
lea eax, [esi + 0x80]
mov ecx, dword [eax]
push ebx
test ecx, ecx
jle 0x48fe7e
dec ecx
mov dword [eax], ecx
jne 0x48fe7e
mov eax, dword [esi + 4]
push dword [esi + 0x6c]
lea ecx, [eax + 0x2a4]
mov dword [esi + 0x8c], 1
mov eax, dword [ecx]
call dword [eax]
mov ebx, dword [esi + 4]
xor eax, eax
call fcn.0048cdf2
pop ebx
ret
cmp dword [esi + 0x8c], 0
je 0x48fe7c
mov eax, esi
pop ebx
jmp fcn.0048fc60

Function at 0x490135
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
push 1
mov ebx, str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
push 0
push esi
call edi
mov eax, dword [esi]
test eax, eax
jne 0x49016c
push 0xf0000048
push 1
push ebx
push eax
push esi
call edi
mov eax, dword [esi]
test eax, eax
je 0x490196
push dword [ebp + 8]
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x49018c
mov dword [ebp - 4], 1
jmp 0x490196
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x490398
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor ebx, ebx
push edi
mov dword [ebp - 0x620], esi
mov dword [ebp - 0x618], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x490421
cmp esi, ebx
je 0x490421
push 0x57c6dc
lea eax, [ebp - 0x610]
push edi
push eax
mov dword [ebp - 0x610], ebx
call fcn.0053221d
add esp, 0xc
test eax, eax
jne 0x49051f
lea eax, [ebp - 0x614]
push eax
lea esi, [ebp - 0x61c]
mov dword [ebp - 0x61c], ebx
mov dword [ebp - 0x614], ebx
call fcn.00490135
pop ecx
test eax, eax
jne 0x490432
push dword [ebp - 0x610]
call fcn.0052fd5d
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret
push 0x3ff
lea eax, [ebp - 0x60b]
push ebx
xor edi, edi
push eax
inc edi
mov byte [ebp - 0x60c], bl
call fcn.00537010
push dword [ebp - 0x610]
mov esi, 0x400
push esi
lea eax, [ebp - 0x60c]
push edi
push eax
call fcn.005325fd
add esp, 0x1c
jmp 0x49049f
push eax
lea eax, [ebp - 0x60c]
push eax
push dword [ebp - 0x614]
call fcn.0049019d
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x4904a3
push dword [ebp - 0x610]
lea eax, [ebp - 0x60c]
push esi
push 1
push eax
call fcn.005325fd
add esp, 0x10
cmp eax, ebx
jne 0x49046b
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.00537010
add esp, 0xc
cmp edi, ebx
je 0x490500
push dword [ebp - 0x614]
lea edi, [ebp - 0x20c]
call fcn.004901c2
pop ecx
test eax, eax
je 0x490500
mov eax, edi
push eax
push 0x57cb68
push 0x104
push dword [ebp - 0x620]
call fcn.00532a01
add esp, 0x10
mov dword [ebp - 0x618], 1
push dword [ebp - 0x614]
push dword [ebp - 0x61c]
call fcn.00490286
push dword [ebp - 0x610]
call fcn.0052fd5d
add esp, 0xc
mov eax, dword [ebp - 0x618]
jmp 0x490423
Function at 0x490908
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00537010
push 0x2454
push 0
push esi
call fcn.00537010
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], pe_nt_image_headers32
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x49098c
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 0x4909e5
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x4909c1
cmp eax, 4
je 0x4909c1
cmp eax, 1
jne 0x4909e5
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 0x4909e9
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 0x4909fe
xor eax, eax
jmp 0x490a96
mov edi, str.MetalinkFile
lea eax, [esi + 0x5d558]
push edi
push eax
call fcn.0053314a
pop ecx
pop ecx
cmp eax, ebx
je 0x490a3e
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 0x490a20
sub ecx, edx
sar ecx, 1
lea eax, [eax + ecx*2]
push eax
call fcn.0053406f
pop ecx
mov dword [esi + 0x2698], eax
mov ecx, esi
call fcn.00495157
test eax, eax
je 0x4909f7
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2464], eax
cmp eax, ebx
je 0x490a93
mov dword [ebp - 4], ebx
mov dword [esi + 0x5d120], 8
cmp dword [esi + 0x2480], ebx
jne 0x490a8d
lea eax, [ebp - 4]
push eax
push ebx
push esi
push fcn.00490ddc
push ebx
push ebx
call fcn.0053364a
add esp, 0x18
mov dword [esi + 0xc], eax
jmp 0x490a93
push esi
call fcn.00490ddc
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x491a52
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.004264b0
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 0x491ac9
cmp dword [ebx + 0x2484], 0
je 0x491ab6
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 0x491aba
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x491aef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x491aed
jmp 0x491ab6
cmp dword [esi], 0
jne 0x491ada
mov eax, dword [esi + 4]
test eax, eax
je 0x491ada
mov dword [esi + 0x18], eax
jmp 0x491ab6
and dword [esi + 0x28], 0
push edi
push dword [ebp + 8]
mov eax, ebx
call fcn.004931db
test eax, eax
jne 0x491ab6
xor eax, eax
pop edi
pop esi
pop ecx
pop ebp
ret 4
Function at 0x49244d
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.004264b0
mov esi, dword [eax]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x4924c3
cmp dword [ebx + 0x2484], 0
je 0x4924f1
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 0x4924b1
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4924f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x4924f4
cmp dword [esi], 0
jne 0x4924d4
mov eax, dword [esi + 4]
test eax, eax
je 0x4924d4
mov dword [esi + 0x18], eax
jmp 0x4924f1
push 1
push edi
mov eax, ebx
mov dword [esi + 0x28], 4
call fcn.004931db
test eax, eax
jne 0x4924f1
push edi
mov eax, ebx
call fcn.00492c6e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x4927d1
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.004264b0
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.00537010
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 0x49285e
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 0x492857
ja 0x492851
cmp ecx, edi
jbe 0x492857
and dword [ebp - 4], 0
jmp 0x492897
mov edi, ecx
mov dword [ebp - 4], eax
jmp 0x492897
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5d128]
mov ecx, dword [edx + 0x5d12c]
cmp eax, 0xffffffff
jne 0x492876
cmp ecx, eax
je 0x492899
sub eax, dword [edx + 0x5d138]
sbb ecx, dword [edx + 0x5d13c]
test ecx, ecx
jb 0x492892
ja 0x49288c
cmp eax, edi
jbe 0x492892
and dword [ebp - 4], 0
jmp 0x492897
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 0x4928f8
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 0x4928d7
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x4928f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4928d3
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.00492c6e
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 0x4928c6