joyce8/EMBER2024-capa huggingface dataset:
Function at 0x296886
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
mov esi, ecx
and esi, 3
mov eax, esi
neg eax
and eax, 3
push edi
mov edi, edx
je 0x2968ec
cmp eax, dword [ebp + 0x10]
jg 0x2968ec
sub dword [ebp + 0x10], eax
mov dword [ebp - 4], eax
movzx eax, byte [edi]
dec dword [ebp - 4]
shl eax, 0x18
shr ecx, 8
or ecx, eax
inc edi
inc esi
cmp esi, 4
jne 0x2968e6
imul ecx, ecx, 0xcc9e2d51
rol ecx, 0xf
imul ecx, ecx, 0x1b873593
xor ebx, ecx
rol ebx, 0xd
imul ebx, ebx, 5
add ebx, 0xe6546b64
xor esi, esi
cmp dword [ebp - 4], 0
jne 0x2968b2
mov eax, dword [ebp + 0x10]
cdq
and edx, 3
add eax, edx
and eax, 0xfffffffc
lea edx, [eax + edi]
mov dword [ebp - 4], edx
cmp edi, edx
jae 0x296929
mov edx, dword [edi]
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor ebx, edx
rol ebx, 0xd
imul ebx, ebx, 5
add edi, 4
add ebx, 0xe6546b64
cmp edi, dword [ebp - 4]
jb 0x296902
mov edx, dword [ebp + 0x10]
sub edx, eax
je 0x296966
movzx eax, byte [edi]
shl eax, 0x18
shr ecx, 8
dec edx
or ecx, eax
inc edi
inc esi
cmp esi, 4
jne 0x296962
imul ecx, ecx, 0xcc9e2d51
rol ecx, 0xf
imul ecx, ecx, 0x1b873593
xor ebx, ecx
rol ebx, 0xd
imul ebx, ebx, 5
add ebx, 0xe6546b64
xor esi, esi
test edx, edx
jne 0x296930
mov eax, dword [ebp + 8]
and ecx, 0xffffff00
pop edi
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
or ecx, esi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret

Function at 0x29697d
Capabilities:
Hash data using murmur3

Disassembly:
mov edx, eax
and edx, 3
push esi
mov esi, ecx
je 0x2969a2
push 4
pop ecx
sub ecx, edx
shl ecx, 3
shr eax, cl
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
xor esi, dword [esp + 8]
mov eax, esi
shr eax, 0x10
xor eax, esi
imul eax, eax, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop esi
ret

Function at 0x29877f
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0029a3e1
pop ecx
pop ecx
test al, al
je 0x298834
push 0x10
push dword [ebp + 0x10]
call fcn.0029a408
pop ecx
pop ecx
test al, al
je 0x298834
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
lea esi, [ebp - 0x64]
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call fcn.0029801d
lea eax, [ebp - 0x54]
push eax
push 8
pop edx
lea ecx, [ebp - 0xc]
call fcn.0029874a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x54]
shr ecx, 3
push 0x38
and ecx, 0x3f
pop eax
cmp ecx, eax
jb 0x298805
push 0x78
pop eax
sub eax, ecx
push 0x415ba0
lea esi, [ebp - 0x64]
call fcn.0029801d
lea eax, [ebp - 0xc]
push eax
push 8
pop eax
call fcn.0029801d
mov ecx, dword [ebp + 0x10]
mov eax, esi
push eax
push 0x10
pop edx
call fcn.0029874a
xor esi, esi
add esp, 0xc
inc esi
mov eax, esi
pop esi
leave
ret
Function at 0x29a11b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call dword [0x411124]
mov esi, dword [ebp + 0x10]
xor edx, edx
mov ebx, eax
cmp esi, edx
je 0x29a150
xor eax, eax
cmp dword [ebp + 0x14], edx
jbe 0x29a150
movzx edi, byte [edx + esi]
mov ecx, eax
shl ecx, 3
shl edi, cl
xor ebx, edi
inc edx
inc eax
and eax, 3
cmp edx, dword [ebp + 0x14]
jb 0x29a139
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x29a16a
mov eax, ebx
call fcn.00299d17
mov byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x29a15a
push edi
mov edi, dword [ebp + 0xc]
call fcn.00299208
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x29a324
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push esi
mov esi, eax
push edi
push esi
call fcn.0029a3e1
pop ecx
pop ecx
test al, al
jne 0x29a338
xor eax, eax
pop esi
ret
mov eax, edi
shr eax, 2
xor edx, edx
lea ecx, [esi + eax*4]
neg eax
je 0x29a369
mov esi, dword [ecx + eax*4]
imul esi, esi, 0xcc9e2d51
rol esi, 0xf
imul esi, esi, 0x1b873593
xor edx, esi
rol edx, 0xd
imul edx, edx, 5
add edx, 0xe6546b64
inc eax
jne 0x29a346
mov eax, edi
and eax, 3
xor esi, esi
dec eax
je 0x29a389
dec eax
je 0x29a380
dec eax
jne 0x29a39f
movzx esi, byte [ecx + 2]
shl esi, 0x10
movzx eax, byte [ecx + 1]
shl eax, 8
xor esi, eax
movzx eax, byte [ecx]
xor eax, esi
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, edi
mov eax, edx
shr eax, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop esi
ret

Function at 0x29db4e
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [0x435f68], 1
push ebx
push ebp
push esi
push edi
jne 0x29dbf6
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x1c], eax
jle 0x29dbf6
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax*8]
mov esi, dword [edx + 4]
xor edi, edi
or edi, dword [edx]
xor ecx, ecx
or esi, ecx
mov ebp, edi
mov ecx, edi
mov ebx, esi
shld ebp, ebx, 0x10
mov eax, esi
shrd eax, ecx, 0x10
shld edi, esi, 0x10
shl ebx, 0x10
xor eax, ebx
shr ecx, 0x10
xor ecx, ebp
shl esi, 0x10
mov ebx, 0xffff
and eax, ebx
and ecx, ebx
xor eax, esi
xor ecx, edi
mov esi, eax
mov ebx, eax
mov ebp, ecx
shld ebp, esi, 8
mov edi, ecx
shrd ebx, edi, 8
shl esi, 8
xor ebx, esi
shr edi, 8
shld ecx, eax, 8
xor edi, ebp
mov esi, 0xff00ff
shl eax, 8
and ebx, esi
xor ebx, eax
mov eax, dword [esp + 0x10]
and edi, esi
xor edi, ecx
inc eax
mov dword [edx], ebx
mov dword [edx + 4], edi
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
jl 0x29db70
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x29dbfc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x29dd0e
push ebx
push esi
mov ecx, eax
xor esi, esi
xor edx, edx
and ecx, 7
je 0x29dc31
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx esi, bl
shr eax, 3
mov dword [ebp - 8], eax
lea eax, [edi + 7]
shr eax, 3
xor edi, edi
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x29dd0c
lea ecx, [eax - 1]
cmp edi, ecx
je 0x29dc66
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [edi + ecx]
shl esi, 8
xor cx, si
movzx esi, cx
add edx, 8
jmp 0x29dc96
mov ecx, dword [ebp + 0x10]
and ecx, 7
mov dword [ebp - 4], 8
je 0x29dc78
mov dword [ebp - 4], ecx
mov ebx, dword [ebp + 0xc]
mov bl, byte [edi + ebx]
mov cl, 8
sub cl, byte [ebp - 4]
shr bl, cl
mov ecx, dword [ebp - 4]
shl si, cl
movzx ebx, bl
or bx, si
movzx esi, bx
add edx, ecx
xor ebx, ebx
lea ecx, [eax - 1]
cmp edi, ecx
setne bl
mov dword [ebp - 0xc], ebx
xor ecx, ecx
cmp edx, 8
setge cl
test dword [ebp - 0xc], ecx
jne 0x29dcc5
xor ebx, ebx
lea ecx, [eax - 1]
cmp edi, ecx
sete bl
xor ecx, ecx
test edx, edx
setg cl
test ecx, ebx
je 0x29dd03
push 8
pop eax
mov dword [ebp - 4], eax
cmp edx, eax
jg 0x29dcd2
mov dword [ebp - 4], edx
mov cl, dl
sub cl, byte [ebp - 4]
mov ebx, esi
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 4]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 4]
sar eax, cl
mov ecx, dword [ebp - 8]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 8]
sub edx, dword [ebp - 4]
mov byte [ecx + eax], bl
mov eax, dword [ebp - 0x10]
jmp 0x29dca3
inc edi
cmp edi, eax
jl 0x29dc4a
pop esi
pop ebx
pop edi
leave
ret
Function at 0x29fc01
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
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 0x29fc32
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x29fc39
cmp ebx, dword [ebp + 8]
jae 0x29fc39
xor eax, eax
jmp 0x29fe1f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x29fc4a
xor eax, eax
inc eax
jmp 0x29fe1e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x29fc5c
cmp ecx, edx
jae 0x29fcc0
cmp dword [eax + 4], 0
je 0x29fc65
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x29fc51
cmp dword [ebp + 8], 0
je 0x29fc7f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x29fcc0
cmp eax, esi
jae 0x29fcc0
mov ecx, dword [0x435f90]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x29fca1
cmp dword [eax*4 + 0x435f98], esi
je 0x29fcc7
inc eax
cmp eax, ecx
jl 0x29fc93
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call fcn.0029fe2a
test eax, eax
jl 0x29fd37
mov eax, dword [ebp + 8]
jmp 0x29fd39
xor eax, eax
jmp 0x29fe1e
test eax, eax
jle 0x29fc42
xor edx, edx
mov ebx, 0x435fd8
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x29fc42
cmp dword [eax*4 + 0x435f98], esi
je 0x29fd16
lea eax, [ecx - 1]
test eax, eax
jl 0x29fd03
cmp dword [eax*4 + 0x435f98], esi
je 0x29fcff
dec eax
jns 0x29fcf3
test eax, eax
jge 0x29fd14
cmp ecx, 0x10
jge 0x29fd0f
inc ecx
mov dword [0x435f90], ecx
lea eax, [ecx - 1]
jmp 0x29fd16
je 0x29fd2e
xor edx, edx
test eax, eax
jl 0x29fd2e
lea ecx, [edx*4 + 0x435f98]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x29fd1c
xor eax, eax
xchg dword [ebx], eax
jmp 0x29fc42
xor eax, eax
test eax, eax
je 0x29fe1c
cmp dword [ebp - 8], 0x1000000
jne 0x29fe1c
test byte [ebp - 0xc], 0xcc
je 0x29fdae
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x29fe1c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x29fe1c
cmp word [eax + 0x18], 0x10b
jne 0x29fe1c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x29fe1c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x29fdae
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x29fdae
test byte [ecx + 0x27], 0x80
jne 0x29fcc0
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x435fd8
xchg dword [edx], ecx
test ecx, ecx
jne 0x29fe1e
mov ecx, dword [0x435f90]
test ecx, ecx
mov edx, ecx
jle 0x29fddd
lea eax, [ecx*4 + 0x435f94]
cmp dword [eax], esi
je 0x29fddd
dec edx
sub eax, 4
test edx, edx
jg 0x29fdd1
test edx, edx
jne 0x29fe0e
push 0xf
pop ebx
cmp ecx, ebx
jg 0x29fdea
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x29fe02
lea eax, [edx*4 + 0x435f98]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x29fdf0
cmp ecx, 0x10
jge 0x29fe0e
inc ecx
mov dword [0x435f90], ecx
xor eax, eax
mov ecx, 0x435fd8
xchg dword [ecx], eax
jmp 0x29fc42
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010c0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x42e618]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ecx, ecx
mov al, 1
push edi
lea ebx, [ebx]
movzx edx, al
mov byte [ebp + edx - 0x104], cl
mov dl, al
and dl, 0x80
mov byte [ebp + ecx - 0x204], al
inc ecx
neg dl
sbb dl, dl
mov bl, al
and dl, 0x1b
add bl, bl
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x4010e0
mov al, 1
mov ecx, 0x45e240
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
and dl, 0x1b
add al, al
xor al, dl
cmp ecx, 0x45e268
jl 0x401115
mov dword [0x45d640], 0x63
mov dword [0x46080c], 0
mov edx, 1
jmp 0x401160
movzx eax, byte [ebp + edx - 0x104]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x45d640], eax
mov dword [eax*4 + 0x460680], edx
inc edx
cmp edx, 0x100
jl 0x401160
xor ecx, ecx
mov dl, byte [ecx + 0x45d640]
mov al, dl
and al, 0x80
neg al
sbb al, al
and al, 0x1b
mov bl, dl
add bl, bl
xor al, bl
movzx esi, al
movzx edx, dl
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x460280], eax
ror eax, 8
mov dword [ecx + 0x45fe80], eax
ror eax, 8
mov dword [ecx + 0x45fa80], eax
ror eax, 8
mov dword [ecx + 0x45f680], eax
mov al, byte [ecx + 0x460680]
test al, al
je 0x40126f
movzx edx, al
movzx esi, byte [ebp + edx - 0x104]
movzx eax, byte [ebp - 0xf9]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [ebp + edx - 0x204]
mov dword [ebp - 0x208], eax
movzx eax, byte [ebp - 0xf7]
add eax, esi
cdq
idiv edi
movzx eax, byte [ebp - 0xfb]
add eax, esi
movzx ebx, byte [ebp + edx - 0x204]
cdq
idiv edi
movzx eax, byte [ebp - 0xf6]
add eax, esi
mov esi, 0xff
movzx edi, byte [ebp + edx - 0x204]
cdq
idiv esi
movzx eax, byte [ebp + edx - 0x204]
mov edx, dword [ebp - 0x208]
jmp 0x401277
xor edx, edx
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, edx
mov dword [ecx + 0x45f280], eax
ror eax, 8
mov dword [ecx + 0x45ee80], eax
ror eax, 8
mov dword [ecx + 0x45de40], eax
ror eax, 8
mov dword [ecx + 0x45da40], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4011a2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413998
mov esp, ebp
pop ebp
ret
Function at 0x405ee0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42b8d0
push 0x419dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x42e618]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x405f7b
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x405f61
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x28]
jmp 0x405f7b
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00413998
mov esp, ebp
pop ebp
ret

Function at 0x405fa0
Capabilities:
Get session user name
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42ba10
push 0x419dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x42e618]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
xor esi, esi
mov dword [ebp - 4], eax
mov byte [ebp - 0x120], al
push 0x103
push eax
lea eax, [ebp - 0x11f]
push eax
call fcn.004159d0
add esp, 0xc
mov dword [ebp - 0x12c], 0x104
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x40607d
mov edx, 6
mov dword [ebp - 0x130], edx
lea ecx, [ebp - 0x120]
or eax, 0xffffffff
mov dword [ebp - 0x124], ecx
mov esi, edx
dec edx
mov dword [ebp - 0x130], edx
test esi, esi
je 0x40605c
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42a1c8]
inc ecx
jmp 0x406031
not eax
xor ecx, ecx
cmp eax, 0x39b5d60d
sete cl
mov esi, ecx
jmp 0x406077
mov dword [ebp - 0x128], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00413998
mov esp, ebp
pop ebp
ret
Function at 0x406ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x45b440
call fcn.004123cb
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x406f54
test esi, esi
jne 0x406f54
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x406f38
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406f32
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406f32
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x406f21
cmp esi, eax
jae 0x406f25
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406f13
cmp esi, eax
jb 0x406f29
xor eax, eax
jmp 0x406f32
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x406f5d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x45b440
call fcn.004123cb
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x406ec5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407078
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4070aa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4070a6
cmp esi, eax
jae 0x4070aa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407098
cmp esi, eax
jb 0x4070b0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x40a620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42689b
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x42e618]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x38]
push 0x45ac98
xor ebx, ebx
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x48], ecx
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.0040c800
add esp, 8
mov edi, dword [ebp - 0x38]
cmp dword [edi - 0xc], ebx
je 0x40a778
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
lea ebx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040c410
mov edi, dword [ebp - 0x44]
test eax, eax
jne 0x40a76b
test edi, edi
je 0x40a776
lea eax, [ebp - 0xf0]
push eax
call fcn.0040ac90
lea ecx, [ebp - 0xe0]
push ecx
mov byte [ebp - 4], 3
call fcn.0040bea0
mov edx, dword [ebp - 0x48]
add esp, 4
push edx
push eax
call fcn.0040c150
add esp, 8
push eax
call fcn.0040bea0
add esp, 4
lea esi, [ebp - 0x30]
lea eax, [ebp - 0xf0]
call fcn.0040ad30
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
cmp esi, 8
jae 0x40a6f7
lea eax, [ebp - 0x30]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a700
mov ecx, dword [ebp - 0x30]
sub eax, edx
sar eax, 1
cmp esi, 8
jae 0x40a71a
lea ecx, [ebp - 0x30]
lea eax, [eax + eax + 2]
push eax
push ecx
mov ecx, dword [ebp - 0x34]
push 2
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x1c], 8
jb 0x40a748
mov edx, dword [ebp - 0x30]
push edx
call fcn.0041398d
add esp, 4
xor eax, eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 2
call fcn.0040a7d0
test edi, edi
je 0x40a776
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a7ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a7ac
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413998
mov esp, ebp
pop ebp
ret
Function at 0x40b9e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4262bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42e618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x42a6f4
call fcn.00413524
push 4
mov dword [ebp - 4], 0
call fcn.00413e77
mov edi, eax
add esp, 4
test edi, edi
je 0x40ba5c
call fcn.00412bb4
mov dword [edi], eax
call fcn.00412973
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004128a8
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40ba52
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004128d0
jmp 0x40ba5e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
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 0x40c4d0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x42e618]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x40
lea eax, [ebp - 0x66c]
push 0
push eax
call fcn.004159d0
xor eax, eax
xor edx, edx
push 0x206
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x620], eax
xor ecx, ecx
push edx
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x670], 0x44
mov word [ebp - 0x640], cx
mov dword [ebp - 0x62c], ecx
mov word [ebp - 0x20c], dx
call fcn.004159d0
add esp, 0x18
push 0
push 0x25
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x42a7f8
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
xor ecx, ecx
push 0x40e
push ecx
lea edx, [ebp - 0x61a]
push edx
mov word [ebp - 0x61c], cx
call fcn.004159d0
push esi
lea eax, [ebp - 0x20c]
push eax
push str.__s__start___s_
lea ecx, [ebp - 0x61c]
push 0x208
push ecx
call fcn.004143d1
add esp, 0x20
lea edx, [ebp - 0x62c]
push edx
lea eax, [ebp - 0x670]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413998
mov esp, ebp
pop ebp
ret