joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx + 0x28]
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20119
push esi
push esi
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x402010
push esi
push esi
lea ecx, [ebp - 8]
push ecx
push esi
push str.zi_inf
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x402006
cmp dword [ebp - 8], 3
jne 0x402006
mov esi, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [eax + 0x28]
lea ecx, [ebp - 4]
push ecx
push 0x20119
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402087
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push esi
push edx
push ecx
lea edx, [ebp + 0xc]
push edx
push 0
push str.zi_inf
push eax
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402073
cmp dword [ebp + 0xc], 3
je 0x40208f
test esi, esi
je 0x40207e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x40209a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4025c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx + 0x28]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x103
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x402649
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push str.zi_id
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x40261e
cmp dword [ebp - 8], 1
je 0x40263f
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx + 2]
push edx
push eax
mov eax, dword [ebp - 4]
push 1
push 0
push str.zi_id
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x402650
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx + 0x28]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x103
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4026d9
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push str.zi_bid
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x4026ae
cmp dword [ebp - 8], 1
je 0x4026cf
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx + 2]
push edx
push eax
mov eax, dword [ebp - 4]
push 1
push 0
push str.zi_bid
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4

Function at 0x4026e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx + 0x28]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x103
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x402769
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push str.zi_tid
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x40273e
cmp dword [ebp - 8], 1
je 0x40275f
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx + 2]
push edx
push eax
mov eax, dword [ebp - 4]
push 1
push 0
push str.zi_tid
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x402770
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a3a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0042f34a
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x45e020
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push ecx
push edx
lea eax, [ebp - 0x10]
push str._I64d
push eax
call fcn.004032e0
mov esi, dword [ebp - 0x10]
add esp, 0x10
cmp dword [esi - 0xc], 0
je 0x402866
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x28]
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0x103
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402866
push 0
push 0
lea ecx, [ebp + 8]
push ecx
push 0
push str.zi_date
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x402840
cmp dword [ebp + 8], 1
je 0x40285c
mov eax, dword [esi - 0xc]
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x10]
push edx
push esi
push 1
push 0
push str.zi_date
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402889
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 esp, ebp
pop ebp
ret 4

Function at 0x4028a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ecx + 0x28]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x102
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4028f6
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
push 3
push 0
push str.zi_inf
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x402990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx + 0x28]
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20119
push esi
push esi
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x4029f0
push esi
push esi
lea ecx, [ebp - 8]
push ecx
push esi
push str.zi_defbrowsename
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x4029e6
cmp dword [ebp - 8], 1
jne 0x4029e6
mov esi, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4031f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40320b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403242
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40323e
jmp 0x403230
cmp esi, eax
jae 0x403242
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403230
cmp esi, eax
jb 0x403249
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4036ce
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40369d
cmp eax, 2
jne 0x4036b8
mov eax, dword [ebp - 4]
test esi, esi
je 0x4036c8
test eax, eax
je 0x4036c3
test al, 1
jne 0x4036b8
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4036c8
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x403870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4038a2
push str.EbonmediaInstaller
push 0x104
push esi
call fcn.0042fa7e
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x4038b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4494c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x403a0c
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x403a0c
mov dword [eax], edi
lea eax, [ebp - 0x14]
push eax
push 0x400000
push 6
mov dword [esi], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x4039c7
mov ecx, dword [ebp - 0x14]
push str.PUBLICKEY
push 0x3f0
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4039c7
mov edx, dword [ebp - 0x14]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
test eax, eax
je 0x4039c7
mov eax, dword [ebp - 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4039c7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4039c7
mov dword [ebp - 4], 0
mov ecx, dword [esi]
push ecx
call fcn.0042c8b5
mov edx, dword [ebp + 8]
add esp, 4
mov dword [edx], eax
mov ecx, dword [esi]
push ecx
push ebx
push ecx
push eax
call fcn.0042f39b
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x4039ea
mov eax, 0x80040104
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test eax, eax
jle 0x403a11
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405730
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44965b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45e274]
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.0042d1b2
push 4
mov dword [ebp - 4], 0
call fcn.0042f2bf
mov edi, eax
add esp, 4
test edi, edi
je 0x4057ac
call fcn.0042cc26
mov dword [edi], eax
call fcn.0042c9e5
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042c91a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4057a2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042c942
jmp 0x4057ae
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 0x406500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x45e274]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x414]
push eax
mov edi, ecx
push 0x100
mov dword [ebp - 0x418], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x406546
call fcn.00407ae0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f25f
mov esp, ebp
pop ebp
ret
cmp eax, 0x100
jbe 0x406561
mov eax, 0x80020013
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f25f
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0x4517ac
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x406532
push ebx
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x20c]
push ecx
xor eax, eax
lea ebx, [edi + 8]
push 0x101
push ebx
mov word [ebp - 6], ax
call fcn.004300e1
add esp, 0x10
cmp eax, 0x50
ja case.0x4065b2.1
movzx edx, byte [eax + 0x406678]
jmp dword [edx*4 + 0x406668]
push 0x8007000e
call fcn.00403700
push 0x80070057
call fcn.00403700
mov esi, dword [edi + 4]
mov dword [ebp - 0x424], 0xc
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 1
mov dword [edi + 0x20c], 0x40000000
test esi, esi
je 0x406622
lea eax, [ebp - 0x424]
push eax
push 0
push 0x40000000
push ebx
mov edi, 0x2100
mov ebx, 2
call fcn.00407b00
mov edi, dword [ebp - 0x418]
jmp 0x406640
push 0
push 0x2100
push 2
lea ecx, [ebp - 0x424]
push ecx
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x406532
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0042f25f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403700
int 0x65
inc eax
add byte [ecx - 0x3cffbf9b], bh
inc eax
add byte [esi + 0x66], bl
inc eax
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3
Function at 0x406b90
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a328
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x13
push edi
mov dword [ebp - 0x10], 0
call ebx
test eax, eax
je 0x406bf1
mov eax, 0x8000ffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x406c20
test eax, eax
jle 0x406d21
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
shr ecx, 1
jns 0x406c4e
push 0x80070057
call fcn.00403700
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x406c6b
push ecx
lea ecx, [ebp - 0x14]
call fcn.004035c0
mov esi, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0
push 0x13
push edi
call ebx
mov edi, eax
mov eax, dword [ebp - 0x10]
shr eax, 1
or ebx, 0xffffffff
cmp eax, ebx
jne 0x406c94
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f9ba
add esp, 8
test eax, eax
js 0x406c44
cmp eax, dword [esi - 8]
jg 0x406c44
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test edi, edi
jne 0x406ce1
call fcn.00407ae0
mov edi, eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x406ccd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x451938
call fcn.004077d0
movzx edi, al
add esp, 4
neg edi
sbb edi, edi
lea eax, [esi - 0x10]
and edi, 0x7fffbffb
mov dword [ebp - 4], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x406d1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x7fffbffb]
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 0x406d40
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, eax
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
lea eax, [ecx - 0x10]
push esi
mov esi, dword [eax]
je 0x406da2
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x406d7e
cmp dword [ecx - 8], 0
jge 0x406d70
push 0x80070057
call fcn.00403700
mov dword [ecx - 0xc], 0
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x406da2
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [ebx], eax
lea ecx, [ebp - 4]
xor eax, eax
push ecx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x406e54
lea ecx, [ecx]
mov eax, dword [ebp - 4]
test eax, eax
je 0x406e38
inc eax
push eax
call fcn.0042c8b5
mov esi, eax
add esp, 4
test esi, esi
je 0x406e40
mov edx, dword [ebp - 4]
inc edx
push edx
push 0
push esi
call fcn.004317a0
mov ecx, dword [ebp - 4]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ecx
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x406e4b
cmp dword [ebp - 8], 0
je 0x406e15
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406e06
sub eax, edx
push esi
call fcn.00407980
push esi
call fcn.0042f33f
add esp, 4
lea edx, [ebp - 4]
push edx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x406dc0
call fcn.00407ae0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0042f33f
add esp, 4
call fcn.00407ae0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406e60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b816
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x45e274]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x264]
push ecx
push esi
mov dword [ebp - 0x274], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
jne 0x406eb9
xor eax, eax
jmp 0x407011
push esi
lea ecx, [ebp - 0x268]
call fcn.00402c30
lea esi, [ebp - 0x268]
mov dword [ebp - 4], 0
call fcn.00407890
call fcn.00407830
mov ecx, 0x451940
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406f0d
test dx, dx
je 0x406f09
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406f0d
add eax, 4
add ecx, 4
test dx, dx
jne 0x406ee7
xor eax, eax
jmp 0x406f12
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406fb3
mov ecx, 0x451944
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406f4b
test dx, dx
je 0x406f47
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406f4b
add eax, 4
add ecx, 4
test dx, dx
jne 0x406f25
xor eax, eax
jmp 0x406f50
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406fb3
test byte [ebp - 0x264], 0x10
jne 0x406fb3
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x26c]
push eax
lea ebx, [ebp - 0x238]
call fcn.004076f0
mov ecx, dword [ebp - 0x274]
mov byte [ebp - 4], 1
mov edi, dword [eax]
push ecx
mov esi, ebx
call fcn.0042bc70
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406fb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x270]
lea ecx, [ebp - 0x264]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406edc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x12
sete dl
push edi
mov esi, edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40700f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042f25f
mov esp, ebp
pop ebp
ret