joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4545e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x454656
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x454656
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
sub edi, esi
xor ebp, ebp
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jbe 0x454656
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x454644
mov edx, esi
cmp edi, ebx
jb 0x45464e
add edx, ebx
cmp edi, edx
jbe 0x454660
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x454636
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebp
sub edi, ebx
mov dword [edx], ebp
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret

Function at 0x454810
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x404
lea eax, [esp + 0x40c]
lea edx, [esp + 4]
push esi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov esi, eax
mov eax, dword [0x4a07cc]
test eax, eax
je 0x454846
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x4a06a0]
lea edx, [esp + 4]
push 0
push edx
lea eax, [esp + 0x10]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
pop esi
add esp, 0x404
ret

Function at 0x454cd0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x454d4b
push esi
call fcn.004244ce
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x454d4b
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push 0x496478
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x454d4b
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
shr edx, 0x10
push ecx
push edx
push ebx
push str._s_v._d._d._d._d_r_n
call fcn.00454810
add esp, 0x18
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x45a720
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x484a06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
mov cl, byte [esp + 0xb]
push edi
xor ebx, ebx
push 0x18
mov dword [esp + 0x14], esi
mov byte [esi + 4], al
mov byte [esi + 5], cl
mov byte [esi + 0xc], bl
call fcn.004244ce
mov dword [eax + 4], ebx
mov dword [eax + 0x14], 1
mov edx, dword [0x4a0b4c]
add esp, 4
cmp edx, ebx
mov ecx, eax
jne 0x45a786
mov dword [0x4a0b4c], eax
mov dword [eax], ebx
mov edx, dword [0x4a0b4c]
xor ecx, ecx
mov dword [edx + 8], ebx
mov edx, dword [0x4a0b48]
inc edx
cmp ecx, ebx
mov dword [0x4a0b48], edx
je 0x45a7a0
push ecx
call fcn.004240a0
add esp, 4
mov edi, dword [0x4a0b4c]
push 0x18
call fcn.004244ce
mov dword [eax + 4], edi
mov dword [eax + 0x14], ebx
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [eax], eax
mov eax, dword [esi + 8]
mov dword [eax + 8], eax
mov cl, byte [esp + 0x13]
mov eax, 0x64
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov al, byte [esp + 0x13]
mov dword [esi + 0x1c], ebx
push 0x18
mov dword [esp + 0x24], ebx
mov byte [esi + 0x20], al
mov byte [esi + 0x21], cl
mov byte [esi + 0x28], bl
call fcn.004244ce
mov dword [eax + 4], ebx
mov dword [eax + 0x14], 1
mov edx, dword [0x4a0b44]
add esp, 8
cmp edx, ebx
mov ecx, eax
jne 0x45a816
mov dword [0x4a0b44], eax
mov dword [eax], ebx
mov edx, dword [0x4a0b44]
xor ecx, ecx
mov dword [edx + 8], ebx
mov edx, dword [0x4a0b40]
inc edx
cmp ecx, ebx
mov dword [0x4a0b40], edx
je 0x45a830
push ecx
call fcn.004240a0
add esp, 4
mov edi, dword [0x4a0b44]
push 0x18
call fcn.004244ce
mov dword [eax + 4], edi
mov dword [eax + 0x14], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x24]
add esp, 4
mov dword [eax + 8], eax
lea ecx, [esi + 0x34]
mov byte [esp + 0x1c], 1
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov byte [esi + 0x32], bl
call fcn.0045e850
mov ecx, dword [esp + 0x14]
mov dword [esi], 0x48a470
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45ad70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
mov eax, dword [0x4a0b3c]
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 0x10], edi
je 0x45ae39
lea esi, [edi + 4]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0045c970
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x18]
cmp eax, esi
mov dword [esp + 8], eax
je 0x45adb1
cmp ecx, dword [eax + 0xc]
jl 0x45adb1
lea eax, [esp + 8]
jmp 0x45adb9
mov dword [esp + 0xc], esi
lea eax, [esp + 0xc]
mov eax, dword [eax]
mov edx, dword [edi + 8]
cmp eax, edx
jne 0x45ae39
mov edx, dword [0x496428]
push ebx
push ebp
and ecx, 0xffff
mov esi, dword [edx + 4]
push 0x48a468
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [esp + 0x24]
mov cl, bl
mov dl, bl
neg cl
sbb ecx, ecx
and ecx, 4
or ecx, 0x10000
neg dl
sbb edx, edx
push ecx
and edx, 0xfffffff7
add edx, 0xa
push edx
push ebp
push 0
push eax
push 1
call sub.BASS.dll_BASS_SampleLoad
mov ecx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.0045ae50
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x45e850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484aa1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov byte [esi + 4], al
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov cl, byte [esp + 0xf]
mov dword [esp + 0x1c], ebx
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dl, byte [esp + 0xf]
mov dword [esi + 0x28], ebx
mov byte [esi + 0x24], dl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov al, byte [esp + 0xf]
mov cl, byte [esp + 0xf]
push 0x14
mov byte [esp + 0x20], 2
mov byte [esi + 0x34], al
mov byte [esi + 0x35], cl
mov byte [esi + 0x3c], bl
call fcn.004244ce
mov dword [eax + 4], ebx
mov dword [eax + 0x10], 1
mov edx, dword [0x4a0b54]
add esp, 4
cmp edx, ebx
mov ecx, eax
jne 0x45e8ef
mov dword [0x4a0b54], eax
mov dword [eax], ebx
mov edx, dword [0x4a0b54]
xor ecx, ecx
mov dword [edx + 8], ebx
mov edx, dword [0x4a0b50]
inc edx
cmp ecx, ebx
mov dword [0x4a0b50], edx
je 0x45e909
push ecx
call fcn.004240a0
add esp, 4
mov edi, dword [0x4a0b54]
push 0x14
call fcn.004244ce
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edi
mov dword [eax + 0x10], ebx
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x38]
add esp, 4
mov dword [eax + 8], eax
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], 1
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x50], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi], 0x48a4ac
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45e980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484ad1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x48a4ac
mov eax, dword [esi + 0x38]
lea edi, [esi + 0x34]
push eax
mov dword [esp + 0x20], 2
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.0045f910
mov ecx, dword [edi + 4]
push ecx
call fcn.004240a0
xor ebx, ebx
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov eax, dword [0x4a0b50]
dec eax
mov dword [0x4a0b50], eax
jne 0x45e9fe
mov eax, dword [0x4a0b54]
mov dword [0x4a0b54], ebx
cmp eax, ebx
je 0x45e9fe
push eax
call fcn.004240a0
add esp, 4
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0x14], eax
call fcn.004240a0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x18], eax
call fcn.004240a0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x1c], eax
call fcn.004240a0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x461cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
lea edi, [ebp - 0x400]
xor ebx, ebx
mov edx, 0xedb88320
mov eax, ebx
mov ecx, 8
xor esi, esi
shr eax, 1
jae 0x461cd8
mov esi, edx
xor eax, esi
dec ecx
jne 0x461cd0
mov dword [edi], eax
add edi, 4
inc bl
jne 0x461cc9
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x400]
sub ecx, 4
jl 0x461d28
xor eax, dword [esi]
add esi, 4
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
sub ecx, 4
jge 0x461cfa
mov edx, dword [ecx*4 + 0x497d80]
and edx, dword [esi]
xor eax, edx
lea esi, [ecx + esi + 4]
jmp dword [ecx*4 + str.Application_transferred_too_many_scanlines]
Function at 0x4621f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x462220
push esi
call fcn.00465670
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x462219
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4622a3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x46228f
mov eax, dword [esi + 8]
test eax, eax
je 0x462244
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46228b
cmp eax, 2
je 0x46228f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x462237
cmp eax, 3
je 0x46226a
cmp eax, 1
jne 0x462237
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x462237
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x462237
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004622d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4622c3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004622d0
add esp, 4
pop esi
ret
Function at 0x470b78
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
lea edx, [eax + eax]
lea edi, [edx + edx]
mov ebx, dword [esp + 0x44]
test esi, esi
je 0x470d1e
test ebp, ebp
je 0x470d1e
test eax, eax
jle 0x470d0f
test ebx, ebx
jle 0x470d0f
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x470d00
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x470d00
xor ecx, ecx
test ebx, ebx
jle 0x470cf4
lea eax, [edx + edx]
lea edx, [edx + edx - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], edi
xor eax, eax
xor edx, edx
mov edi, dword [esp]
test edi, edi
jle 0x470ce3
mov edi, dword [esp + 8]
cmp edi, 0x10
jl 0x470ca9
mov dword [esp + 0x14], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], esi
mov edi, dword [esp + 0x18]
movzx edx, byte [eax + edi]
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov ecx, edi
mov byte [ebp + esi], dl
movzx ebx, byte [eax + ecx + 1]
mov edx, ecx
mov byte [ebp + esi + 1], bl
movzx edx, byte [eax + edx + 2]
mov ebx, ebp
mov byte [ebp + esi + 2], dl
mov edx, ecx
movzx edx, byte [eax + edx + 3]
mov byte [ebp + esi + 4], dl
mov edx, ecx
movzx edx, byte [eax + edx + 4]
mov byte [ebp + esi + 5], dl
mov edx, ecx
movzx edx, byte [eax + edx + 5]
mov byte [ebp + esi + 6], dl
mov edx, ecx
movzx edx, byte [eax + edx + 6]
mov byte [ebp + esi + 8], dl
mov edx, ecx
movzx edx, byte [eax + edx + 7]
mov byte [ebp + esi + 9], dl
mov edx, ecx
movzx edx, byte [eax + edx + 8]
mov ecx, esi
add eax, 9
mov byte [ebx + ecx + 0xa], dl
add ebx, 0xc
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], ebx
cmp ebx, edx
jle 0x470c15
mov edx, ebx
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x44]
mov ebp, esi
mov esi, edi
mov dword [esp + 4], ecx
mov dword [esp + 0x10], ebp
movzx ecx, byte [eax + esi]
mov ebp, dword [esp + 0x10]
mov edi, dword [esp]
mov byte [edx + ebp], cl
movzx ebx, byte [eax + esi + 1]
mov byte [edx + ebp + 1], bl
movzx ecx, byte [eax + esi + 2]
add eax, 3
mov byte [edx + ebp + 2], cl
add edx, 4
cmp edx, edi
jl 0x470cb1
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x44]
add esi, dword [esp + 0x34]
inc ecx
add ebp, dword [esp + 0x3c]
cmp ecx, ebx
jl 0x470be9
xor eax, eax
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret 0x18
mov eax, 0xfffffff2
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret 0x18
mov eax, 0xfffffffa
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret 0x18
mov eax, 0xfffffff8
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret 0x18
Function at 0x405a80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ecfb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43dfbc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041a836
push 4
mov dword [ebp - 4], 0
call fcn.0041b35b
mov edi, eax
add esp, 4
test edi, edi
je 0x405b00
call fcn.0041a06e
mov dword [edi], eax
call fcn.00419e2d
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00419d62
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405af6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00419d8a
jmp 0x405b02
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

Function at 0x4093f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ecfb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43dfbc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041a836
push 4
mov dword [ebp - 4], 0
call fcn.0041b35b
mov edi, eax
add esp, 4
test edi, edi
je 0x409470
call fcn.0041a06e
mov dword [edi], eax
call fcn.00419e2d
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00419d62
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x409466
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00419d8a
jmp 0x409472
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
Function at 0x40af50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ef38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43dfbc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40b07c
cmp byte [edi + 0x4a], bl
je 0x40b07c
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x40b070
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40afd0
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40afe8
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x40b011
dec eax
je 0x40b015
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40b06b
jmp 0x40b077
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40b025
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40b04e
cmp ebx, 0x10
jae 0x40b034
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0041cdef
add esp, 0x10
cmp esi, eax
jne 0x40b068
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x40b074
test esi, esi
jne 0x40afdc
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00402830
jmp 0x40afd6
lea ecx, [ebp - 0x2c]
call fcn.00402700
xor al, al
jmp 0x40b07e
lea ecx, [ebp - 0x2c]
call fcn.00402700
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041abec
mov esp, ebp
pop ebp
ret

Function at 0x40b520
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43dfbc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0041b3e0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push str._SYSTEMDRIVE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jbe 0x40b584
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041abec
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40b58d
lea eax, [esi + 0x10]
jmp 0x40b58f
xor eax, eax
push str.IntelCPHS.log
push str.Logs
push 0x431a48
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.00409ee0
add esp, 8
push eax
call fcn.00409ee0
add esp, 8
push eax
call fcn.00409ee0
add esp, 8
push eax
call fcn.00409ee0
add esp, 8
push 0
mov ecx, eax
call fcn.0040abc0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0041abec
mov esp, ebp
pop ebp
ret
Function at 0x40d6e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x43dfbc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.0040cc40
mov ebx, eax
cmp ebx, esi
je 0x40d75a
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x40d745
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041abec
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40d7dc
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.0040d6e0
mov ebx, eax
cmp ebx, esi
jne 0x40d734
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40d790
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x40d7f5
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.0040caf0
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x40d818
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041abec
mov esp, ebp
pop ebp
ret 4
Function at 0x40fe20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f4a6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43dfbc]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x40fe9d
call fcn.0040c920
mov edi, eax
jmp 0x40ff82
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40feb6
call fcn.0040c920
jmp 0x40ff79
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x40fed4
call fcn.0040c920
jmp 0x40ff79
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x40fef5
mov edi, 0x8007000e
jmp 0x40ff7b
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040e430
mov dword [ebp - 4], 1
jmp 0x40ff2d
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x40ff3e
mov edi, 0x8007000e
jmp 0x40ff7b
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40ff57
call fcn.0040c920
jmp 0x40ff79
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.0040f880
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x40ffa0
lea ecx, [ebp - 0x418]
call fcn.0040d450
jmp 0x40ffa0
mov eax, edi
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.0041abec
mov esp, ebp
pop ebp
ret 0x10