joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41576f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x455090]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push edi
lea ebx, [eax + 0x28]
xor edi, edi
mov dword [ebp - 0x80], eax
cmp dword [ebx], edi
jne 0x4158c3
push esi
lea esi, [eax + 0x20]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x4157f1
push 0x208
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x74], cx
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.004045c0
push 0x2e
call fcn.00408c62
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push ecx
mov ecx, esi
call fcn.0040892f
push str..log
push esi
call fcn.00402192
mov esi, dword [esi]
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, ebx
call fcn.00408e4e
cmp dword [ebx], 0xffffffff
je 0x4158b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41583e
mov eax, dword [ebx]
test eax, eax
je 0x41586f
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41586f
test eax, eax
jne 0x4158b2
mov eax, dword [ebx]
test eax, eax
je 0x41586f
push 2
pop ecx
push 0
lea edx, [ebp - 0x78]
push edx
push ecx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x7c], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebx], 0
je 0x4158c2
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0x24]
mov esi, edi
call fcn.004158dc
mov eax, dword [0x456f60]
mov ecx, 0x456f60
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 0x78]
mov dword [ebp - 0x78], eax
call fcn.00415901
mov eax, esi
mov esi, edi
call fcn.004158dc
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.004046b1
jmp 0x4158c2
mov eax, dword [ebx]
test eax, eax
je 0x4158c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
pop esi
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043028b
add ebp, 0x198
leave
ret 4

Function at 0x4158dc
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x416230
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x455090]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
call fcn.0040eb0c
test al, al
jne 0x4162e8
push str.ProgramFilesFolder
push edi
call fcn.00408fde
mov esi, str.AppDataFolder
test eax, eax
je 0x416289
push str.ProgramFiles
push edi
call fcn.00414d24
pop ecx
pop ecx
test al, al
jne 0x416289
push esi
push edi
call fcn.00408fde
test eax, eax
jne 0x4162e8
push esi
push edi
call fcn.00408fde
neg eax
sbb al, al
inc al
push 0
pop eax
mov word [ebp - 0x7c], ax
mov eax, str.APPDATA
jne 0x4162a9
mov eax, str.PROGRAMFILES
push 0x104
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jbe 0x4162c8
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x7c], ax
inc esi
xor eax, eax
mov word [ebp + esi*2 - 0x7c], ax
cmp word [ebp - 0x7c], ax
je 0x4162df
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.004045c0
xor eax, eax
test esi, esi
setne al
jmp 0x4162ea
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0043028b
add ebp, 0x190
leave
ret

Function at 0x4164e9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x457cbc], 0
push esi
mov esi, eax
je 0x416520
push dword [esi]
lea eax, [ebp - 4]
call fcn.00416300
push eax
call fcn.00416311
push eax
mov eax, 0x457c8c
call fcn.0041568f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
cmp byte [0x456514], 0
je 0x416584
cmp byte [ebp + 8], 0
push edi
push 0x10
pop edi
je 0x416538
mov edi, 0x40010
push dword [esi]
lea eax, [ebp - 4]
call fcn.004045e3
mov eax, dword [0x456f60]
mov ecx, 0x456f60
call dword [eax + 0xc]
mov esi, eax
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
add esi, 0x10
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.00410583
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.004046b1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
pop edi
jmp 0x41658c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
leave
ret

Function at 0x416c1b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor eax, eax
lea ebx, [edi + 0x14]
mov ecx, dword [ebx]
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp dword [ecx - 0xc], eax
je 0x416c40
lea esi, [ebp - 0xc]
call fcn.004095ec
lea ebx, [edi + 0x18]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x416c53
lea esi, [ebp - 0xc]
call fcn.004095ec
xor esi, esi
cmp dword [ebp - 8], esi
jle 0x416c78
mov eax, esi
lea ecx, [ebp - 0xc]
call fcn.0040ddda
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc esi
cmp esi, dword [ebp - 8]
jl 0x416c5a
lea esi, [ebp - 0xc]
call fcn.00408e65
pop esi
pop ebx
leave
ret
Function at 0x416e86
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, eax
mov eax, dword [0x456f60]
mov esi, 0x456f60
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x456f60]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [0x456f60]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebx + 0x10]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0040bc4a
lea eax, [ebp - 4]
lea edi, [ebp - 8]
call fcn.004088ee
push 0x4504dc
xor ecx, ecx
lea esi, [ebp - 4]
call fcn.00408c31
test eax, eax
jne 0x416f01
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, edi
push eax
call fcn.004045c0
push str.instname_target.msi
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
lea esi, [ebx + 0x14]
call fcn.00408dd7
pop ecx
mov edi, esi
call fcn.004088ee
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004046b1
push str.instname_custom.mst
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
lea edi, [ebx + 0x18]
call fcn.00408dd7
pop ecx
call fcn.004088ee
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esi]
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x416f6c
mov esi, dword [ebp + 8]
mov ecx, 0x456f60
call fcn.00402131
jmp 0x416fc4
push 0x449c80
lea eax, [ebp - 0x10]
call fcn.004045e3
add ebx, 0xc
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.0041714c
mov bl, al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004046b1
test bl, bl
je 0x416fb2
push edi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
call fcn.00416fee
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409baf
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046b1
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x417722
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x128]
sub esp, 0x1a8
mov eax, dword [0x455090]
xor eax, ebp
mov dword [ebp + 0x124], eax
mov eax, dword [ebp + 0x130]
push ebx
push esi
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x417775
xor al, al
jmp 0x41788b
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x78], eax
jle 0x41778c
lea eax, [eax + ecx*2 - 0x9e]
mov dword [ebp - 0x78], eax
push edi
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x80], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x4177bb
cmp dword [ebp - 0x80], 0xc8
jbe 0x41787a
mov eax, dword [0x456f60]
mov ecx, 0x456f60
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x417821
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jge 0x4177e9
push 0x80070057
call fcn.0040468d
cmp word [eax], 0x22
je 0x417821
push 0x20
xor ecx, ecx
call fcn.00408c07
cmp eax, 0xffffffff
je 0x417821
push 0x22
lea eax, [ebp - 0x70]
call fcn.00409a72
mov esi, dword [esi]
push dword [esi - 0xc]
lea eax, [ebp - 0x70]
push esi
call fcn.00402383
push 0x22
lea eax, [ebp - 0x70]
call fcn.00409a72
jmp 0x41782b
mov eax, esi
lea edi, [ebp - 0x70]
call fcn.004088ee
mov esi, dword [ebp - 0x7c]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x417849
jl 0x4177df
cmp word [eax], 0x20
je 0x417849
push 0x20
lea eax, [ebp - 0x70]
call fcn.00409a72
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x70]
call fcn.00402383
mov esi, dword [ebp - 0x70]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push ebx
push dword [ebp - 0x78]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.004046b1
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
sete al
pop edi
mov ecx, dword [ebp + 0x124]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043028b
add ebp, 0x128
leave
ret
Function at 0x4178a2
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x456f60]
push esi
push edi
mov edi, 0x456f60
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
push 0x64
mov dword [ebp - 4], eax
pop eax
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 4]
call fcn.00408e2d
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
or eax, 0xffffffff
lea esi, [ebp - 4]
call fcn.00409b91
mov ecx, edi
mov esi, ebx
call fcn.00402131
push 0x64
push 0x64
mov eax, ebx
call fcn.00408e2d
push eax
push str.UserDomain
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
or eax, 0xffffffff
call fcn.00409b91
push 0x4498c0
push ebx
call fcn.00402192
mov esi, dword [ebp - 4]
push dword [esi - 0xc]
mov eax, ebx
push esi
call fcn.00402383
lea eax, [esi - 0x10]
call fcn.004046b1
pop edi
mov eax, ebx
pop esi
leave
ret

Function at 0x417932
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41795b
xor al, al
leave
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
push edi
jle 0x417971
lea esi, [esi + eax*2 - 0x9e]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x41799c
cmp edi, 0xea
jne 0x4179a8
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret
Function at 0x417fd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x417fe9
xor eax, eax
jmp 0x4180a2
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41800d
push eax
jmp 0x418099
mov eax, dword [ebp + 0xc]
sub dword [ebp + 0x10], 2
push edi
lea ecx, [ebp - 0x10]
add eax, 2
push ecx
push eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x418094
mov eax, dword [ebp + 0x10]
shr eax, 1
push eax
push 0x78
pop ecx
lea edx, [ebp + 0xc]
call fcn.0040a997
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea esi, [ebp + 0xc]
call fcn.004020e5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418089
cmp dword [ebp - 8], edi
je 0x418089
mov eax, esi
push eax
push dword [ebp + 8]
call fcn.00417ac0
movzx esi, al
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004046b1
cmp ebx, edi
je 0x418085
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4180a2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004046b1
cmp ebx, edi
je 0x41809f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41aa5e
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x455090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x41c]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor esi, esi
mov dword [ebp - 0x430], eax
cmp eax, esi
je 0x41ac0c
lea eax, [ebp - 0x214]
push eax
push esi
push 0x44ab98
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41ac0c
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x420]
call fcn.004045e3
push str..url
lea eax, [ebp - 0x420]
push eax
call fcn.00402192
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41ab1b
push eax
jmp 0x41abf8
mov eax, dword [0x456f60]
mov ecx, 0x456f60
call dword [eax + 0xc]
push dword [edi]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x42c]
call fcn.0040201e
push dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push str._InternetShortcut__r_nURL_s_r_n
call fcn.00402338
mov edi, dword [ebp - 0x424]
mov eax, dword [edi - 0xc]
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x430]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x424], eax
cmp ebx, esi
je 0x41ab83
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp dword [ebp - 0x424], esi
je 0x41aba1
push 5
push esi
push esi
push dword [ebp - 0x420]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x428]
add eax, 0x18
push eax
push 0x5c
lea esi, [ebp - 0x420]
call fcn.00408c62
mov ecx, eax
lea edx, [ebp - 0x428]
mov eax, esi
call fcn.00408d6f
push eax
call fcn.0040a1e3
mov eax, dword [ebp - 0x428]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
call fcn.004046b1
lea eax, [edi - 0x10]
call fcn.004046b1
test ebx, ebx
je 0x41abfe
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x420]
add eax, 0xfffffff0
call fcn.004046b1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043028b
leave
ret 4
Function at 0x41b410
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x28], edi
jle 0x41b473
lea esi, [ebx + 0x24]
mov eax, edi
mov ecx, esi
call fcn.0040ddda
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 0x5c
mov eax, edi
mov ecx, esi
call fcn.0040ddda
mov esi, eax
call fcn.00408c62
mov esi, eax
mov eax, edi
lea ecx, [ebx + 0x24]
call fcn.0040ddda
mov ecx, esi
lea edx, [ebp - 4]
call fcn.00408d6f
push eax
call fcn.0040a1e3
mov eax, dword [ebp - 4]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004046b1
inc edi
cmp edi, dword [ebx + 0x28]
jl 0x41b41d
lea esi, [ebx + 0x24]
call fcn.00408e65
lea edi, [ebx + 4]
call fcn.0041b766
mov eax, dword [ebx]
sub eax, 0x10
call fcn.004046b1
pop edi
pop esi
leave
ret

Function at 0x41ba51
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea esi, [edi + 4]
push dword [esi]
call fcn.0041050d
pop ecx
push esi
call fcn.0040e870
mov eax, dword [edi + 0x28]
push dword [eax]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi]
call ebx
mov eax, dword [0x456f60]
mov ecx, 0x456f60
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0xdc
lea eax, [ebp - 4]
push eax
call fcn.004043ff
push 0x40a
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp - 4]
push eax
call ebx
lea eax, [edi + 0x40]
push eax
mov eax, dword [esi]
call fcn.0042718f
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
lea ecx, [edi + 0x30]
push ecx
push 0x41bae3
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x41d169
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0x4513f0
test eax, eax
je 0x41d1bb
push 0xea60
push eax
mov byte [esi + 0xd], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41d1b6
cmp dword [ebp - 4], 0x103
jne 0x41d1b6
push 0
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x1c]
call edi
mov eax, dword [esi + 0x78]
sub eax, 0x10
call fcn.004046b1
mov eax, dword [esi + 0x70]
test eax, eax
je 0x41d1d4
push eax
call edi
and dword [esi + 0x70], 0
mov eax, dword [esi + 0x68]
test eax, eax
je 0x41d1e2
push eax
call edi
and dword [esi + 0x68], 0
mov eax, dword [esi + 0x50]
push 0x10
pop edi
sub eax, edi
call fcn.004046b1
mov eax, dword [esi + 0x48]
sub eax, edi
call fcn.004046b1
mov eax, dword [esi + 0x30]
sub eax, edi
call fcn.004046b1
mov eax, dword [esi + 0x2c]
sub eax, edi
call fcn.004046b1
mov eax, dword [esi + 0x28]
sub eax, edi
call fcn.004046b1
pop edi
leave
ret
Function at 0x41d21a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
call fcn.004088ee
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x2c]
call fcn.004088ee
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
cmp eax, ebx
je 0x41d254
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x41d5ed
push ebx
push ebx
mov dword [esi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
cmp eax, ebx
jne 0x41d279
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41d289
cmp byte [ebp + 0x14], bl
je 0x41d287
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
jmp 0x41d289
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x41df0a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
call fcn.0041f121
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
and dword [ebp - 4], 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [esi + 0x4c], 0
mov dword [ebp + 0xc], eax
je 0x41df3f
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov edi, esi
mov byte [esi + 0xc], 1
call fcn.0041de83
mov ecx, dword [ebp + 0xc]
mov byte [esi + 0xc], 0
test ecx, ecx
jbe 0x41df69
cmp dword [ebp - 4], ecx
je 0x41df69
mov eax, 0x2ee2
test eax, eax
jne 0x41df80
mov esi, dword [esi + 0x14]
mov edi, dword [ebp + 0x10]
cmp esi, dword [edi]
je 0x41df7e
call fcn.0041f121
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x41df86
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x68]
lea ebx, [edi + 0x44]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0x14]
mov byte [edi + 0x4d], 0
push dword [ebp + 0x10]
mov dword [edi + 0x40], 3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x41e01c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41e01e
jmp 0x41dff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41dffe
lea esi, [edi + 4]
push ebx
call fcn.0042e7c2
mov eax, esi
call fcn.0042e7ab
test al, al
jne 0x41e009
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41dfcd
cmp dword [edi + 0x3c], 0
jne 0x41e010
mov eax, dword [edi + 0x38]
jmp 0x41e01e
mov eax, 0xe0000008
jmp 0x41e01e
mov edi, dword [edi + 0x38]
test edi, edi
jle 0x41e01c
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x41e025
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x68]
lea ebx, [edi + 0x44]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push dword [esp + 0x1c]
mov byte [edi + 0x4d], 0
push dword [esp + 0x1c]
mov dword [edi + 0x40], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x41e0b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41e0bb
jmp 0x41e095
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41e09a
lea esi, [edi + 4]
push ebx
call fcn.0042e7c2
mov eax, esi
call fcn.0042e7ab
test al, al
jne 0x41e0a5
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41e069
cmp dword [edi + 0x3c], 0
jne 0x41e0ac
mov eax, dword [edi + 0x38]
jmp 0x41e0bb
mov eax, 0xe0000008
jmp 0x41e0bb
mov edi, dword [edi + 0x38]
test edi, edi
jle 0x41e0b9
mov eax, dword [esp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
ret 8