joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4116e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
mov esi, ecx
push 0x411730
push 0
push 0
call fcn.004eaf86
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x411710
xor eax, eax
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x412540
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x574be0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
mov eax, dword [esi]
push edi
cmp eax, 0x3f
jne 0x4125da
cmp dword [esi + 4], edx
jbe 0x41257e
lea ecx, [ecx]
mov al, byte [esi + edx + 8]
mov byte [esi + edx + 0x24], al
inc edx
cmp edx, dword [esi + 4]
jb 0x412570
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
jbe 0x4125a0
cmp edx, 0x20
jae 0x4126e5
mov eax, dword [esi + 0x20]
inc ecx
mov al, byte [ecx + eax - 1]
mov byte [esi + edx + 0x24], al
inc edx
cmp ecx, dword [esi + 0x1c]
jb 0x412585
cmp edx, 0x20
jae 0x4126e5
mov ecx, 0x20
sub ecx, edx
lea edi, [esi + 0x24]
add edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004e9eea
mov esp, ebp
pop ebp
ret
xor ecx, ecx
bts ecx, eax
cmp eax, 0x20
xorps xmm0, xmm0
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
movlpd qword [esp + 0x18], xmm0
test edx, edx
jb 0x4126d9
ja 0x412664
test ecx, ecx
je 0x4126d9
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
lea eax, [esi + 8]
nop
push dword [esi + 4]
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.0041f860
mov edx, dword [esi + 0x20]
add esp, 4
push dword [esi + 0x1c]
lea ecx, [esp + 0x24]
call fcn.0041f860
add esp, 4
lea edx, [esp + 0x8c]
push 8
lea ecx, [esp + 0x24]
call fcn.0041f860
add esp, 4
xor eax, eax
lea ebx, [ebx]
inc byte [esp + eax + 0x8c]
jne 0x4126bf
inc eax
cmp eax, 8
jl 0x4126b0
add edi, 1
adc ebx, 0
lea eax, [esi + 8]
cmp ebx, dword [esp + 0x14]
jb 0x412670
ja 0x4126d9
lea eax, [esi + 8]
cmp edi, dword [esp + 0x10]
jb 0x412670
lea edx, [esi + 0x24]
lea ecx, [esp + 0x20]
call fcn.0041f900
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e9eea
mov esp, ebp
pop ebp
ret
Function at 0x4144e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bf90
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x574be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [ebp + 0xc], 3
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
ja 0x4146a6
mov edx, dword [esi + 0xa0]
test edx, edx
je 0x414565
mov ecx, dword [esi + 0x9c]
mov eax, dword [ecx + 0x18]
not eax
add dword [esi + 0xf0], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ecx
mov byte [esi + 0x90], 1
test edx, edx
je 0x414565
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov dword [esi + 0xa0], 0
cmp dword [esi + 0x98], 0
je 0x414611
cmp byte [esi + 0x5c], 0
je 0x414583
cmp byte [esi + 0x7e], 0
je 0x414583
lea ecx, [esi + 0x70]
jmp 0x414593
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x2c], 0
je 0x414591
lea ecx, [eax + 0x24]
jmp 0x414593
xor ecx, ecx
cmp byte [esi + 0x5b], 0
je 0x4145a4
cmp byte [esi + 0x7d], 0
je 0x4145a4
lea edi, [esi + 0x68]
jmp 0x4145a6
xor edi, edi
cmp byte [esi + 0x5a], 0
je 0x4145b7
cmp byte [esi + 0x7c], 0
je 0x4145b7
lea edx, [esi + 0x60]
jmp 0x4145b9
xor edx, edx
mov eax, dword [esi + 0x94]
push ecx
push edi
push edx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [esi + 0x94]
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x88], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x8c], eax
mov byte [esi + 0x90], 1
call fcn.0040ffc0
test eax, eax
jne 0x4146c5
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x414611
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x98], 0
cmp byte [esi + 0x90], 0
jne 0x41462a
mov ecx, esi
call fcn.00413980
cmp byte [esi + 0x90], 0
je 0x414642
mov eax, dword [esi + 0x88]
add dword [esi + 0xe8], eax
mov eax, dword [esi + 0x8c]
adc dword [esi + 0xec], eax
cmp byte [esi + 0x80], 0
je 0x41465b
add dword [esi + 0xd8], 1
adc dword [esi + 0xdc], 0
jmp 0x414669
add dword [esi + 0xe0], 1
adc dword [esi + 0xe4], 0
cmp byte [esi + 0x59], 0
je 0x414681
cmp byte [esi + 0x7f], 0
je 0x414681
push dword [esi + 0x78]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
movzx eax, byte [esi + 0x5d]
mov ecx, dword [esi + 0x18]
push eax
push dword [ebp + 0xc]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x20]
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 ecx, dword [esi + 0x98]
test ecx, ecx
je 0x4146c0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x98], 0
mov eax, 0x80004005
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 0x41b040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50cc58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x574be0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
mov dword [esp + 0xc], vtable.CObjectVector_class_CStringBase_wchar_t__.0
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.0041ad80
lea eax, [esp + 0xc]
push eax
push 1
mov ecx, esi
mov word [esp + 0x28], 0x100
mov byte [esp + 0x2a], 1
call fcn.0041af50
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00402350
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x41bce0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41bcf4
xor al, al
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
ret

Function at 0x41c690
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
lea esi, [edi + 0x1c]
shr edi, 2
mov eax, edi
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
xor ecx, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
test edi, edi
je 0x41c6cd
lea esp, [esp]
mov eax, dword [edx]
mov dword [ebx + ecx*4], eax
inc ecx
lea edx, [edx + 4]
cmp ecx, edi
jb 0x41c6c0
cmp ecx, esi
jae 0x41c7b4
mov eax, ecx
sub eax, edi
lea esi, [ebx + eax*4]
mov dword [ebp + 8], esi
nop
xor edx, edx
mov eax, ecx
div edi
mov ebx, dword [ebx + ecx*4 - 4]
mov dword [ebp - 4], eax
test edx, edx
jne 0x41c748
movzx edx, bl
movzx esi, byte [edx + str.cw]
mov edx, ebx
shr edx, 0x18
shl esi, 8
movzx eax, byte [edx + str.cw]
or esi, eax
mov eax, ebx
shr eax, 0x10
and eax, 0xff
shl esi, 8
movzx eax, byte [eax + str.cw]
or esi, eax
mov eax, dword [ebp - 4]
shr ebx, 8
movzx eax, byte [eax + 0x5768ec]
and ebx, 0xff
shl esi, 8
movzx ebx, byte [ebx + str.cw]
xor ebx, eax
or ebx, esi
mov esi, dword [ebp + 8]
jmp 0x41c799
cmp edi, 6
jbe 0x41c799
cmp edx, 4
jne 0x41c799
mov eax, ebx
shr eax, 0x10
and eax, 0xff
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
and eax, 0xff
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [esi]
xor eax, ebx
mov ebx, dword [ebp - 8]
inc ecx
mov dword [ebx + ecx*4 - 4], eax
add esi, 4
mov dword [ebp + 8], esi
cmp ecx, dword [ebp - 0xc]
jb 0x41c6e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41d660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
push edi
mov esi, dword [esi]
mov eax, ecx
xor edi, edi
and esi, 7
mov dword [ebp - 4], eax
cmp edx, 5
jae 0x41d684
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 8], 5
push ebx
lea ecx, [edx - 4]
or ebx, 0xffffffff
add ecx, eax
mov dword [ebp - 8], ecx
lea edx, [edi + eax]
mov dword [ebp - 0xc], edx
cmp edx, ecx
jae 0x41d6b3
mov edi, edi
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x41d6ad
inc edx
cmp edx, ecx
jb 0x41d6a0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov edi, edx
sub edi, eax
cmp edx, ecx
mov ecx, edi
jae 0x41d7c3
sub ecx, ebx
cmp ecx, 3
jbe 0x41d6eb
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x14], ebx
test al, al
je 0x41d728
cmp al, 0xff
je 0x41d728
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
and esi, 3
add esi, esi
or esi, 1
inc edi
jmp 0x41d694
dec ecx
shl esi, cl
and esi, 7
je 0x41d6ca
movzx eax, byte [esi + 0x54c768]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x54c760], 0
mov al, byte [ecx + 4]
je 0x41d712
test al, al
je 0x41d712
cmp al, 0xff
jne 0x41d6ca
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
and esi, 3
add esi, esi
mov ebx, edi
or esi, 1
inc edi
jmp 0x41d694
movzx ecx, byte [edx + 3]
movzx eax, al
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 1]
mov edx, dword [ebp + 8]
shl eax, 8
or eax, ecx
lea esp, [esp]
sub eax, edi
sub eax, edx
mov ebx, eax
test esi, esi
je 0x41d78e
movzx eax, byte [esi + 0x54c768]
shl eax, 3
mov ecx, 0x18
sub ecx, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x41d77a
cmp al, 0xff
jne 0x41d78e
mov ecx, 0x20
sub ecx, dword [ebp - 0x10]
mov eax, 1
shl eax, cl
dec eax
xor eax, ebx
jmp 0x41d750
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
shr eax, 8
mov byte [edx + 2], al
mov eax, dword [ebp - 4]
mov byte [edx + 1], bl
mov ebx, dword [ebp - 0x14]
add edi, 5
jmp 0x41d694
sub ecx, ebx
pop ebx
cmp ecx, 3
jbe 0x41d7da
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
dec ecx
shl esi, cl
and esi, 7
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41fc60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41fc79
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 0x41fcb4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x41fcb0
lea ebx, [ebx]
cmp esi, edx
jae 0x41fcb4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x41fca0
cmp esi, edx
jb 0x41fcbb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x420020
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.0041ffa0
mov dword [ebp - 8], eax
test ebx, ebx
je 0x420123
mov edi, dword [ebp + 8]
test edi, edi
je 0x420123
cmp eax, dword [ebp + 0xc]
ja 0x420123
xor eax, eax
test esi, esi
je 0x4200e4
cmp eax, esi
jae 0x420068
movzx edx, byte [eax + ebx]
inc eax
jmp 0x42006a
xor edx, edx
cmp eax, esi
jae 0x420078
movzx ecx, byte [eax + ebx]
mov dword [ebp - 4], ecx
inc eax
jmp 0x42007f
mov dword [ebp - 4], 0
cmp eax, esi
jae 0x42008a
movzx ecx, byte [eax + ebx]
inc eax
jmp 0x42008c
xor ecx, ecx
shl edx, 8
add edx, dword [ebp - 4]
add edi, 4
shl edx, 8
add edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 4], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 3], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 1], cl
cmp eax, esi
jb 0x420061
mov edi, dword [ebp + 8]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
xor ecx, ecx
lea eax, [edx + edx*2]
mov edx, dword [ebp - 8]
sub esi, eax
cmp dword [esi*4 + 0x54d4ec], ecx
jle 0x420115
lea eax, [edx - 1]
add eax, edi
mov byte [eax], 0x3d
inc ecx
lea eax, [eax - 1]
cmp ecx, dword [esi*4 + 0x54d4ec]
jl 0x420105
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4275a0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d662
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x574be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x54d90c
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
push esi
add ecx, edi
call fcn.00428160
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00428830
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x57e528]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
push ecx
push 1
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00428250
test eax, eax
jne 0x4276fa
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4276f2
or eax, 4
push 0
push eax
call fcn.00424ee0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x428480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50db88
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x574be0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x574be0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4285d4
cmp byte [ebx + 0x45], 0
je 0x4285d4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4284e0
xor al, al
jmp 0x4285d6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x428520
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x428561
dec eax
je 0x428565
sub eax, 2
je 0x4285bb
xor bl, bl
jmp 0x4285bd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x42859c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.004ecbed
add esp, 0x10
cmp esi, eax
jne 0x42855d
cmp byte [ebx + 0x45], 0
je 0x4285bb
test esi, esi
jne 0x428520
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004280b0
jmp 0x428520
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4285d0
push dword [esp + 0x18]
call fcn.004ea2dd
add esp, 4
mov al, bl
jmp 0x4285d6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e9eea
mov esp, ebp
pop ebp
ret
Function at 0x428ff0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dcc7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x574be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x54dea0
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00428160
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00428830
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x57e528]
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x42b060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42b0d1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x42b09f
cmp eax, 2
jne 0x42b0bb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x42b0cb
test ecx, ecx
je 0x42b0c6
test cl, 1
jne 0x42b0bb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x42b0cb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x42b0e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50df08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x574be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
push 0
mov dword [ebp - 4], 0
push 0
mov byte [ebp - 4], 1
push dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42b1b4
inc eax
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004eaae6
add esp, 4
mov esi, eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42b1a7
test esi, esi
jne 0x42b17c
xor ecx, ecx
push ecx
mov ecx, dword [ebp - 0x1c]
push esi
call fcn.00420c80
jmp 0x42b1a5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b181
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x1c]
push esi
call fcn.00420c80
jmp 0x42b1a5
mov bl, 1
test esi, esi
je 0x42b1b4
push esi
call fcn.004eaae1
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42b1d8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret