joyce8/EMBER2024-capa huggingface dataset:
Function at 0x513ed9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x572e60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00508c9b
and dword [ebp - 0x14], 0
cmp dword [0x57a7c8], 0
mov dword [ebp - 0x18], eax
jne 0x513f8c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x514034
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x550eb8
push ebx
call edi
test eax, eax
je 0x514034
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x550ea8
push ebx
mov dword [0x57a7c8], eax
call edi
push eax
call esi
push 0x550e94
push ebx
mov dword [0x57a7cc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x57a7d0], eax
call edi
push eax
call esi
mov dword [0x57a7d8], eax
test eax, eax
je 0x513f8c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x57a7d4], eax
mov eax, dword [0x57a7d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x513fe5
cmp dword [0x57a7d8], ecx
je 0x513fe5
push eax
call esi
push dword [0x57a7d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x513fe5
test ebx, ebx
je 0x513fe5
call edi
test eax, eax
je 0x513fdc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x513fdc
test byte [ebp - 8], 1
jne 0x513fe5
or dword [ebp + 0x10], 0x200000
jmp 0x514018
mov eax, dword [0x57a7cc]
cmp eax, dword [ebp - 0x18]
je 0x514018
push eax
call esi
test eax, eax
je 0x514018
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x514018
mov eax, dword [0x57a7d0]
cmp eax, dword [ebp - 0x18]
je 0x514018
push eax
call esi
test eax, eax
je 0x514018
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x57a7c8]
call esi
test eax, eax
je 0x514034
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x514036
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005021f9
leave
ret
Function at 0x417f50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417f7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417f7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x100072dd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015998
push 0x10015990
push str.FlsAlloc
push 0x1e
call fcn.100075c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007311
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10007317
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000735b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100159a8
push 0x100159a0
push str.FlsGetValue
push 0x20
call fcn.100075c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007392
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1000b78b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000b828
push ebx
push esi
call fcn.1000b82b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000b6d4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b7d5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b827
push edi
push eax
call fcn.100092dc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b7f5
call fcn.10008895
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b826
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b6d4
add esp, 0x20
test eax, eax
jne 0x1000b814
push edi
call fcn.10008895
jmp 0x1000b81c
push ebx
call fcn.10008895
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x49bd4364
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x51147e87
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x589e33
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.00589ddc
test eax, eax
je 0x589f8c
lea ecx, [esp + 0x18]
call fcn.00589ddc
lea ecx, [esp + 0x18]
test eax, eax
je 0x589efb
call fcn.00589ddc
test eax, eax
je 0x589ebd
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.00589ddc
lea edi, [eax + edi*2]
dec ebx
jne 0x589e93
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x589eb4
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x589eb7
mov byte [edx], 0
inc edx
jmp 0x589f9e
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x589ef3
test ecx, ecx
je 0x589f87
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x589ee5
jmp 0x589f83
xor ebp, ebp
inc ebp
jmp 0x589f87
call fcn.00589e12
test edi, edi
jne 0x589f30
cmp eax, 2
jne 0x589f2b
lea ecx, [esp + 0x18]
call fcn.00589e12
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x589f87
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x589f20
jmp 0x589f83
sub eax, 3
jmp 0x589f33
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.00589e12
mov ecx, eax
cmp esi, 0x7d00
jb 0x589f5a
inc ecx
cmp esi, 0x500
jb 0x589f63
inc ecx
cmp esi, 0x80
jae 0x589f6e
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x589f87
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x589f7a
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x589fa4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x589e63
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x58a129
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x58a15b
mov al, byte [esp + 0x14]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [esp + 0x10]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x58a13c
jmp 0x58a15f
mov eax, dword [esp + 0x10]
test edi, edi
je 0x58a169
xor byte [esi], al
inc esi
dec edi
jne 0x58a163
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x11054bc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x11054c6
pushal
call 0x11054cc
pop ebp
sub ebp, 0x10
sub ebp, 0xd054bc
jmp 0x11054e2
mov eax, 0xd054bc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bc
mov edx, 0xbb233d3a
xor byte [eax], dl
inc eax
dec ecx
jne 0x11054f9
jmp 0x110550c
mov cl, 0xf7
mov cl, 0xb3
push es
cmp bh, byte [edx]
cmp bh, byte [ebx + 0x3a3ac2fb]
cmp bh, byte [ecx]
test dword [edx + 0x3a3a3a3e], 0x3a3a1280
cmp cl, ch
fdivr dword [ecx]
mov cl, 0xbb
cmp bh, byte ss:[edx]
cmp bh, byte [ecx]
push dword [edi - 0x4c39e1a2]
push ds
mov bh, 0x5e
push ds
invalid
Function at 0x402cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b14a8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4d84d0]
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 dword [ebp - 4], 0
push str.channel.dat
lea ecx, [ebp + 8]
call fcn.00402c70
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp + 8]
call fcn.00403a30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x402d82
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [str.Z001]
mov dword [ebp - 0x20], eax
mov cl, byte [0x4b6990]
mov byte [ebp - 0x1c], cl
push 0
lea eax, [ebp - 0x18]
push eax
push 4
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402c50
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.004909b2
mov esp, ebp
pop ebp
ret

Function at 0x404d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1578
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x4d84d0]
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 dword [ebp - 0x878], 0
push 0x4b6a90
lea ecx, [ebp - 0x30]
call fcn.00404750
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0x101
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x404e65
xor eax, eax
mov word [ebp - 0x830], ax
push 0x7fe
push 0
lea eax, [ebp - 0x82e]
push eax
call fcn.00490e10
add esp, 0xc
mov dword [ebp - 0x834], 0x800
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x830]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x404e3e
lea ecx, [ebp - 0x30]
call fcn.00406f60
jmp 0x404e5b
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404a50
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x4dab28
call fcn.004049d0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404650
mov ecx, dword [ebp - 0x878]
or ecx, 1
mov dword [ebp - 0x878], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402c50
mov eax, dword [ebp + 8]
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.004909b2
mov esp, ebp
pop ebp
ret
Function at 0x4066f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b18c8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4d84d0]
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
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push str.AmdSupport.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x406750
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406825
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
call fcn.00430a77
add esp, 4
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x1c], ecx
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
mov byte [eax], 0
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402c00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00407860
mov dword [ebp - 0x3c], eax
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, 0x4dab40
call fcn.00407b90
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, 0x4dab40
call fcn.00403a30
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00406f40
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x406805
mov ecx, 0x4dab40
call fcn.00406f60
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004048f0
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.004909b2
mov esp, ebp
pop ebp
ret
Function at 0x408190
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1f78
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4d84d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00408130
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00408130
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
mov dword [eax + 0x3c], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408230
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x588
mov eax, dword [0x4d84d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x588], 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov byte [ebp - 0x544], 0
push 0x3ff
push 0
lea eax, [ebp - 0x543]
push eax
call fcn.00490e10
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
push 0x4b6fd4
push 0x400
lea ecx, [ebp - 0x544]
push ecx
call fcn.0049206d
add esp, 0x10
lea eax, [ebp - 0x544]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402c00
mov ecx, dword [ebp - 0x588]
or ecx, 1
mov dword [ebp - 0x588], ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
Function at 0x408480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1a08
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x4d84d0]
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 dword [ebp - 0x184], 0
mov dword [ebp - 0x14], 0
push 0x4b6fd2
lea ecx, [ebp - 0x2c]
call fcn.00402c00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x30], 0
je 0x408511
lea eax, [ebp - 0x34]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
jmp 0x40852c
lea eax, [ebp - 0x34]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x408564
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004045c0
mov ecx, dword [ebp - 0x184]
or ecx, 1
mov dword [ebp - 0x184], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004048f0
mov eax, dword [ebp + 8]
jmp 0x40864f
mov byte [ebp - 0x138], 0
push 0x103
push 0
lea eax, [ebp - 0x137]
push eax
call fcn.00490e10
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x138]
push eax
call fcn.00490e10
add esp, 0xc
mov dword [ebp - 0x13c], 0x103
mov dword [ebp - 0x140], 1
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x140]
push edx
push 0
push str.MachineGuid
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x408609
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004045c0
mov ecx, dword [ebp - 0x184]
or ecx, 1
mov dword [ebp - 0x184], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004048f0
mov eax, dword [ebp + 8]
jmp 0x40864f
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004049a0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004045c0
mov ecx, dword [ebp - 0x184]
or ecx, 1
mov dword [ebp - 0x184], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004048f0
mov eax, dword [ebp + 8]
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.004909b2
mov esp, ebp
pop ebp
ret