joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430542
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.00427b56
and dword [ebp - 4], 0
cmp dword [0x457530], 0
mov ebx, eax
jne 0x4305f3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4306a4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x443858
push edi
call esi
test eax, eax
je 0x4306a4
push eax
call fcn.00427ae4
mov dword [esp], 0x443848
push edi
mov dword [0x457530], eax
call esi
push eax
call fcn.00427ae4
mov dword [esp], 0x443834
push edi
mov dword [0x457534], eax
call esi
push eax
call fcn.00427ae4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x457538], eax
call esi
push eax
call fcn.00427ae4
pop ecx
mov dword [0x457540], eax
test eax, eax
je 0x4305f3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00427ae4
pop ecx
mov dword [0x45753c], eax
mov eax, dword [0x45753c]
cmp eax, ebx
je 0x43064b
cmp dword [0x457540], ebx
je 0x43064b
push eax
call fcn.00427b5f
push dword [0x457540]
mov esi, eax
call fcn.00427b5f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43064b
test edi, edi
je 0x43064b
call esi
test eax, eax
je 0x430642
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x430642
test byte [ebp - 0xc], 1
jne 0x43064b
or dword [ebp + 0x10], 0x200000
jmp 0x430684
mov eax, dword [0x457534]
cmp eax, ebx
je 0x430684
push eax
call fcn.00427b5f
pop ecx
test eax, eax
je 0x430684
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x430684
mov eax, dword [0x457538]
cmp eax, ebx
je 0x430684
push eax
call fcn.00427b5f
pop ecx
test eax, eax
je 0x430684
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x457530]
call fcn.00427b5f
pop ecx
test eax, eax
je 0x4306a4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4306a6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48c240
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 0x388]
cmp dword [eax + 0xc], 2
jne 0x48c283
push esi
mov esi, dword [ecx + 0x2e0]
cmp esi, 0x101
jb 0x48c282
xor edx, edx
cmp byte [ecx + 0x19f], dl
jne 0x48c282
mov ecx, dword [ecx + 0x2d8]
xor al, al
dec esi
cmp esi, edx
jbe 0x48c27a
xor al, byte [edx + ecx]
inc edx
cmp edx, esi
jb 0x48c272
add ecx, edx
cmp al, byte [ecx]
je 0x48c282
mov byte [ecx], al
pop esi
ret
Function at 0x5a5327
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x5a5355
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x5a535c
cmp ebx, dword [eax + 4]
jae 0x5a535c
xor eax, eax
jmp 0x5a554c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x5a536d
xor eax, eax
inc eax
jmp 0x5a554b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5a5383
cmp ecx, edx
jae 0x5a54c8
cmp dword [eax + 4], 0
je 0x5a538c
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x5a5374
cmp dword [ebp + 8], 0
je 0x5a53ae
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x5a54c8
cmp eax, esi
jae 0x5a54c8
mov eax, dword [0x10018be8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x5a53d3
cmp dword [esi*4 + 0x10018bf0], edi
je 0x5a54cc
inc esi
cmp esi, eax
jl 0x5a53c1
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x100120f8]
test eax, eax
je 0x5a5548
cmp dword [ebp - 8], 0x1000000
jne 0x5a5548
test byte [ebp - 0xc], 0xcc
je 0x5a5451
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x5a5548
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5a5548
cmp word [eax + 0x18], 0x10b
jne 0x5a5548
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x5a5548
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x5a5451
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x5a5451
test byte [ecx + 0x27], 0x80
jne 0x5a54c8
push 1
push 0x10018c30
call dword [0x10012080]
test eax, eax
jne 0x5a5365
mov ecx, dword [0x10018be8]
test ecx, ecx
mov edx, ecx
jle 0x5a5485
lea eax, [ecx*4 + 0x10018bec]
cmp dword [eax], edi
je 0x5a5485
dec edx
sub eax, 4
test edx, edx
jg 0x5a5479
test edx, edx
jne 0x5a54b6
push 0xf
pop ebx
cmp ecx, ebx
jg 0x5a5492
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x5a54aa
lea eax, [edx*4 + 0x10018bf0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x5a5498
cmp ecx, 0x10
jge 0x5a54b6
inc ecx
mov dword [0x10018be8], ecx
push 0
push 0x10018c30
call dword [0x10012080]
jmp 0x5a5365
xor eax, eax
jmp 0x5a554b
test esi, esi
jle 0x5a5365
mov ebx, dword [0x10012080]
push 1
push 0x10018c30
call ebx
test eax, eax
jne 0x5a5365
cmp dword [esi*4 + 0x10018bf0], edi
je 0x5a5522
mov eax, dword [0x10018be8]
lea esi, [eax - 1]
test esi, esi
jl 0x5a5510
cmp dword [esi*4 + 0x10018bf0], edi
je 0x5a550c
dec esi
jns 0x5a5500
test esi, esi
jge 0x5a5520
cmp eax, 0x10
jge 0x5a551b
inc eax
mov dword [0x10018be8], eax
lea esi, [eax - 1]
jmp 0x5a5522
je 0x5a553a
xor ecx, ecx
test esi, esi
jl 0x5a553a
lea eax, [ecx*4 + 0x10018bf0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x5a5528
push 0
push 0x10018c30
call ebx
jmp 0x5a5365
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6e8527
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x6e8555
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x6e855c
cmp ebx, dword [eax + 4]
jae 0x6e855c
xor eax, eax
jmp 0x6e874c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x6e856d
xor eax, eax
inc eax
jmp 0x6e874b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x6e8583
cmp ecx, edx
jae 0x6e86c8
cmp dword [eax + 4], 0
je 0x6e858c
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x6e8574
cmp dword [ebp + 8], 0
je 0x6e85ae
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x6e86c8
cmp eax, esi
jae 0x6e86c8
mov eax, dword [0x10018be8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x6e85d3
cmp dword [esi*4 + 0x10018bf0], edi
je 0x6e86cc
inc esi
cmp esi, eax
jl 0x6e85c1
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x100120f8]
test eax, eax
je 0x6e8748
cmp dword [ebp - 8], 0x1000000
jne 0x6e8748
test byte [ebp - 0xc], 0xcc
je 0x6e8651
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x6e8748
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x6e8748
cmp word [eax + 0x18], 0x10b
jne 0x6e8748
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x6e8748
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x6e8651
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x6e8651
test byte [ecx + 0x27], 0x80
jne 0x6e86c8
push 1
push 0x10018c30
call dword [0x10012080]
test eax, eax
jne 0x6e8565
mov ecx, dword [0x10018be8]
test ecx, ecx
mov edx, ecx
jle 0x6e8685
lea eax, [ecx*4 + 0x10018bec]
cmp dword [eax], edi
je 0x6e8685
dec edx
sub eax, 4
test edx, edx
jg 0x6e8679
test edx, edx
jne 0x6e86b6
push 0xf
pop ebx
cmp ecx, ebx
jg 0x6e8692
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x6e86aa
lea eax, [edx*4 + 0x10018bf0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x6e8698
cmp ecx, 0x10
jge 0x6e86b6
inc ecx
mov dword [0x10018be8], ecx
push 0
push 0x10018c30
call dword [0x10012080]
jmp 0x6e8565
xor eax, eax
jmp 0x6e874b
test esi, esi
jle 0x6e8565
mov ebx, dword [0x10012080]
push 1
push 0x10018c30
call ebx
test eax, eax
jne 0x6e8565
cmp dword [esi*4 + 0x10018bf0], edi
je 0x6e8722
mov eax, dword [0x10018be8]
lea esi, [eax - 1]
test esi, esi
jl 0x6e8710
cmp dword [esi*4 + 0x10018bf0], edi
je 0x6e870c
dec esi
jns 0x6e8700
test esi, esi
jge 0x6e8720
cmp eax, 0x10
jge 0x6e871b
inc eax
mov dword [0x10018be8], eax
lea esi, [eax - 1]
jmp 0x6e8722
je 0x6e873a
xor ecx, ecx
test esi, esi
jl 0x6e873a
lea eax, [ecx*4 + 0x10018bf0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x6e8728
push 0
push 0x10018c30
call ebx
jmp 0x6e8565
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6f4b74
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, dword [fcn.0040408c]
push edi
push 0x10000
push 2
call esi
mov edi, dword [fcn.004040c8]
push eax
mov dword [0x405420], eax
call edi
push 0x8040
push 2
mov dword [0x40541c], eax
call esi
push eax
mov dword [0x405458], eax
call edi
push 0x400
push 2
mov dword [0x405448], eax
call esi
push eax
mov dword [0x405438], eax
call edi
mov dword [0x405424], eax
and dword [eax], 0
push 1
pop eax
pop edi
pop esi
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x6f4be0
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x6f4be2
shr ecx, 1
dec edx
jne 0x6f4bd1
mov edx, dword [0x405424]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, 0x100
jl 0x6f4bcc
ret

Function at 0x6f5c14
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x6f5c26
or eax, 0xffffffff
mov dword [0x405000], eax
jmp 0x6f5c5f
mov edx, dword [esp + 8]
mov eax, dword [0x405000]
push esi
mov esi, edx
dec edx
test esi, esi
je 0x6f5c59
push edi
inc edx
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [0x405424]
shr eax, 8
mov esi, dword [edi + esi*4]
xor eax, esi
inc ecx
dec edx
jne 0x6f5c39
pop edi
mov dword [0x405000], eax
pop esi
not eax
ret 8
Function at 0x71afff
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x71b02d
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x71b034
cmp ebx, dword [eax + 4]
jae 0x71b034
xor eax, eax
jmp 0x71b224
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x71b045
xor eax, eax
inc eax
jmp 0x71b223
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x71b05b
cmp ecx, edx
jae 0x71b1a0
cmp dword [eax + 4], 0
je 0x71b064
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x71b04c
cmp dword [ebp + 8], 0
je 0x71b086
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x71b1a0
cmp eax, esi
jae 0x71b1a0
mov eax, dword [0x10011620]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x71b0ab
cmp dword [esi*4 + 0x10011628], edi
je 0x71b1a4
inc esi
cmp esi, eax
jl 0x71b099
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x1000e0f4]
test eax, eax
je 0x71b220
cmp dword [ebp - 8], 0x1000000
jne 0x71b220
test byte [ebp - 0xc], 0xcc
je 0x71b129
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x71b220
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x71b220
cmp word [eax + 0x18], 0x10b
jne 0x71b220
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x71b220
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x71b129
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x71b129
test byte [ecx + 0x27], 0x80
jne 0x71b1a0
push 1
push 0x10011668
call dword [0x1000e0c4]
test eax, eax
jne 0x71b03d
mov ecx, dword [0x10011620]
test ecx, ecx
mov edx, ecx
jle 0x71b15d
lea eax, [ecx*4 + 0x10011624]
cmp dword [eax], edi
je 0x71b15d
dec edx
sub eax, 4
test edx, edx
jg 0x71b151
test edx, edx
jne 0x71b18e
push 0xf
pop ebx
cmp ecx, ebx
jg 0x71b16a
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x71b182
lea eax, [edx*4 + 0x10011628]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x71b170
cmp ecx, 0x10
jge 0x71b18e
inc ecx
mov dword [0x10011620], ecx
push 0
push 0x10011668
call dword [0x1000e0c4]
jmp 0x71b03d
xor eax, eax
jmp 0x71b223
test esi, esi
jle 0x71b03d
mov ebx, dword [0x1000e0c4]
push 1
push 0x10011668
call ebx
test eax, eax
jne 0x71b03d
cmp dword [esi*4 + 0x10011628], edi
je 0x71b1fa
mov eax, dword [0x10011620]
lea esi, [eax - 1]
test esi, esi
jl 0x71b1e8
cmp dword [esi*4 + 0x10011628], edi
je 0x71b1e4
dec esi
jns 0x71b1d8
test esi, esi
jge 0x71b1f8
cmp eax, 0x10
jge 0x71b1f3
inc eax
mov dword [0x10011620], eax
lea esi, [eax - 1]
jmp 0x71b1fa
je 0x71b212
xor ecx, ecx
test esi, esi
jl 0x71b212
lea eax, [ecx*4 + 0x10011628]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x71b200
push 0
push 0x10011668
call ebx
jmp 0x71b03d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x771840
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 0x388]
cmp dword [eax + 0xc], 2
jne 0x771883
push esi
mov esi, dword [ecx + 0x2e0]
cmp esi, 0x101
jb 0x771882
xor edx, edx
cmp byte [ecx + 0x19f], dl
jne 0x771882
mov ecx, dword [ecx + 0x2d8]
xor al, al
dec esi
cmp esi, edx
jbe 0x77187a
xor al, byte [edx + ecx]
inc edx
cmp edx, esi
jb 0x771872
add ecx, edx
cmp al, byte [ecx]
je 0x771882
mov byte [ecx], al
pop esi
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x1aa404e1
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x2f6c1233
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4016f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4b1d00]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.00464d20
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x40173c
mov eax, 1
cmp dword [esp + 8], eax
je 0x40173e
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00464fe1
add esp, 0x118
ret

Function at 0x402e30
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x402e3b
xor al, al
ret
push esi
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x402ce0
push 0
push 0
mov dword [esp + 0x20], 0
call fcn.0046902c
mov esi, eax
add esp, 0x18
cmp dword [0x4b36ec], esi
je 0x402e6b
test esi, esi
jne 0x402e6f
xor al, al
pop esi
ret
mov edx, dword [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402e8b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [0x4b36ec], esi
je 0x402e9a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x402f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402f59
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402f94
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402f90
lea ebx, [ebx]
cmp esi, eax
jae 0x402f94
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402f80
cmp esi, eax
jb 0x402f9a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x405660
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push esi
lea eax, [esp + 0xc]
push eax
push 0x499238
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x405682
pop esi
pop ebx
add esp, 0xc
ret
push edi
push esi
call fcn.00465a08
mov edi, eax
add esp, 4
test edi, edi
jne 0x405699
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push edi
push esi
push 0
push 0x499238
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4056d8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x499254
push edi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
push edi
call fcn.00464f07
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x4056f0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x14c
mov eax, dword [0x4b1d00]
xor eax, esp
mov dword [esp + 0x148], eax
xor eax, eax
push str.GetNativeSystemInfo
push str.kernel32.dll
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40574e
lea ecx, [esp + 8]
push ecx
call eax
jmp 0x405759
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push esi
push 0x11c
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00464d20
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x11c
call esi
test eax, eax
jne 0x405796
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 0x114
call esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00405660
add esp, 8
pop esi
test eax, eax
je 0x4057e2
mov ecx, dword [esp]
mov eax, ecx
movzx edx, cx
mov ecx, dword [esp + 8]
shr eax, 0x10
cmp cx, 9
je 0x4057f9
cmp cx, 6
je 0x4057f9
cmp eax, 5
jne 0x405804
cmp edx, 2
jne 0x405804
xor al, al
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00464fe1
add esp, 0x14c
ret
cmp eax, 6
jb 0x4057e2
jne 0x405804
test edx, edx
je 0x4057e2
mov ecx, dword [esp + 0x148]
xor ecx, esp
mov al, 1
call fcn.00464fe1
add esp, 0x14c
ret
Function at 0x405820
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xfffffffffffffffe
push 0x4a81e8
push 0x465b30
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4b1d00]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov ebx, edx
mov edi, dword [ebp + 0x80c]
mov dword [ebp - 4], 0
test esi, esi
je 0x405960
cmp word [esi], 0
je 0x405960
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405890
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x405960
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405960
xor eax, eax
mov word [ebp], ax
push 0x7fe
push eax
lea ecx, [ebp + 2]
push ecx
call fcn.00464d20
push esi
push str.__s_
push 0x3ff
lea edx, [ebp]
push edx
call fcn.004054f0
push 0x3c
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.00464d20
add esp, 0x28
mov dword [ebp - 0x54], 0x3c
lea ecx, [ebp]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], str.open
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], 5
mov dword [ebp - 0x50], 0x440
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x40593e
push edi
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x40594c
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x405969
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00464fe1
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x405c80
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x48ad3b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b1d00]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
mov dword [esi], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
push eax
call fcn.00405080
add eax, 0x10
mov dword [esi + 4], eax
mov byte [esp + 0x18], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
push eax
call fcn.00405080
add eax, 0x10
add esp, 8
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 5
jne 0x405cf3
xor eax, eax
jmp 0x405d05
mov eax, dword [esp + 0x28]
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x200
mov dword [esi + 0xc], eax
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x406060
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
lea ecx, [esp + 4]
push ecx
or edx, 1
push edx
push 0
push eax
mov eax, dword [esi]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4060c4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov esi, dword [esi + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x406180
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48e035
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b1d00]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [esi], vtable.TS::Registry::CUserRegHelper.0
mov eax, dword [0x4b84ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b84ac
call edx
add eax, 0x10
mov dword [esi + 4], eax
mov byte [esp + 0x14], 1
mov eax, dword [0x4b84ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b84ac
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov byte [esp + 0x14], 2
mov eax, dword [0x4b84ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b84ac
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
lea ecx, [esi + 0x10]
push edx
mov byte [esp + 0x1c], 3
call fcn.0040b5d0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
lea ecx, [esi + 0x30]
push edx
mov byte [esp + 0x1c], 4
call fcn.0040b5d0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
lea ecx, [esi + 0x50]
push edx
mov byte [esp + 0x1c], 5
call fcn.0040b5d0
lea ecx, [esi + 0x70]
mov byte [esp + 0x14], 6
call fcn.0040a6b0
mov edx, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 7
call fcn.00409290
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40628a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0xc