joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49473c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ca1d0]
jne 0x494746
repz ret
jmp fcn.0049e0fd

Function at 0x4aa9d4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0049c9a0
and dword [ebp - 4], 0
cmp dword [0x4d4b0c], 0
mov ebx, eax
jne 0x4aaa85
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4aab36
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4aab36
push eax
call fcn.0049c92e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d4b0c], eax
call esi
push eax
call fcn.0049c92e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d4b10], eax
call esi
push eax
call fcn.0049c92e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d4b14], eax
call esi
push eax
call fcn.0049c92e
pop ecx
mov dword [0x4d4b1c], eax
test eax, eax
je 0x4aaa85
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049c92e
pop ecx
mov dword [0x4d4b18], eax
mov eax, dword [0x4d4b18]
cmp eax, ebx
je 0x4aaadd
cmp dword [0x4d4b1c], ebx
je 0x4aaadd
push eax
call fcn.0049c9a9
push dword [0x4d4b1c]
mov esi, eax
call fcn.0049c9a9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4aaadd
test edi, edi
je 0x4aaadd
call esi
test eax, eax
je 0x4aaad4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4aaad4
test byte [ebp - 0xc], 1
jne 0x4aaadd
or dword [ebp + 0x10], 0x200000
jmp 0x4aab16
mov eax, dword [0x4d4b10]
cmp eax, ebx
je 0x4aab16
push eax
call fcn.0049c9a9
pop ecx
test eax, eax
je 0x4aab16
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4aab16
mov eax, dword [0x4d4b14]
cmp eax, ebx
je 0x4aab16
push eax
call fcn.0049c9a9
pop ecx
test eax, eax
je 0x4aab16
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d4b0c]
call fcn.0049c9a9
pop ecx
test eax, eax
je 0x4aab36
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4aab38
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4017c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404004]
jne 0x4017ce
repz ret
jmp fcn.00401b99

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40882b
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x42bda8
call fcn.00408c30
push 1
call fcn.004083a5
pop ecx
test al, al
je 0x408815
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00408373
mov byte [ebp - 0x24], al
mov eax, dword [0x42e7a0]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x408815
test eax, eax
jne 0x408739
mov dword [0x42e7a0], ecx
push 0x41d178
push 0x41d158
call fcn.0040fa6e
pop ecx
pop ecx
test eax, eax
je 0x40871c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x408805
push 0x41d154
push 0x41d130
call fcn.0040fa27
pop ecx
pop ecx
mov dword [0x42e7a0], 2
jmp 0x40873e
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00408517
pop ecx
call fcn.00409184
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40876f
push esi
call fcn.00408483
pop ecx
test al, al
je 0x40876f
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x41d12c]
call esi
call fcn.0040918a
mov esi, eax
cmp dword [esi], edi
je 0x40878d
push esi
call fcn.00408483
pop ecx
test al, al
je 0x40878d
push dword [esi]
call fcn.0040eebc
pop ecx
call fcn.00408f4c
movzx eax, ax
push eax
call fcn.0040f9dd
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00408f82
test al, al
je 0x40881c
test bl, bl
jne 0x4087bb
call fcn.0040ee97
push edi
push 1
call fcn.00408534
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x408805
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.00408e32
push esi
call fcn.0040eee2
push dword [ebp - 0x20]
call fcn.0040eea6
int3
call fcn.004090d4
jmp 0x4086af
Function at 0x100305cc
Capabilities:
Terminate process

Disassembly:
jmp 0x10069c44
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x10069c55
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.100319fe
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x10030667
Capabilities:
Query environment variable

Disassembly:
jmp 0x10073772
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10073783
pop esi
ret
push ebx
push edi
push esi
call fcn.10073659
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10030b9e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100737ab
push ebx
push esi
push edi
call fcn.100318b9
add esp, 0xc
push 0
call fcn.10031f21
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x10071499
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100a3020]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x100714e4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.10071a5a
test al, al
jne 0x100714de
sub edx, 2
cmp edx, edi
jne 0x100714c4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x10071506
lea eax, [edi + 2]
cmp edx, eax
je 0x10071506
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.10071092
add esp, 0x10
jmp 0x10071600
push esi
lea ecx, [ebp - 0x255]
call fcn.10071a5a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10071549
push dword [ebp - 0x25c]
jmp 0x100714f6
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x10071586
cmp word [ebp - 0x226], 0
je 0x100715a7
cmp word [ebp - 0x226], ax
jne 0x10071586
cmp word [ebp - 0x224], 0
je 0x100715a7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.10071092
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x100715f3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x10071560
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x100715db
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10071600
push 0x10070978
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.100317ce
add esp, 0x10
jmp 0x100715d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10030298
leave
ret
Function at 0x1008689e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100a4840]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100868de
cmp byte [ebx], 0xa
jne 0x100868de
or byte [eax + edi + 0x28], 4
jmp 0x100868e3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100869e1
mov al, byte [edx]
cmp al, 0x1a
je 0x100869c3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10086912
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10086937
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10086941
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100868f4
jmp 0x100869e1
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100869be
cmp dword [ebp - 0xc], 0
je 0x100869be
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100a4840]
test byte [eax + edi + 0x28], 0x48
je 0x10086998
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10086983
mov byte [esi], dl
jmp 0x10086994
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100a4840]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100869e1
cmp byte [ebp - 1], 0xa
jne 0x100869a7
cmp esi, ebx
jne 0x100869a7
mov byte [esi], 0xa
jmp 0x100869e0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1002f54b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100869e1
mov byte [esi], 0xd
jmp 0x100869e0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100a4840]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100869dd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100869e1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10086a3d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100a4840]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10086a80
cmp word [esi], dx
jne 0x10086a80
or byte [edi + eax + 0x28], 4
jmp 0x10086a85
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10086bd8
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10086bb8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10086ac7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10086afd
cmp eax, edx
jae 0x10086b09
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10086a9f
jmp 0x10086bd8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10086bb4
cmp dword [ebp - 0x14], 0
je 0x10086bb4
mov eax, dword [ebx*4 + 0x100a4840]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10086b8c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10086b55
mov word [esi], cx
jmp 0x10086b88
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100a4840]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100a4840]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100a4840]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10086bd8
pop ebx
cmp word [ebp - 4], bx
jne 0x10086b9d
cmp esi, dword [ebp + 0xc]
jne 0x10086b9d
mov word [esi], bx
jmp 0x10086bd5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1002f54b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10086bd8
push 0xd
jmp 0x10086bd1
mov ecx, dword [ebx*4 + 0x100a4840]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10086bcf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10086bd8
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46fd42
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
push 0
mov dword [esp + 0x10], esi
call fcn.0044c34e
mov dword [esp + 0x2c], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [esp + 0x2c], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [esp + 0x2c], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [esp + 0x2c], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [esp + 0x2c], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [esp + 0x2c], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [esp + 0x2c], 6
test edi, edi
jne 0x401ba8
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x481068
push eax
lea ecx, [esp + 0x14]
call fcn.0044fec6
mov byte [esp + 0x2c], 7
mov dword [esp + 0x10], vtable.std::runtime_error.0
mov byte [esp + 0x2c], 6
lea eax, [esp + 0x10]
push 0x490a24
push eax
call fcn.0045394b
push edi
push esi
call fcn.0044c030
add esp, 8
mov dword [esp + 0x2c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044fd7f
add esp, 0x24
ret 4

Function at 0x4024c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ffc9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 0x30], 1
cmp dword [esp + 0x50], 0
je 0x402511
push 2
push 0x48107c
lea ecx, [esp + 0x48]
call fcn.004060d0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.004023e0
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x40]
push 0xffffffffffffffff
push 0
push eax
call fcn.00406020
mov byte [esp + 0x30], 1
cmp dword [esp + 0x24], 0x10
jb 0x40254a
push dword [esp + 0x10]
call fcn.0044fd7a
add esp, 4
lea eax, [esp + 0x40]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov byte [esi], 0
call fcn.00405f80
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
cmp dword [esp + 0x54], 0x10
jb 0x40259c
push dword [esp + 0x40]
call fcn.0044fd7a
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x4025d0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x470010
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x24], esp
push 0xffffffffffffffff
push 0
push dword [esp + 0x5c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00406260
mov dword [esp + 0x4c], 0
push dword [esp + 0x5c]
push dword [esp + 0x5c]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.004024c0
add esp, 0x20
mov dword [esp + 0x34], 1
cmp dword [eax + 0x14], 0x10
jb 0x402655
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [esp + 0x3c]
push eax
call fcn.0044fec6
mov byte [esp + 0x34], 2
mov dword [esi], vtable.std::runtime_error.0
mov byte [esp + 0x34], 4
cmp dword [esp + 0x24], 0x10
jb 0x402688
push dword [esp + 0x10]
call fcn.0044fd7a
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], eax
mov dword [esp + 0x34], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x30
ret 0xc

Function at 0x402d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x470269
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [ecx + 0x30]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x4035d0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub esp, 8
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [esp + 0x24], 0
xor bl, bl
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x403640
cmp dword [esi + 0x14], 8
jb 0x403620
mov eax, dword [esi]
jmp 0x403622
mov eax, esi
push eax
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x403686
cmp dword [esi + 0x14], 8
jb 0x403666
mov eax, dword [esi]
jmp 0x403668
mov eax, esi
push eax
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call edi
test eax, eax
jne 0x4036cc
cmp dword [esi + 0x14], 8
jb 0x4036ac
mov eax, dword [esi]
jmp 0x4036ae
mov eax, esi
push eax
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call edi
test eax, eax
jne 0x40370e
cmp dword [esi + 0x14], 8
jb 0x4036f0
mov esi, dword [esi]
push esi
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044fd7f
add esp, 8
ret
Function at 0x403730
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
xor eax, eax
mov edi, edx
push 0x40e
push eax
mov word [esp + 0x14], ax
mov esi, ecx
lea eax, [esp + 0x16]
push eax
call fcn.00455ee0
add esp, 0xc
mov dword [esp + 8], 0
lea eax, [esp + 8]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4037a0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4037b9
mov eax, dword [esp + 8]
test eax, eax
je 0x4037a0
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0044fd7f
add esp, 0x418
ret
cmp word [esp + 0xc], 0
jne 0x4037c5
xor ecx, ecx
jmp 0x4037df
lea ecx, [esp + 0xc]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4037d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004073e0
mov eax, dword [esp + 8]
test eax, eax
je 0x4037fb
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x41c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0044fd7f
add esp, 0x418
ret

Function at 0x403aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x47047b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push esi
push edi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, edx
push 0x48135c
movzx eax, cx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x403b95
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x403b95
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x403b82
push 0xa8
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00455ee0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x403b3e
mov eax, dword [esi]
jmp 0x403b40
mov eax, esi
sub esp, 0xc
lea ecx, [esp + 0x20]
push eax
call fcn.004052e0
mov dword [esp + 0xc8], 0
lea ecx, [esp + 0x14]
push 0
push edi
push ebx
call fcn.00405120
lea ecx, [esp + 0x14]
call fcn.00405480
mov dword [esp + 0xc8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00403bc0
mov ecx, esi
call fcn.004129c0
cmp eax, edi
jne 0x403b95
test edx, edx
jne 0x403b95
mov al, 1
jmp 0x403b97
xor al, al
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.0044fd7f
add esp, 0xbc
ret