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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x4028b1
pop dword [ebp - 0x24]
mov eax, 0xc8fd8a59
add eax, 0x37429e58
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xb09496a8
sub dword [ebp - 0x34], 0x6242515d
mov dword [ebp - 0x30], 0x96a5da7a
add dword [ebp - 0x30], 0x9b8d71cb
mov dword [ebp - 0x2c], 0x52610c2e
sub dword [ebp - 0x2c], 0x614c800
mov dword [ebp - 0x28], 0x95e91a1
sub dword [ebp - 0x28], 0x95e91a1
lea eax, [ebp - 0x34]
push eax
mov eax, 0xacf0de7
add eax, 0xf5716235
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x98363892
sub dword [ebp - 0x34], 0x23c3cf3c
mov dword [ebp - 0x30], 0x6940b578
add dword [ebp - 0x30], 0xd82babfd
mov dword [ebp - 0x2c], 0xf6356c72
add dword [ebp - 0x2c], 0x6d39fffa
mov dword [ebp - 0x28], 0x4aea3f2c
sub dword [ebp - 0x28], 0x4aea3f2c
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x398b4
push 0
call eax
mov ecx, 0xa64be06f
sub ecx, 0xa64b911f
xor edi, edi
add edi, eax
mov edx, 0x40c800
add edx, dword [ebp - 0x24]
mov esi, 0xcd658004
sub esi, 0xa3c48e58
xor dword [ebp - 4], 0x2bfc8cbe
mov ebx, dword [edx]
sub dword [ebp - 0x20], ebx
sub ebx, esi
sub dword [ebp - 0x10], 0xafba9ae3
mov dword [edi], ebx
sub dword [ebp - 4], ebx
add edi, 0x169abbc5
sub edi, 0x169abbc1
add edx, 0x633c4df0
sub edx, 0x633c4dec
loop 0x4029ca
add eax, 0xcf125214
sub eax, 0xcf112201
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x4045aa
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4068f8
call fcn.0040545b
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x4045c9
mov al, 1
jmp 0x404692
test esi, esi
je 0x404690
xor ebx, ebx
cmp word [esi], bx
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404690
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004028a2
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x404684
lea eax, [ebp - 0x28]
push eax
call fcn.004028a2
pop ecx
test al, al
jne 0x404684
cmp dword [ebp - 0x18], esi
jbe 0x404684
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404684
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x404684
push 0x407628
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401780
mov al, bl
jmp 0x404692
xor al, al
call fcn.00405416
ret
Function at 0x413b60
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call esi
test eax, eax
jne 0x413ba0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x413b8d
xor al, al
pop esi
pop ecx
ret
push 8
push 1
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call esi
test eax, eax
je 0x413b88
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push ebx
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov edx, dword [esp + 8]
push 0
test eax, eax
push edx
setne bl
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop ebx
pop esi
pop ecx
ret

Function at 0x413f70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x413f9c
push esi
jmp 0x413f80
movsx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x532288]
dec ecx
inc edx
test ecx, ecx
jne 0x413f80
pop esi
not eax
ret

Function at 0x413fa0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x54
mov eax, dword [0x530790]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
push esi
push edi
mov edi, edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 8]
lea eax, [esp + 0x18]
call fcn.004167e0
mov esi, dword [esp + 0x60]
lea edx, [esp + 0x18]
mov eax, edx
xor ecx, ecx
sub esi, edx
sub edi, eax
lea ebx, [ebx]
lea eax, [esp + ecx + 0x18]
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc ecx
cmp ecx, 0x30
mov byte [edi + eax], dl
jl 0x413ff0
mov ecx, dword [esp + 0x58]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004cd040
add esp, 0x54
ret

Function at 0x414080
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov ebx, eax
push edi
mov ecx, 0x20
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov edx, 0x511078
sub edx, ebx
lea esi, [ecx + 0x1f]
mov edi, dword [edx + eax]
add edi, dword [eax]
add eax, 4
add ecx, edi
movzx edi, cl
mov dword [eax - 4], edi
shr ecx, 8
sub esi, 1
jne 0x4140a5
sub ecx, 0xffffff80
add dword [ebx + 0x7c], ecx
mov edx, dword [ebx + 0x7c]
shr edx, 7
and edx, 1
lea edi, [esp + 0x10]
lea ebp, [esp + 0x14]
neg edx
xor ecx, ecx
sub edi, ebx
lea eax, [ebx + 8]
sub ebp, ebx
nop
mov esi, dword [eax - 8]
mov ebx, dword [esp + ecx*4 + 0x10]
xor ebx, esi
and ebx, edx
xor ebx, esi
mov esi, dword [eax - 4]
mov dword [eax - 8], ebx
mov ebx, dword [esp + ecx*4 + 0x14]
xor ebx, esi
and ebx, edx
xor ebx, esi
mov esi, dword [eax]
mov dword [eax - 4], ebx
mov ebx, dword [edi + eax]
xor ebx, esi
and ebx, edx
xor ebx, esi
mov esi, dword [eax + 4]
mov dword [eax], ebx
mov ebx, dword [eax + ebp]
xor ebx, esi
and ebx, edx
xor ebx, esi
mov dword [eax + 4], ebx
add ecx, 4
add eax, 0x10
cmp ecx, 0x20
jb 0x4140e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
Function at 0x414d40
Capabilities:
Encrypt data using curve25519

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x530790]
xor eax, esp
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x1a8]
push 0x20
push eax
lea ecx, [esp + 0x188]
push ecx
call fcn.004cf990
mov dl, byte [esp + 0x1ab]
and byte [esp + 0x18c], 0xf8
and dl, 0x3f
or dl, 0x40
add esp, 0xc
mov byte [esp + 0x19f], dl
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + edi]
mov dword [esp + eax*4], ecx
inc eax
cmp eax, 0x20
jb 0x414d90
lea edx, [esp + 0x180]
push edx
lea eax, [esp + 4]
push eax
call fcn.004144b0
lea ecx, [esp + 0x88]
push ecx
mov eax, ecx
call fcn.00414950
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x110]
push eax
lea edx, [esp + 0x14]
call fcn.00414140
add esp, 0x14
lea eax, [esp + 0x100]
call fcn.00414080
xor eax, eax
jmp 0x414df0
mov cl, byte [esp + eax*4 + 0x100]
mov byte [esi + eax], cl
inc eax
cmp eax, 0x20
jb 0x414df0
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
xor eax, eax
call fcn.004cd040
add esp, 0x1a4
ret

Function at 0x414e20
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x48], edx
xor edx, edx
mov esi, 0x511020
mov dword [esp + 0x4c], ecx
mov ecx, eax
sub esi, eax
lea edi, [edx + 0x11]
lea ebx, [ebx]
mov ebx, dword [esi + ecx]
add ebx, dword [ecx]
add ecx, 4
add edx, ebx
movzx ebx, dl
mov dword [ecx - 4], ebx
shr edx, 8
sub edi, 1
jne 0x414eb0
mov edx, dword [eax + 0x40]
shr edx, 7
lea esi, [esp + 0xc]
neg edx
sub esi, eax
mov edi, 0x11
jmp 0x414ee0
mov ecx, dword [eax]
mov ebx, dword [esi + eax]
xor ebx, ecx
and ebx, edx
xor ebx, ecx
mov dword [eax], ebx
add eax, 4
sub edi, 1
jne 0x414ee0
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x415890
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x415a2e
test eax, eax
je 0x415a2e
mov dword [eax + 0xf0], 0xa
mov ecx, dword [esi]
push edi
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax], edx
mov edx, dword [esi + 4]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 4], edi
mov edx, dword [esi + 8]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 8], edi
mov edx, dword [esi + 0xc]
lea ecx, [eax + 4]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov dword [eax + 0xc], esi
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x50f6f8]
xor edx, 0x1000000
mov edi, esi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x50faf8]
and edi, 0xff0000
and edx, 0xff000000
xor edx, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi*4 + 0x50f2f8]
xor edx, edi
mov edi, esi
and edi, 0xff
mov edi, dword [edi*4 + 0x50eef8]
and edi, 0xff00
xor edx, edi
xor edx, dword [eax]
mov edi, dword [ecx]
xor edi, edx
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
xor edx, edi
mov dword [eax + 0x18], edx
xor edx, esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], edx
mov esi, 0x510ffc
jmp 0x4159a0
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov eax, edx
shr eax, 8
mov edi, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x50faf8]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x50f6f8]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x50eef8]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x50f2f8]
xor eax, edi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx - 4]
add esi, 4
xor eax, dword [esi - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
mov dword [ecx + 0x18], edx
cmp esi, 0x511020
jne 0x4159a0
pop edi
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x415a40
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, ebx
call fcn.00415890
test eax, eax
jl 0x415c78
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x415aad
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea esp, [esp]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x415a70
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x415c74
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x50f2f8]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x50f2f8]
and esi, 0xff
mov esi, dword [esi*4 + 0x50fef8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5106f8]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x50f2f8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x510af8]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x50f2f8]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x5102f8]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x50f2f8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x50f2f8]
and esi, 0xff
mov esi, dword [esi*4 + 0x50fef8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5106f8]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x50f2f8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5102f8]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x50f2f8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x510af8]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x50f2f8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x50f2f8]
and esi, 0xff
mov esi, dword [esi*4 + 0x50fef8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5106f8]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x50f2f8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5102f8]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x50f2f8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x510af8]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x50f2f8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x50f2f8]
and esi, 0xff
mov esi, dword [esi*4 + 0x50fef8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5106f8]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x50f2f8]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x50f2f8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5102f8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x510af8]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x415ac1
pop edi
xor eax, eax
pop esi
ret
Function at 0x4171e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4f9b4d
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x530790]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov eax, dword [0x530790]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x534ab0]
mov edx, dword [eax + 0xc]
mov ecx, 0x534ab0
call edx
add eax, 0x10
mov dword [esp + 8], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
mov dword [esp + 0x230], ebx
push ecx
mov word [esp + 0x20], ax
call fcn.004ccbe0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4172e8
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417270
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
call fcn.00418c90
push 0x208
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.004ccbe0
mov eax, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0
push 0x511808
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4172e8
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4172c4
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call fcn.00418c90
lea eax, [esp + 8]
jmp 0x417314
mov edx, dword [0x534ab0]
mov eax, dword [edx + 0xc]
mov ecx, 0x534ab0
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov ebx, 1
mov byte [esp + 0x228], 1
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004199a0
add eax, 0x10
or ebx, 2
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x228], 0
test bl, 1
je 0x41735a
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41735a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x228], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417385
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004cd040
add esp, 0x224
ret
Function at 0x418f60
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 0x418f79
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x418fb4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x418fb0
lea ebx, [ebx]
cmp esi, eax
jae 0x418fb4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x418fa0
cmp esi, eax
jb 0x418fba
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 0x41b5a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
jne 0x41b5ac
xor al, al
ret
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp dword [0x532228], esi
je 0x41b5f5
test esi, esi
je 0x41b5f5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x41b5e6
cmp dword [0x532228], esi
je 0x41b5e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
cmp dword [0x532228], esi
je 0x41b5f5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
ret
Function at 0x41b910
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x870
mov eax, dword [0x530790]
xor eax, esp
mov dword [esp + 0x86c], eax
push ebx
mov ebx, dword [esp + 0x87c]
push esi
mov esi, dword [esp + 0x87c]
push edi
xor edi, edi
cmp esi, edi
jne 0x41b955
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x86c]
xor ecx, esp
call fcn.004cd040
add esp, 0x870
ret
push 0x400
push esi
call fcn.004cecfb
add esp, 8
cmp eax, 0x400
jge 0x41b93b
push 0x800
lea ecx, [esp + 0x7a]
xor eax, eax
push edi
push ecx
mov word [esp + 0x80], ax
call fcn.004ccbe0
push 0x400
push esi
lea edx, [esp + 0x88]
push 0x401
push edx
call fcn.004cf56c
add esp, 0x1c
lea eax, [esp + 0x14]
push eax
push 0x8b
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, edi
je 0x41bacb
mov edx, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x10]
push ecx
push 1
push 2
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, edi
je 0x41baa5
lea eax, [esp + 0x14]
push eax
push str.S_1_16_8192
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov esi, eax
cmp esi, edi
je 0x41baa5
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edi
push eax
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edx, dword [esp + 0x10]
add eax, 8
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x19
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, edi
je 0x41baa5
xor eax, eax
push 0x40
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], edi
call fcn.004ccbe0
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edx
push ebx
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x98]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x41ba9a
push eax
call ebp
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x41baa5
push eax
call ebp
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x41bab4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x41babf
push eax
call ebp
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x41baca
push eax
call ebp
pop ebp
mov ecx, dword [esp + 0x878]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004cd040
add esp, 0x870
ret
Function at 0x41baf0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4fa4b1
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x530790]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x530790]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov byte [esp + 0x17], bl
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], ax
push 0x206
lea edx, [esp + 0x56]
xor ecx, ecx
push ebx
mov dword [esp + 0x26c], ebx
push edx
mov word [esp + 0x5c], cx
call fcn.004ccbe0
add esp, 0xc
lea eax, [esp + 0x50]
push eax
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41bbbf
lea eax, [esp + 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41bb80
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0041c0c0
cmp dword [esp + 0x48], ebx
jne 0x41bbbf
cmp dword [esp + 0x4c], 8
jb 0x41bbb8
mov edx, dword [esp + 0x38]
push edx
call fcn.004ccb07
add esp, 4
xor al, al
jmp 0x41bcc0
call fcn.0041d1a0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, 8
test al, al
jne 0x41bbe2
call fcn.0041d2e0
test al, al
je 0x41bc4d
push 0x511ab4
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0041cae0
add esp, 0xc
mov byte [esp + 0x264], 1
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x41bc0f
lea eax, [esp + 0x1c]
push eax
call esi
cmp eax, ebx
je 0x41bc2d
push str.SetProcessDpiAwareness
push eax
call edi
cmp eax, ebx
je 0x41bc2d
push 1
call eax
test eax, eax
sete byte [esp + 0x17]
mov byte [esp + 0x264], bl
cmp dword [esp + 0x30], ebp
jb 0x41bc47
mov edx, dword [esp + 0x1c]
push edx
call fcn.004ccb07
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x41bca9
push str.User32.dll
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0041cae0
add esp, 0xc
mov byte [esp + 0x264], 2
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x41bc7a
lea eax, [esp + 0x1c]
push eax
call esi
cmp eax, ebx
je 0x41bc96
push str.SetProcessDPIAware
push eax
call edi
cmp eax, ebx
je 0x41bc96
call eax
test eax, eax
setne byte [esp + 0x17]
cmp dword [esp + 0x30], ebp
jb 0x41bca9
mov edx, dword [esp + 0x1c]
push edx
call fcn.004ccb07
add esp, 4
cmp dword [esp + 0x4c], ebp
jb 0x41bcbc
mov eax, dword [esp + 0x38]
push eax
call fcn.004ccb07
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.004cd040
add esp, 0x254
ret