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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov ax, word [0x446574]
mov word [esp + 2], ax
push ebx
mov ebx, edx
mov dword [esp + 8], ebx
push esi
mov esi, ecx
push edi
test ah, ah
je 0x408772
xor ebx, ebx
mov eax, 0x3521cfb3
mov cl, bl
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul eax, eax, 0x35
sub cl, al
add cl, 0x35
xor byte [esp + ebx + 0xe], cl
inc ebx
cmp ebx, 2
jl 0x408745
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0xe]
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
lea edx, [ecx + 1]
mov dword [esp + 0x2c], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408791
sub ecx, edx
lea eax, [esp + 0xe]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00403ce0
push ecx
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call fcn.00412840
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
cmp edx, 0x10
jb 0x4087f0
mov ecx, dword [esp + 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4087e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40892f
push edx
push ecx
call fcn.0041c138
add esp, 8
mov ax, word [0x4460ac]
mov word [esp + 0xe], ax
test ah, ah
je 0x40882e
xor ebx, ebx
mov eax, 0x3521cfb3
mov cl, bl
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul eax, eax, 0x35
sub cl, al
add cl, 0x35
xor byte [esp + ebx + 0xe], cl
inc ebx
cmp ebx, 2
jl 0x408801
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0xe]
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
lea edx, [ecx + 1]
mov dword [esp + 0x2c], 0xf
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408850
sub ecx, edx
lea eax, [esp + 0xe]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00403ce0
push ecx
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call fcn.00412840
mov edx, dword [esp + 0x2c]
mov edi, eax
cmp edx, 0x10
jb 0x4088ad
mov ecx, dword [esp + 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4088a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40892f
push edx
push ecx
call fcn.0041c138
add esp, 8
mov edx, dword [esp + 0x14]
cmp edx, 0xffffffff
je 0x408904
cmp edi, 0xffffffff
je 0x408904
cmp edi, edx
jbe 0x408904
lea ecx, [edx + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov eax, dword [ebx + 0x10]
cmp eax, ecx
jb 0x408934
sub edi, edx
sub eax, ecx
dec edi
cmp eax, edi
cmovb edi, eax
cmp dword [ebx + 0x14], 0x10
jb 0x4088ef
mov ebx, dword [ebx]
lea eax, [ebx + ecx]
mov ecx, esi
push edi
push eax
call fcn.00403ce0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x4458bb
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.00403ce0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00421c52
call fcn.004042a0
int3
Function at 0x408b30
Capabilities:
Create process on windows
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x408b41
mov esi, dword [esi]
mov eax, dword [str.ZFRV9]
xor ecx, ecx
mov dword [ebp - 5], eax
mov al, byte [0x445f08]
mov byte [ebp - 1], al
mov eax, 0x3521cfb3
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
mov dl, cl
shr eax, 5
movsx eax, al
imul eax, eax, 0x35
sub dl, al
add dl, 0x35
xor byte [ebp + ecx - 5], dl
inc ecx
cmp ecx, 5
jl 0x408b53
push 1
push 0
push 0
push esi
lea eax, [ebp - 5]
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408ba0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
lea eax, [ebp - 0x54]
mov esi, ecx
push 0
push eax
call fcn.0041e930
add esp, 0xc
or dword [ebp - 0x28], 1
xor eax, eax
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x24], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x408c14
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408e00
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
mov eax, ecx
mov ebx, edx
push esi
mov esi, eax
mov dword [ebp - 4], eax
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x408e18
sub esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 1]
push eax
call fcn.0041c3ba
mov edi, ebx
mov dword [ebp - 8], eax
add esp, 4
lea eax, [edi + 1]
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x408e38
sub edi, eax
lea eax, [ebp - 0x214]
push edi
push ebx
push eax
call fcn.0041d490
add esp, 0xc
xor ecx, ecx
mov eax, ecx
mov byte [ebp + ecx - 0x114], cl
cdq
idiv edi
mov al, byte [ebp + edx - 0x214]
mov byte [ebp + ecx - 0x314], al
inc ecx
cmp ecx, 0x100
jl 0x408e54
xor ebx, ebx
xor edi, edi
nop dword [eax + eax]
mov dl, byte [ebp + edi - 0x114]
movzx eax, byte [ebp + edi - 0x314]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x408ea6
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [ebp + ebx - 0x114]
mov byte [ebp + edi - 0x114], al
inc edi
mov byte [ebp + ebx - 0x114], dl
cmp edi, 0x100
jl 0x408e80
xor edi, edi
test esi, esi
jle 0x408f5a
mov ebx, dword [ebp - 8]
sub dword [ebp - 4], ebx
xor ebx, ebx
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 8]
nop dword [eax]
inc edi
and edi, 0x800000ff
jns 0x408ef1
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [ebp + edi - 0x114]
movzx edx, cl
add ebx, edx
and ebx, 0x800000ff
jns 0x408f0d
dec ebx
or ebx, 0xffffff00
inc ebx
movzx eax, byte [ebp + ebx - 0x114]
mov byte [ebp + edi - 0x114], al
mov byte [ebp + ebx - 0x114], cl
movzx eax, byte [ebp + edi - 0x114]
mov ecx, dword [ebp - 4]
add eax, edx
movzx eax, al
movzx eax, byte [ebp + eax - 0x114]
xor al, byte [ecx + esi]
mov byte [esi], al
inc esi
sub dword [ebp - 0xc], 1
jne 0x408ee0
mov ebx, dword [ebp - 8]
mov eax, ebx
mov esi, dword [ebp - 0x14]
pop edi
mov byte [ebx + esi], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
mov byte [eax + esi], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4156c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x4156f1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4156e0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x41a670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x104
cmp dword [eax + 0x14], 0x10
push esi
mov esi, ecx
jb 0x41a687
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
push 0x20019
push 0
push eax
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a6d7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xff
cmp dword [eax + 0x14], 0x10
jb 0x41a6b1
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push 0
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
test eax, eax
je 0x41a700
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
mov ecx, esi
push 0
mov dword [esi + 0x10], 0
push 0x4458bb
mov dword [esi + 0x14], 0xf
call fcn.00403ce0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x104]
mov dword [esi], 0
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a723
sub ecx, edx
lea eax, [ebp - 0x104]
push ecx
push eax
mov ecx, esi
call fcn.00403ce0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41a750
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edx + 0x14], 0x10
jb 0x41a75c
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 2
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a7a8
mov eax, dword [ebp + 0xc]
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x41a77e
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0x10
jb 0x41a789
mov ecx, dword [ecx]
push dword [eax + 0x10]
push edx
push 1
push 0
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
test eax, eax
je 0x41a7ae
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x42a57b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042a3ec

Function at 0x42aa17
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e360
push 0x43e358
push str.FlsAlloc
push 0x1e
call fcn.0042a884
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42aa4b
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a204]
call esi
jmp 0x42aa51
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42aa95
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e370
push 0x43e368
push str.FlsGetValue
push 0x20
call fcn.0042a884
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42aacc
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a204]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42b32c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041ce70
mov eax, dword [0x44a050]
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.00428962
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42b36e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42b4ca
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004395b0
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 + 0x44bbc8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042c127
mov ecx, dword [esi*4 + 0x44bbc8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x42b4c3
cmp eax, dword [edi + ecx + 0x24]
jne 0x42b4c3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b4c3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042c127
add esp, 0x14
test edx, edx
jl 0x42b4c3
jg 0x42b439
test eax, eax
jb 0x42b4c3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42b4c3
jl 0x42b453
cmp dword [ebp - 0x1008], eax
ja 0x42b4c3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42b471
test ebx, ebx
je 0x42b4aa
cmp ecx, edi
jae 0x42b4aa
mov al, byte [ecx]
cmp al, 0xd
jne 0x42b48b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42b497
cmp byte [ecx + 1], 0xa
jne 0x42b497
inc ecx
jmp 0x42b497
movzx eax, al
movsx eax, byte [eax + 0x44a2d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42b471
cmp edx, ebx
jne 0x42b471
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42b4c8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041c614
leave
ret
Function at 0x42b5c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x44bbc8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42b605
cmp byte [ebx], 0xa
jne 0x42b605
or byte [eax + edi + 0x28], 4
jmp 0x42b60a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42b708
mov al, byte [edx]
cmp al, 0x1a
je 0x42b6ea
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42b639
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42b65e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42b668
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x42b61b
jmp 0x42b708
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b6e5
cmp dword [ebp - 0xc], 0
je 0x42b6e5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x44bbc8]
test byte [eax + edi + 0x28], 0x48
je 0x42b6bf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42b6aa
mov byte [esi], dl
jmp 0x42b6bb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44bbc8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42b708
cmp byte [ebp - 1], 0xa
jne 0x42b6ce
cmp esi, ebx
jne 0x42b6ce
mov byte [esi], 0xa
jmp 0x42b707
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042c145
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42b708
mov byte [esi], 0xd
jmp 0x42b707
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x44bbc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42b704
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42b708
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42b711
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x44bbc8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42b754
cmp word [esi], dx
jne 0x42b754
or byte [edi + eax + 0x28], 4
jmp 0x42b759
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x42b8ac
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x42b88c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42b79b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42b7d1
cmp eax, edx
jae 0x42b7dd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x42b773
jmp 0x42b8ac
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b888
cmp dword [ebp - 0x14], 0
je 0x42b888
mov eax, dword [ebx*4 + 0x44bbc8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42b860
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42b829
mov word [esi], cx
jmp 0x42b85c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x44bbc8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x44bbc8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x44bbc8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42b8ac
pop ebx
cmp word [ebp - 4], bx
jne 0x42b871
cmp esi, dword [ebp + 0xc]
jne 0x42b871
mov word [esi], bx
jmp 0x42b8a9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042c145
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42b8ac
push 0xd
jmp 0x42b8a5
mov ecx, dword [ebx*4 + 0x44bbc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42b8a3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42b8ac
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4317b7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x431854
push ebx
push esi
call fcn.00431780
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00430561
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x431801
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431853
push edi
push eax
call fcn.0042c530
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x431821
call fcn.0042a008
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431852
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00430561
add esp, 0x20
test eax, eax
jne 0x431840
push edi
call fcn.0042a008
jmp 0x431848
push ebx
call fcn.0042a008
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x438e8e
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00438e0a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x439006
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x439006
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x438fb5
jg 0x438ee7
test eax, eax
je 0x438fab
push 1
push 0x1000
call fcn.0042a586
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x438f0d
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x438fa2
push 0x8000
push ebx
call fcn.00426f60
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x438f39
jg 0x438f34
cmp ecx, 0x1000
jb 0x438f39
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00429e08
add esp, 0x10
cmp eax, 0xffffffff
je 0x438f7e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x438f34
jl 0x438f65
test ecx, ecx
jne 0x438f26
push dword [ebp - 0xc]
push ebx
call fcn.00426f60
push esi
call fcn.0042a008
add esp, 0xc
xor edi, edi
jmp 0x439017
cmp byte [edi + 0x24], 0
je 0x438f95
cmp dword [edi + 0x20], 5
jne 0x438f95
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x438fa0
mov edi, dword [edi + 0x18]
jmp 0x438fa2
xor edi, edi
push esi
call fcn.0042a008
pop ecx
jmp 0x439017
test ecx, ecx
jg 0x438f77
jl 0x438fb5
test eax, eax
jae 0x438f77
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042c145
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x438fd8
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x438f77
jmp 0x43900f
push ebx
call fcn.00432226
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x438f77
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x439017
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x439014
mov edi, dword [edi + 0x18]
jmp 0x439017
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042c145
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010c0
Capabilities:
Acquire debug privileges
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020fd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x403138
call section..text
mov ecx, str.SeBackupPrivilege
call section..text
mov ecx, str.SeRestorePrivilege
call section..text
cmp dword [ebp + 8], 2
jne 0x401276
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
test eax, eax
je 0x401276
xor edx, edx
cmp dx, word [eax]
je 0x401276
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
sete bl
jne 0x40114e
push str.D:_workpctranscodeCredentialToolmain.cpp
push 0x2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
jmp 0x401286
push str.SystemDecrypt.dll
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.euLogPct.dll_dbgPut]
test eax, eax
je 0x40117b
push str.CreateSystemDecrypt
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4011a8
call eax
mov esi, eax
jmp 0x4011a8
push str.fsclog.dll
push str.SystemDecrypt.dll
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x4011a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SystemDecrypt.dll
push str.Loadd__S_err_u
call edi
add esp, 0xc
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [ebp - 4], 0
test esi, esi
sete bl
test esi, esi
jne 0x4011eb
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_workpctranscodeCredentialToolmain.cpp
push 0x2d
call eax
push eax
push ebx
push str.B_c0x_X__e_d__l_d___S
call edi
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov ecx, esi
mov eax, dword [esi]
push 0
push 7
push str.Pctrans
push dword [ebx + 4]
mov eax, dword [eax + 0x24]
push 0
call eax
push dword [ebx + 4]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x401254
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_workpctranscodeCredentialToolmain.cpp
push 0x30
call eax
push eax
push ebx
push str.B_c0x_X__e_d__l_d___S
call edi
add esp, 0x14
mov dword [ebp - 4], 2
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 3
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.D:_workpctranscodeCredentialToolmain.cpp
push 0x2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push str.B_c0x_X__e_d__l_d___S
call dword [sym.imp.euLogPct.dll_dbgPut]
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b01
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b40
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b40
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b40
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b40
cmp dword [ecx + 0x74], 0xe
jbe 0x401b40
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret