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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56911b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5bfc00]
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.00542ab6
push 4
mov dword [ebp - 4], 0
call fcn.00423988
mov edi, eax
add esp, 4
test edi, edi
je 0x40a8dc
call fcn.0053eef9
mov dword [edi], eax
call fcn.0053edb3
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0053ece8
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40a8d2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0053ed10
jmp 0x40a8de
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 0x40c840
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
push edi
lea esi, [eax + 1]
jmp 0x40c860
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c860
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.0040bfc0
add esp, 4
lea esi, [ebp - 0x90]
lea ebx, [ebp - 0x14]
call fcn.0040c080
xor esi, esi
lea edi, [ebp - 0x37]
jmp 0x40c8c0
mov bl, byte [ebp + esi - 0x14]
movzx eax, bl
push eax
lea ecx, [edi - 1]
push str._02x
push ecx
call fcn.00523a03
shl bl, 4
movzx edx, bl
push edx
push str._02x
push edi
call fcn.00523a03
inc esi
add esp, 0x18
add edi, 2
cmp esi, 0x10
jl 0x40c8c0
push 0x20
lea eax, [ebp - 0x38]
push eax
push 0x5ca354
call fcn.00527720
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
mov eax, 0x5ca354
pop ebx
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
Function at 0x40f390
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5bfc00]
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.00524a80
add esp, 0xc
push esi
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f3e6
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
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 0x40f43d
mov edx, dword [ebp + 8]
cmp dword [ebp - 0x224], edx
je 0x40f421
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x40f402
jmp 0x40f43f
push 0x224
lea ecx, [ebp - 0x228]
push ecx
push ebx
call fcn.00527720
add esp, 0xc
mov edi, 1
jmp 0x40f43f
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.00521a0b
mov esp, ebp
pop ebp
ret
Function at 0x40f550
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x5bfc00]
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.0043592b
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40f58e
push eax
call fcn.004239c2
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.00524a80
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 0x40f5d8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
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 0x40f6ac
push 0x220
lea edx, [ebp - 0x22c]
push ebx
push edx
mov dword [ebp - 0x230], ebx
call fcn.00524a80
add esp, 0xc
mov eax, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x350]
push eax
lea ebx, [ebp - 0x230]
call fcn.0040f390
add esp, 4
test eax, eax
je 0x40f693
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 0x40f6c6
push 0xffffffffffffffff
lea edx, [ebx + 1]
push edx
lea ecx, [esi + 4]
call fcn.00402340
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.00435c7d
mov edi, dword [ebp - 0x35c]
lea eax, [ebp - 0x358]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40f613
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.00521a0b
mov esp, ebp
pop ebp
ret
call fcn.004260c6
int3
Function at 0x40fe10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00527a90
mov eax, dword [0x5bfc00]
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.00524a80
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 0x40feaa
mov eax, dword [ebp - 0x1008]
cmp eax, 1
je 0x40feaa
cmp eax, 2
je 0x40feaa
push esi
push 0x599330
mov ecx, ebx
call fcn.00402e50
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1004]
push edx
push 0x599e94
push ebx
call fcn.00403300
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00521a0b
mov esp, ebp
pop ebp
ret

Function at 0x40fed0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5bfc00]
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 0x40fef1
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 0x40ff41
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.00521a0b
mov esp, ebp
pop ebp
ret 4

Function at 0x40ff80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569ea2
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5bfc00]
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 0x599330
mov ecx, esi
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x118], 0x100
call fcn.00401f10
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 0x41002b
lea edx, [ebp - 0x114]
push edx
push 0x599e94
push esi
call fcn.00403300
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.00521a0b
mov esp, ebp
pop ebp
ret 4
Function at 0x411480
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 0x4114b1
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 0x411501
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4114eb
push esi
call ebx
xor esi, esi
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
test esi, esi
je 0x4114f8
push esi
call ebx
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x41150c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411520
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 0x41154b
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 0x411571
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4116a0
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 0x4116cb
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 0x59aa80
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x4116f0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411700
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569e28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5bfc00]
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 0x599330
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00401f10
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 0x41176a
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
push 0x59a08c
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x411788
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 0x4117a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4117ae
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 0x411890
Capabilities:
Create directory
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a459
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5bfc00]
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.004261e2
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4118ec
push 0x80004005
call fcn.00403230
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.004261e2
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x411919
push 0x80004005
call fcn.00403230
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 0x411953
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.0040fe10
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x411976
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._sSetupBox
push eax
call fcn.00403300
mov edi, dword [ebp - 0x18]
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.004261e2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4119b1
push 0x80004005
call fcn.00403230
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.00403300
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 0x4119fc
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 0x411a1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x411a27
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 0x411a4a
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 0x411a60
Capabilities:
Create directory
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a459
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5bfc00]
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.004261e2
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x411abc
push 0x80004005
call fcn.00403230
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.004261e2
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x411ae9
push 0x80004005
call fcn.00403230
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 0x411b23
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.0040fe10
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x411b46
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.00403300
mov edi, dword [ebp - 0x18]
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.004261e2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411b81
push 0x80004005
call fcn.00403230
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.00403300
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 0x411bcc
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 0x411bec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x411bf7
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 0x411c1a
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 0x412e50
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569883
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x5bfc00]
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 0x412f22
push 0x59a248
push ecx
call fcn.00522301
add esp, 8
test eax, eax
je 0x412f1f
mov ecx, dword [ebp + 8]
sub eax, ecx
cmp eax, 0xffffffff
je 0x412f22
cmp dword [ecx - 0xc], 1
jge 0x412eb8
or eax, 0xffffffff
jmp 0x412ed3
inc ecx
push 0x59a248
push ecx
call fcn.00522301
add esp, 8
test eax, eax
jne 0x412ed0
or eax, 0xffffffff
jmp 0x412ed3
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.00402c10
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 0x412f1f
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 0x412f59
mov ecx, dword [ebp - 0x174]
mov eax, dword [edi + 4]
push ecx
push 0xffffffffffffffff
push eax
call fcn.00428cc8
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
jmp 0x412fb4
mov esi, dword [ebp + 8]
call fcn.00428cc8
mov eax, dword [eax + 8]
push 0
push esi
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconA]
test eax, eax
je 0x412f8a
cmp eax, 0xffffffff
je 0x412f8a
mov ecx, dword [edi + 4]
push eax
push 0xffffffffffffffff
push ecx
call fcn.00428cc8
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
jmp 0x412fb4
call fcn.00428cc8
call fcn.00428cc8
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.00428cc8
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00401bc0
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 0x412fdf
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.00521a0b
mov esp, ebp
pop ebp
ret
Function at 0x413c40
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.00527a90
mov eax, dword [0x5bfc00]
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 [0x59a2f8]
push 0
mov dword [ebp - 0x10], ecx
mov edi, edx
mov edx, dword [0x59a2fc]
mov dword [ebp - 0x14], eax
mov eax, dword [0x59a300]
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 0x413cbd
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
push 0x59a304
push ebx
call fcn.0052407b
mov ebx, eax
add esp, 8
cmp ebx, esi
jne 0x413ce7
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
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 0x413d0d
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 0x413dac
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov eax, dword [ebp - 0x18]
push ebx
test eax, eax
je 0x413dcb
push eax
lea ecx, [ebp - 0x1003c]
push 1
push ecx
call fcn.0052341b
add esp, 0x10
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
call esi
test eax, eax
je 0x413d91
call fcn.00428cc8
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 0x413d8b
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call esi
test eax, eax
jne 0x413d62
jmp 0x413d91
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 0x413d32
push ebx
call fcn.0052398f
add esp, 4
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
call fcn.005238c6
push ebx
call fcn.0052398f
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00521a0b
mov esp, ebp
pop ebp
ret