joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415781
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 0x4158d5
push esi
lea esi, [eax + 0x20]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x415803
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 0x4158c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x415850
mov eax, dword [ebx]
test eax, eax
je 0x415881
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x415881
test eax, eax
jne 0x4158c4
mov eax, dword [ebx]
test eax, eax
je 0x415881
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 0x4158d4
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0x24]
mov esi, edi
call fcn.004158ee
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.00415913
mov eax, esi
mov esi, edi
call fcn.004158ee
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.004046b1
jmp 0x4158d4
mov eax, dword [ebx]
test eax, eax
je 0x4158d4
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.0043029b
add ebp, 0x198
leave
ret 4

Function at 0x4158ee
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 0x41623f
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 0x4162f7
push str.ProgramFilesFolder
push edi
call fcn.00408fde
mov esi, str.AppDataFolder
test eax, eax
je 0x416298
push str.ProgramFiles
push edi
call fcn.00414d36
pop ecx
pop ecx
test al, al
jne 0x416298
push esi
push edi
call fcn.00408fde
test eax, eax
jne 0x4162f7
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 0x4162b8
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 0x4162d7
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 0x4162ee
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.004045c0
xor eax, eax
test esi, esi
setne al
jmp 0x4162f9
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0043029b
add ebp, 0x190
leave
ret

Function at 0x4164f8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x457cbc], 0
push esi
mov esi, eax
je 0x41652f
push dword [esi]
lea eax, [ebp - 4]
call fcn.0041630f
push eax
call fcn.00416320
push eax
mov eax, 0x457c8c
call fcn.004156a1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
cmp byte [0x456514], 0
je 0x416593
cmp byte [ebp + 8], 0
push edi
push 0x10
pop edi
je 0x416547
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.00410594
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.004046b1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
pop edi
jmp 0x41659b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
leave
ret

Function at 0x416c2a
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 0x416c4f
lea esi, [ebp - 0xc]
call fcn.004095ec
lea ebx, [edi + 0x18]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x416c62
lea esi, [ebp - 0xc]
call fcn.004095ec
xor esi, esi
cmp dword [ebp - 8], esi
jle 0x416c87
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 0x416c69
lea esi, [ebp - 0xc]
call fcn.00408e65
pop esi
pop ebx
leave
ret
Function at 0x416e95
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 0x416f10
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 0x416f7b
mov esi, dword [ebp + 8]
mov ecx, 0x456f60
call fcn.00402131
jmp 0x416fd3
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.0041715b
mov bl, al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004046b1
test bl, bl
je 0x416fc1
push edi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
call fcn.00416ffd
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 0x417731
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 0x417784
xor al, al
jmp 0x41789a
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x78], eax
jle 0x41779b
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 0x4177ca
cmp dword [ebp - 0x80], 0xc8
jbe 0x417889
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 0x417830
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jge 0x4177f8
push 0x80070057
call fcn.0040468d
cmp word [eax], 0x22
je 0x417830
push 0x20
xor ecx, ecx
call fcn.00408c07
cmp eax, 0xffffffff
je 0x417830
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 0x41783a
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 0x417858
jl 0x4177ee
cmp word [eax], 0x20
je 0x417858
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.0043029b
add ebp, 0x128
leave
ret
Function at 0x4178b1
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 0x417941
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 0x41796a
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 0x417980
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 0x4179ab
cmp edi, 0xea
jne 0x4179b7
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 0x417fdf
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 0x417ff8
xor eax, eax
jmp 0x4180b1
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 0x41801c
push eax
jmp 0x4180a8
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 0x4180a3
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 0x418098
cmp dword [ebp - 8], edi
je 0x418098
mov eax, esi
push eax
push dword [ebp + 8]
call fcn.00417acf
movzx esi, al
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004046b1
cmp ebx, edi
je 0x418094
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4180b1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004046b1
cmp ebx, edi
je 0x4180ae
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41aa6a
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 0x41ac18
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 0x41ac18
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 0x41ab27
push eax
jmp 0x41ac04
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 0x41ab8f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp dword [ebp - 0x424], esi
je 0x41abad
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 0x41ac0a
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.0043029b
leave
ret 4
Function at 0x41b41c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x28], edi
jle 0x41b47f
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 0x41b429
lea esi, [ebx + 0x24]
call fcn.00408e65
lea edi, [ebx + 4]
call fcn.0041b772
mov eax, dword [ebx]
sub eax, 0x10
call fcn.004046b1
pop edi
pop esi
leave
ret

Function at 0x41ba5d
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.0041051e
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.0042719b
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
lea ecx, [edi + 0x30]
push ecx
push 0x41baef
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 0x41d175
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 0x41d1c7
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 0x41d1c2
cmp dword [ebp - 4], 0x103
jne 0x41d1c2
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 0x41d1e0
push eax
call edi
and dword [esi + 0x70], 0
mov eax, dword [esi + 0x68]
test eax, eax
je 0x41d1ee
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 0x41d226
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 0x41d260
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x41d5f9
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 0x41d285
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41d295
cmp byte [ebp + 0x14], bl
je 0x41d293
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
jmp 0x41d295
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x41df16
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.0041f12d
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 0x41df4b
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.0041de8f
mov ecx, dword [ebp + 0xc]
mov byte [esi + 0xc], 0
test ecx, ecx
jbe 0x41df75
cmp dword [ebp - 4], ecx
je 0x41df75
mov eax, 0x2ee2
test eax, eax
jne 0x41df8c
mov esi, dword [esi + 0x14]
mov edi, dword [ebp + 0x10]
cmp esi, dword [edi]
je 0x41df8a
call fcn.0041f12d
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x41df92
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 0x41e028
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41e02a
jmp 0x41e005
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41e00a
lea esi, [edi + 4]
push ebx
call fcn.0042e7d1
mov eax, esi
call fcn.0042e7ba
test al, al
jne 0x41e015
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41dfd9
cmp dword [edi + 0x3c], 0
jne 0x41e01c
mov eax, dword [edi + 0x38]
jmp 0x41e02a
mov eax, 0xe0000008
jmp 0x41e02a
mov edi, dword [edi + 0x38]
test edi, edi
jle 0x41e028
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x41e031
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 0x41e0c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41e0c7
jmp 0x41e0a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41e0a6
lea esi, [edi + 4]
push ebx
call fcn.0042e7d1
mov eax, esi
call fcn.0042e7ba
test al, al
jne 0x41e0b1
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41e075
cmp dword [edi + 0x3c], 0
jne 0x41e0b8
mov eax, dword [edi + 0x38]
jmp 0x41e0c7
mov eax, 0xe0000008
jmp 0x41e0c7
mov edi, dword [edi + 0x38]
test edi, edi
jle 0x41e0c5
mov eax, dword [esp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
ret 8