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

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x457090]
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 0x416239
push esi
lea esi, [eax + 0x20]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x416167
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.00404535
push 0x2e
call fcn.00408c55
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push ecx
mov ecx, esi
call fcn.00408922
push str..log
push esi
call fcn.00402105
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.00408e41
cmp dword [ebx], 0xffffffff
je 0x416228
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4161b4
mov eax, dword [ebx]
test eax, eax
je 0x4161e5
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4161e5
test eax, eax
jne 0x416228
mov eax, dword [ebx]
test eax, eax
je 0x4161e5
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 0x416238
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0x24]
mov esi, edi
call fcn.00416252
mov eax, dword [0x459100]
mov ecx, 0x459100
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 0x78]
mov dword [ebp - 0x78], eax
call fcn.00416277
mov eax, esi
mov esi, edi
call fcn.00416252
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.0040464c
jmp 0x416238
mov eax, dword [ebx]
test eax, eax
je 0x416238
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.004313fb
add ebp, 0x198
leave
ret 4

Function at 0x416252
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 0x416ba7
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
call fcn.0040ee65
test al, al
jne 0x416c5f
push str.ProgramFilesFolder
push edi
call fcn.0040904e
mov esi, str.AppDataFolder
test eax, eax
je 0x416c00
push str.ProgramFiles
push edi
call fcn.004155f8
pop ecx
pop ecx
test al, al
jne 0x416c00
push esi
push edi
call fcn.0040904e
test eax, eax
jne 0x416c5f
push esi
push edi
call fcn.0040904e
neg eax
sbb al, al
inc al
push 0
pop eax
mov word [ebp - 0x7c], ax
mov eax, str.APPDATA
jne 0x416c20
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 0x416c3f
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 0x416c56
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.00404535
xor eax, eax
test esi, esi
setne al
jmp 0x416c61
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.004313fb
add ebp, 0x190
leave
ret

Function at 0x416e60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x459e5c], 0
push esi
mov esi, eax
je 0x416e97
push dword [esi]
lea eax, [ebp - 4]
call fcn.00416c77
push eax
call fcn.00416c88
push eax
mov eax, 0x459e2c
call fcn.00416005
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
cmp byte [0x458598], 0
je 0x416efb
cmp byte [ebp + 8], 0
push edi
push 0x10
pop edi
je 0x416eaf
mov edi, 0x40010
push dword [esi]
lea eax, [ebp - 4]
call fcn.00404558
mov eax, dword [0x459100]
mov ecx, 0x459100
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.00410a0e
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.0040464c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
pop edi
jmp 0x416f03
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
leave
ret

Function at 0x4176b8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor eax, eax
lea ebx, [edi + 0x1c]
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 0x4176dd
lea esi, [ebp - 0xc]
call fcn.0040965c
lea ebx, [edi + 0x20]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4176f0
lea esi, [ebp - 0xc]
call fcn.0040965c
xor esi, esi
cmp dword [ebp - 8], esi
jle 0x417715
mov eax, esi
lea ecx, [ebp - 0xc]
call fcn.00408e8d
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 0x4176f7
lea esi, [ebp - 0xc]
call fcn.00408e58
pop esi
pop ebx
leave
ret
Function at 0x417b56
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, eax
mov eax, dword [0x459100]
mov esi, 0x459100
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x459100]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [0x459100]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebx + 0x18]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0040bc90
lea eax, [ebp - 4]
lea edi, [ebp - 8]
call fcn.004088e1
push 0x451d0c
xor ecx, ecx
lea esi, [ebp - 4]
call fcn.00408c24
test eax, eax
jne 0x417bd1
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, edi
push eax
call fcn.00404535
push str.instname_target.msi
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
lea esi, [ebx + 0x1c]
call fcn.00408dca
pop ecx
mov edi, esi
call fcn.004088e1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040464c
push str.instname_custom.mst
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
lea edi, [ebx + 0x20]
call fcn.00408dca
pop ecx
call fcn.004088e1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [esi]
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x417c3c
mov esi, dword [ebp + 8]
mov ecx, 0x459100
call fcn.00404631
jmp 0x417c94
push 0x44ad34
lea eax, [ebp - 0x10]
call fcn.00404558
add ebx, 0x14
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.0041804a
mov bl, al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040464c
test bl, bl
je 0x417c82
push edi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
call fcn.00417eec
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409c66
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040464c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x4187d6
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 [0x457090]
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 0x418829
xor al, al
jmp 0x41893f
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x78], eax
jle 0x418840
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 0x41886f
cmp dword [ebp - 0x80], 0xc8
jbe 0x41892e
mov eax, dword [0x459100]
mov ecx, 0x459100
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 0x4188d5
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jge 0x41889d
push 0x80070057
call fcn.0040460d
cmp word [eax], 0x22
je 0x4188d5
push 0x20
xor ecx, ecx
call fcn.00408bfa
cmp eax, 0xffffffff
je 0x4188d5
push 0x22
lea eax, [ebp - 0x70]
call fcn.00409b29
mov esi, dword [esi]
push dword [esi - 0xc]
lea eax, [ebp - 0x70]
push esi
call fcn.004022eb
push 0x22
lea eax, [ebp - 0x70]
call fcn.00409b29
jmp 0x4188df
mov eax, esi
lea edi, [ebp - 0x70]
call fcn.004088e1
mov esi, dword [ebp - 0x7c]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x4188fd
jl 0x418893
cmp word [eax], 0x20
je 0x4188fd
push 0x20
lea eax, [ebp - 0x70]
call fcn.00409b29
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x70]
call fcn.004022eb
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.0040464c
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.004313fb
add ebp, 0x128
leave
ret
Function at 0x418956
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x459100]
push esi
push edi
mov edi, 0x459100
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.00408e20
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
or eax, 0xffffffff
lea esi, [ebp - 4]
call fcn.00409c48
mov ecx, edi
mov esi, ebx
call fcn.00404631
push 0x64
push 0x64
mov eax, ebx
call fcn.00408e20
push eax
push str.UserDomain
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
or eax, 0xffffffff
call fcn.00409c48
push 0x44a8d0
push ebx
call fcn.00402105
mov esi, dword [ebp - 4]
push dword [esi - 0xc]
mov eax, ebx
push esi
call fcn.004022eb
lea eax, [esi - 0x10]
call fcn.0040464c
pop edi
mov eax, ebx
pop esi
leave
ret

Function at 0x4189e6
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 0x418a0f
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 0x418a25
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 0x418a50
cmp edi, 0xea
jne 0x418a5c
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 0x419084
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 0x41909d
xor eax, eax
jmp 0x419156
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 0x4190c1
push eax
jmp 0x41914d
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 0x419148
mov eax, dword [ebp + 0x10]
shr eax, 1
push eax
push 0x78
pop ecx
lea edx, [ebp + 0xc]
call fcn.0040a984
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea esi, [ebp + 0xc]
call fcn.00402073
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41913d
cmp dword [ebp - 8], edi
je 0x41913d
mov eax, esi
push eax
push dword [ebp + 8]
call fcn.00418b74
movzx esi, al
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040464c
cmp ebx, edi
je 0x419139
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x419156
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040464c
cmp ebx, edi
je 0x419153
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41aa31
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0x452a68
test eax, eax
je 0x41aa83
push 0xea60
push eax
mov byte [esi + 9], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41aa7e
cmp dword [ebp - 4], 0x103
jne 0x41aa7e
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x14]
call edi
mov eax, dword [esi + 0x68]
sub eax, 0x10
call fcn.0040464c
mov eax, dword [esi + 0x60]
test eax, eax
je 0x41aa9c
push eax
call edi
and dword [esi + 0x60], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x41aaaa
push eax
call edi
and dword [esi + 0x58], 0
mov eax, dword [esi + 0x40]
push 0x10
pop edi
sub eax, edi
call fcn.0040464c
mov eax, dword [esi + 0x38]
sub eax, edi
call fcn.0040464c
mov eax, dword [esi + 0x20]
sub eax, edi
call fcn.0040464c
mov eax, dword [esi + 0x1c]
sub eax, edi
call fcn.0040464c
pop edi
leave
ret
Function at 0x41aad8
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 + 0x20]
call fcn.004088e1
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x1c]
call fcn.004088e1
mov eax, dword [esi + 0x14]
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
cmp eax, ebx
je 0x41ab0c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x41af4c
push ebx
push ebx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x41ab31
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41ab41
cmp byte [ebp + 0x10], bl
je 0x41ab3f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
jmp 0x41ab41
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x41acc8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x459100]
push ebx
push esi
push edi
mov ecx, 0x459100
mov dword [ebp - 0x14], str.http:__www.google.com
mov dword [ebp - 0x10], str.http:__www.yahoo.com
mov dword [ebp - 0xc], str.http:__www.example.com
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
push str.tin9999.tmp
lea eax, [ebp - 4]
call fcn.00404558
lea edi, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0040a224
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x90]
call fcn.0041a993
xor ebx, ebx
mov dword [ebp - 0x24], ebx
xor esi, esi
push dword [ebp + esi*4 - 0x14]
lea eax, [ebp - 4]
call fcn.00404558
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x90]
call fcn.0041aad8
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
test edi, edi
je 0x41ad71
inc esi
cmp esi, 3
jl 0x41ad37
jmp 0x41ad73
mov bl, 1
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0x90]
call fcn.0041aa31
lea eax, [edi - 0x10]
call fcn.0040464c
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x41b7bd
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.0041c9d1
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 + 0x3c], 0
mov edi, eax
je 0x41b7f1
mov dword [ebp - 4], edi
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov eax, esi
mov byte [esi + 8], 1
call fcn.0041b735
mov byte [esi + 8], 0
test edi, edi
jbe 0x41b818
cmp dword [ebp - 4], edi
je 0x41b818
mov eax, 0x2ee2
test eax, eax
jne 0x41b82f
mov esi, dword [esi + 0xc]
mov edi, dword [ebp + 0x10]
cmp esi, dword [edi]
je 0x41b82d
call fcn.0041c9d1
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x41b835
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 + 0x58]
lea ebx, [edi + 0x34]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0x14]
mov byte [edi + 0x3d], 0
push dword [ebp + 0x10]
mov dword [edi + 0x30], 3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x41b8cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41b8cd
jmp 0x41b8a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41b8ad
lea esi, [edi + 4]
push ebx
call fcn.00427d6a
mov eax, esi
call fcn.00427d53
test al, al
jne 0x41b8b8
push 0xa
push dword [edi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41b87c
cmp dword [edi + 0x2c], 0
jne 0x41b8bf
mov eax, dword [edi + 0x28]
jmp 0x41b8cd
mov eax, 0xe0000008
jmp 0x41b8cd
mov edi, dword [edi + 0x28]
test edi, edi
jle 0x41b8cb
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

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

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x58]
lea ebx, [edi + 0x34]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push dword [esp + 0x1c]
mov byte [edi + 0x3d], 0
push dword [esp + 0x1c]
mov dword [edi + 0x30], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x41b968
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41b96a
jmp 0x41b944
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41b949
lea esi, [edi + 4]
push ebx
call fcn.00427d6a
mov eax, esi
call fcn.00427d53
test al, al
jne 0x41b954
push 0xa
push dword [edi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41b918
cmp dword [edi + 0x2c], 0
jne 0x41b95b
mov eax, dword [edi + 0x28]
jmp 0x41b96a
mov eax, 0xe0000008
jmp 0x41b96a
mov edi, dword [edi + 0x28]
test edi, edi
jle 0x41b968
mov eax, dword [esp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x41c248
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push dword [esi + 0x58]
and dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x41c28a
call fcn.0041c350
test eax, eax
je 0x41c28d
jmp 0x41c29a
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
jne 0x41c298
mov eax, dword [esi + 0x28]
jmp 0x41c29a
xor eax, eax
pop esi
pop ebp
ret 0x1c

Function at 0x41c581
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00431420
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x41c5be
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41c5e1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 3
je 0x41c5df
cmp eax, 4
je 0x41c5df
cmp eax, 1
je 0x41c5df
cmp eax, 2
je 0x41c5df
push 2
pop eax
jmp 0x41c5e1
xor eax, eax
leave
ret 8
Function at 0x41dc5c
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 [0x457090]
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 0x41de0a
lea eax, [ebp - 0x214]
push eax
push esi
push 0x44bc80
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41de0a
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.00404558
push str..url
lea eax, [ebp - 0x420]
push eax
call fcn.00402105
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 0x41dd19
push eax
jmp 0x41ddf6
mov eax, dword [0x459100]
mov ecx, 0x459100
call dword [eax + 0xc]
push dword [edi]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x42c]
call fcn.00401fac
push dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push str._InternetShortcut__r_nURL_s_r_n
call fcn.004022a0
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 0x41dd81
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp dword [ebp - 0x424], esi
je 0x41dd9f
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.00408c55
mov ecx, eax
lea edx, [ebp - 0x428]
mov eax, esi
call fcn.00408d62
push eax
call fcn.0040a29a
mov eax, dword [ebp - 0x428]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
call fcn.0040464c
lea eax, [edi - 0x10]
call fcn.0040464c
test ebx, ebx
je 0x41ddfc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x420]
add eax, 0xfffffff0
call fcn.0040464c
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004313fb
leave
ret 4