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

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x458090]
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 0x4162e7
push esi
lea esi, [eax + 0x20]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x416215
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.00404548
push 0x2e
call fcn.00408c75
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push ecx
mov ecx, esi
call fcn.00408942
push str..log
push esi
call fcn.00402120
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.00408e61
cmp dword [ebx], 0xffffffff
je 0x4162d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x416262
mov eax, dword [ebx]
test eax, eax
je 0x416293
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x416293
test eax, eax
jne 0x4162d6
mov eax, dword [ebx]
test eax, eax
je 0x416293
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 0x4162e6
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0x24]
mov esi, edi
call fcn.00416300
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 0x78]
mov dword [ebp - 0x78], eax
call fcn.00416325
mov eax, esi
mov esi, edi
call fcn.00416300
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.00404644
jmp 0x4162e6
mov eax, dword [ebx]
test eax, eax
je 0x4162e6
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.0043189b
add ebp, 0x198
leave
ret 4

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

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
call fcn.0040ef2c
test al, al
jne 0x416d0d
push str.ProgramFilesFolder
push edi
call fcn.004090d9
mov esi, str.AppDataFolder
test eax, eax
je 0x416cae
push str.ProgramFiles
push edi
call fcn.004156a5
pop ecx
pop ecx
test al, al
jne 0x416cae
push esi
push edi
call fcn.004090d9
test eax, eax
jne 0x416d0d
push esi
push edi
call fcn.004090d9
neg eax
sbb al, al
inc al
push 0
pop eax
mov word [ebp - 0x7c], ax
mov eax, str.APPDATA
jne 0x416cce
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 0x416ced
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 0x416d04
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.00404548
xor eax, eax
test esi, esi
setne al
jmp 0x416d0f
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0043189b
add ebp, 0x190
leave
ret

Function at 0x416f0e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x45ae9c], 0
push esi
mov esi, eax
je 0x416f45
push dword [esi]
lea eax, [ebp - 4]
call fcn.00416d25
push eax
call fcn.00416d36
push eax
mov eax, 0x45ae6c
call fcn.004160b3
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404644
cmp byte [0x459594], 0
je 0x416fa9
cmp byte [ebp + 8], 0
push edi
push 0x10
pop edi
je 0x416f5d
mov edi, 0x40010
push dword [esi]
lea eax, [ebp - 4]
call fcn.0040456b
mov eax, dword [0x45a140]
mov ecx, 0x45a140
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.00410ab2
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.00404644
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404644
pop edi
jmp 0x416fb1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
leave
ret

Function at 0x41777a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, eax
push esi
add ebx, 0x18
mov eax, dword [ebx]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [eax - 0xc], edi
je 0x4177a2
lea esi, [ebp - 0xc]
call fcn.004096e7
xor esi, esi
cmp dword [ebp - 8], edi
jle 0x4177c7
mov eax, esi
lea ecx, [ebp - 0xc]
call fcn.00408ead
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 0x4177a9
lea esi, [ebp - 0xc]
call fcn.00408e78
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417bb2
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, eax
mov eax, dword [0x45a140]
mov esi, 0x45a140
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [0x45a140]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x45a140]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebx + 0x14]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040bd36
lea eax, [ebp - 4]
lea edi, [ebp - 0xc]
call fcn.00408901
push 0x452d3c
xor ecx, ecx
lea esi, [ebp - 4]
call fcn.00408c44
test eax, eax
jne 0x417c2d
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, edi
push eax
call fcn.00404548
push 0x44b8d0
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00408db8
pop ecx
lea ecx, [ebp + 0xc]
call fcn.00408dea
mov eax, dword [ebp - 0x10]
pop ecx
add eax, 0xfffffff0
call fcn.00404644
push 0
lea eax, [ebp + 0xc]
push 1
push eax
call fcn.0040a71b
add esp, 0xc
push str.instname_target.msi
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea esi, [ebx + 0x18]
call fcn.00408dea
pop ecx
mov edi, esi
call fcn.00408901
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404644
push str.instname_custom.mst
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea edi, [ebx + 0x1c]
call fcn.00408dea
pop ecx
call fcn.00408901
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [esi]
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x417cd0
mov esi, dword [ebp + 8]
mov ecx, 0x45a140
call fcn.004020bf
jmp 0x417d28
push 0x44bd3c
lea eax, [ebp - 0x10]
call fcn.0040456b
add ebx, 0x10
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.00418143
mov bl, al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404644
test bl, bl
je 0x417d16
push edi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
call fcn.00417fe5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409cf1
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404644
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4188cf
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 [0x458090]
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 0x418922
xor al, al
jmp 0x418a38
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x78], eax
jle 0x418939
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 0x418968
cmp dword [ebp - 0x80], 0xc8
jbe 0x418a27
mov eax, dword [0x45a140]
mov ecx, 0x45a140
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 0x4189ce
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jge 0x418996
push 0x80070057
call fcn.00404620
cmp word [eax], 0x22
je 0x4189ce
push 0x20
xor ecx, ecx
call fcn.00408c1a
cmp eax, 0xffffffff
je 0x4189ce
push 0x22
lea eax, [ebp - 0x70]
call fcn.00409bb4
mov esi, dword [esi]
push dword [esi - 0xc]
lea eax, [ebp - 0x70]
push esi
call fcn.00402306
push 0x22
lea eax, [ebp - 0x70]
call fcn.00409bb4
jmp 0x4189d8
mov eax, esi
lea edi, [ebp - 0x70]
call fcn.00408901
mov esi, dword [ebp - 0x7c]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x4189f6
jl 0x41898c
cmp word [eax], 0x20
je 0x4189f6
push 0x20
lea eax, [ebp - 0x70]
call fcn.00409bb4
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x70]
call fcn.00402306
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.00404644
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.0043189b
add ebp, 0x128
leave
ret
Function at 0x418a4f
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x45a140]
push esi
push edi
mov edi, 0x45a140
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.00408e40
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
or eax, 0xffffffff
lea esi, [ebp - 4]
call fcn.00409cd3
mov ecx, edi
mov esi, ebx
call fcn.004020bf
push 0x64
push 0x64
mov eax, ebx
call fcn.00408e40
push eax
push str.UserDomain
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
or eax, 0xffffffff
call fcn.00409cd3
push 0x44b8d0
push ebx
call fcn.00402120
mov esi, dword [ebp - 4]
push dword [esi - 0xc]
mov eax, ebx
push esi
call fcn.00402306
lea eax, [esi - 0x10]
call fcn.00404644
pop edi
mov eax, ebx
pop esi
leave
ret

Function at 0x418adf
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 0x418b08
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 0x418b1e
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 0x418b49
cmp edi, 0xea
jne 0x418b55
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 0x41918b
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 0x4191a4
xor eax, eax
jmp 0x41925d
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 0x4191c8
push eax
jmp 0x419254
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 0x41924f
mov eax, dword [ebp + 0x10]
shr eax, 1
push eax
push 0x78
pop ecx
lea edx, [ebp + 0xc]
call fcn.0040aa2a
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 0x419244
cmp dword [ebp - 8], edi
je 0x419244
mov eax, esi
push eax
push dword [ebp + 8]
call fcn.00418c7a
movzx esi, al
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404644
cmp ebx, edi
je 0x419240
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41925d
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404644
cmp ebx, edi
je 0x41925a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41ab7a
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], 0x453aa8
test eax, eax
je 0x41abcc
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 0x41abc7
cmp dword [ebp - 4], 0x103
jne 0x41abc7
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.00404644
mov eax, dword [esi + 0x60]
test eax, eax
je 0x41abe5
push eax
call edi
and dword [esi + 0x60], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x41abf3
push eax
call edi
and dword [esi + 0x58], 0
mov eax, dword [esi + 0x40]
push 0x10
pop edi
sub eax, edi
call fcn.00404644
mov eax, dword [esi + 0x38]
sub eax, edi
call fcn.00404644
mov eax, dword [esi + 0x20]
sub eax, edi
call fcn.00404644
mov eax, dword [esi + 0x1c]
sub eax, edi
call fcn.00404644
pop edi
leave
ret
Function at 0x41ac21
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.00408901
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x1c]
call fcn.00408901
mov eax, dword [esi + 0x14]
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
cmp eax, ebx
je 0x41ac55
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x41b096
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 0x41ac7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41ac8a
cmp byte [ebp + 0x10], bl
je 0x41ac88
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
jmp 0x41ac8a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x41ae12
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x45a140]
push ebx
push esi
push edi
mov ecx, 0x45a140
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.0040456b
lea edi, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0040a2af
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404644
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x90]
call fcn.0041aadc
xor ebx, ebx
mov dword [ebp - 0x24], ebx
xor esi, esi
push dword [ebp + esi*4 - 0x14]
lea eax, [ebp - 4]
call fcn.0040456b
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x90]
call fcn.0041ac21
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404644
test edi, edi
je 0x41aebb
inc esi
cmp esi, 3
jl 0x41ae81
jmp 0x41aebd
mov bl, 1
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0x90]
call fcn.0041ab7a
lea eax, [edi - 0x10]
call fcn.00404644
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x41b908
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.0041cca2
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 dword [ebp + 0xc], eax
je 0x41b93d
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 + 8], 1
call fcn.0041b882
mov ecx, dword [ebp + 0xc]
mov byte [esi + 8], 0
test ecx, ecx
jbe 0x41b967
cmp dword [ebp - 4], ecx
je 0x41b967
mov eax, 0x2ee2
test eax, eax
jne 0x41b97e
mov esi, dword [esi + 0xc]
mov edi, dword [ebp + 0x10]
cmp esi, dword [edi]
je 0x41b97c
call fcn.0041cca2
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x41b984
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 0x41ba1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41ba1c
jmp 0x41b9f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41b9fc
lea esi, [edi + 4]
push ebx
call fcn.00428118
mov eax, esi
call fcn.00428101
test al, al
jne 0x41ba07
push 0xa
push dword [edi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41b9cb
cmp dword [edi + 0x2c], 0
jne 0x41ba0e
mov eax, dword [edi + 0x28]
jmp 0x41ba1c
mov eax, 0xe0000008
jmp 0x41ba1c
mov edi, dword [edi + 0x28]
test edi, edi
jle 0x41ba1a
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x41ba23
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 0x41bab7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41bab9
jmp 0x41ba93
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41ba98
lea esi, [edi + 4]
push ebx
call fcn.00428118
mov eax, esi
call fcn.00428101
test al, al
jne 0x41baa3
push 0xa
push dword [edi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41ba67
cmp dword [edi + 0x2c], 0
jne 0x41baaa
mov eax, dword [edi + 0x28]
jmp 0x41bab9
mov eax, 0xe0000008
jmp 0x41bab9
mov edi, dword [edi + 0x28]
test edi, edi
jle 0x41bab7
mov eax, dword [esp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x41c428
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 0x41c46a
call fcn.0041c530
test eax, eax
je 0x41c46d
jmp 0x41c47a
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
jne 0x41c478
mov eax, dword [esi + 0x28]
jmp 0x41c47a
xor eax, eax
pop esi
pop ebp
ret 0x1c

Function at 0x41c761
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004318c0
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 0x41c79e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41c7c1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 3
je 0x41c7bf
cmp eax, 4
je 0x41c7bf
cmp eax, 1
je 0x41c7bf
cmp eax, 2
je 0x41c7bf
push 2
pop eax
jmp 0x41c7c1
xor eax, eax
leave
ret 8
Function at 0x41df2a
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 [0x458090]
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 0x41e0d8
lea eax, [ebp - 0x214]
push eax
push esi
push 0x44cc88
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41e0d8
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.0040456b
push str..url
lea eax, [ebp - 0x420]
push eax
call fcn.00402120
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 0x41dfe7
push eax
jmp 0x41e0c4
mov eax, dword [0x45a140]
mov ecx, 0x45a140
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.004022bb
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 0x41e04f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp dword [ebp - 0x424], esi
je 0x41e06d
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.00408c75
mov ecx, eax
lea edx, [ebp - 0x428]
mov eax, esi
call fcn.00408d82
push eax
call fcn.0040a325
mov eax, dword [ebp - 0x428]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
call fcn.00404644
lea eax, [edi - 0x10]
call fcn.00404644
test ebx, ebx
je 0x41e0ca
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x420]
add eax, 0xfffffff0
call fcn.00404644
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043189b
leave
ret 4