joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405320
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x417bd4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call sub.KERNEL32.dll_Process32First
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x40538b
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x124]
jmp 0x4053df
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x130]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4053d0
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x4053ce
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x124]
jmp 0x4053df
jmp 0x40538b
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a27
mov esp, ebp
pop ebp
ret
Function at 0x10581058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.105811a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1058107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1058106a
add dl, dl
jne 0x10581089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105810dc
xor eax, eax
add dl, dl
jne 0x10581096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1058117d
add dl, dl
jne 0x105810a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105810b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105810bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105810c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105810d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10581075
mov eax, 1
add dl, dl
jne 0x105810ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105810f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105810e1
sub eax, ebx
mov ebx, 1
jne 0x10581128
mov ecx, 1
add dl, dl
jne 0x1058110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10581119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10581105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10581075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1058113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1058114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10581136
cmp eax, 0x7d00
jae 0x1058116d
cmp eax, 0x500
jb 0x10581168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10581075
cmp eax, 0x7f
ja 0x10581170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10581075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1058119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10581075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10004840
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10096ec8
push 0x100325c0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe8
mov eax, dword [0x1009d084]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
push 0x40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100048e0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x100048c8
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 4], 0xfffffffe
jmp 0x100048f9
cmp dword [ebp - 0x20], 0
je 0x10004910
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp + 0x10]
jne 0x10004910
mov dword [ebp - 0x28], 1
jmp 0x10004917
mov dword [ebp - 0x28], 0
mov al, byte [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10030d05
mov esp, ebp
pop ebp
ret
Function at 0x10006cb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [0x100a024c]
test eax, eax
jne 0x10006cda
mov byte [0x100a024c], 1
push 0
push 0
push 0
push 0x10006c60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10007460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1009d084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x1000748a
jl 0x10007481
cmp dword [ebp + 0xc], 0
ja 0x1000748a
xor eax, eax
xor edx, edx
jmp 0x100075cb
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x100074ac
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.10008ed0
jmp 0x100075cb
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call fcn.1000b0f0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x1000751b
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.10003660
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.1000b290
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.1000c840
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.1000b210
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x100075bc
mov ecx, dword [ebp - 0x10]
call fcn.1000a680
mov dword [ebp - 0x2c], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x1000758b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1005a6b1
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0xfff
je 0x10007589
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x100075cb
jmp 0x10007537
cmp dword [ebp - 8], 0
jbe 0x100075bc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1005a6b1
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10030d05
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10007a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1009d084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x38], ecx
call fcn.1000c730
mov dword [ebp - 0x50], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.1000c790
add esp, 8
movzx edx, al
test edx, edx
je 0x10007ab4
lea eax, [ebp + 8]
push eax
call fcn.1000c740
add esp, 4
jmp 0x10007c45
mov ecx, dword [ebp - 0x38]
call fcn.1000b270
test eax, eax
je 0x10007afa
mov ecx, dword [ebp - 0x38]
call fcn.1000b270
mov esi, eax
mov ecx, dword [ebp - 0x38]
call fcn.1000b1b0
cmp esi, eax
jae 0x10007afa
lea ecx, [ebp + 8]
push ecx
call fcn.10007c60
add esp, 4
mov byte [ebp - 0x39], al
mov ecx, dword [ebp - 0x38]
call fcn.1000b020
mov dl, byte [ebp - 0x39]
mov byte [eax], dl
mov eax, dword [ebp + 8]
jmp 0x10007c45
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x4c], 0
jne 0x10007b0d
call fcn.1000c730
jmp 0x10007c45
mov ecx, dword [ebp - 0x38]
call fcn.1000a680
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x38], 0
jne 0x10007b66
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x54], eax
lea ecx, [ebp + 8]
push ecx
call fcn.10007c60
add esp, 4
mov byte [ebp - 0x3a], al
mov edx, dword [ebp - 0x54]
push edx
movzx eax, byte [ebp - 0x3a]
push eax
call fcn.100035e0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x10007b56
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], edx
jmp 0x10007b5e
call fcn.1000c730
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
jmp 0x10007c45
mov dword [ebp - 0x5c], 0x20
lea eax, [ebp + 8]
push eax
call fcn.10007c60
add esp, 4
mov byte [ebp - 0x2a], al
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x29]
push ecx
lea edx, [ebp - 0x2a]
push edx
mov eax, dword [ebp - 0x38]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x58]
call fcn.1000a3e0
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x10007bc3
cmp dword [ebp - 0x40], 1
je 0x10007bc3
cmp dword [ebp - 0x40], 3
je 0x10007c10
jmp 0x10007c40
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x44], ecx
je 0x10007bf5
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.1005802c
add esp, 0x10
cmp dword [ebp - 0x44], eax
je 0x10007bf5
call fcn.1000c730
jmp 0x10007c45
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2a]
cmp dword [ebp - 0x34], edx
je 0x10007c09
mov eax, dword [ebp + 8]
jmp 0x10007c45
call fcn.1000c730
jmp 0x10007c45
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2a]
push edx
call fcn.100035e0
add esp, 8
movzx eax, al
test eax, eax
je 0x10007c33
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
jmp 0x10007c3b
call fcn.1000c730
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
jmp 0x10007c45
call fcn.1000c730
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10030d05
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1009d084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x1000a737
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1000a73e
mov al, 1
jmp 0x1000a829
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x44], edx
call fcn.1000c730
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
call fcn.1000c730
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.1000c790
add esp, 8
movzx eax, al
test eax, eax
je 0x1000a784
xor al, al
jmp 0x1000a829
mov dword [ebp - 0x54], 0x20
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x50]
call fcn.1000c970
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1000a7c6
cmp dword [ebp - 0x34], 1
je 0x1000a7cd
cmp dword [ebp - 0x34], 3
je 0x1000a81c
jmp 0x1000a827
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x1000a7fc
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call fcn.1005802c
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x1000a7fc
xor al, al
jmp 0x1000a829
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x1000a810
mov dword [ebp - 0x3c], 1
jmp 0x1000a817
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
jmp 0x1000a829
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov al, 1
jmp 0x1000a829
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10030d05
mov esp, ebp
pop ebp
ret

Function at 0x10068919
Capabilities:
Read file on windows

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

Function at 0x1007272b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100720e9

Function at 0x1007ebfa
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007eace

Function at 0x10080190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100801bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100801bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401aca
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b09
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b09
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b09
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b09
cmp dword [ecx + 0x74], 0xe
jbe 0x401b09
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x44c1d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

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 0x5f42bf
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x679dc8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 0
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [eax + 8]
lea esi, [eax + 0x10]
test cl, 1
jne 0x44c28a
or ecx, 1
mov dword [eax + 8], ecx
mov dword [ebp - 4], 1
call fcn.00467850
mov ecx, eax
mov dword [esi + 0x1384], 0xffffffff
mov dword [esi + 4], ecx
lea edi, [esi + 8]
mov edx, 1
nop
mov eax, ecx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
inc edx
mov dword [edi - 4], ecx
cmp edx, 0x270
jb 0x44c260
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [esi], 0x270
mov ecx, dword [eax + 8]
test cl, 2
jne 0x44c2b2
or ecx, 2
mov dword [eax + 0x1398], 0
mov dword [eax + 8], ecx
mov dword [eax + 0x139c], 0x3d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 0x18], al
mov ecx, edi
push dword [ebp - 0x18]
mov dword [ebp - 4], eax
push 0xe
mov dword [ebp - 0x20], 1
call fcn.004614c0
mov dword [edi + 0x10], 0
mov eax, 0xe
nop
dec eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1398]
mov eax, dword [eax + 0x139c]
sub eax, ecx
mov dword [ebp - 0x30], ecx
mov ecx, esi
cmp eax, 0xffffffff
jne 0x44c328
call fcn.00466d00
mov edx, eax
jmp 0x44c36a
inc eax
mov dword [ebp - 0x18], eax
call fcn.00466d00
mov ecx, dword [ebp - 0x18]
mul ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edx
cmp eax, ecx
jae 0x44c36a
mov eax, ecx
xor edx, edx
neg eax
div ecx
mov eax, edx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], eax
jae 0x44c367
mov edi, ecx
mov ecx, esi
call fcn.00466d00
mul edi
cmp eax, dword [ebp - 0x28]
jb 0x44c354
mov edi, dword [ebp - 0x1c]
jmp 0x44c36a
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
movsx ax, byte [edx + eax + str.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]
movzx edx, ax
cmp ecx, dword [edi + 0x14]
jae 0x44c39e
cmp dword [edi + 0x14], 8
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
jb 0x44c391
mov eax, dword [edi]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x44c3af
push edx
mov byte [ebp - 0x34], 0
mov ecx, edi
push dword [ebp - 0x34]
push 1
call fcn.00461950
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x44c300
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x44c430
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 0x1c], 8
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x58]
mov dword [ebp - 0x58], 0x44
push edx
push 0
push 0
push 0x10
push 0
xorps xmm0, xmm0
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push 0
push ecx
push eax
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x44c4db
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44c4d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44c4df
push ecx
push edx
call fcn.005c7d18
add esp, 8
mov esp, ebp
pop ebp
ret
call fcn.005d228e
int3
Function at 0x44d0d0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x679dc8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x67fe1c], 8
mov eax, 0x67fe08
push esi
cmovae eax, dword [0x67fe08]
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44d1f9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
jne 0x44d14c
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c7d0a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call esi
mov dword [ebp - 0x30], 0x7dcecd90
mov dword [ebp - 0x2c], 0x3a5f2b78
mov dword [ebp - 0x28], 0x28cd7c20
mov dword [ebp - 0x24], 0x611d07e0
mov dword [ebp - 0x20], 0x10b8544f
mov dword [ebp - 0x1c], 0xa3bc6a9a
mov dword [ebp - 0x18], 0x7d6825ce
mov dword [ebp - 0x14], 0x5e869b7
movaps xmm1, xmmword [ebp - 0x30]
mov dword [ebp - 0x60], 0x1cabbfd3
mov dword [ebp - 0x5c], 0x53194e0c
mov dword [ebp - 0x58], 0x88c194c
mov dword [ebp - 0x54], 0xe6f7585
pxor xmm1, xmmword [ebp - 0x60]
movaps xmmword [ebp - 0x30], xmm1
movaps xmm1, xmmword [ebp - 0x20]
push eax
mov dword [ebp - 0x50], 0x35986e3d
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], 0xa3bc60fe
mov dword [ebp - 0x48], 0x7d6825ce
mov dword [ebp - 0x44], 0x5e869b7
pxor xmm1, xmmword [ebp - 0x50]
push eax
movaps xmmword [ebp - 0x20], xmm1
call fcn.0044b300
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c7d0a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x2f70
push 0x67a850
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44d2d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], 0x68c2cd84
mov dword [ebp - 0x2c], 0x3f700869
mov dword [ebp - 0x28], 0x7ae93929
mov dword [ebp - 0x24], 0x341d1af7
mov dword [ebp - 0x20], 0x3ffc4b1d
mov dword [ebp - 0x1c], 0xa3bc60fe
mov dword [ebp - 0x18], 0x7d6825ce
mov dword [ebp - 0x14], 0x5e869b7
movaps xmm1, xmmword [ebp - 0x30]
mov dword [ebp - 0x60], 0x1cabbfd3
mov dword [ebp - 0x5c], 0x53194e0c
mov dword [ebp - 0x58], 0x88c194c
mov dword [ebp - 0x54], 0xe6f7585
pxor xmm1, xmmword [ebp - 0x60]
movaps xmmword [ebp - 0x30], xmm1
movaps xmm1, xmmword [ebp - 0x20]
push eax
mov dword [ebp - 0x50], 0x35986e3d
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], 0xa3bc60fe
mov dword [ebp - 0x48], 0x7d6825ce
mov dword [ebp - 0x44], 0x5e869b7
pxor xmm1, xmmword [ebp - 0x50]
push eax
movaps xmmword [ebp - 0x20], xmm1
call fcn.0044b300
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c7d0a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], 0x2f70
je 0x44d138
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.005c7d0a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x44d800
Capabilities:
Delete file
Delete service
Stop service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x679dc8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x44d899
mov dword [ebp - 0x20], 0x5efcf092
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x53197f5c
mov dword [ebp - 0x18], 0x88c194c
mov dword [ebp - 0x14], 0xe6f7585
movaps xmm1, xmmword [ebp - 0x20]
push 0x10022
mov dword [ebp - 0x50], 0x1cabbfd3
mov dword [ebp - 0x4c], 0x53194e0c
mov dword [ebp - 0x48], 0x88c194c
mov dword [ebp - 0x44], 0xe6f7585
pxor xmm1, xmmword [ebp - 0x50]
push eax
push edi
movaps xmmword [ebp - 0x20], xmm1
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x44d8ae
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c7d0a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
cmp dword [0x67fe1c], 8
mov eax, 0x67fe08
cmovae eax, dword [0x67fe08]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.005c7d0a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x44da70
Capabilities:
Get file size

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x44da78
mov ecx, dword [ecx]
push edi
push 0
push 0x80
push 3
push 0
push 0
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x44dab5
cmp edi, 0xffffffff
je 0x44dab5
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
ret