joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x402cf2
jl 0x402ce5
test ecx, ecx
jne 0x402cf2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402db2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004040b0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402d5e
jg 0x402d1d
test esi, esi
je 0x402d5e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x402d35
mov eax, dword [esp + 0x10]
jl 0x402d2f
cmp eax, esi
jae 0x402d35
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040a080
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x402d7f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x402d9b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x402d04
jl 0x402d9b
test ecx, ecx
jne 0x402d04
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x402df6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x402df6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0040a080
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x402e67
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x402e1c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x402e52
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0040e17f
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x402e67
cmp edi, eax
ja 0x402e30
test edi, edi
je 0x402e67
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0040e17f
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov byte [ebp - 0xd], 0
mov eax, 1
cpuid
shr ecx, 0x1f
mov byte [ebp - 0xd], cl
lea eax, [ebp - 0xc]
mov dword [0x42de3c], 0
push eax
push 0x20119
push 0
xorps xmm0, xmm0
mov byte [0x42de40], 0
push str.SOFTWAREMicrosoftCryptography
push 0x80000002
movups xmmword [0x42de1c], xmm0
mov dword [ebp - 8], 0x25
movups xmmword [0x42de2c], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop ebx
test eax, eax
jne 0x4072d7
lea eax, [ebp - 8]
push eax
push 0x42de1c
push 0
push 0xffff
push str.MachineGUID
push 0x428fd8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004072f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a16
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4083b8
Capabilities:
Parse pe header

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

Function at 0x40d476
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004209a0
mov eax, dword [0x42c004]
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.00413942
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40d4b8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x40d614
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004208f0
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 + 0x42d9c0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00413b52
mov ecx, dword [esi*4 + 0x42d9c0]
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 0x40d60d
cmp eax, dword [edi + ecx + 0x24]
jne 0x40d60d
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 0x40d60d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413b52
add esp, 0x14
test edx, edx
jl 0x40d60d
jg 0x40d583
test eax, eax
jb 0x40d60d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x40d60d
jl 0x40d59d
cmp dword [ebp - 0x1008], eax
ja 0x40d60d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x40d5bb
test ebx, ebx
je 0x40d5f4
cmp ecx, edi
jae 0x40d5f4
mov al, byte [ecx]
cmp al, 0xd
jne 0x40d5d5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40d5e1
cmp byte [ecx + 1], 0xa
jne 0x40d5e1
inc ecx
jmp 0x40d5e1
movzx eax, al
movsx eax, byte [eax + 0x42c2a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40d5bb
cmp edx, ebx
jne 0x40d5bb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x40d612
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407a16
leave
ret
Function at 0x4141f7
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 + 0x42d9c0]
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 0x414237
cmp byte [ebx], 0xa
jne 0x414237
or byte [eax + edi + 0x28], 4
jmp 0x41423c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41433a
mov al, byte [edx]
cmp al, 0x1a
je 0x41431c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41426b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x414290
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41429a
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 0x41424d
jmp 0x41433a
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 0x414317
cmp dword [ebp - 0xc], 0
je 0x414317
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42d9c0]
test byte [eax + edi + 0x28], 0x48
je 0x4142f1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4142dc
mov byte [esi], dl
jmp 0x4142ed
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42d9c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41433a
cmp byte [ebp - 1], 0xa
jne 0x414300
cmp esi, ebx
jne 0x414300
mov byte [esi], 0xa
jmp 0x414339
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413b70
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41433a
mov byte [esi], 0xd
jmp 0x414339
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42d9c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414336
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41433a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414343
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 + 0x42d9c0]
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 0x414386
cmp word [esi], dx
jne 0x414386
or byte [edi + eax + 0x28], 4
jmp 0x41438b
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 0x4144c4
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 0x4144a4
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4143cd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414403
cmp eax, edx
jae 0x41440f
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 0x4143a5
jmp 0x4144c4
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 0x4144a0
cmp dword [ebp - 0x14], 0
je 0x4144a0
mov eax, dword [ebx*4 + 0x42d9c0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x414478
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4144be
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42d9c0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x42d9c0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42d9c0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4144c1
pop ebx
cmp word [ebp - 4], bx
jne 0x414489
cmp esi, dword [ebp + 0xc]
jne 0x414489
mov word [esi], bx
jmp 0x4144c1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00413b70
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4144c4
push 0xd
jmp 0x4144bd
mov ecx, dword [ebx*4 + 0x42d9c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4144bb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4144c4
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 0x416909
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004165a4

Function at 0x416914
Capabilities:
Read file on windows

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

Function at 0x416ec0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425400
push 0x4253f8
push str.FlsAlloc
push 0x1e
call fcn.00416d8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416ef4
push dword [ebp + 8]
mov ecx, esi
call dword [0x422184]
call esi
jmp 0x416efa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x416f3e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425410
push 0x425408
push str.FlsGetValue
push 0x20
call fcn.00416d8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416f75
push dword [ebp + 8]
mov ecx, esi
call dword [0x422184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4193c6
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 0x419463
push ebx
push esi
call fcn.0041938f
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.004192d8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x419410
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419462
push edi
push eax
call fcn.0041691f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x419430
call fcn.00414d48
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419461
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004192d8
add esp, 0x20
test eax, eax
jne 0x41944f
push edi
call fcn.00414d48
jmp 0x419457
push ebx
call fcn.00414d48
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 0x41f305
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.0041f281
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41f47d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41f47d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41f42c
jg 0x41f35e
test eax, eax
je 0x41f422
push 1
push 0x1000
call fcn.00416a8c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41f384
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x41f419
push 0x8000
push ebx
call fcn.0041054d
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 0x41f3b0
jg 0x41f3ab
cmp ecx, 0x1000
jb 0x41f3b0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00415a82
add esp, 0x10
cmp eax, 0xffffffff
je 0x41f3f5
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 0x41f3ab
jl 0x41f3dc
test ecx, ecx
jne 0x41f39d
push dword [ebp - 0xc]
push ebx
call fcn.0041054d
push esi
call fcn.00414d48
add esp, 0xc
xor edi, edi
jmp 0x41f48e
cmp byte [edi + 0x24], 0
je 0x41f40c
cmp dword [edi + 0x20], 5
jne 0x41f40c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41f417
mov edi, dword [edi + 0x18]
jmp 0x41f419
xor edi, edi
push esi
call fcn.00414d48
pop ecx
jmp 0x41f48e
test ecx, ecx
jg 0x41f3ee
jl 0x41f42c
test eax, eax
jae 0x41f3ee
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413b70
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41f44f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41f3ee
jmp 0x41f486
push ebx
call fcn.00419861
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41f3ee
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 0x41f48e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41f48b
mov edi, dword [edi + 0x18]
jmp 0x41f48e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00413b70
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4208b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4208dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4208dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4057e2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x4057f1
pop dword [ebp - 0x24]
mov eax, 0xd546578c
sub eax, 0xd505ff9b
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x50a7e
push 0
mov eax, 0xc5ed750c
sub eax, 0xc5a8c25c
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x492e
mov edx, eax
mov edi, 0x293e72ad
sub edi, 0x28f714ad
add edi, dword [ebp - 0x24]
mov esi, 0xee0133f7
sub esi, 0x5c0f8052
xor dword [ebp - 0x10], eax
mov ebx, dword [edi]
xor dword [ebp - 0xc], ecx
xor ebx, esi
xor dword [ebp - 0x18], 0xbedb0cc1
mov dword [edx], ebx
add edx, 0x285534dd
sub edx, 0x285534d9
add edi, 0x37407dc7
sub edi, 0x37407dc3
loop 0x40584a
add eax, 0x4e23a0a4
sub eax, 0x4e228919
mov ebx, eax
add eax, 0xa2fba30b
add eax, 0x5d045cfa
mov ecx, 0x5c721706
add ecx, 0xa3cde8fa
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x25543920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x2554b014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x255439b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x25543998
xor eax, eax
push ebp
push 0x25543991
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x255439d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x25543998
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x2554b014]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x2554b014], ax
mov esp, ebp
pop ebp
ret
Function at 0x25544dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call fcn.25541108
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x25545000
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x25544e53
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x25545000
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x25544e53
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x2554501c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x25544edc
xor eax, eax
push ebp
push 0x25544ed5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.25544c0c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x25544eba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x2554503c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x25544eba
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x25544edc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call fcn.25541140
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call fcn.25541128
push eax
call fcn.25541100
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x25544ff6
cmp byte [ebp - 0xd], 0
jne 0x25544f23
cmp byte [ebp - 0x12], 0
je 0x25544ff6
lea eax, [ebp - 0x11d]
push eax
call fcn.25541148
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x25544f3c
dec ebx
cmp byte [ebx], 0x2e
je 0x25544f4b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x25544f3b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x25544ff6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x25544f88
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call fcn.25541140
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.25541130
mov esi, eax
test esi, esi
jne 0x25544ff6
cmp byte [ebp - 0xd], 0
je 0x25544ff6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call fcn.25541140
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.25541130
mov esi, eax
test esi, esi
jne 0x25544ff6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call fcn.25541140
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.25541130
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret