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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x5443f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56df88]
jne 0x5443fa
repz ret
jmp fcn.00546379

Function at 0x54970f
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.005453f6
and dword [ebp - 4], 0
cmp dword [0x56fbf8], 0
mov ebx, eax
jne 0x5497c0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x549871
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x549871
push eax
call fcn.00545384
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x56fbf8], eax
call esi
push eax
call fcn.00545384
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x56fbfc], eax
call esi
push eax
call fcn.00545384
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x56fc00], eax
call esi
push eax
call fcn.00545384
pop ecx
mov dword [0x56fc08], eax
test eax, eax
je 0x5497c0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00545384
pop ecx
mov dword [0x56fc04], eax
mov eax, dword [0x56fc04]
cmp eax, ebx
je 0x549818
cmp dword [0x56fc08], ebx
je 0x549818
push eax
call fcn.005453ff
push dword [0x56fc08]
mov esi, eax
call fcn.005453ff
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x549818
test edi, edi
je 0x549818
call esi
test eax, eax
je 0x54980f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x54980f
test byte [ebp - 0xc], 1
jne 0x549818
or dword [ebp + 0x10], 0x200000
jmp 0x549851
mov eax, dword [0x56fbfc]
cmp eax, ebx
je 0x549851
push eax
call fcn.005453ff
pop ecx
test eax, eax
je 0x549851
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x549851
mov eax, dword [0x56fc00]
cmp eax, ebx
je 0x549851
push eax
call fcn.005453ff
pop ecx
test eax, eax
je 0x549851
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x56fbf8]
call fcn.005453ff
pop ecx
test eax, eax
je 0x549871
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x549873
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x54a890
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x56df24]
add eax, 0xfffffdcf
mov dword [0x56df24], eax
call fcn.004010a0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x54a94f
jmp 0x54aa1a
mov eax, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
je 0x54a97c
jmp 0x54a994
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.0054a400
lea ecx, [0x54c040]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x88], edx
mov dword [esp + 0x64], 0x138c00
mov edx, dword [0x56df10]
mov dword [esp + 0x7c], edx
mov edx, dword [0x56df14]
mov dword [esp + 0x50], edx
mov edx, dword [0x56df18]
mov dword [esp + 0x54], edx
mov edx, dword [0x56df1c]
mov dword [esp + 0x8c], edx
mov edx, dword [0x56df20]
mov dword [esp + 0x3c], edx
mov dword [0x56df24], 0xfffff70e
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
jmp 0x54a8c6
lea eax, [esp + 0x38]
mov dword [0x56df28], 0xcff
mov dword [esp + 0x14], eax
call fcn.0054af20
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x54a8de
jmp 0x54aa12
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
je 0x54a9ab
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x20], eax
jmp 0x54a8c6
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x38]
mov dword [esp + 0x84], eax
mov dword [0x56df28], 0x2382
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x6c], eax
mov dword [0x56df24], 0x17e8
mov eax, dword [esp + 0x30]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0054b7c0
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x56df24]
add ecx, 0xfffff71a
mov dword [0x56df24], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x54adc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x56df30], 0
mov byte [0x56df34], 0
mov dword [0x56df24], 0x2002
mov dword [0x56df28], 0xf6c
mov dword [0x56df2c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x54aed1
mov eax, dword [0x56df28]
add eax, 0xffffeb75
mov dword [0x56df28], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x56df38], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x56df30]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x56df38], esi
mov dword [0x56df28], 0x232c
mov eax, esi
cdq
idiv ecx
mov dword [0x56df30], edx
mov dword [0x56df24], 0x347
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x56df34], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x56df34]
mov esi, dword [0x56df30]
mov byte [ebx + esi], cl
mov esi, dword [0x56df2c]
add esi, 1
mov dword [0x56df2c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x54ae2b
jmp 0x54ae14
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x56df24], 0x142c
mov eax, dword [0x56df2c]
add eax, 1
mov dword [0x56df2c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x54aed1
xor eax, eax
mov dword [0x56df28], 0x1a2c
mov dword [0x56df2c], 0
mov dword [ebp - 0x20], eax
jmp 0x54ae2b
Function at 0x54af20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x56df28]
mov edi, esi
add edi, 0xffffde83
mov dword [0x56df24], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ecx
jmp 0x54af86
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x14], 0x64
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
je 0x54b024
jmp 0x54b094
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
jne 0x54afc3
mov eax, dword [ebp - 0x30]
mov dword [0x56df28], 0x9f
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
je 0x54afdc
jmp 0x54b094
mov eax, dword [ebp - 0x2c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x30], eax
jl 0x54af86
jmp 0x54af9c
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
cmp word [eax + ecx*2], 0x6f
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
jne 0x54b094
mov dword [0x56df28], 0x1815
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x16], 0x61
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
je 0x54af68
jmp 0x54b094
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x12], 0x64
sete dl
mov byte [ebp - 0x35], dl
mov al, byte [ebp - 0x35]
test al, 1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
jne 0x54b046
jmp 0x54b094
mov eax, dword [ebp - 0x1c]
add eax, 0xffffdce0
mov dword [0x56df24], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x10], 0x6c
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], edx
jne 0x54b094
mov eax, 1
mov ecx, 0xadf
mov dword [0x56df24], 0xadf
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x40], eax
je 0x54b0a6
mov eax, dword [ebp - 0x28]
xor ecx, ecx
add eax, 0xfffff184
mov dword [0x56df28], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
add esp, 0x38
pop esi
pop edi
pop ebp
ret
Function at 0x54b4e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x56df2c], 0
mov dword [0x56df30], 0
mov dword [0x56df3c], 0
mov dword [0x56df28], 0x14e0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jne 0x54b542
mov dword [0x56df28], 0xe7d
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x54b553
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add eax, 1
mov dword [0x56df24], 0xb69
mov edi, ecx
add edi, 1
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x56df2c], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x56df30], edx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x56df34], cl
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x56df24], 0x226c
mov cl, byte [0x56df34]
mov edx, dword [0x56df30]
mov byte [ebx + edx], cl
mov edx, dword [0x56df2c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x56df30]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x56df3c], ecx
mov dword [0x56df24], 0x11c5
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov dl, byte [edx + esi]
xor dl, byte [ebx + ecx]
mov ecx, dword [ebp - 0x18]
mov byte [ecx + esi], dl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x38], edi
je 0x54b636
mov eax, dword [0x56df2c]
mov ecx, dword [0x56df30]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x54b553
jmp 0x54b530
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
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 eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
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 + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128
Function at 0x1002266
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, 0x100120c
push ebx
call fcn.0100220c
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x10022db
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
add edi, eax
lea eax, [edi + edi + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10022d9
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1001208
push edi
call esi
mov eax, dword [ebp + 0xc]
push dword [eax]
push edi
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100273c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push esi
xor esi, esi
neg eax
sbb eax, eax
mov ecx, 0x208
and eax, 6
push ecx
inc eax
push 0x40
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1002777
xor eax, eax
jmp 0x100287e
cmp dword [ebp + 0xc], esi
je 0x1002786
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push edi
lea eax, [ebp + 0x18]
push eax
xor eax, eax
cmp dword [ebp + 0x10], esi
mov ebx, 0x20019
setne al
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x80000001
push 0x1001370
add eax, edi
push eax
call esi
test eax, eax
jne 0x10027d6
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jne 0x1002816
lea eax, [ebp + 0x18]
push eax
push ebx
push ecx
push 0x10012f8
push edi
call esi
test eax, eax
mov edi, dword [ebp - 4]
jne 0x1002812
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
jmp 0x1002819
mov edi, dword [ebp - 4]
cmp word [edi], cx
jne 0x1002822
xor esi, esi
jmp 0x1002873
cmp word [edi], cx
mov esi, edi
mov eax, edi
je 0x1002870
jmp 0x1002839
xor ecx, ecx
jmp 0x1002839
cmp word [esi], 0x2c
je 0x1002844
inc esi
inc esi
cmp word [esi], cx
jne 0x1002831
cmp word [esi], 0x2c
jne 0x100284d
mov word [esi], cx
inc esi
inc esi
jmp 0x100284d
inc eax
inc eax
cmp word [eax], 0x20
je 0x100284b
push dword [ebp - 0x14]
push ecx
push dword [ebp + 0x14]
push ecx
push eax
call fcn.01002454
test eax, eax
je 0x1002868
inc dword [ebp - 8]
cmp word [esi], 0
mov eax, esi
jne 0x100282d
mov esi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret 0x14
Function at 0x100291e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp + 0x10]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1001370
push dword [ebp + 8]
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x100297b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
push dword [ebp + 0x10]
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x10]
push eax
push edi
push 0
push 0x10012f8
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10029b6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
push dword [ebp + 0x10]
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1002cc9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1001370
push 0x80000001
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x1002d28
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100161c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x1001370
push 0x80000002
call esi
test eax, eax
jne 0x1002d67
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100161c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x10012f8
push 0x80000001
call esi
test eax, eax
jne 0x1002da6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100161c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x10012f8
push 0x80000002
call esi
test eax, eax
jne 0x1002de5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100161c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret