joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b118
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x42b13f
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x42b142
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0042b0f4
pop esi
leave
ret 8

Function at 0x42cf82
Capabilities:
Parse pe header

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

Function at 0x42d510
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x44d100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x42d537
mov ecx, 5
int 0x29
push 2
call fcn.0042d026
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x42d642
test esi, esi
jne 0x42d642
push 2
call fcn.0042d026
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042c1ae
mov esp, ebp
pop ebp
ret
Function at 0x439240
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x43926a
mov eax, 2
pop ebp
ret
push esi
call fcn.0042d360
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x43928a
jmp dword [eax*4 + 0x4392c0]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.0042d4a0
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x4392d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x44d100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4393cb
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x4393cb
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x43932a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x439308
jmp 0x4393cb
cmp edx, 0x200
jae 0x439431
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x4393cb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x4393ca
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x4393ca
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x439413
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x4393b0
pop edi
mov eax, dword [0x44e1c8]
test eax, eax
jne 0x4393f1
push 0x4462d8
call fcn.0043a140
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4393ec
or eax, 0xffffffff
mov dword [0x44e1c8], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x43941f
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c1ae
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x4393ca
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c1ae
mov esp, ebp
pop ebp
ret
call fcn.0042c445
int3

Function at 0x439730
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00439760
mov esi, dword [ebp + 8]
test al, al
je 0x43974e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.00439770
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4398a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4398fc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4398fc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4398fc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4398fc
cmp dword [ecx + 0x74], 0xe
jbe 0x4398fc
cmp dword [ecx + 0xe8], 0
je 0x4398fc
push dword [ebp + 8]
call fcn.00439770
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x44e1d4
call fcn.00439540
add esp, 8
cmp dword [ebp - 8], 0
jne 0x439931
push dword [ebp + 8]
call fcn.00439730
mov esp, ebp
pop ebp
ret

Function at 0x439970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4399cc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4399cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4399cc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4399cc
cmp dword [ecx + 0x74], 0xe
jbe 0x4399cc
cmp dword [ecx + 0xe8], 0
je 0x4399cc
push dword [ebp + 8]
call fcn.00439770
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x44e1d4
call fcn.00439540
add esp, 8
cmp dword [ebp - 8], 0
jne 0x439a01
push dword [ebp + 8]
call fcn.00439730
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x1f394cf8
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x56ed4b5d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x379e42e3
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x778223e9
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x103f6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x103f61a8
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 0x103f607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103f606a
add dl, dl
jne 0x103f6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103f60dc
xor eax, eax
add dl, dl
jne 0x103f6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103f617d
add dl, dl
jne 0x103f60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103f60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103f60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103f60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x103f60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x103f6075
mov eax, 1
add dl, dl
jne 0x103f60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103f60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103f60e1
sub eax, ebx
mov ebx, 1
jne 0x103f6128
mov ecx, 1
add dl, dl
jne 0x103f610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103f6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103f6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103f6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x103f613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103f614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103f6136
cmp eax, 0x7d00
jae 0x103f616d
cmp eax, 0x500
jb 0x103f6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103f6075
cmp eax, 0x7f
ja 0x103f6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103f6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x103f619e
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 0x103f6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x721550
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31b000]
push edi
or ebp, 0xffffffff
jmp 0x721572
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x721579
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x721568
mov eax, 1
add ebx, ebx
jne 0x72158b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x72159c
jne 0x7215ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7215ac
dec eax
add ebx, ebx
jne 0x7215a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x721580
xor ecx, ecx
sub eax, 3
jb 0x7215c4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x721636
sar eax, 1
mov ebp, eax
jmp 0x7215cf
add ebx, ebx
jne 0x7215cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x7215dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x721600
inc ecx
add ebx, ebx
jne 0x7215ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7215e1
jne 0x7215fd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7215e1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x721620
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x721611
jmp 0x72156e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x721620
add edi, ecx
jmp 0x72156e
pop esi
mov edi, esi
mov ecx, 0x197
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x72163e
cmp byte [edi], 7
jne 0x72163e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x721643
lea edi, [esi + 0x31f000]
mov eax, dword [edi]
or eax, eax
je 0x7216bb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x321f9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x322028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x721670
mov ecx, edi
jns 0x72169f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x32202c]
or eax, eax
je 0x7216b5
mov dword [ebx], eax
add ebx, 4
jmp 0x72168d
call dword [esi + 0x322030]
popal
jmp 0x4028c0
Function at 0x42b224
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x438e80]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042b1b9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004162c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42b273
cmp dword [ebp - 0x1c], 5
jb 0x42b28b
jmp 0x42b287
cmp dword [ebp - 0x10], 1
jne 0x42b28b
cmp dword [ebp - 0x1c], 4
ja 0x42b287
jne 0x42b28b
cmp dword [ebp - 0x18], 0
jbe 0x42b28b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4327a4
call fcn.0042b08d
test eax, eax
jge 0x42b2ac
mov byte [0x43a368], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00416063
add ebp, 0x78
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x761a4e9f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x335e6945
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10005820
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x410
mov eax, dword [0x10009004]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [edx]
mov dword [esp], ecx
push ebx
push ebp
push esi
push edi
cmp eax, 0x16
je 0x10005922
mov ebp, dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esi, [edx + 0x10]
nop
test eax, eax
js 0x10005940
cmp eax, 0x16
jge 0x10005940
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x10005913
mov eax, dword [eax*8 + 0x1000901c]
test eax, eax
je 0x10005940
mov edi, dword [esi - 4]
add ecx, eax
mov edx, dword [esi - 8]
mov dword [esp + 0x18], edx
test edi, edi
je 0x1000589a
mov eax, 0xfffffffc
sub eax, edi
sub eax, ecx
add edx, eax
mov dword [esp + 0x18], edx
mov ebx, dword [esi]
add edi, ecx
test ebx, ebx
je 0x100058df
push ebx
push edx
lea eax, [esp + 0x24]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x40
push ebx
push edi
call ebp
push 0
push dword [esi]
lea eax, [esp + 0x24]
push eax
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push dword [esi]
jmp 0x1000590c
lea eax, [esp + 0x14]
push eax
push 0x40
push 4
push edi
call ebp
push 0
push 4
lea eax, [esp + 0x20]
push eax
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push 4
push edi
call ebp
test ebx, ebx
je 0x10005940
mov eax, dword [esi + 4]
add esi, 0x14
cmp eax, 0x16
jne 0x10005850
mov eax, 1
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10005e3f
add esp, 0x410
ret
xor eax, eax
jmp 0x10005927
Function at 0x10005950
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x10009004]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea eax, [esp + 0xc]
push edi
push eax
push 0xf01ff
call esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
jne 0x100059ac
push 0x10
push str.D2Plugin_Error
push str.OpenProcessToken_Failed
push 0
call edi
push 0xffffffffffffffff
call esi
push eax
call ebx
jmp 0x10005a2c
lea eax, [esp + 0x14]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x100059d0
push 0x10
push str.D2Plugin_Error
push str.LookupPrivilegeValue_Failed
jmp 0x10005a17
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push 0
push dword [esp + 0x24]
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], 2
mov dword [esp + 0x3c], ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10005a22
push 0x10
push str.D2Plugin_Error
push str.AdjustTokenPrivileges_Failed
push 0
call edi
push 0xffffffffffffffff
call esi
push eax
call ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10005a60
push 0x10
push str.D2Plugin_Error
push str.Failed_to_retrieve_process
push eax
call edi
push 0xffffffffffffffff
call esi
push eax
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10005e3f
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, 0x10009018
mov ebx, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push dword [esi]
call ebx
test eax, eax
jne 0x10005a7d
push dword [esi]
call edi
mov dword [esi + 4], eax
add esi, 8
cmp esi, 0x100090c8
jl 0x10005a71
push str.D2HD.dll
call edi
call fcn.10004580
mov esi, dword [esp + 0x10]
mov edx, 0x100078e8
mov ecx, esi
call fcn.10005820
mov edx, 0x10007950
mov ecx, esi
call fcn.10005820
mov edx, 0x10007a40
mov ecx, esi
call fcn.10005820
push str.PlugY.dll
call edi
mov ecx, dword [esp + 0x2c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10005e3f
mov esp, ebp
pop ebp
ret
Function at 0x4141b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov esi, ecx
cmp eax, dword [ebx + 8]
je 0x4141cf
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
xor edx, edx
cmp eax, edx
jne 0x4141ef
mov dword [esi + 8], edx
cmp byte [esi + 0x11], dl
je 0x41424c
pop edi
mov dword [esi + 0x14], edx
mov dword [esi + 0xc], edx
mov byte [esi + 0x11], dl
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
cmp byte [esi + 0x10], 0xdb
je 0x414207
push edx
call fcn.0040a460
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
cmp dword [esi + 0xc], eax
jae 0x414218
push eax
call fcn.00410670
test al, al
je 0x4141c6
xor edx, edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], eax
cmp eax, ecx
jbe 0x414228
mov dword [esi + 8], ecx
cmp dword [esi + 0x14], edx
je 0x4141c6
xor eax, eax
cmp dword [edi + 8], edx
jbe 0x41424c
mov ecx, dword [edi + 0x14]
mov edx, dword [ebx + 0x14]
mov cl, byte [ecx + eax]
xor cl, byte [edx + eax]
mov edx, dword [esi + 0x14]
mov byte [eax + edx], cl
inc eax
cmp eax, dword [edi + 8]
jb 0x414234
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8

Function at 0x4214b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73947b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0040a400
cmp byte [0x89f5d9], 0
jne 0x42154e
push 0x200
push 0
push 0x89f220
call fcn.0070dc20
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
push 0x89f220
mov dword [ebp - 0x12c], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x421547
mov ecx, dword [0x79bdd0]
mov edx, dword [0x79bdd4]
mov ax, word [0x79bdd8]
mov dword [0x89f220], ecx
mov dword [0x89f224], edx
mov word [0x89f228], ax
mov byte [0x89f5d9], 1
lea ecx, [ebp - 0x128]
call fcn.00403e00
push 0x89f220
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0
call fcn.00406bc0
lea ecx, [ebp - 0x128]
call fcn.00405670
push eax
mov ecx, esi
call fcn.0040a8e0
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0xffffffff
call fcn.00403e90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret
Function at 0x426a10
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7394c6
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x899944]
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, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x240]
call fcn.00403e00
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0
call fcn.00403e00
push esi
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.00407700
push ebx
lea ecx, [ebp - 0x128]
call fcn.00407700
push 0x5c
push 0x2f
lea ecx, [ebp - 0x240]
call fcn.004078c0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x128]
call fcn.004078c0
xor eax, eax
cmp byte [ebp + 0x10], al
lea ecx, [ebp - 0x128]
setne al
push eax
call fcn.00406500
push eax
lea ecx, [ebp - 0x240]
call fcn.00406500
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
test bl, bl
jne 0x426ad9
test edi, edi
je 0x426ad9
mov ecx, edi
call fcn.00474d10
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call fcn.00403e90
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0xffffffff
call fcn.00403e90
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.0070bb4c
mov esp, ebp
pop ebp
ret