joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401800
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a662
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45d274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push str.default
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call fcn.00402c30
mov dword [ebp - 4], ebx
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 1
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
mov byte [ebp - 4], 3
mov dword [esi + 0x24], ebx
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 4
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
add eax, 0x10
lea ecx, [esi + 0x2c]
mov dword [ecx], eax
cmp dword [ebp + 0xc], 0x3c
mov byte [ebp - 4], 5
mov dword [esi + 0x30], 0x460620
jne 0x401918
push 0xb
push str.EbonBrowser
call fcn.00403370
push 0x17
push str.SoftwareEbonmediaEbon
lea ecx, [esi + 0x28]
call fcn.00403370
push 0x12
call fcn.0042ef2f
add esp, 4
cmp eax, ebx
je 0x401911
or ecx, 0xffffffff
mov dword [eax], 0x12
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov word [eax + 0xc], bx
mov dword [eax + 0xe], ecx
jmp 0x401913
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0x1c], ebx
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 8
Function at 0x402770
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b1d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x45d274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0042efba
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x45d020
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 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 0x403860
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 0x403892
push str.EbonmediaInstaller
push 0x104
push esi
call fcn.0042f74a
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x4038a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449130
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45d274]
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 0x4039fc
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x4039fc
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 0x4039b7
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 0x4039b7
mov edx, dword [ebp - 0x14]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
test eax, eax
je 0x4039b7
mov eax, dword [ebp - 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4039b7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4039b7
mov dword [ebp - 4], 0
mov ecx, dword [esi]
push ecx
call fcn.0042c525
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.0042f00b
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 0x4039da
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 0x403a01
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 0x4056c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4492ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45d274]
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.0042ce22
push 4
mov dword [ebp - 4], 0
call fcn.0042ef2f
mov edi, eax
add esp, 4
test edi, edi
je 0x40573c
call fcn.0042c896
mov dword [edi], eax
call fcn.0042c655
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042c58a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405732
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042c5b2
jmp 0x40573e
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 0x406480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x45d274]
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 0x4064c6
call fcn.00407a40
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eecf
mov esp, ebp
pop ebp
ret
cmp eax, 0x100
jbe 0x4064e1
mov eax, 0x80020013
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eecf
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 0x4064b2
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.0042fdb1
add esp, 0x10
cmp eax, 0x50
ja case.0x406532.1
movzx edx, byte [eax + 0x4065f8]
jmp dword [edx*4 + 0x4065e8]
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 0x4065a2
lea eax, [ebp - 0x424]
push eax
push 0
push 0x40000000
push ebx
mov edi, 0x2100
mov ebx, 2
call fcn.00407a60
mov edi, dword [ebp - 0x418]
jmp 0x4065c0
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 0x4064b2
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0042eecf
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403700
dec ebp
inc eax
add byte [ecx], bh
inc eax
add byte [ebx + 0x65], al
inc eax
add dh, 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 0x406af0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449ff8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45d274]
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 0x406b51
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 0x406b80
test eax, eax
jle 0x406c81
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 [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
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 0x406bae
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 0x406bcb
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 0x406bf4
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f686
add esp, 8
test eax, eax
js 0x406ba4
cmp eax, dword [esi - 8]
jg 0x406ba4
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test edi, edi
jne 0x406c41
call fcn.00407a40
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 0x406c2d
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.00407730
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 0x406c7b
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 0x406ca0
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 0x406d02
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x406cde
cmp dword [ecx - 8], 0
jge 0x406cd0
push 0x80070057
call fcn.00403700
mov dword [ecx - 0xc], 0
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x406d02
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406cf4
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 0x406db4
lea ecx, [ecx]
mov eax, dword [ebp - 4]
test eax, eax
je 0x406d98
inc eax
push eax
call fcn.0042c525
mov esi, eax
add esp, 4
test esi, esi
je 0x406da0
mov edx, dword [ebp - 4]
inc edx
push edx
push 0
push esi
call fcn.00431420
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 0x406dab
cmp dword [ebp - 8], 0
je 0x406d75
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406d66
sub eax, edx
push esi
call fcn.004078e0
push esi
call fcn.0042efaf
add esp, 4
lea edx, [ebp - 4]
push edx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x406d20
call fcn.00407a40
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.0042efaf
add esp, 4
call fcn.00407a40
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406dc0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b496
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x45d274]
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 0x406e19
xor eax, eax
jmp 0x406f71
push esi
lea ecx, [ebp - 0x268]
call fcn.00402c30
lea esi, [ebp - 0x268]
mov dword [ebp - 4], 0
call fcn.004077f0
call fcn.00407790
mov ecx, 0x451940
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406e6d
test dx, dx
je 0x406e69
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406e6d
add eax, 4
add ecx, 4
test dx, dx
jne 0x406e47
xor eax, eax
jmp 0x406e72
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406f13
mov ecx, 0x451944
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406eab
test dx, dx
je 0x406ea7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406eab
add eax, 4
add ecx, 4
test dx, dx
jne 0x406e85
xor eax, eax
jmp 0x406eb0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406f13
test byte [ebp - 0x264], 0x10
jne 0x406f13
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x26c]
push eax
lea ebx, [ebp - 0x238]
call fcn.00407650
mov ecx, dword [ebp - 0x274]
mov byte [ebp - 4], 1
mov edi, dword [eax]
push ecx
mov esi, ebx
call fcn.0042b8e0
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 0x406f13
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 0x406e3c
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 0x406f6f
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.0042eecf
mov esp, ebp
pop ebp
ret
Function at 0x407ae0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45d274]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407b20
sub eax, edx
push ebx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, 0x4605dc
call fcn.00403370
push 0xd
push str.ScreenShots.
mov ebx, 0x4605dc
call fcn.00402e80
push 4
push 0x452f90
call fcn.00402e80
mov eax, dword [0x4605dc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 8]
mov dword [0x460358], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042eecf
mov esp, ebp
pop ebp
ret

Function at 0x407b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44aff8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x45d274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4605e0
mov dword [ebp - 0x14], 0x4605e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x460614], eax
jne 0x407c20
push eax
push eax
push eax
push 0x407ec0
push eax
push eax
mov dword [0x460610], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x460600]
push ecx
push eax
push str.StatReporter_thread_started__hThread__0x_x__stats_count_in_the_list:__i
push 1
push 3
push 0x1f
push str.CStatReporter::Start
push str.StatReporter.cpp
lea ecx, [ebp - 0x20]
mov dword [0x460614], eax
call fcn.0042d360
push eax
call fcn.0042d580
add esp, 0x18
push 0x4605e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x407c40
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x460614], 0
je 0x407cf7
mov eax, dword [0x460618]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x460614]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407caa
push esi
push eax
push str.StatReporter_thread_will_be_terminated__dw__0x_x__timeout:__u
push 3
push 3
push 0x30
push str.CStatReporter::Stop
push str.StatReporter.cpp
lea ecx, [ebp - 0xc]
call fcn.0042d360
push eax
call fcn.0042d580
mov edx, dword [0x460614]
add esp, 0x18
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x407cdd
mov eax, dword [0x460600]
mov ecx, dword [0x460614]
push eax
push ecx
push str.StatReporter_thread_stopped__hThread__0x_x__stats_left:__i
push 1
push 3
push 0x34
push str.CStatReporter::Stop
push str.StatReporter.cpp
lea ecx, [ebp - 0xc]
call fcn.0042d360
push eax
call fcn.0042d580
add esp, 0x18
mov eax, dword [0x460614]
test eax, eax
je 0x407cf7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x460614], 0
mov esp, ebp
pop ebp
ret
Function at 0x40cee0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x45d274]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x5c
lea eax, [ebp - 0x60]
push 0
push eax
mov dword [esi + 4], edi
call fcn.00431420
add esp, 0xc
mov byte [ebp - 0x49], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov eax, 0x4523f8
ja 0x40cf1b
mov eax, str.Tahoma
push eax
lea ecx, [ebp - 0x44]
push 0x20
push ecx
call fcn.0043015b
mov eax, dword [esi + 4]
add esp, 0xc
push 0
push esi
push 0x40cf90
lea edx, [ebp - 0x60]
push edx
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExW]
push 0x40d000
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
push str._This
push edi
mov dword [0x460320], eax
call dword [sym.imp.USER32.dll_SetPropW]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push 6
push ecx
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eecf
mov esp, ebp
pop ebp
ret