joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b1a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x42b288
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x46bba8], 1
jae 0x42b27a
xor eax, eax
mov dword [0x46b7b4], eax
xor eax, eax
mov dword [0x46b7bc], eax
xor eax, eax
mov dword [0x46b7c0], eax
mov byte [0x46b7c6], 2
mov byte [0x46b7c7], 2
mov byte [0x46b7c8], 3
mov word [0x46bb70], 0
mov word [0x46bb80], 1
mov word [0x46bb90], 0xa
mov dword [0x46bb98], 0x80020004
mov dword [0x46bb64], 0x42a3a0
mov dword [0x46bb68], 0x42a398
mov dword [0x46bb6c], 0x42a3a0
call fcn.00428c4c
test al, al
je 0x42b239
call fcn.00428c7c
call fcn.00428d40
mov eax, 0x46b7cc
mov edx, 0x42b294
call fcn.004266ae
mov eax, 0x46b998
mov edx, 0x42b294
call fcn.004266ae
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x46b7ac], eax
call fcn.004275c4
mov dword [0x46b7a8], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x46b7a0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b28f
ret
Function at 0x42d3f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0042e6e4
test byte [ebp + 0xd], 0xc0
jne 0x42d418
mov eax, dword [0x467ab4]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x42d425
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x42d452
je 0x42d464
sub ecx, 0x100
je 0x42d472
sub ecx, 0x100
je 0x42d479
sub ecx, 0x100
je 0x42d46b
jmp 0x42d480
sub ecx, 0x600
je 0x42d479
sub ecx, 0x100
je 0x42d464
jmp 0x42d480
mov edi, 1
jmp 0x42d485
mov edi, 2
jmp 0x42d485
mov edi, 4
jmp 0x42d485
mov edi, 5
jmp 0x42d485
mov edi, 3
test byte [ebp + 0xd], 1
je 0x42d4ac
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x46752c]
test al, 0x80
je 0x42d4a5
mov ebx, 0x80
jmp 0x42d4be
mov ebx, 1
jmp 0x42d4be
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x42d4be
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x42d4d0
je 0x42d4d9
dec eax
je 0x42d4e2
jmp 0x42d4eb
mov dword [ebp - 4], Ordinal_1
jmp 0x42d4fa
mov dword [ebp - 4], 0x40000000
jmp 0x42d4fa
mov dword [ebp - 4], 0xc0000000
jmp 0x42d4fa
push 1
call fcn.0042eadc
pop ecx
mov ebx, eax
jmp 0x42d5e6
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x42d516
sub eax, 0x10
je 0x42d51d
sub eax, 0x10
je 0x42d526
sub eax, 0x10
je 0x42d52f
jmp 0x42d52f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x42d536
mov dword [ebp - 8], 1
jmp 0x42d536
mov dword [ebp - 8], 2
jmp 0x42d536
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x42d59f
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x42d594
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x42d594
add ebx, 0xffffffb2
push ebx
call fcn.0042eadc
pop ecx
mov ebx, eax
jmp 0x42d5e6
mov edi, esi
push edi
call fcn.0042d358
pop ecx
test eax, eax
je 0x42d5b3
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x42d5bf
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0042e804
add esp, 8
mov ebx, eax
inc eax
jne 0x42d5e6
push 4
call fcn.0042eadc
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0042e718
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d8f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
cmp dword [ebp + 0xc], 1
mov esi, dword [ebp + 8]
jne 0x42d91b
lea eax, [ebp + 0x10]
add eax, 4
mov ebx, dword [eax - 4]
push ebx
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x42d92f
call fcn.0042eb48
jmp 0x42d931
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x42d92f
call fcn.0042eb48
jmp 0x42d931
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x42e46c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.0042b7bc
pop ecx
mov ebx, eax
test eax, eax
jne 0x42e490
xor eax, eax
jmp 0x42e539
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x42e4b1
cmp esi, 0x104
jb 0x42e4bc
push ebx
call fcn.0042b7cc
pop ecx
xor eax, eax
jmp 0x42e539
cmp byte [ebx + 1], 0x3a
jne 0x42e4ec
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x42e4ec
push ebx
call fcn.0042b7cc
pop ecx
xor eax, eax
jmp 0x42e539
inc esi
test edi, edi
je 0x42e52f
cmp esi, dword [ebp + 0x10]
jbe 0x42e501
push ebx
call fcn.0042b7cc
pop ecx
xor eax, eax
jmp 0x42e539
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0042b7cc
pop ecx
mov eax, edi
jmp 0x42e539
push esi
push ebx
call fcn.0042b7dc
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x42e5a0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x42e5e6
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x42e5d4
cmp eax, dword [ebp + 0x10]
jle 0x42e66f
call fcn.00432e90
mov dword [eax], 8
xor eax, eax
jmp 0x42e6dc
cmp dword [0x46c49c], 1
jne 0x42e62b
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x42e66f
xor eax, eax
jmp 0x42e6dc
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x42e66b
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x42e66f
xor eax, eax
jmp 0x42e6dc
lea edx, [ebp - 0x10c]
push edx
call fcn.0042bda0
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x42e690
call fcn.00432e90
mov dword [eax], 0x22
xor eax, eax
jmp 0x42e6dc
test edi, edi
jne 0x42e6b3
mov edx, dword [ebp + 0x10]
push edx
call fcn.0042b7bc
pop ecx
mov edi, eax
test eax, eax
jne 0x42e6b3
call fcn.00432e90
mov dword [eax], 8
xor eax, eax
jmp 0x42e6dc
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432e28
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x432e8a
call fcn.00432dd8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0042bda0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0042bda0
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x432f08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x468b64], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x432fe2
cmp dword [0x468b60], 0
jne 0x432fe2
cmp dword [0x468cec], 0
je 0x432f9c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00432cb8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x432f82
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00432cb8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x432f82
lea ebx, [ebp - 0x84]
jmp 0x432f83
inc ebx
call fcn.00432ec4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x43301d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x468b68
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0042bda0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x468b6b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x43301d
cmp dword [0x468b60], 0
je 0x432ffc
cmp dword [0x468b60], 0xffffffff
je 0x43301d
push esi
call dword [0x468b60]
pop ecx
mov eax, dword [0x468b64]
test eax, eax
je 0x43301d
cmp dword [0x468b64], 0xffffffff
je 0x43301d
cmp byte [eax], 0
je 0x43301d
push esi
push eax
call fcn.00432e28
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4336ac
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x46c4a8], 0
jne 0x43372d
cmp dword [0x46c4cc], 0
jne 0x4336dc
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x46c4cc], eax
test eax, eax
jne 0x4336dc
push str.GetEnvironmentStrings_failed
call fcn.00433034
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x46c4cc]
jmp 0x4336f0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0042bda0
pop ecx
mov edi, eax
test eax, eax
jne 0x4336e8
lea edi, [ebp + 1]
push edi
call fcn.0042b7bc
pop ecx
mov ebx, eax
mov dword [0x46c4ac], ebx
test ebx, ebx
jne 0x43371a
xor eax, eax
jmp 0x4337f0
push edi
mov edx, dword [0x46c4cc]
push edx
push ebx
call fcn.0042bc50
add esp, 0xc
jmp 0x43374d
xor esi, esi
mov ebx, dword [0x46c4a8]
jmp 0x433747
push eax
call fcn.0042bda0
pop ecx
test eax, eax
jne 0x433743
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x433737
lea ebx, [esi + 4]
push 4
mov dword [0x46c4b0], ebx
inc ebx
push ebx
call fcn.0042b298
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x433770
xor eax, eax
jmp 0x4337f0
cmp dword [0x46c4a8], 0
jne 0x4337a1
xor esi, esi
mov ebx, dword [0x46c4ac]
mov eax, dword [esp]
mov ebp, eax
jmp 0x433792
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0042bda0
pop ecx
mov edi, eax
test eax, eax
jne 0x433788
jmp 0x4337d2
xor esi, esi
mov ebx, dword [0x46c4a8]
mov eax, dword [esp]
mov edi, eax
jmp 0x4337cc
push eax
call fcn.0042bda0
pop ecx
test eax, eax
je 0x4337c1
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4337c5
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4337b0
mov eax, dword [0x46c4a8]
test eax, eax
je 0x4337e2
push eax
call fcn.0042b7cc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x46c4a8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x433d3c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x433dc2
mov eax, dword [0x46c500]
inc dword [0x46c500]
test eax, eax
jne 0x433dc2
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x46c4cc], eax
mov edx, dword [ebp + 0x10]
mov dword [0x439267], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.0042de04
pop ecx
cmp dword [0x468bc8], 0
je 0x433dad
call fcn.00433bc0
mov ebx, eax
test eax, eax
je 0x433dad
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x433dad
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x433dc2
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x468bc8], eax
call fcn.00433bc8
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.00433ed0
mov ebx, eax
test edi, edi
jne 0x433e31
test edi, edi
jne 0x433e02
dec dword [0x46c500]
jne 0x433e02
cmp dword [0x46c4cc], 0
je 0x433e02
mov eax, dword [0x46c4cc]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x46c4cc], edx
cmp dword [0x46c500], 0
jne 0x433e31
cmp dword [0x468bc8], 0
jne 0x433e31
cmp dword [0x468bb8], 0
je 0x433e23
call dword [0x468bb8]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.00433bc8
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x403e59
pop dword [ebp - 0x50]
mov eax, 0x8ca614a8
sub eax, 0x8c65d64f
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xb5f63a84
sub dword [ebp - 0x60], 0x67a3f539
mov dword [ebp - 0x5c], 0xec1ce7ab
sub dword [ebp - 0x5c], 0xb9e99b66
mov dword [ebp - 0x58], 0x9d15b456
add dword [ebp - 0x58], 0xaf368fd8
mov dword [ebp - 0x54], 0x353b7ff6
sub dword [ebp - 0x54], 0x353b7ff6
lea eax, [ebp - 0x60]
push eax
mov eax, 0xfa026a3f
sub eax, 0xf9c1f9db
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x30bec472
sub dword [ebp - 0x60], 0xbc4c5b1c
mov dword [ebp - 0x5c], 0xa1a41e51
sub dword [ebp - 0x5c], 0x6037bcdc
mov dword [ebp - 0x58], 0x83f3a059
add dword [ebp - 0x58], 0xdf7bcc13
mov dword [ebp - 0x54], 0xa9e253d9
add dword [ebp - 0x54], 0x561dac27
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x61673e96
add eax, 0x9ed93212
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x36f65
push 0
call eax
mov ecx, 0xb96ffa95
sub ecx, 0xb96fb1b9
mov edi, eax
mov ebx, 0xd99025aa
sub ebx, 0xd94f25aa
add ebx, dword [ebp - 0x50]
mov esi, 0xa13558ca
sub dword [ebp - 0x1c], 0xa2bd48fe
mov edx, dword [ebx]
xor dword [ebp - 4], 0xd421ebe4
xor edx, esi
mov dword [ebp - 0x44], 0x9669e412
mov dword [edi], edx
sub dword [ebp - 0x40], edx
add edi, 0x5f948235
sub edi, 0x5f948231
add ebx, 0x56d02c6d
add ebx, 0xa92fd397
loop 0x403f75
add eax, 0x11643
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x4024c0
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, 0x53400c
call fcn.004c63e1
mov byte [ebp - 1], 0
mov eax, 1
imul ecx, eax, 0
mov dl, byte [ebp + 0xc]
mov byte [ebp + ecx - 0xc], dl
mov dword [ebp - 8], 1
jmp 0x4024f8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x402533
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
shl edx, 1
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0xc], dl
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
and edx, 0x80
je 0x402531
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
xor ecx, 0x1b
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0xc], cl
jmp 0x4024ef
mov dword [ebp - 8], 0
jmp 0x402545
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x40256c
movzx edx, byte [ebp + 8]
mov ecx, dword [ebp - 8]
sar edx, cl
and edx, 1
je 0x40256a
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
movzx edx, byte [ebp - 1]
xor edx, ecx
mov byte [ebp - 1], dl
jmp 0x40253c
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8

Function at 0x40ade0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov dword [ebp - 8], ecx
mov ecx, 0x534227
call fcn.004c63e1
push 0
lea ecx, [ebp - 0x18]
call fcn.004081d0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040a880
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ae3e
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x18]
call fcn.004083b0
mov eax, dword [ebp - 0x1c]
jmp 0x40aec0
mov dword [ebp - 0xc], 0x100
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x22c]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40ae9e
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040ade0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ae95
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x18]
call fcn.004083b0
mov eax, dword [ebp - 0x20]
jmp 0x40aec0
mov dword [ebp - 0xc], 0x100
jmp 0x40ae45
lea ecx, [ebp - 0x18]
call fcn.004092d0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00409530
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x18]
call fcn.004083b0
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 4
Function at 0x40aed0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov ecx, 0x534225
call fcn.004c63e1
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x40af39
push 0x4fa3b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40af06
mov eax, 1
jmp 0x40af57
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40af37
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x40af57
jmp 0x40af52
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x40af52
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40af57
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x40bc80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3d15
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov ecx, 0x534274
call fcn.004c63e1
lea ecx, [ebp - 0x40]
call fcn.00408080
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x4f9b80
call fcn.00407940
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
mov edx, dword [ebp + 8]
push edx
call fcn.004078e0
mov byte [ebp - 4], 0
call fcn.0040ea50
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004104d0
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x10]
call fcn.004078b0
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 0
jmp 0x40bd13
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1c]
jae 0x40bdd4
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x40]
call fcn.004086c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
jne 0x40bda5
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00409c70
movzx eax, ax
cmp eax, 0x3a
je 0x40bd66
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004082a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408340
jmp 0x40bdef
push 0x4f9b88
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.004087b0
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00408a20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004082a0
jmp 0x40bd0a
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.00408a20
push 0
lea ecx, [ebp - 0x10]
call fcn.004086f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4f9b8c
lea ecx, [ebp - 0x10]
call fcn.00408a50
jmp 0x40bd0a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004082a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40c300
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3dfd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, 0x534274
call fcn.004c63e1
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 1
lea eax, [ebp + 8]
push eax
push 0x4f9f8c
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00408850
add esp, 0xc
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 2
push 0x4f9f88
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004087b0
add esp, 0xc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.00408550
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004082a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004082a0
push 0x3c
push 0
lea ecx, [ebp - 0x70]
push ecx
call fcn.004c9920
add esp, 0xc
mov dword [ebp - 0x70], 0x3c
movzx edx, byte [ebp + 0x1c]
test edx, edx
je 0x40c3ce
mov dword [ebp - 0x6c], 0x440
jmp 0x40c3d5
mov dword [ebp - 0x6c], 0x40
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea ecx, [ebp + 8]
call fcn.004086f0
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp + 0xc]
call fcn.004086f0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x40c411
mov dword [ebp - 0x54], 5
jmp 0x40c418
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp + 0x14], 0
je 0x40c43e
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x40c462
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004082a0
mov eax, dword [ebp - 0x30]
jmp 0x40c4ab
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret