joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5786a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x2c]
add edx, edx
add esi, esi
test ecx, ecx
mov dword [esp + 0xc], edx
jle 0x578839
mov eax, dword [esp + 0x28]
sub eax, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
sub eax, edx
mov edx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
push ebp
mov eax, ebx
sub eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x28]
lea edx, [edx + eax*4]
mov ebp, edi
sub ebp, esi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x48]
add eax, ecx
lea eax, [edx + eax*4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
jmp 0x578711
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [edx*4 + 0x5ed718]
lea eax, [edi + esi*2]
push eax
lea edx, [esi + edi]
push edx
push edi
push ebp
mov dword [esp + 0x30], ecx
call fcn.005782f0
lea eax, [edi + esi*2 + 0x10]
push eax
lea ecx, [esi + edi + 0x10]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [edi + 0x10]
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.005782f0
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
lea eax, [ebx + esi*2]
push eax
add ebp, 0x20
lea ecx, [esi + ebx]
push ecx
mov dword [esp + 0x48], ebp
mov ebp, dword [edx*4 + 0x5ed718]
mov edx, dword [esp + 0x60]
push ebx
push edx
mov ecx, ebp
add edi, 0x20
call fcn.005782f0
lea eax, [ebx + esi*2 + 0x10]
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [esi + ebx + 0x10]
push ecx
lea edx, [ebx + 0x10]
push edx
add eax, 0x10
push eax
mov ecx, ebp
call fcn.005782f0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x58]
add eax, 0x20
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x70]
lea edx, [eax + ecx*2]
add esp, 0x40
push edx
add ecx, eax
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
mov ecx, ebp
add ebx, 0x20
call fcn.005782f0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
lea edx, [eax + ecx*2]
push edx
add ecx, eax
push ecx
push eax
mov eax, dword [esp + 0x6c]
push eax
mov ecx, ebp
call fcn.005782f0
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
mov eax, 0x10
add ebp, eax
add esp, 0x20
mov dword [esp + 0x30], ebp
add edx, eax
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x50]
add ecx, eax
add ebp, eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
mov eax, 4
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jne 0x57870d
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
Function at 0x5810d0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
cdq
and edx, 7
push ebx
mov ebx, dword [esp + 0x10]
add eax, edx
push ebp
sar eax, 3
and ecx, 7
test eax, eax
push esi
mov esi, dword [esp + 0x10]
mov ebp, ecx
jle 0x58111c
push edi
mov edi, eax
push 8
mov ecx, esi
call fcn.0057c310
xor edx, edx
mov ecx, ebx
shr ecx, 8
mov dh, bl
xor eax, ecx
and eax, 0xff
xor edx, dword [eax*4 + 0x5f2a80]
dec edi
mov ebx, edx
jne 0x5810f6
pop edi
test ebp, ebp
jle 0x581148
push 1
mov ecx, esi
call fcn.0057c310
mov ecx, ebx
shr ecx, 0xf
and ecx, 1
and ebx, 0x7fff
xor eax, ecx
shl ebx, 1
test eax, eax
je 0x581145
xor ebx, 0x8005
dec ebp
jne 0x581120
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x5831ce
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
je 0x5831f2
mov ecx, dword [esp + 4]
push esi
mov esi, eax
shl eax, 4
sar esi, 0x1c
xor esi, eax
movzx eax, word [ecx]
xor eax, esi
inc ecx
inc ecx
dec edx
jne 0x5831dd
pop esi
ret
Function at 0x5bfb90
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10c]
test eax, eax
lea esi, [edi + 0x10c]
je 0x5bfcbb
mov al, byte [edi + 0x40]
test al, al
jne 0x5bfcbb
mov edx, dword [edi + 0x24]
lea eax, [esp + 8]
inc edx
push eax
mov dword [edi + 0x24], edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [0x6f8d40]
or ecx, dword [0x6f8d44]
jne 0x5bfbe1
push 0x6f8d40
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [0x6f8d44]
mov eax, dword [0x6f8d40]
mov ecx, dword [esp + 0x24]
push ebx
push ebp
push edx
push eax
push 0
push ecx
call fcn.004ec010
push 0
push 0x3e8
push edx
push eax
call fcn.004ec050
add eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov ebp, edx
adc ebp, eax
lea ebx, [ebx]
mov ebx, dword [esi]
test ebx, ebx
je 0x5bfc72
mov eax, dword [0x632468]
cmp ebx, eax
jbe 0x5bfc31
mov ebx, eax
test ebx, ebx
jbe 0x5bfc51
mov eax, dword [esi]
mov edx, dword [esi + 8]
dec eax
mov dword [esi], eax
mov ecx, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
push esi
push eax
push ecx
mov ecx, edi
call fcn.005bf0c0
dec ebx
jne 0x5bfc35
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
ja 0x5bfc76
jb 0x5bfc20
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x20]
jae 0x5bfc76
jmp 0x5bfc20
mov byte [edi + 0x40], 1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edx, dword [edi + 0x18]
mov dword [edi + 0x118], eax
sub eax, ebx
mov dword [edi + 0x11c], ecx
sbb ecx, esi
add edx, eax
mov eax, dword [edi + 0x1c]
pop ebp
adc eax, ecx
pop ebx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], eax
pop edi
pop esi
add esp, 0x18
ret 4
mov ecx, edi
call fcn.005bf7a0
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x5bfcd0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
push edi
mov dword [esi + 0x20], eax
mov byte [esi + 0x100], 0
mov byte [esi + 0x109], 1
call fcn.005bd9c0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ebp, [esi + 0x334]
mov ecx, ebp
call fcn.0040c6f0
mov edi, dword [esi + 0x338]
test edi, edi
je 0x5bfd37
lea ebx, [esi + 0x10c]
lea ebx, [ebx]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
push ebx
push ecx
push eax
mov ecx, esi
call fcn.005bf0c0
mov edi, dword [edi + 8]
test edi, edi
jne 0x5bfd20
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov edi, dword [esi + 0x18]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esi + 0x1c]
sub eax, ebp
sbb ecx, ebx
add edi, eax
adc edx, ecx
push 0xa
mov ecx, esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edx
call fcn.005bfb90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x5c01c0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
add esp, 0x24
ret

Function at 0x5c0250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 0xc]
neg cl
lea eax, [esp]
push eax
mov eax, dword [esp + 0xc]
mov dword [esp + 4], 0
sbb ecx, ecx
and ecx, 0xffffffe0
add ecx, 0x40
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret 0xc

Function at 0x5d3475
Capabilities:
Terminate process

Disassembly:
push 8
push 0x5fb720
call fcn.005d35c0
push 8
call fcn.005d3978
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x6f97d4], esi
jne 0x5d34a9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x6f97d0], esi
mov al, byte [ebp + 0x10]
mov byte [0x6f97cc], al
cmp dword [ebp + 0xc], edi
jne 0x5d34f3
cmp dword [0x6f9e88], edi
je 0x5d34e3
mov eax, dword [0x6f9e84]
sub eax, 4
mov dword [0x6f9e84], eax
cmp eax, dword [0x6f9e88]
jb 0x5d34e3
mov eax, dword [eax]
cmp eax, edi
je 0x5d34c4
call eax
jmp 0x5d34c4
push 0x5ff028
mov eax, 0x5ff024
call fcn.005d345d
pop ecx
push 0x5ff030
mov eax, 0x5ff02c
call fcn.005d345d
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.005d3524
cmp dword [ebp + 0x10], edi
jne 0x5d3532
mov dword [0x6f97d4], esi
push dword [ebp + 8]
call fcn.005d341b
xor edi, edi
xor esi, esi
inc esi
call fcn.005d35fb
ret
Function at 0x5d48ce
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x5d48fc
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x5d4903
cmp ebx, dword [eax + 4]
jae 0x5d4903
xor eax, eax
jmp 0x5d4af3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x5d4914
xor eax, eax
inc eax
jmp 0x5d4af2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5d492a
cmp ecx, edx
jae 0x5d4a6f
cmp dword [eax + 4], 0
je 0x5d4933
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x5d491b
cmp dword [ebp + 8], 0
je 0x5d4955
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x5d4a6f
cmp eax, esi
jae 0x5d4a6f
mov eax, dword [0x6f9938]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x5d497a
cmp dword [esi*4 + 0x6f9940], edi
je 0x5d4a73
inc esi
cmp esi, eax
jl 0x5d4968
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5d4aef
cmp dword [ebp - 8], 0x1000000
jne 0x5d4aef
test byte [ebp - 0xc], 0xcc
je 0x5d49f8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x5d4aef
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5d4aef
cmp word [eax + 0x18], 0x10b
jne 0x5d4aef
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x5d4aef
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x5d49f8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x5d49f8
test byte [ecx + 0x27], 0x80
jne 0x5d4a6f
push 1
push 0x6f9980
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x5d490c
mov ecx, dword [0x6f9938]
test ecx, ecx
mov edx, ecx
jle 0x5d4a2c
lea eax, [ecx*4 + 0x6f993c]
cmp dword [eax], edi
je 0x5d4a2c
dec edx
sub eax, 4
test edx, edx
jg 0x5d4a20
test edx, edx
jne 0x5d4a5d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x5d4a39
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x5d4a51
lea eax, [edx*4 + 0x6f9940]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x5d4a3f
cmp ecx, 0x10
jge 0x5d4a5d
inc ecx
mov dword [0x6f9938], ecx
push 0
push 0x6f9980
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x5d490c
xor eax, eax
jmp 0x5d4af2
test esi, esi
jle 0x5d490c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x6f9980
call ebx
test eax, eax
jne 0x5d490c
cmp dword [esi*4 + 0x6f9940], edi
je 0x5d4ac9
mov eax, dword [0x6f9938]
lea esi, [eax - 1]
test esi, esi
jl 0x5d4ab7
cmp dword [esi*4 + 0x6f9940], edi
je 0x5d4ab3
dec esi
jns 0x5d4aa7
test esi, esi
jge 0x5d4ac7
cmp eax, 0x10
jge 0x5d4ac2
inc eax
mov dword [0x6f9938], eax
lea esi, [eax - 1]
jmp 0x5d4ac9
je 0x5d4ae1
xor ecx, ecx
test esi, esi
jl 0x5d4ae1
lea eax, [ecx*4 + 0x6f9940]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x5d4acf
push 0
push 0x6f9980
call ebx
jmp 0x5d490c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d4af7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x6f9984], ebx
push esi
push edi
jne 0x5d4b77
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5d4bb2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5fb99c
push edi
call esi
test eax, eax
mov dword [0x6f9984], eax
je 0x5d4bb2
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x6f9988], eax
call esi
cmp dword [0x6f9794], 2
mov dword [0x6f998c], eax
jne 0x5d4b77
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x6f9994], eax
je 0x5d4b77
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x6f9990], eax
mov eax, dword [0x6f9990]
test eax, eax
je 0x5d4bbc
call eax
test eax, eax
je 0x5d4ba3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x6f9994]
test eax, eax
je 0x5d4ba3
test byte [ebp - 8], 1
jne 0x5d4bbc
cmp dword [0x6f97a0], 4
jb 0x5d4bb6
or byte [ebp + 0x12], 0x20
jmp 0x5d4bdb
xor eax, eax
jmp 0x5d4beb
or byte [ebp + 0x12], 4
jmp 0x5d4bdb
mov eax, dword [0x6f9988]
test eax, eax
je 0x5d4bdb
call eax
mov ebx, eax
test ebx, ebx
je 0x5d4bdb
mov eax, dword [0x6f998c]
test eax, eax
je 0x5d4bdb
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x6f9984]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d4eb5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x633260]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x633528]
je 0x5d4eea
inc eax
cmp eax, 0x13
jb 0x5d4edb
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x633528]
jne 0x5d5010
mov eax, dword [0x6f99a4]
cmp eax, 1
je 0x5d4fe8
cmp eax, edx
jne 0x5d4f1a
cmp dword [0x63351c], 1
je 0x5d4fe8
cmp ecx, 0xfc
je 0x5d5010
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5d4f50
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.005d4bf0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.005d4cf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5d4f84
mov eax, edi
push eax
call fcn.005d4cf0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x5fb774
push edi
call fcn.005d2a40
add esp, 0x10
push edi
call fcn.005d4cf0
push dword [esi + 0x63352c]
mov ebx, eax
call fcn.005d4cf0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.005d2eb0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.005d4bf0
push edi
push ebx
call fcn.005d4c00
push 0x5fb770
push ebx
call fcn.005d4c00
push dword [esi + 0x63352c]
push ebx
call fcn.005d4c00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.005d4af7
add esp, 0x2c
jmp 0x5d5010
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x63352c]
push dword [esi]
call fcn.005d4cf0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.005d3189
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x5d62ae
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.005d2eb0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5d6349
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x6f9794]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x5d6349
cmp eax, 1
je 0x5d636a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5d6349
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x5d6316
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x5d6345
xor eax, eax
inc eax
jmp 0x5d6389
cmp edi, eax
jae 0x5d634d
xor eax, eax
jmp 0x5d6389
cmp eax, esi
jae 0x5d6354
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x6f9794]
jmp 0x5d636d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412560
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x471178
call fcn.0040fe20
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41266e
push 0xfffe
push 0x40
call dword [0x47cd3c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x412664
push str.34E50511_FBB8_42F8_98A2_2629192A03A0
push str.WindowsSystem.exe
mov ecx, dword [ebp - 8]
push ecx
push str._s_s__s
push 0x7fff
mov edx, dword [ebp - 0xc]
push edx
call dword [0x47d0e8]
add esp, 0x18
mov dword [ebp - 0x14], eax
cmp dword [0x472e2c], 1
jne 0x412610
lea eax, [ebp - 0x10]
push eax
push 0x433fa0
push SysReAllocString
call dword [0x47d014]
test eax, eax
jne 0x412610
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + ecx + 2]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
push 0
push 0x476fc8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x47d010]
mov edx, dword [ebp - 0x10]
push edx
call dword [0x47d018]
cmp dword [0x472e28], 1
jne 0x41265a
lea eax, [ebp - 0x10]
push eax
push 0x434008
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x47d014]
test eax, eax
jne 0x41265a
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + ecx + 2]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
push 0
push str.AB1F3E47_AEF1_400E_A108_233A046C3A34
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x47d010]
mov edx, dword [ebp - 0x10]
push edx
call dword [0x47d018]
mov eax, dword [ebp - 0xc]
push eax
call dword [0x47cd48]
mov ecx, dword [ebp - 8]
push ecx
call dword [0x47cd48]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x413160
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x472e34], 1
jne 0x41329d
push 0xfffe
push 0x40
call dword [0x47cd3c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4131dd
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x437bf0
call dword [0x47d0fc]
test eax, eax
jne 0x4131d3
push str.18925F49_C14F_4A5B_BA0F_9C4106DA4CB0
mov ecx, dword [ebp - 0xc]
push ecx
push str._s_s.lnk
push 0x7fff
mov edx, dword [ebp - 4]
push edx
call fcn.0042359a
add esp, 0x14
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x47d118]
mov edx, dword [ebp - 4]
push edx
call dword [0x47cd48]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x437c00
call dword [0x47d0fc]
test eax, eax
jne 0x41329d
push 0xfffe
push 0x40
call dword [0x47cd3c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x413293
push str.9771290C_19FB_4434_8B1F_8952BA10F287
mov ecx, dword [ebp - 8]
push ecx
push 0x434184
push 0x7fff
mov edx, dword [ebp - 0x10]
push edx
call fcn.0042359a
add esp, 0x14
push 0xfffe
push 0x40
call dword [0x47cd3c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x413289
push str.A786AA22_8EF1_44CE_8698_6F3988CB643E
push str.9771290C_19FB_4434_8B1F_8952BA10F287
mov eax, dword [ebp - 8]
push eax
push str._s_s_s.BAT
push 0x7fff
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042359a
add esp, 0x18
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x47cd48]
mov edx, dword [ebp - 0x10]
push edx
call dword [0x47cd48]
mov eax, dword [ebp - 8]
push eax
call dword [0x47d118]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4169a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
push str.UNLOAD.TXT
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x416a11
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x47cbf8], eax
cmp dword [0x47cbf8], 0
je 0x416a11
push 0
push 0
push 0
push 0x40ba30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x47cbfc], eax
cmp dword [0x47cbfc], 0
je 0x4169fb
jmp 0x416a11
mov eax, dword [0x47cbf8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x47cbf8], 0
cmp dword [0x472e3c], 1
jne 0x416adf
call fcn.0041c3a0
cmp eax, 1
jne 0x416adf
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
lea ecx, [ebp - 0x194]
push ecx
push 0x471178
call fcn.0040fe20
add esp, 8
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
je 0x416adf
xor edx, edx
mov word [ebp - 0x3a0], dx
push 0x206
push 0
lea eax, [ebp - 0x39e]
push eax
call fcn.00423520
add esp, 0xc
push str.WindowsSystem.exe
mov ecx, dword [ebp - 0x198]
push ecx
push str.__s_s_
push 0x104
lea edx, [ebp - 0x3a0]
push edx
call fcn.0042359a
add esp, 0x14
mov eax, dword [0x472ee0]
push eax
mov ecx, dword [0x472edc]
push ecx
push str.WindowsSystem
push 0x472e40
push str.34E50511_FBB8_42F8_98A2_2629192A03A0
lea edx, [ebp - 0x3a0]
push edx
call fcn.0040a680
add esp, 0x18
mov eax, dword [ebp - 0x198]
push eax
call dword [0x47cd48]
cmp dword [0x472e30], 0
jne 0x416aed
call fcn.00412560
cmp dword [0x472e34], 1
jne 0x416afb
call fcn.004122d0
cmp dword [0x472e30], 1
jne 0x416b09
call fcn.0041ac50
push 0x15
call fcn.00408cd0
add esp, 4
cmp dword [0x471768], 1
jne 0x416b6a
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x47cc08], eax
cmp dword [0x47cc08], 0
je 0x416b6a
push 0
push 0
push 0
push 0x40f100
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x47cc0c], eax
cmp dword [0x47cc0c], 0
je 0x416b5d
jmp 0x416b6a
mov ecx, dword [0x47cc08]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x190]
push edx
push 2
call dword [0x47d1c0]
test eax, eax
jne 0x416bd0
cmp dword [0x479dd4], 1
jne 0x416ba0
push 0
push 0
push 0
push 0x41b630
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x47d368], eax
push 0
push 0
push 0
push 0x421030
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x47d624], eax
cmp dword [0x47d624], 0
je 0x416bca
mov eax, 1
jmp 0x416bd5
call dword [0x47d1c4]
mov eax, 1
mov esp, ebp
pop ebp
ret