joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x557168
call fcn.00538504
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea ecx, [esi + 0x18]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.Scintilla::Internal::ListBoxX.0
mov dword [esi + 0xc], 0xa
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00504d76
mov ecx, dword [ebp - 0xc]
xorps xmm0, xmm0
mov dword [esi + 0x28], ebx
mov eax, esi
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esi + 0x44], bl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x48], 9
mov dword [esi + 0x50], 8
mov dword [esi + 0x5c], 0x60
mov dword [esi + 0x68], 1
movups xmmword [esi + 0x70], xmm0
movups xmmword [esi + 0x80], xmm0
movups xmmword [esi + 0x90], xmm0
movups xmmword [esi + 0xa0], xmm0
mov dword [esi + 0xb0], ebx
mov byte [esi + 0xb8], bl
mov byte [esi + 0xc0], bl
mov byte [esi + 0xc8], bl
mov byte [esi + 0xd0], bl
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], 0x40000
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4c8583
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556d1d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
movd xmm0, dword [ebp + 0xc]
xor eax, eax
movd xmm1, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea ecx, [ebp - 0x24]
cvtdq2ps xmm0, xmm0
push ecx
push esi
mov dword [edi + 4], vtable.Scintilla::Internal::SurfaceD2D.1.0
lea ebx, [edi + 0x14]
mov dword [edi + 8], eax
mov byte [edi + 0xc], al
mov dword [edi + 0x10], eax
mov dword [ebx], eax
mov byte [edi + 0x18], al
mov dword [edi + 0x28], 0x60
cvtdq2ps xmm1, xmm1
mov dword [edi], vtable.Scintilla::Internal::SurfaceD2D.0
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0xf
mov dword [edi + 0x2c], 1
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov eax, dword [esi]
movss dword [ebp - 0x1c], xmm0
movss dword [ebp - 0x18], xmm1
call dword [eax + 0xc8]
push ebx
push 0
mov ecx, dword [eax]
mov eax, dword [esi]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 3
push ecx
push esi
call dword [eax + 0x30]
test eax, eax
js 0x4c864e
mov eax, dword [ebx]
mov ecx, edi
push eax
mov dword [edi + 0x10], eax
call fcn.004ce199
mov eax, dword [edi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
mov byte [edi + 0x18], 1
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x28], eax
mov eax, edi
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4c900e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
sub esp, 0x20
lea eax, [esp + 0x58]
mov ebp, ecx
lea esi, [esp + 0x74]
mov dword [esp + 0x44], ebp
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004c582e
mov esi, eax
lea edi, [esp + 0x4c]
add esp, 0x24
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x30]
sub edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
sub ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ebx
test edi, edi
jle 0x4c91bc
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [esp + 0x44]
call fcn.004c806b
cmp dword [esp + 0x38], 0
je 0x4c91b1
cmp dword [esp + 0x3c], 0
je 0x4c91b1
cmp dword [esp + 0x4c], 0
je 0x4c91b1
cvttsd2si ebp, qword [esp + 0x74]
cmp ebx, edi
mov eax, edi
cmovl eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, 0xfffffffe
push dword [esp + 0x7c]
cmp eax, ebp
cmovl ebp, eax
mov dword [esp + 0x78], ebp
call fcn.004cfb55
push dword [esp + 0x88]
mov dword [esp + 0x18], eax
call fcn.004cfb55
pop ecx
xor edx, edx
mov dword [esp + 0x18], eax
pop ecx
test ebx, ebx
jle 0x4c9120
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x4c]
shl eax, 2
mov dword [esp + 0x1c], eax
xor ecx, ecx
test edi, edi
jle 0x4c9115
mov esi, ebp
test ecx, ecx
je 0x4c9103
lea eax, [edi - 1]
cmp ecx, eax
je 0x4c9103
test edx, edx
je 0x4c9103
lea eax, [ebx - 1]
cmp edx, eax
mov eax, dword [esp + 0x10]
jne 0x4c9107
mov eax, dword [esp + 0x14]
mov dword [esi], eax
inc ecx
add esi, 4
cmp ecx, edi
jl 0x4c90e9
mov eax, dword [esp + 0x1c]
inc edx
add ebp, eax
cmp edx, ebx
jl 0x4c90e1
mov ebp, dword [esp + 0x74]
xor esi, esi
test ebp, ebp
jle 0x4c9162
mov edi, dword [esp + 0x74]
lea eax, [esi + 1]
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
jle 0x4c9154
mov edi, eax
push 0
push esi
push ebp
lea ecx, [esp + 0x44]
call fcn.004ce77b
inc ebp
dec esi
cmp ebp, edi
jl 0x4c9139
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
mov esi, eax
cmp esi, edi
jl 0x4c912a
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x74]
xor esi, esi
inc esi
cmp ebp, esi
jle 0x4c918a
mov ebx, dword [esp + 0x14]
lea edi, [ebp - 1]
push ebx
push edi
push esi
lea ecx, [esp + 0x44]
call fcn.004ce77b
inc esi
dec edi
cmp esi, ebp
jl 0x4c9170
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
push dword [0x56e428]
mov eax, dword [esp + 0x28]
push ebx
push edi
push 0
push 0
push dword [esp + 0x4c]
push ebx
push edi
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [eax + 0xc]
call dword [sym.imp.GDI32.dll_GdiAlphaBlend]
lea ecx, [esp + 0x38]
call fcn.004c88c7
jmp 0x4c91db
push dword [esp + 0x84]
mov ecx, ebp
call fcn.004c9360
push dword [ebp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FrameRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x40
Function at 0x4e2b70
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor al, al
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x4e2ccc
mov edx, 0x10000000
cmp ecx, 0x7c
je 0x4e2ccc
cmp ecx, 0x29
jne 0x4e2bd7
cmp dword [esi + 0x10], 0
jne 0x4e2ccc
lea edi, [esi + 0x50]
test dword [edi], edx
je 0x4e2cd4
cmp ecx, 0x5d
jne 0x4e2bb8
test dword [edi], edx
je 0x4e2cc4
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004e1e35
mov ecx, esi
call fcn.004e676c
mov ecx, esi
call fcn.004e67ed
mov al, 1
jmp 0x4e2b77
lea edi, [esi + 0x50]
cmp ecx, 0x2e
jne 0x4e2beb
push 5
lea ecx, [esi + 0x24]
call fcn.004e672e
jmp 0x4e2bc5
cmp ecx, 0x5c
jne 0x4e2c36
mov ecx, esi
call fcn.004e676c
test byte [edi], 0x80
je 0x4e2c2d
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x4e2c16
push 4
lea ecx, [esi + 0x24]
call fcn.004e672e
mov ecx, esi
call fcn.004e676c
jmp 0x4e2bd3
cmp al, 0x42
jne 0x4e2c2d
push 4
lea ecx, [esi + 0x24]
call fcn.004e672e
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4e2c0d
mov ecx, esi
call fcn.004e2e51
jmp 0x4e2bcc
cmp ecx, 0x5b
jne 0x4e2c59
mov ecx, esi
call fcn.004e676c
mov ecx, esi
call fcn.004e360c
push 4
push 0x5d
mov ecx, esi
call fcn.004e543d
jmp 0x4e2bcc
cmp ecx, 0x28
jne 0x4e2c86
mov ecx, esi
call fcn.004e676c
mov ecx, esi
call fcn.004e7503
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.004e543d
test bl, bl
je 0x4e2bd3
jmp 0x4e2bcc
cmp ecx, 0x5e
jne 0x4e2c92
push 2
jmp 0x4e2c05
cmp ecx, 0x24
jne 0x4e2c9e
push 3
jmp 0x4e2c05
cmp ecx, 0x2a
je 0x4e2cc8
cmp ecx, 0x2b
je 0x4e2cc8
cmp ecx, 0x3f
je 0x4e2cc8
cmp ecx, 0x7b
je 0x4e2cc8
cmp ecx, 0x7d
jne 0x4e2bab
test dword [edi], edx
je 0x4e2cd0
jmp 0x4e2bb8
push 4
jmp 0x4e2cd6
push 0xa
jmp 0x4e2cd6
pop edi
pop esi
pop ebx
ret
push 6
jmp 0x4e2cd6
push 5
mov ecx, esi
call fcn.004e53d5
int3
Function at 0x4e2cde
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor al, al
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x4e2e3f
mov edx, 0x10000000
cmp ecx, 0x7c
je 0x4e2e3f
cmp ecx, 0x29
jne 0x4e2d45
cmp dword [esi + 0x10], 0
jne 0x4e2e3f
lea edi, [esi + 0x50]
test dword [edi], edx
je 0x4e2e47
cmp ecx, 0x5d
jne 0x4e2d26
test dword [edi], edx
je 0x4e2e37
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004e1e94
mov ecx, esi
call fcn.004e679a
mov ecx, esi
call fcn.004e68b2
mov al, 1
jmp 0x4e2ce5
lea edi, [esi + 0x50]
cmp ecx, 0x2e
jne 0x4e2d59
push 5
lea ecx, [esi + 0x24]
call fcn.004e672e
jmp 0x4e2d33
cmp ecx, 0x5c
jne 0x4e2da9
mov ecx, esi
call fcn.004e679a
test byte [edi], 0x80
je 0x4e2da0
movzx eax, word [esi + 0x48]
mov ecx, eax
cmp eax, 0x62
jne 0x4e2d88
push 4
lea ecx, [esi + 0x24]
call fcn.004e672e
mov ecx, esi
call fcn.004e679a
jmp 0x4e2d41
cmp ecx, 0x42
jne 0x4e2da0
push 4
lea ecx, [esi + 0x24]
call fcn.004e672e
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4e2d7f
mov ecx, esi
call fcn.004e2ef9
jmp 0x4e2d3a
cmp ecx, 0x5b
jne 0x4e2dcc
mov ecx, esi
call fcn.004e679a
mov ecx, esi
call fcn.004e3655
push 4
push 0x5d
mov ecx, esi
call fcn.004e5458
jmp 0x4e2d3a
cmp ecx, 0x28
jne 0x4e2df9
mov ecx, esi
call fcn.004e679a
mov ecx, esi
call fcn.004e7586
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.004e5458
test bl, bl
je 0x4e2d41
jmp 0x4e2d3a
cmp ecx, 0x5e
jne 0x4e2e05
push 2
jmp 0x4e2d77
cmp ecx, 0x24
jne 0x4e2e11
push 3
jmp 0x4e2d77
cmp ecx, 0x2a
je 0x4e2e3b
cmp ecx, 0x2b
je 0x4e2e3b
cmp ecx, 0x3f
je 0x4e2e3b
cmp ecx, 0x7b
je 0x4e2e3b
cmp ecx, 0x7d
jne 0x4e2d19
test dword [edi], edx
je 0x4e2e43
jmp 0x4e2d26
push 4
jmp 0x4e2e49
push 0xa
jmp 0x4e2e49
pop edi
pop esi
pop ebx
ret
push 6
jmp 0x4e2e49
push 5
mov ecx, esi
call fcn.004e53d5
int3

Function at 0x4e9810
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x557c6e
call fcn.00538504
sub esp, 0x14
push ebx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x10], ebx
push esi
push edi
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebp - 4], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
or dword [ebx + 0x18], 0xffffffff
lea esi, [ebp - 0x20]
sub esp, 0x10
mov dword [ebp - 0x20], eax
mov edi, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebx + 0x1c], eax
or dword [ebx + 0x20], 0xffffffff
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x24], eax
mov byte [ebp - 4], 1
mov dword [ebx + 0x28], eax
movsd dword es:[edi], dword [esi]
mov word [ebx + 0x2c], ax
mov dword [ebx + 0x30], 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004e9989
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x504e86
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x504f09
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
lea ebp, [eax + 1]
mov dword [esp + 0x10], 0xff
lea ecx, [esi + 1]
sub esi, eax
mov dword [esp + 0x20], ecx
mov bl, byte [ecx + 2]
xor edx, edx
movzx eax, byte [esi + ebp - 1]
movzx ecx, bl
imul eax, ecx
div dword [esp + 0x10]
xor edx, edx
mov byte [ebp + 1], al
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
imul eax, ecx
div dword [esp + 0x10]
xor edx, edx
mov byte [ebp], al
lea ebp, [ebp + 4]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + 1]
imul eax, ecx
mov ecx, 0xff
mov byte [ebp - 2], bl
div ecx
mov ecx, dword [esp + 0x20]
add ecx, 4
mov byte [ebp - 5], al
mov dword [esp + 0x20], ecx
sub edi, 1
jne 0x504eaf
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
Function at 0x50f000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x558c44
call fcn.00538504
push ecx
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.Scintilla::Internal::LineLayout.0
mov dword [esi + 8], ecx
mov eax, dword [ebp + 8]
or dword [esi + 0x14], 0xffffffff
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov word [esi + 0x28], cx
mov dword [esi + 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
xor eax, eax
mov word [esi + 0x3c], ax
mov dword [esi + 0x40], ecx
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [esi + 0x44], 0x7ffffff
mov dword [esi + 0x48], 1
movsd qword [esi + 0x50], xmm0
call fcn.005101ce
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x50f8d8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
push dword [esp + 0x18]
mov esi, 0x811c9dc5
push dword [esp + 0x18]
push esi
call fcn.004e5473
add esp, 0xc
mov edi, eax
xor edx, edx
movzx ecx, byte [esp + edx + 0xc]
xor ecx, esi
imul esi, ecx, 0x1000193
inc edx
cmp edx, 4
jb 0x50f8f4
movzx ecx, byte [esp + 0x10]
lea eax, [esi + esi]
xor eax, ecx
xor eax, edi
pop edi
pop esi
ret
Function at 0x51dd10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x51de95
cmp dword [esi + 0x20], 0
je 0x51de95
cmp dword [esi + 0x24], 0
je 0x51de95
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x51de95
cmp dword [eax], esi
jne 0x51de95
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x51dd75
cmp eax, 0x39
je 0x51dd75
cmp eax, 0x45
je 0x51dd75
cmp eax, 0x49
je 0x51dd75
cmp eax, 0x5b
je 0x51dd75
cmp eax, 0x67
je 0x51dd75
cmp eax, 0x71
je 0x51dd75
cmp eax, 0x29a
jne 0x51de95
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x51ddae
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x51ddd0
call fcn.0051eb60
jmp 0x51ddd5
call fcn.0051e8e0
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.0051f4d0
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.0045cb60
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x575d1a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x575d18]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x575d1c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x575d1e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x5291a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x5291c0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x5291c0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x5291c0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x534bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
push esi
push edi
xor ebp, ebp
lea eax, [esp + 0xc]
push eax
push ebp
push ebp
push ebp
push dword [esp + 0x24]
mov edi, ecx
mov dword [esp + 0x20], ebp
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x534c2a
cmp eax, 0xea
jne 0x534c5c
mov eax, dword [esp + 0xc]
mov ecx, esi
push ebp
shr eax, 1
push eax
call fcn.004c744b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x534c43
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push eax
push ebp
push ebp
push dword [esp + 0x24]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x534c65
push ebp
push ebp
mov ecx, esi
call fcn.004c744b
pop edi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x534c6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ecx
push ebp
push edi
xor ebp, ebp
lea eax, [esp + 0xc]
push eax
push ebp
push ebp
push ebp
push dword [esp + 0x24]
mov edi, ecx
mov dword [esp + 0x20], ebp
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x534ca9
cmp eax, 0xea
je 0x534ca9
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.004cfd56
jmp 0x534ce6
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0xf]
push eax
push dword [esp + 0x14]
mov ecx, esi
call fcn.004cfd56
lea eax, [esp + 0x10]
push eax
push dword [esi]
push ebp
push ebp
push dword [esp + 0x28]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x534ce5
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push ebp
call fcn.004cfd56
pop esi
pop edi
pop ebp
pop ecx
pop ecx
ret 8
Function at 0x53644d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x556d1d
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x536477
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x5364a8
mov ecx, dword [ebp + 8]
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ecx + 0x10], ebx
xor eax, eax
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov eax, ecx
jmp 0x5365ac
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call fcn.004d2c71
cmp dword [edi + 0x14], 8
jb 0x5364c2
mov edi, dword [edi]
push esi
mov esi, dword [ebp - 0x28]
push esi
push ebx
xor ebx, ebx
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x536521
mov ebx, dword [ebp + 8]
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
test esi, esi
je 0x5365a9
mov eax, dword [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x5365a0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004c6fa3
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
jmp 0x53659e
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp + 0xc], ebx
push eax
push str.StringFileInfo040904B0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x53655a
cmp dword [ebp - 0x10], ebx
je 0x53655a
cmp dword [ebp + 0xc], ebx
je 0x53655a
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, ebx
push dword [ebp - 0x10]
call fcn.004c8043
jmp 0x536575
mov ebx, dword [ebp + 8]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebx + 0x10], 0
xor eax, eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
test esi, esi
je 0x5365a9
mov eax, dword [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
cmp eax, 0x1000
jb 0x5365a0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004c6fa3
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
pop ecx
pop ecx
push eax
push esi
call fcn.00538215
pop ecx
pop ecx
mov eax, ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x5379d7
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x5aee88], 0
push ebx
push esi
mov esi, 0x5aee90
jne 0x537a03
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x5aeea8], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x5aee88], 1
push dword [0x5aeea8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x537aa0
push 0x14
push 8
push dword [0x5acc94]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x537aca
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5aee8c]
test eax, eax
je 0x537a45
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x5aee8c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x537acf
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x5aeea8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x5acc94]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x537aca
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x538120
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x53814d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x53814d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5413cf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00537fe0
mov eax, dword [0x5a2374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00459a15
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x541411
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x54156d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00538420
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5ad4b0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0045aff6
mov ecx, dword [esi*4 + 0x5ad4b0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x541566
cmp eax, dword [ecx + edi + 0x24]
jne 0x541566
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x541566
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045aff6
add esp, 0x14
test edx, edx
jl 0x541566
jg 0x5414dc
test eax, eax
jb 0x541566
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x541566
jl 0x5414f6
cmp dword [ebp - 0x1008], eax
ja 0x541566
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x541514
test ebx, ebx
je 0x54154d
cmp ecx, edi
jae 0x54154d
mov al, byte [ecx]
cmp al, 0xd
jne 0x54152e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x54153a
cmp byte [ecx + 1], 0xa
jne 0x54153a
inc ecx
jmp 0x54153a
movzx eax, al
movsx eax, byte [eax + 0x5a2ad8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x541514
cmp edx, ebx
jne 0x541514
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x54156b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044ca85
leave
ret