joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x486473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x4a02a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x4a02a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x49f10c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48647a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40686f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x4068ad
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406883
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x40687e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4068da
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4068bb
not eax
pop ebp
ret 0xc

Function at 0x5ae000
Capabilities:
Encode data using xor

Disassembly:
add dword [eax], eax
add byte [eax], al
out dx, eax
mov esi, 0x754edead
insb byte es:[edi], dx
insb byte es:[edi], dx
jae 0x5ae07d
je 0x5ae05a
outsb dx, byte [esi]
jae 0x5ae088
fild word es:[eax]
add byte [ecx + 0x72], bl
add eax, dword [eax]
pop ebp
add byte [eax], al
add byte [edx], al
add byte [ebx], dl
aaa
mov esp, 0x68008018
or al, bh
imul eax, dword [esi], 0xaf7f7f63
rcr esp, 1
pop ecx
pop es
sbb ch, byte [eax + 0x53c5db50]
pop ds
arpl word [edi - 0x3a], bp
xchg esi, eax
or bl, byte [edx + 0x43]
cli
pop ebx
test eax, 0x4b3fb9c1
mov dword [0xd942d3a6], eax
invalid
mov dword [0x8fb9f074], eax
stc
xor edi, dword [edi - 0x70]
lahf
les edi, [esi]
adc dword [edx], ebp
shl byte [edi - 0xf], 1
in eax, 0x97
aaa
add eax, 0x28e50dc2
pop edx
push edx
fld qword [ebx]
mov dl, 0x70
insd dword es:[edi], dx
rcl dword [esi + 0x32], cl
int3
xor eax, 0xef05693f
invalid
Function at 0x4bd070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x75000]
push edi
jmp 0x4bd08a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4bd091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bd080
mov eax, 1
add ebx, ebx
jne 0x4bd0a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4bd0b4
jne 0x4bd0d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bd0d3
dec eax
add ebx, ebx
jne 0x4bd0c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4bd098
add ebx, ebx
jne 0x4bd0cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4bd125
xor ecx, ecx
sub eax, 3
jb 0x4bd0eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bd15a
sar eax, 1
mov ebp, eax
jmp 0x4bd0f6
add ebx, ebx
jne 0x4bd0f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bd0c4
inc ecx
add ebx, ebx
jne 0x4bd104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bd0c4
add ebx, ebx
jne 0x4bd111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bd106
jne 0x4bd122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bd106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bd144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bd136
jmp 0x4bd086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bd144
add edi, ecx
jmp 0x4bd086
pop esi
mov edi, esi
mov ecx, 0x38a0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4bd162
cmp byte [edi], 0x11
jne 0x4bd162
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4bd167
lea edi, [esi + 0xba000]
mov eax, dword [edi]
or eax, eax
je 0x4bd1df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd0f48]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd104c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4bd194
mov ecx, edi
jns 0x4bd1c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd1050]
or eax, eax
je 0x4bd1d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4bd1b1
call dword [esi + 0xd1060]
mov ebp, dword [esi + 0xd1054]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4bd213
sub esp, 0xffffff80
jmp 0x45a04f
Function at 0x100044e0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x24
push esi
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x100044fa
xor eax, eax
pop esi
add esp, 0x24
ret
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
jne 0x10004513
pop esi
add esp, 0x24
ret
push esi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov esi, eax
test esi, esi
jne 0x10004525
pop esi
add esp, 0x24
ret
push ebx
push ebp
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x3c]
sub ebx, ebp
mov ebp, dword [esp + 0x30]
mov ecx, dword [eax + 8]
sub ebp, edx
mov edx, dword [eax]
push ebp
mov dword [esp + 0x14], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub ecx, dword [esp + 0x14]
sub eax, edx
push ebx
push esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
push 0
push edi
push eax
call fcn.10004300
mov ecx, dword [esp + 0x48]
add esp, 0xc
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
push 0xcc0020
push eax
push ecx
push edi
push ebp
push ebx
mov ebx, dword [esp + 0x2c]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x3c]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
call ebx
push edi
call ebx
mov ecx, dword [esp + 0x38]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x24
ret
Function at 0x10004e60
Capabilities:
Log keystrokes

Disassembly:
push 0xffffffffffffffff
push 0x1000be68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push 0x10011614
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x34]
mov byte [esp + 0x28], 1
cmp eax, 0x100
jne 0x10004eae
push 0x100112e8
jmp 0x10004eb3
push 0x100112e4
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x30]
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ebx, eax
push 0x10011614
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], ebx
call sub.MFC42.DLL_CString::CString_2
xor ecx, ecx
mov eax, ebx
mov cl, bh
and eax, 0xff
mov esi, ecx
xor ecx, ecx
mov cl, byte [esp + 0x42]
push eax
shr ebx, 0x18
push esi
push ecx
push ebx
lea edx, [esp + 0x30]
push str._.2x_.2x_.2x_.2x
push edx
mov byte [esp + 0x4c], 2
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov word [esp + 0xd], 0
push str.0001
mov byte [esp + 0x12], 0
mov dl, byte [esp + ecx + 0x23]
lea eax, [esp + ecx + 0x24]
mov byte [esp + 0x11], dl
lea edx, [esp + 0x18]
mov cl, byte [eax - 2]
lea eax, [esp + 0x10]
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str._s_s_s
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
add esp, 0x14
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0x100112bc
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
mov esi, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x100051a0
Capabilities:
Capture screenshot

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [esp + 0x18]
push 0
mov edi, eax
call ebx
push 1
mov dword [esi + 0x30], eax
call ebx
push edi
mov dword [esi + 0x34], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0x30]
mov ebx, eax
mov eax, dword [esi + 0x34]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
push edx
push 0
push 0
push edi
push eax
push ecx
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
lea edx, [esp + 0x10]
push esi
push edx
call fcn.10005110
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [sym.imp.GDI32.dll_DeleteDC]
test edi, edi
je 0x10005238
push edi
call ebp
test ebx, ebx
je 0x1000523f
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10009d10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1000bfa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x48]
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
mov word [esp + 0x24], si
call ebx
cmp eax, esi
jge 0x10009d55
mov word [esp + 0x1c], 0xa
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x4c], esi
mov word [esp + 0x34], si
call ebx
cmp eax, esi
jge 0x10009d79
mov word [esp + 0x2c], 0xa
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x1c]
mov eax, dword [edi]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x58]
push esi
push esi
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x5c]
push 1
push 0x400
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], esi
mov edx, dword [eax]
push 0x1000d7c0
push ecx
push eax
mov byte [esp + 0x68], 1
call dword [edx + 0x18]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x2c]
push edx
mov esi, eax
call edi
lea eax, [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x1000af00
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1000c043
push eax
mov eax, 0x1004
mov dword fs:[0], esp
call fcn.1000ad30
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x101c]
lea ecx, [esp + 8]
stosw word es:[edi], ax
push esi
mov dword [esp + 0x1018], 0
stosb byte es:[edi], al
call fcn.1000aa98
push 0x22
lea ecx, [esp + 0xc]
mov byte [esp + 0x1018], 1
call sub.MFC42.DLL_CString::operator_3
push esi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
push 0x22
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
push 0x10011544
push 0x10011540
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x1020]
mov edx, dword [esp + 8]
push eax
lea ecx, [esp + 0x10]
push 0x1000
push ecx
push 0x10011614
push edx
push str.language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xc]
test al, al
jne 0x1000afe2
mov eax, dword [esp + 0x1024]
test eax, eax
je 0x1000b001
mov eax, dword [esp + 0x1020]
push eax
mov eax, dword [esp + 0xc]
push eax
push eax
push str.language
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x1000b001
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
push 0x10011540
push 0x10011544
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 8]
mov byte [esp + 0x1014], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1020]
mov dword [esp + 0x1014], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x100c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1010
ret
Function at 0x1000b5e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x114
push edi
call fcn.1000ab51
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
push 1
call sub.MFC42.DLL_COleObjectFactory::UpdateRegistryAll
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x1000d710
call dword [sym.imp.ole32.dll_StringFromCLSID]
push 0x100
lea edx, [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcstombs]
mov eax, dword [esp + 0x14]
add esp, 0xc
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.CLSID_
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 8]
call fcn.1000aa62
push str.InProcServer32
lea ecx, [esp + 8]
call fcn.1000aa62
lea edx, [esp + 0xc]
mov eax, dword [esp + 4]
push edx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push str.Apartment
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 8]
lea ecx, [esp + 4]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 1
mov edx, dword [esp + 0x18]
push 0
push str.ThreadingModel
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
pop edi
mov dword [ecx + 4], edx
add esp, 0x114
ret
Function at 0x141190
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1411d0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1411c7
push 0
lea edx, [ebp - 4]
push edx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x141220
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x150008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
push 0
push esi
call fcn.001476b0
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.001476b0
add esp, 0x18
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x152c8c], eax
test eax, eax
je 0x141294
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x152c8c]
cmp byte [ebp - 0x214], 0
push edi
push 0x105
je 0x1412b7
lea edx, [ebp - 0x210]
push edx
mov edi, 0xca
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x1412c9
lea eax, [ebp - 0x210]
push eax
mov edi, 0xc9
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.DumpIt.sys
lea ecx, [ebp - 0x210]
push ecx
push str._sDrivers_s
push 0x105
push esi
call fcn.00141dc5
movzx edi, di
push esi
mov eax, edi
call fcn.00141190
add esp, 0x18
test al, al
jne 0x1413b0
push 0x20a
lea edx, [ebp - 0x210]
push 0
push edx
call fcn.001476b0
push str.DumpIt.sys
push str._TEMP__s
lea eax, [ebp - 0x210]
push 0x20a
push eax
call fcn.00141dc5
add esp, 0x1c
push 0x105
push esi
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
mov eax, edi
call fcn.00141190
add esp, 4
test al, al
jne 0x1413b0
push 0x20a
lea edx, [ebp - 0x210]
push 0
push edx
call fcn.001476b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.DumpIt.sys
lea ecx, [ebp - 0x210]
push ecx
push str._s_s
push 0x105
push esi
call fcn.00141dc5
push esi
mov eax, edi
call fcn.00141190
add esp, 0x18
test al, al
jne 0x1413b0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00141db6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.00141db6
mov esp, ebp
pop ebp
ret
Function at 0x141720
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x150008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.DumpIt
push str.RegistryMachineSystemCurrentControlSetServices_s
lea eax, [ebp - 0x218]
push 0x20a
xor esi, esi
push eax
mov dword [ebp - 0x21c], esi
call fcn.00141dc5
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x224]
push edx
call dword [0x151b48]
lea eax, [ebp - 0x224]
push eax
call dword [0x151b4c]
test eax, eax
jne 0x1417b9
lea ecx, [ebp - 0x21c]
push ecx
push 0xf003f
push eax
push str.SYSTEMCurrentControlSetServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1417b9
mov edx, dword [ebp - 0x21c]
push str.DumpIt
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x1417b9
lea esi, [eax + 1]
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x1417ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00141db6
mov esp, ebp
pop ebp
ret

Function at 0x141870
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x150008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x664]
push ecx
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x664], 0x20
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x20a
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.001476b0
movzx ecx, word [ebp - 0x654]
movzx edx, word [ebp - 0x656]
movzx eax, word [ebp - 0x658]
add esp, 0xc
push ecx
movzx ecx, word [ebp - 0x65a]
push edx
movzx edx, word [ebp - 0x65e]
push eax
movzx eax, word [ebp - 0x660]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push ecx
push str._s__04d_02d_02d__02d_02d_02d.raw
lea edx, [ebp - 0x238]
push 0x20a
push edx
call fcn.00141dc5
push 0x20a
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.001476b0
add esp, 0x34
lea ecx, [ebp - 0x670]
push ecx
lea edx, [ebp - 0x448]
push edx
push 0x105
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [ebp - 0x650]
push ecx
lea edx, [ebp - 0x66c]
push edx
call dword [0x151b48]
push 0
push 0
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x448]
push ecx
call dword [0x151b44]
mov bl, al
test bl, bl
je 0x1419a1
movzx eax, word [ebp - 0x66c]
lea esi, [eax + 2]
shr esi, 1
cmp esi, 0x20a
ja 0x1419a1
mov edx, dword [ebp - 0x668]
push eax
push edx
push edi
call fcn.0014ab20
add esp, 0xc
xor eax, eax
mov word [edi + esi*2 - 2], ax
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00141db6
mov esp, ebp
pop ebp
ret