joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e6f0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], edi
mov dword [esp], eax
call sym.adb.exe_AES_set_encrypt_key
test eax, eax
js 0x48e90e
mov edx, dword [edi + 0xf0]
mov eax, edi
lea ebp, [edx*4]
test ebp, ebp
jle 0x48e789
shl edx, 4
mov ecx, edi
add edx, edi
xor ebx, ebx
mov dword [esp + 0xc], edi
nop
lea esi, [esi]
mov esi, dword [ecx]
add ebx, 4
add ecx, 0x10
mov eax, dword [edx]
sub edx, 0x10
mov dword [ecx - 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [edx + 0x10], esi
mov esi, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov eax, dword [edx + 0x18]
mov dword [edx + 0x14], esi
mov esi, dword [ecx - 8]
mov dword [ecx - 8], eax
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x18], esi
mov esi, dword [ecx - 4]
mov dword [ecx - 4], eax
mov dword [edx + 0x1c], esi
mov esi, ebp
sub esi, ebx
cmp ebx, esi
jl 0x48e740
mov eax, dword [esp + 0xc]
mov edx, dword [edi + 0xf0]
mov ecx, 1
cmp edx, 1
mov ebp, ecx
jle 0x48e90c
lea esi, [esi]
add eax, 0x10
mov ebx, dword [eax]
add ebp, 1
movzx edx, bl
mov esi, ebx
movzx edx, byte [edx*4 + 0x543180]
shr esi, 0x18
movzx esi, byte [esi*4 + 0x543180]
mov edx, dword [edx*4 + 0x541980]
xor edx, dword [esi*4 + 0x542580]
mov esi, ebx
shr esi, 0x10
movzx ebx, bh
mov ecx, esi
movzx ebx, byte [ebx*4 + 0x543180]
movzx esi, cl
movzx esi, byte [esi*4 + 0x543180]
xor edx, dword [esi*4 + 0x542180]
xor edx, dword [ebx*4 + 0x541d80]
mov ebx, dword [eax + 4]
mov dword [eax], edx
mov esi, ebx
movzx edx, bl
movzx edx, byte [edx*4 + 0x543180]
shr esi, 0x18
movzx esi, byte [esi*4 + 0x543180]
mov edx, dword [edx*4 + 0x541980]
xor edx, dword [esi*4 + 0x542580]
mov esi, ebx
shr esi, 0x10
movzx ebx, bh
mov ecx, esi
movzx ebx, byte [ebx*4 + 0x543180]
movzx esi, cl
movzx esi, byte [esi*4 + 0x543180]
xor edx, dword [esi*4 + 0x542180]
xor edx, dword [ebx*4 + 0x541d80]
mov ebx, dword [eax + 8]
mov dword [eax + 4], edx
mov esi, ebx
movzx edx, bl
movzx edx, byte [edx*4 + 0x543180]
shr esi, 0x18
movzx esi, byte [esi*4 + 0x543180]
mov edx, dword [edx*4 + 0x541980]
xor edx, dword [esi*4 + 0x542580]
mov esi, ebx
shr esi, 0x10
movzx ebx, bh
mov ecx, esi
movzx ebx, byte [ebx*4 + 0x543180]
movzx esi, cl
movzx esi, byte [esi*4 + 0x543180]
xor edx, dword [esi*4 + 0x542180]
xor edx, dword [ebx*4 + 0x541d80]
mov ebx, dword [eax + 0xc]
mov dword [eax + 8], edx
mov esi, ebx
movzx edx, bl
movzx edx, byte [edx*4 + 0x543180]
shr esi, 0x18
movzx esi, byte [esi*4 + 0x543180]
mov edx, dword [edx*4 + 0x541980]
xor edx, dword [esi*4 + 0x542580]
mov esi, ebx
shr esi, 0x10
movzx ebx, bh
mov ecx, esi
movzx ebx, byte [ebx*4 + 0x543180]
movzx esi, cl
movzx esi, byte [esi*4 + 0x543180]
xor edx, dword [esi*4 + 0x542180]
xor edx, dword [ebx*4 + 0x541d80]
mov dword [eax + 0xc], edx
cmp dword [edi + 0xf0], ebp
jg 0x48e7a0
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x48f2a0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
cmp dword [esp + 0x10], 1
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
je 0x48f2c4
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp sym.adb.exe_AES_decrypt
jmp sym.adb.exe_AES_encrypt

Function at 0x48f2d0
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x20], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
jne 0x48f310
mov dword [esp + 0x20], sym.adb.exe_AES_decrypt
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
pop ebx
pop esi
jmp fcn.0047a110
mov dword [esp + 0x20], sym.adb.exe_AES_encrypt
pop ebx
pop esi
jmp fcn.00479ff0
Function at 0x4930f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xdc
mov esi, dword [esp + 0x104]
mov ebx, dword [esp + 0x10c]
mov dword [esp], esi
call sym.adb.exe_EVP_MD_size
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call sym.adb.exe_HMAC_CTX_init
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 4], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call sym.adb.exe_HMAC_Init_ex
test eax, eax
je 0x493322
mov ecx, dword [esp + 0x108]
test ecx, ecx
je 0x4932e5
mov dword [esp + 0x1c], 1
lea esi, [esp + 0x5c]
lea ebp, [esp + 0x90]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x108], eax
cmovbe eax, dword [esp + 0x108]
mov dword [esp], esi
mov byte [esp + 0x27], cl
mov edi, eax
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x24], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x25], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x26], al
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
call sym.adb.exe_HMAC_CTX_copy
test eax, eax
je 0x493322
mov eax, dword [esp + 0xfc]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 4], eax
call sym.adb.exe_HMAC_Update
test eax, eax
je 0x493301
lea eax, [esp + 0x24]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov dword [esp], esi
call sym.adb.exe_HMAC_Update
test eax, eax
je 0x493301
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], esi
call sym.adb.exe_HMAC_Final
test eax, eax
je 0x493301
mov dword [esp], esi
call sym.adb.exe_HMAC_CTX_cleanup
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
cmp dword [esp + 0x100], 1
mov dword [esp + 0x14], 1
jbe 0x4932d1
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], esi
call sym.adb.exe_HMAC_CTX_copy
test eax, eax
je 0x493322
mov eax, dword [esp + 0x18]
mov dword [esp + 4], ebp
mov dword [esp], esi
mov dword [esp + 8], eax
call sym.adb.exe_HMAC_Update
test eax, eax
je 0x493301
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], esi
call sym.adb.exe_HMAC_Final
test eax, eax
je 0x493301
mov dword [esp], esi
call sym.adb.exe_HMAC_CTX_cleanup
test edi, edi
je 0x4932bf
xor eax, eax
lea esi, [esi]
movzx edx, byte [ebp + eax]
xor byte [ebx + eax], dl
add eax, 1
cmp eax, edi
jne 0x4932b0
add dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x100]
jne 0x493254
add dword [esp + 0x1c], 1
add ebx, edi
sub dword [esp + 0x108], edi
jne 0x493178
lea eax, [esp + 0x28]
mov dword [esp], eax
call sym.adb.exe_HMAC_CTX_cleanup
mov edx, dword [esp + 0x100]
xor eax, eax
test edx, edx
setne al
jmp 0x493317
lea eax, [esp + 0x28]
mov dword [esp], eax
call sym.adb.exe_HMAC_CTX_cleanup
mov dword [esp], esi
call sym.adb.exe_HMAC_CTX_cleanup
xor eax, eax
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x28]
mov dword [esp], eax
call sym.adb.exe_HMAC_CTX_cleanup
add esp, 0xdc
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x49ead0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x49eb08
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x49eafe
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x49eb0a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x49eaf0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4a00c0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4a00f4
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x5536b8], eax
call fcn.004b1100
test eax, eax
sete al
movzx eax, al
mov dword [0x5152b4], eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a00e3

Function at 0x4a0200
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x3c
mov eax, dword [eax + 0xc]
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx]
mov dword [ebp - 0x20], edi
jmp 0x4a022c
mov dword [0x5536bc], ecx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x4a02e8
mov edi, dword [eax + 0x18]
mov eax, dword [ebp - 0x20]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
call eax
test eax, eax
jne 0x4a0340
test edi, edi
je 0x4a02ab
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call edi
cmp eax, 7
je 0x4a0350
cmp eax, 8
jne 0x4a0340
mov eax, dword [ebx]
mov ecx, dword [eax]
mov eax, dword [0x5152b4]
test eax, eax
js 0x4a0326
test eax, eax
je 0x4a0220
mov eax, dword [0x5536b8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4a0226
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a0226
mov eax, dword [esi]
mov edi, dword [ebp - 0x20]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x1a
mov dword [esp], 1
call eax
test eax, eax
jne 0x4a0340
lea esp, [ebp - 0xc]
mov al, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x24], ecx
call fcn.004a0100
mov eax, dword [0x5152b4]
mov ecx, dword [ebp - 0x24]
jmp 0x4a02b8
lea esp, [ebp - 0xc]
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4a0560
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x5152b4]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x4a0642
test eax, eax
mov edi, dword [0x5536bc]
jne 0x4a05e0
test edi, edi
mov dword [ebp - 0x1c], edi
je 0x4a05d3
mov eax, edi
lea esi, [ebp - 0x1c]
nop
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4a05c7
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call ecx
cmp eax, 6
je 0x4a0610
cmp eax, 8
jne 0x4a0635
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x4a0590
mov eax, 5
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x5536b8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x4a0583
mov eax, dword [ebp - 0x1c]
mov edx, esi
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x1c], edi
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.004a0010
cmp eax, 7
jne 0x4a05d8
mov eax, esi
call fcn.004a0190
lea esp, [ebp - 0xc]
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004a0100
mov eax, dword [0x5152b4]
jmp 0x4a0579

Function at 0x4a06f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edx, dword [0x5152b4]
mov ebx, dword [ebp + 8]
test edx, edx
js 0x4a0766
test edx, edx
mov eax, dword [0x5536bc]
jne 0x4a073e
mov ecx, dword [ebx + 0xc]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov edx, esi
mov eax, ebx
test ecx, ecx
jne 0x4a072f
call fcn.004a0010
cmp eax, 7
je 0x4a0737
call sub.msvcrt.dll_abort
nop
call fcn.004a0200
jmp 0x4a0725
mov eax, esi
call fcn.004a0190
mov esi, dword [0x5536b8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
push edi
jmp 0x4a070f
call fcn.004a0100
mov edx, dword [0x5152b4]
jmp 0x4a0706
Function at 0x4a0780
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4a07c0
mov edx, dword [0x5152b4]
test edx, edx
js 0x4a0804
test edx, edx
mov eax, dword [0x5536bc]
jne 0x4a07d8
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004a0200
cmp eax, 7
je 0x4a07d0
call sub.msvcrt.dll_abort
lea esi, [esi]
mov dword [esp], ebx
call fcn.004a0560
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1c]
call fcn.004a0190
mov esi, dword [0x5536b8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
sub esp, 4
jmp 0x4a07a6
call fcn.004a0100
mov edx, dword [0x5152b4]
jmp 0x4a079d
Function at 0x4a2390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x22c
mov ebx, dword [ebp + 8]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x4a2523
cmp word [ebx], 0
je 0x4a24f0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4a2505
test al, 0x10
je 0x4a24f0
lea esi, [ebp - 0x220]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sub.msvcrt.dll__wfullpath
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x548c80
mov edi, eax
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x548c84
mov ebx, eax
call sub.msvcrt.dll_wcslen
lea edx, [edi + ebx + 0x21d]
add eax, edx
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x4a2514
lea edi, [eax + 0x434]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_wcscpy
cmp word [ebx + 0x434], 0
jne 0x4a24b0
mov dword [esp], edi
mov dword [esp + 4], 0x548c84
call sub.msvcrt.dll_wcscat
xor edx, edx
xor eax, eax
mov word [ebx + 0x222], dx
lea edx, [ebx + 0x224]
mov ecx, 0x41
mov word [ebx + 0x220], ax
mov edi, edx
xor eax, eax
mov dword [ebx + 0x42c], 0xffffffff
mov dword [ebx + 0x430], 0
mov dword [ebx + 0x21c], 0
rep stosd dword es:[edi], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x2f
je 0x4a2450
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x5c
je 0x4a2450
mov dword [esp + 4], 0x548c80
mov dword [esp], edi
call sub.msvcrt.dll_wcscat
jmp 0x4a2450
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x4a24a3
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x4a24a3
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x4a24a3
Function at 0x4e5050
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov ecx, edi
call fcn.004e4ed0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebp, eax
je 0x4e5090
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x4e5061
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x5097f0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push edi
push esi
push ebx
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
xor eax, edi
cmp edi, 3
jbe 0x50987f
lea ecx, [edi - 4]
shr ecx, 2
lea esi, [edx + ecx*4 + 4]
imul ebx, dword [edx], 0x5bd1e995
add edx, 4
mov ecx, ebx
shr ecx, 0x18
xor ecx, ebx
imul ebx, eax, 0x5bd1e995
imul eax, ecx, 0x5bd1e995
xor eax, ebx
cmp edx, esi
jne 0x509810
and edi, 3
cmp edi, 2
je 0x509869
cmp edi, 3
je 0x509860
cmp edi, 1
je 0x509872
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0x5bd1e995
pop ebx
pop esi
pop edi
mov eax, edx
shr eax, 0xf
xor eax, edx
ret
movzx edx, byte [esi + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [esi + 1]
shl edx, 8
xor eax, edx
movzx edx, byte [esi]
xor edx, eax
imul eax, edx, 0x5bd1e995
jmp 0x509844
mov esi, edx
jmp 0x509835
Function at 0x4013a0
Capabilities:
Execute command

Disassembly:
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.Hello_World__n
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call section..text
add esp, 0xc
xor eax, eax
ret

Function at 0x401bcc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401c0b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401c0b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c0b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401c0b
cmp dword [ecx + 0x74], 0xe
jbe 0x401c0b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401706
Capabilities:
Create process on windows

Disassembly:
push 5
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_WinExec]
ret
Function at 0x402565
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.00402506
pop ecx
pop ecx
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x4025fc
cmp eax, 0xffffffff
je 0x4025fc
push ebx
push esi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
mov esi, 0xf01ff
push 1
push 1
push 1
push esi
lea ecx, [ebp - 0x44]
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
cmp ebx, edi
je 0x4025c2
cmp ebx, 0xffffffff
jne 0x4025d8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
push edi
push edi
push ebx
call dword [0x408690]
test eax, eax
je 0x4025e8
xor edi, edi
inc edi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 4]
call esi
pop esi
mov eax, edi
pop ebx
jmp 0x4025fe
xor eax, eax
pop edi
leave
ret

Function at 0x402601
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push edi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
call fcn.00402506
pop ecx
pop ecx
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
je 0x40267a
cmp ebx, 0xffffffff
je 0x40267a
push esi
push 0xf01ff
lea eax, [ebp - 0x5c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x40266e
cmp esi, 0xffffffff
je 0x40266e
lea eax, [ebp - 0x1c]
push eax
inc edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x402667
xor edi, edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop esi
jmp 0x40267c
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x402680
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
call esi
push 0x7d0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
sub eax, edi
cmp eax, 0x5dc
pop edi
pop esi
ja 0x4026ac
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
xor eax, eax
ret
Function at 0x402d2b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
call fcn.004026af
push 0xa365
xor eax, eax
mov al, byte [0x408640]
push 0x232
push 0x10
push 0
push eax
lea eax, [ebp - 8]
push 0x4065c8
push eax
call fcn.00403460
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 8]
call fcn.00404930
mov esi, 0x200
push esi
call fcn.00404320
pop ecx
push esi
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
xor eax, eax
mov al, byte [0x408640]
push eax
lea eax, [ebp - 8]
push 0x4065bc
push eax
call fcn.00403460
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push eax
lea ecx, [ebp - 4]
call fcn.00404880
lea ecx, [ebp - 8]
call fcn.00404930
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.00405400
pop ecx
call fcn.00404200
test eax, eax
jne 0x402e1b
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
push edi
call fcn.004052d0
pop ecx
pop ecx
push edx
push eax
lea ecx, [ebp - 4]
call fcn.004047a0
push eax
call fcn.00405360
add esp, 0xc
call fcn.00404260
test eax, eax
jne 0x402e0f
push eax
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
lea ecx, [ebp - 4]
call fcn.00404930
xor eax, eax
jmp 0x402e47
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
call fcn.004047a0
push eax
call fcn.004052e0
test eax, eax
pop ecx
pop ecx
je 0x402e3c
push dword [ebp - 0xc]
call fcn.00404d70
pop ecx
lea ecx, [ebp - 4]
call fcn.00404930
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x402f00
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
xor eax, eax
push eax
push eax
push 0x402e4b
push 0x2000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_Sleep]
xor eax, eax
pop ecx
ret 0x10