joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423f75
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43e010]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x423fc0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00424114
test al, al
jne 0x423fba
sub edx, 2
cmp edx, edi
jne 0x423fa0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x423fe2
lea eax, [edi + 2]
cmp edx, eax
je 0x423fe2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00423ec1
add esp, 0x10
jmp 0x4240dc
push esi
lea ecx, [ebp - 0x255]
call fcn.00424114
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x424025
push dword [ebp - 0x25c]
jmp 0x423fd2
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x424062
cmp word [ebp - 0x226], 0
je 0x424083
cmp word [ebp - 0x226], ax
jne 0x424062
cmp word [ebp - 0x224], 0
je 0x424083
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00423ec1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4240cf
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42403c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4240b7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4240dc
push 0x423cf1
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00426dd0
add esp, 0x10
jmp 0x4240ac
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d3d1
leave
ret
Function at 0x429bb0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c4
call fcn.00404c30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
xor esi, esi
mov edx, eax
mov ecx, esi
shr edx, 7
add esi, 2
and dl, al
shr ecx, 5
xor dl, cl
mov byte [ebp + eax - 0x3a988], dl
inc eax
cmp esi, 0x75300
jb 0x402926
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00403f89
mov esp, ebp
pop ebp
ret
Function at 0x402fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.00404c30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov cl, al
mov edx, eax
and cl, 0x38
shr edx, 7
movsx ecx, cl
movsx edx, dl
imul edx, ecx
mov ecx, eax
shr ecx, 8
and cl, al
xor dl, cl
mov byte [ebp + eax - 0x3a988], dl
inc eax
cmp eax, 0x3a980
jb 0x403053
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403f89
mov esp, ebp
pop ebp
ret
Function at 0x403130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.00404c30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov cl, al
mov edx, eax
add cl, cl
shr edx, 7
and dl, cl
mov ecx, eax
shr ecx, 8
and cl, al
xor dl, cl
mov ecx, eax
shr ecx, 3
or dl, cl
mov byte [ebp + eax - 0x3a988], dl
inc eax
cmp eax, 0x3a980
jb 0x4031b3
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403f89
mov esp, ebp
pop ebp
ret
Function at 0x403400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50c40
call fcn.00404c30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x50c20], 0
push eax
push eax
push eax
mov word [ebp - 0x50c0c], ax
lea eax, [ebp - 0x50c1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50c20]
mov dword [ebp - 0x50c1c], 0x10001
push eax
mov dword [ebp - 0x50c18], 0x2b11
mov dword [ebp - 0x50c14], 0x2b11
mov dword [ebp - 0x50c10], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x50bfe
lea eax, [ebp - 0x50c08]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov edx, eax
mov ecx, eax
shr edx, 9
shr ecx, 8
and dl, cl
movsx ecx, al
inc dl
movsx edx, dl
imul edx, ecx
and dl, 0x80
xor dl, al
mov byte [ebp + eax - 0x50c08], dl
inc eax
cmp eax, 0x50bfe
jb 0x403483
lea eax, [ebp - 0x50c08]
mov dword [ebp - 0x50c3c], 0x50bfe
mov dword [ebp - 0x50c40], eax
lea eax, [ebp - 0x50c40]
push 0x20
push eax
push dword [ebp - 0x50c20]
mov dword [ebp - 0x50c38], 0
mov dword [ebp - 0x50c34], 0
mov dword [ebp - 0x50c30], 0
mov dword [ebp - 0x50c2c], 0
mov dword [ebp - 0x50c28], 0
mov dword [ebp - 0x50c24], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403f89
mov esp, ebp
pop ebp
ret
Function at 0x4047b9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4047f8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4047f8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4047f8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4047f8
cmp dword [ecx + 0x74], 0xe
jbe 0x4047f8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401080
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ebx, ebx
xor ebx, esi
mov ebx, esi
xor esi, ebx
xor esi, ebx
xor esi, ebx
mov eax, ebx
xor eax, esi
xor esi, esi
rcr esi, 0x90
dec edi
rol edx, 0x85
neg ebx
rcl edx, 0x4f
mov ebx, 0x20
rcr esi, 0xff
sub ebx, 0x9d
neg edi
neg eax
sub eax, 0xbc
dec ebx
dec edi
bswap eax
ror esi, 0xf3
rol esi, 0xba
or eax, 0x8a
ror edi, 0xca
and eax, 0x1e
mov esi, 0x57
neg esi
sub edx, 0x6c
sub ebx, 0x68
inc eax
bswap ebx
inc eax
sub eax, 0x61
neg esi
neg edi
mov edi, 0xfd
neg esi
sub esi, 0xb7
imul edx
add ebx, 0x88
not eax
dec ebx
inc edi
or esi, 0xdd
imul eax
neg edi
dec esi
ror edi, 0x29
inc edi
inc edx
dec edx
ror eax, 0xd1
sub ebx, 0x50
not edi
inc esi
rcl edi, 0xef
xor ecx, ecx
xor edi, edi
xor ebx, esi
xor eax, esi
mov eax, ebx
xor esi, eax
mov eax, esi
mov eax, ebx
ror eax, 0xe0
dec eax
rcl edx, 0x72
add eax, 9
neg edi
not edx
imul eax
rcr esi, 0x40
imul ebx
rcl ebx, 0x93
not eax
bswap esi
rcr ebx, 0x74
ror eax, 0x7a
sbb ebx, 0xd5
rcr ebx, 0xfb
rcr edx, 0x31
inc esi
dec eax
not edi
bswap esi
sbb edi, 0x5d
rcr eax, 0x65
inc edx
dec eax
rol esi, 0xcf
dec edi
inc edi
mov edi, 0x74
ror edi, 0xe5
sub edx, 0x5d
rol eax, 0x88
dec ebx
dec eax
sub eax, 9
sbb ebx, 0xec
dec esi
rol edi, 0xd3
imul eax
inc edx
inc ebx
rol eax, 0xd7
ror ebx, 0xd2
rcl edx, 0xd7
sbb esi, 0xed
sub esi, 0x61
not edx
ror eax, 3
rcl edi, 0x5e
imul edi
mov eax, ebx
mov ebx, eax
xor eax, eax
mov eax, esi
mov esi, eax
xor ebx, eax
mov esi, eax
xor ebx, esi
xor ebx, eax
mov ecx, dword [ebp + 0xc]
sbb esi, 0x31
rol edx, 0x49
rcl esi, 0xfa
inc ebx
inc eax
dec esi
bswap eax
ror esi, 9
rcl eax, 0x82
neg edi
inc ebx
bswap eax
add esi, 0xcc
rol esi, 0x4b
neg esi
rcr edx, 0x65
and edi, 0xaa
inc eax
not ebx
rcl edx, 0x98
sbb edi, 3
sbb esi, 9
imul ebx
rcl edx, 0x23
mov esi, 0xce
or eax, 0x5f
ror edx, 0x98
add edx, 0xce
add eax, 0x2b
imul esi
sbb edi, 0x15
rcl edx, 0x8a
mov esi, 0x6f
ror edx, 0xf9
imul edx
bswap edi
neg esi
rcr esi, 0x14
add eax, 0x88
imul eax
ror ebx, 0xbc
bswap edi
neg eax
bswap edi
sbb eax, 0x32
mov ebx, 0x6f
rcr ebx, 0x72
rcl edx, 0x1d
bswap eax
inc eax
mov edi, dword [ebp + 8]
xor eax, eax
xor esi, esi
mov ebx, eax
mov ebx, ebx
xor ebx, esi
xor esi, eax
mov ebx, ebx
xor esi, esi
xor ebx, eax
not byte [edi]
xor esi, ebx
xor ebx, eax
xor esi, esi
xor ebx, ebx
xor ebx, eax
xor esi, eax
mov ebx, esi
xor esi, eax
mov eax, ebx
xor eax, eax
mov eax, esi
mov esi, ebx
sub byte [edi], 0xf1
add byte [edi], 0x63
xor eax, esi
xor ebx, esi
xor esi, esi
xor eax, esi
xor esi, esi
mov eax, esi
xor eax, eax
mov ebx, esi
mov eax, esi
imul byte [edi]
inc edi
loop 0x40125c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40a9d3
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 0x40aa70
push ebx
push esi
call fcn.0040a99c
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.0040a930
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40aa1d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40aa6f
push edi
push eax
call fcn.0040b5f1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40aa3d
call fcn.00409491
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40aa6e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a930
add esp, 0x20
test eax, eax
jne 0x40aa5c
push edi
call fcn.00409491
jmp 0x40aa64
push ebx
call fcn.00409491
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 0x40bd6e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x446568
push 0x446560
push str.FlsAlloc
push 0x1f
call fcn.0040bc2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40bda2
push dword [ebp + 8]
mov ecx, esi
call dword [0x415160]
call esi
jmp 0x40bda8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40bdec
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x446578
push 0x446570
push str.FlsGetValue
push 0x21
call fcn.0040bc2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40be23
push dword [ebp + 8]
mov ecx, esi
call dword [0x415160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40be2b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x446580
push 0x446578
push str.FlsSetValue
push 0x22
call fcn.0040bc2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40be65
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x415160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x401a6c
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], str.SoftwareMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyA_12
sub esp, 0xc
test eax, eax
setne al
test al, al
je 0x401aa6
mov eax, 0
jmp 0x401b1d
mov ecx, dword [ebp + 8]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::size___const
mov edx, eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
test eax, eax
setne al
test al, al
je 0x401b0a
mov eax, 0
jmp 0x401b1d
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, 1
leave
ret

Function at 0x402b68
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x4c], al
lea eax, [ebp - 9]
mov ecx, eax
call fcn.0041b7a8
mov dword [esp], 0x4252b5
call sym._getenv
mov ecx, eax
lea eax, [ebp - 0x24]
lea edx, [ebp - 9]
mov dword [esp + 4], edx
mov dword [esp], ecx
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 9]
mov ecx, eax
call sym.std::allocator_char_::allocator__
lea eax, [ebp - 0x3c]
mov dword [esp + 8], 0x4252bd
lea edx, [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
cmp byte [ebp - 0x4c], 0
je 0x402bd5
mov edx, 0x4252cc
jmp 0x402bda
mov edx, 0x4252ce
mov eax, dword [ebp + 8]
mov dword [esp + 8], edx
lea edx, [ebp - 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
nop
lea eax, [ebp - 0x3c]
mov ecx, eax
call fcn.0041b6a0
lea eax, [ebp - 0x24]
mov ecx, eax
call fcn.0041b6a0
jmp 0x402c41
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x402c49
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CreateDirectoryA_8
sub esp, 8
test eax, eax
jne 0x402c7a
call sym._GetLastError_0
cmp eax, 0xb7
jne 0x402c81
mov eax, 1
jmp 0x402c86
mov eax, 0
leave
ret

Function at 0x402de4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov dword [esp], eax
call sym._GetFileAttributesA_4
sub esp, 4
mov dword [ebp - 0xc], eax
call sym._GetLastError_0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jne 0x402e15
mov eax, 0
jmp 0x402e1a
mov eax, 1
leave
ret

Function at 0x40440b
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 1
mov ecx, 0x42e080
call method.Timer.Start_bool_
sub esp, 4
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], method.KeyboardHook.MyKeyboardProc_int__unsigned_int__long_
mov dword [esp], 0xd
call sym._SetWindowsHookExA_16
sub esp, 0x10
mov dword [0x42e0b0], eax
mov eax, dword [0x42e0b0]
test eax, eax
setne al
leave
ret
Function at 0x418ec6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x74
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x38]
mov dword [esp + 4], 0xea60
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetExitCodeProcess_8
sub esp, 8
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp eax, 0x103
jne 0x418f40
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x38]
mov dword [esp + 4], 0x64
mov dword [esp], eax
call sym._TerminateProcess_8
sub esp, 8
cmp byte [ebp - 9], 0
je 0x419010
lea eax, [ebp - 0x25]
mov ecx, eax
call fcn.0041b7a8
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x25]
mov dword [esp + 4], edx
mov dword [esp], str.sm.ps1
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x24]
mov dword [esp + 4], 1
mov dword [esp], eax
call method.IO.GetTargetLogsDirPath_abi:cxx11__bool_
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x40]
mov dword [esp + 8], edx
lea edx, [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____std::__cxx11::basi
lea eax, [ebp - 0x58]
mov dword [esp], eax
call method.IO.DeleteFileA_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea eax, [ebp - 0x58]
mov ecx, eax
call fcn.0041b6a0
lea eax, [ebp - 0x24]
mov ecx, eax
call fcn.0041b6a0
lea eax, [ebp - 0x40]
mov ecx, eax
call fcn.0041b6a0
lea eax, [ebp - 0x25]
mov ecx, eax
call sym.std::allocator_char_::allocator__
jmp 0x419010
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x41aaf1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xdc
call method.ExeMigration.CreateMigrationScript__
xor eax, 1
test al, al
je 0x41ab13
mov ebx, 0
jmp 0x41ac4b
lea eax, [ebp - 0x34]
mov dword [esp], eax
call method.IO.GetCurDir_abi:cxx11___
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x34]
mov dword [esp + 8], edx
mov dword [esp + 4], str._ExecutionPolicy_Bypass__File__
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____char_const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea eax, [ebp - 0x64]
mov dword [esp + 8], 0x426b4f
lea edx, [ebp - 0x4c]
mov dword [esp + 4], edx
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____char_const_
lea eax, [ebp - 0x7c]
mov dword [esp + 8], 0x42e15c
lea edx, [ebp - 0x64]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std::allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea eax, [ebp - 0x94]
mov dword [esp + 8], 0x426c14
lea edx, [ebp - 0x7c]
mov dword [esp + 4], edx
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____char_const_
lea eax, [ebp - 0x7c]
mov ecx, eax
call fcn.0041b6a0
lea eax, [ebp - 0x64]
mov ecx, eax
call fcn.0041b6a0
lea eax, [ebp - 0x4c]
mov ecx, eax
call fcn.0041b6a0
lea eax, [ebp - 0x34]
mov ecx, eax
call fcn.0041b6a0
lea edx, [ebp - 0xd0]
mov eax, 0
mov ecx, 0xf
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xd0], 0x3c
mov dword [ebp - 0xcc], 0x40
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], str.open
mov dword [ebp - 0xc0], str.powershell
lea eax, [ebp - 0x94]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb4], 0
lea eax, [ebp - 0xd0]
mov dword [esp], eax
call sym._ShellExecuteExA_4
sub esp, 4
lea eax, [ebp - 0x94]
mov ecx, eax
call fcn.0041b6a0
mov ebx, 1
mov eax, ebx
jmp 0x41acd4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret