joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a7d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56abeb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5c1c00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00544677
push 4
mov dword [ebp - 4], 0
call fcn.00425508
mov edi, eax
add esp, 4
test edi, edi
je 0x40a84c
call fcn.00540a09
mov dword [edi], eax
call fcn.005408c3
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.005407f8
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40a842
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00540820
jmp 0x40a84e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c7b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x5c1c00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
push edi
lea esi, [eax + 1]
jmp 0x40c7d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c7d0
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], ecx
sub eax, esi
push edx
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x67452301
mov dword [ebp - 0x8c], 0xefcdab89
mov dword [ebp - 0x88], 0x98badcfe
mov dword [ebp - 0x84], 0x10325476
call fcn.0040bf30
add esp, 4
lea esi, [ebp - 0x90]
lea ebx, [ebp - 0x14]
call fcn.0040bff0
xor esi, esi
lea edi, [ebp - 0x37]
jmp 0x40c830
mov bl, byte [ebp + esi - 0x14]
movzx eax, bl
push eax
lea ecx, [edi - 1]
push str._02x
push ecx
call fcn.00525512
shl bl, 4
movzx edx, bl
push edx
push str._02x
push edi
call fcn.00525512
inc esi
add esp, 0x18
add edi, 2
cmp esi, 0x10
jl 0x40c830
push 0x20
lea eax, [ebp - 0x38]
push eax
push 0x5cc36c
call fcn.00529230
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
mov eax, 0x5cc36c
pop ebx
call fcn.00523519
mov esp, ebp
pop ebp
ret
Function at 0x40f300
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5c1c00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x220
lea eax, [ebp - 0x224]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x228], edi
call fcn.00526590
add esp, 0xc
push esi
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f356
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523519
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x228]
push ecx
push esi
mov dword [ebp - 0x228], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x40f3ad
mov edx, dword [ebp + 8]
cmp dword [ebp - 0x224], edx
je 0x40f391
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x40f372
jmp 0x40f3af
push 0x224
lea ecx, [ebp - 0x228]
push ecx
push ebx
call fcn.00529230
add esp, 0xc
mov edi, 1
jmp 0x40f3af
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00523519
mov esp, ebp
pop ebp
ret
Function at 0x40f4c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x5c1c00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
xor ebx, ebx
push ebx
mov dword [ebp - 0x360], ecx
call fcn.0043746a
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40f4fe
push eax
call fcn.00425542
add esp, 4
mov dword [esi + 8], ebx
push 0x124
lea eax, [ebp - 0x354]
push ebx
push eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x358], ebx
call fcn.00526590
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x35c], edi
cmp edi, 0xffffffff
jne 0x40f548
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523519
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x358]
push ecx
push edi
mov dword [ebp - 0x358], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40f61c
push 0x220
lea edx, [ebp - 0x22c]
push ebx
push edx
mov dword [ebp - 0x230], ebx
call fcn.00526590
add esp, 0xc
mov eax, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x350]
push eax
lea ebx, [ebp - 0x230]
call fcn.0040f300
add esp, 4
test eax, eax
je 0x40f603
mov ecx, dword [ebp - 0x350]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esi + 0xc]
mov edi, dword [ebp - 0x350]
test ebx, ebx
js 0x40f636
push 0xffffffffffffffff
lea edx, [ebx + 1]
push edx
lea ecx, [esi + 4]
call fcn.0040fbc0
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x360]
mov dword [eax + ebx*4], edi
mov edx, dword [ecx + 8]
push edx
call fcn.004377bc
mov edi, dword [ebp - 0x35c]
lea eax, [ebp - 0x358]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40f583
lea ebx, [eax + 1]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00523519
mov esp, ebp
pop ebp
ret
call fcn.00427c2a
int3
Function at 0x40fe70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.005295a0
mov eax, dword [0x5c1c00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x1008], 0
mov dword [ebp - 0x100c], 0x1000
call fcn.00526590
add esp, 0xc
lea ecx, [ebp - 0x100c]
push ecx
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x1004]
push edx
lea eax, [ebp - 0x1008]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x40ff0a
mov eax, dword [ebp - 0x1008]
cmp eax, 1
je 0x40ff0a
cmp eax, 2
je 0x40ff0a
push esi
push 0x59b320
mov ecx, ebx
call fcn.00402d60
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523519
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1004]
push edx
push 0x59be84
push ebx
call fcn.00403220
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00523519
mov esp, ebp
pop ebp
ret

Function at 0x40ff30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5c1c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x104]
push esi
mov esi, ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ff51
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esi + 4]
inc eax
push eax
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ffa1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00523519
mov esp, ebp
pop ebp
ret 4

Function at 0x40ffd0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ba12
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5c1c00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x11c], 0
push 0x59b320
mov ecx, esi
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x118], 0x100
call fcn.00401ed0
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp + 8]
push 0
push 0
push 0
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x114]
push edx
mov dword [ebp - 4], 0
mov ecx, dword [edi + 4]
push eax
push ecx
mov dword [ebp - 0x11c], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x41007b
lea edx, [ebp - 0x114]
push edx
push 0x59be84
push esi
call fcn.00403220
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00523519
mov esp, ebp
pop ebp
ret 4
Function at 0x4114f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareSetupBox
push SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411521
mov esi, dword [ebp - 4]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push ecx
push esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411571
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41155b
push esi
call ebx
xor esi, esi
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
test esi, esi
je 0x411568
push esi
call ebx
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x41157c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SoftwareSetupBox
push SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4115bb
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push eax
push esi
mov dword [ebp + 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x4115e1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411750
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SoftwareSetupBox
push SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41177b
mov esi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push 0x59cad8
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x4117a0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4117b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b998
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5c1c00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x1c], vtable.RegAccess.0
mov dword [ebp - 0x18], esi
push 0x59b320
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00401ed0
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push esi
push str.SoftwareSetupBox
push SysReAllocString
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41181a
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
push 0x59c07c
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x411838
push esi
call edi
xor esi, esi
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411857
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x41185e
push esi
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411c70
Capabilities:
Create directory
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bfc9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5c1c00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], vtable.RegAccess.0
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 2
call fcn.00427d68
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x411ccc
push 0x80004005
call fcn.00403150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
call fcn.00427d68
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x411cf9
push 0x80004005
call fcn.00403150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov byte [ebp - 4], 4
push SysReAllocString
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x411d33
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
mov edi, str.Local_AppData
lea ebx, [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.0040fe70
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x411d56
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x20], esi
mov ebx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x18]
push str._sTemp
push eax
call fcn.00403220
mov edi, dword [ebp - 0x18]
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411d91
push 0x80004005
call fcn.00403150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
push edx
push edi
push str._s_s
push eax
mov dword [ebp - 0x1c], 1
call fcn.00403220
lea eax, [edi - 0x10]
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411ddc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411dfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x411e07
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411e2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413060
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b383
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x5c1c00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
test eax, eax
js 0x413132
push 0x59c23c
push ecx
call fcn.00523e0f
add esp, 8
test eax, eax
je 0x41312f
mov ecx, dword [ebp + 8]
sub eax, ecx
cmp eax, 0xffffffff
je 0x413132
cmp dword [ecx - 0xc], 1
jge 0x4130c8
or eax, 0xffffffff
jmp 0x4130e3
inc ecx
push 0x59c23c
push ecx
call fcn.00523e0f
add esp, 8
test eax, eax
jne 0x4130e0
or eax, 0xffffffff
jmp 0x4130e3
sub eax, dword [ebp + 8]
dec eax
push eax
push 1
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp + 8]
call fcn.004014b0
lea ecx, [ebp - 0x178]
push ecx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00402b20
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x178]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41312f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
push 0x100
push 0x160
lea edx, [ebp - 0x174]
push edx
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x413169
mov ecx, dword [ebp - 0x174]
mov eax, dword [edi + 4]
push ecx
push 0xffffffffffffffff
push eax
call fcn.0042a861
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
jmp 0x4131c4
mov esi, dword [ebp + 8]
call fcn.0042a861
mov eax, dword [eax + 8]
push 0
push esi
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconA]
test eax, eax
je 0x41319a
cmp eax, 0xffffffff
je 0x41319a
mov ecx, dword [edi + 4]
push eax
push 0xffffffffffffffff
push ecx
call fcn.0042a861
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
jmp 0x4131c4
call fcn.0042a861
call fcn.0042a861
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, dword [edi + 4]
push eax
push 0xffffffffffffffff
push ecx
call fcn.0042a861
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00401b80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4131ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00523519
mov esp, ebp
pop ebp
ret
Function at 0x414870
Capabilities:
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1003c
call fcn.005295a0
mov eax, dword [0x5c1c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.Accept:___r_n_r_n]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov ecx, dword [0x59c2f4]
push 0
mov dword [ebp - 0x10], ecx
mov edi, edx
mov edx, dword [0x59c2f8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x59c2fc]
push 0x84000100
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x14]
push edx
push edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x4148ed
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523519
mov esp, ebp
pop ebp
ret
push 0x59c300
push ebx
call fcn.00525b8a
mov ebx, eax
add esp, 8
cmp ebx, esi
jne 0x414917
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523519
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x20000005
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x41493d
mov dword [ebp - 0x1c], esi
lea edx, [ebp - 0x18]
push edx
push 0x4000
lea eax, [ebp - 0x1003c]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4149dc
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov eax, dword [ebp - 0x18]
push ebx
test eax, eax
je 0x4149fb
push eax
lea ecx, [ebp - 0x1003c]
push 1
push ecx
call fcn.00524f2a
add esp, 0x10
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
call esi
test eax, eax
je 0x4149c1
call fcn.0042a861
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x5c]
call eax
push 0
test eax, eax
je 0x4149bb
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call esi
test eax, eax
jne 0x414992
jmp 0x4149c1
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea edx, [ebp - 0x18]
push edx
push 0x4000
lea eax, [ebp - 0x1003c]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x414962
push ebx
call fcn.0052549e
add esp, 4
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523519
mov esp, ebp
pop ebp
ret
call fcn.005253d5
push ebx
call fcn.0052549e
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00523519
mov esp, ebp
pop ebp
ret
Function at 0x414a20
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5c1c00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
lea eax, [ebp - 0x48]
push eax
mov edi, ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
push str.Agent_ld
lea ecx, [ebp - 0x44]
push 0x40
push ecx
call fcn.00525596
add esp, 0x10
test byte [ebp - 0x48], 4
push 0
push 0
push 0
jne 0x414a6e
push 4
lea edx, [ebp - 0x44]
push edx
jmp 0x414a74
push 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x414aa8
push ebx
mov edx, edi
mov ecx, esi
call fcn.00414870
add esp, 4
push esi
mov edi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523519
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 4
pop esi
call fcn.00523519
mov esp, ebp
pop ebp
ret

Function at 0x414ac0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5c1c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebp - 0x210]
push edx
push 0x598948
push 1
push 0
push 0x598d48
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x414b19
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523519
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push edi
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push ebx
push eax
call edx
mov eax, dword [ebp - 0x210]
mov edx, dword [ebp - 0x218]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
lea edx, [ebp - 0x214]
push edx
push 0x598da8
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x414b09
mov edx, dword [ebp - 0x21c]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push 2
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00523519
mov esp, ebp
pop ebp
ret