joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406840
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b7
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
stc
inc ebx
add al, 0x83
clc
push edi
je 0x4069ef
mov ecx, dword [ebx + 0x10]
test ecx, ecx
aam 0x84
mov dword [ecx], eax
add byte [eax], al
mov esi, dword [ebp - 0x4e]
mov eax, dword [ebx + 0x28568d14]
popfd
push edx
push eax
cld
adc eax, 0x5c40a5a4
cmp eax, 0xffffffff
jne 0x4069b8
mov ecx, dword [ecx - 0x28]
mov al, byte [eax]
call [edi - 0x7bf03f7b]
stc
push ebx
add byte [eax], al
popfd
push esp
add eax, 0x51e2fcf1
cmp eax, 0x5c23b3
orps xmm2, xmmword [ecx + 1]
pushal
add byte [ecx], bl
push es
and byte [ebp + 0x73], dh
push ebp
mov eax, edi
or eax, esi
jne 0x4068ba
mov bl, byte [esi - 0x63]
mov ah, 0x23
or eax, dword [eax]
pop ebx
push ebx
in eax, 0x5d
or al, 8
add byte [ebx - 0x4546fbbd], cl
add byte [ebx - 0x76097a8c], al
test esp, esi
std
invalid
mov eax, dword [ebx]
mov dword [esp + edx], esi
cmp word [eax + 0x2a], 0xff83
jne 0x4069cc
mov dword [ebx + 0x2c], 1
arpl word [eax + 0x18], cx
invalid
mov eax, 0x975ef
pop edi
pop esi
pop ebx
adc eax, 0x8c25de5
add byte [eax - 0x74aa1c70], dl
push ebp
mov ebp, esp
xor ebx, 8
lea eax, [ebp - 0x10]
in eax, dx
push eax
call dword [0x40c0da]
push cs
push ebp
cld
mov eax, dword [ebp - 8]
xor esi, esi
xor ecx, ecx
or esp, dword [ecx + 0x6ac80b56]
or dl, byte [edx + 0x51]
call fcn.00409b90
sub eax, 0x4886b200
pop esi
sbb edx, 0x295e96
mov esp, ebp
pop ebp
cmp dl, byte [edi]
pop edx
nop
nop
nop
nop
cmc
Function at 0x4038fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408398]
jne 0x403906
repz ret
jmp fcn.00403dae

Function at 0x433003
Capabilities:
Authenticate hmac
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x523a363c
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x47fc066d
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0xed6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xed61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xed607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xed606a
add dl, dl
jne 0xed6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xed60dc
xor eax, eax
add dl, dl
jne 0xed6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xed617d
add dl, dl
jne 0xed60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xed60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xed60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xed60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xed60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xed6075
mov eax, 1
add dl, dl
jne 0xed60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xed60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xed60e1
sub eax, ebx
mov ebx, 1
jne 0xed6128
mov ecx, 1
add dl, dl
jne 0xed610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xed6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xed6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xed6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xed613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xed614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xed6136
cmp eax, 0x7d00
jae 0xed616d
cmp eax, 0x500
jb 0xed6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xed6075
cmp eax, 0x7f
ja 0xed6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xed6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xed619e
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 0xed6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x5249a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5dd024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x5249ce
xor eax, eax
jmp 0x524a2a
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x5249fb
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x5249fb
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x524ab1
cmp dword [edi + 0x4c], 0
je 0x524a24
mov ecx, edi
call fcn.0052468c
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x524a3a
push dword [edi + 0x4c]
push ebx
call fcn.005242ba
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x524a29
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005255bb
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x57e2c0]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x524a84
sub eax, 1
je 0x524a84
dec eax
sub eax, 1
jne 0x524a24
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x524a16
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x524aa1
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.005344e5
add esp, 0x10
cmp esi, eax
jne 0x524a24
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x524a24
mov ax, bx
jmp 0x524a29

Function at 0x53e80d
Capabilities:
Read file on windows

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

Function at 0x53e818
Capabilities:
Read file on windows

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

Function at 0x54035a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053ffd7
Function at 0x44212d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44215b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x442179
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00442097
jmp 0x442179
mov eax, dword [esi + 0x14]
test eax, eax
je 0x442179
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00442097
test edi, edi
mov eax, edi
jne 0x442163
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x56c32c]
test ecx, ecx
je 0x44222c
jmp 0x44212c
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x64347e88
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2e2e5e09
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x404040
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040dd20
mov eax, dword [0x42f024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edx
push 0
push ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.00404460
push dword [eax + 4]
push dword [eax]
call fcn.0041292a
or ecx, 0xffffffff
lea esi, [ebp - 0x2004]
add esp, 0x20
mov edx, 0x1ffd
test eax, eax
cmovs eax, ecx
test eax, eax
mov ecx, eax
cmovs ecx, edx
lea esi, [esi + ecx*2]
jle 0x4040d6
lea eax, [ebp - 0x2004]
cmp esi, eax
jbe 0x4040ca
push edi
movzx eax, word [esi - 2]
push eax
call fcn.00412a93
add esp, 4
test eax, eax
je 0x4040c9
add esi, 0xfffffffe
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x2004]
cmp esi, eax
ja 0x4040a6
pop edi
xor eax, eax
mov dword [esi], 0xa000d
mov word [esi + 4], ax
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040cc4a
mov esp, ebp
pop ebp
ret
Function at 0x4086a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x42f024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x804]
mov edi, ecx
push 0
push eax
call fcn.0040ebe0
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
add esp, 0xc
mov dword [ebp - 0x808], 0x800
xor esi, esi
mov dword [edi], 0
cmp esi, 2
je 0x408781
cmp esi, 3
je 0x408781
cmp esi, 6
je 0x408781
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
call ebx
test eax, eax
je 0x408761
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408720
sub eax, edx
sar eax, 1
je 0x408761
lea eax, [ebp - 0x804]
push eax
push str.CSecRMMWMILicense::GetComputerNames:__s_n
call fcn.00404100
mov ecx, dword [edi]
add esp, 8
lea eax, [ecx + 1]
add ecx, 0x204
mov dword [edi], eax
lea eax, [ebp - 0x804]
push eax
lea ecx, [edi + ecx*4]
call fcn.00409270
push 0x800
lea eax, [ebp - 0x804]
mov dword [ebp - 0x808], 0x800
push 0
push eax
call fcn.0040ebe0
add esp, 0xc
inc esi
cmp esi, 8
jl 0x4086e6
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cc4a
mov esp, ebp
pop ebp
ret

Function at 0x4087a0
Capabilities:
Get domain information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
push 1
push 0
mov dword [esi + 4], 0
call dword [sym.imp.NETAPI32.dll_DsRoleGetPrimaryDomainInformation]
test eax, eax
jne 0x40883f
mov eax, dword [ebp - 4]
test eax, eax
je 0x40883f
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x408803
push ecx
push str.CSecRMMWMILicense::GetDomainNames__DomainNameDns:__s_n
call fcn.00404100
mov ecx, dword [esi + 4]
add esp, 8
lea eax, [ecx + 1]
add ecx, 0x20c
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
lea ecx, [esi + ecx*4]
push dword [eax + 0xc]
call fcn.00409270
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x408838
push ecx
push str.CSecRMMWMILicense::GetDomainNames__DomainNameFlat:__s_n
call fcn.00404100
mov ecx, dword [esi + 4]
add esp, 8
lea eax, [ecx + 1]
add ecx, 0x20c
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
lea ecx, [esi + ecx*4]
push dword [eax + 8]
call fcn.00409270
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.NETAPI32.dll_DsRoleFreeMemory]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408850
Capabilities:
Get domain information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
push 1
push 0
mov dword [esi + 8], 0
call dword [sym.imp.NETAPI32.dll_DsRoleGetPrimaryDomainInformation]
test eax, eax
jne 0x4088ba
mov eax, dword [ebp - 4]
test eax, eax
je 0x4088ba
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4088b3
push ecx
push str.CSecRMMWMILicense::GetForestNames__DomainForestName:__s_n
call fcn.00404100
mov ecx, dword [esi + 8]
add esp, 8
lea eax, [ecx + 1]
add ecx, 0x20f
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
lea ecx, [esi + ecx*4]
push dword [eax + 0x10]
call fcn.00409270
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.NETAPI32.dll_DsRoleFreeMemory]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4088d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420286
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x42f024]
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 dword [ebp - 0x474], ecx
push 0x20
mov dword [ebp - 0x46c], 0
call fcn.0040cc69
mov edx, eax
add esp, 4
mov dword [ebp - 0x470], edx
mov dword [ebp - 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
lea ecx, [edx + 0x10]
mov dword [ecx], 0
lea esi, [edx + 0x14]
mov dword [esi], 0
lea ebx, [edx + 0x18]
mov dword [ebx], 0
lea edi, [edx + 0x1c]
mov dword [edi], 0
push 0x428f00
mov byte [ebp - 4], 6
call fcn.00409270
push 0x428f00
mov ecx, esi
call fcn.00409270
mov esi, dword [ebp - 0x470]
push 0x428f00
lea ecx, [esi + 8]
call fcn.00409270
push 0x428f00
lea ecx, [esi + 0xc]
call fcn.00409270
push 0x428f00
mov ecx, ebx
call fcn.00409270
push 0x428f00
mov ecx, edi
call fcn.00409270
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00409c30
cmp eax, 1
jne 0x4089da
xor eax, eax
cmp dword [esi + 4], 1
sete al
mov dword [ebp - 0x46c], eax
mov ecx, esi
call fcn.00409a30
push 0x20
push esi
call fcn.0040cc5b
add esp, 8
cmp dword [ebp - 0x46c], 1
jne 0x408b0b
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040ebe0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x4306a8
push 0x100
push eax
call fcn.004136fc
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x42a7ac
push 0x100
push eax
call fcn.004136fc
add esp, 0xc
lea eax, [ebp - 0x218]
push str..lic
push 0x100
push eax
call fcn.004136fc
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x42a7b0
call fcn.00404100
add esp, 8
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x408b0b
push 0
push 0x80
push 3
push 0
push 1
push 0x120089
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408b04
mov ebx, dword [ebp - 0x474]
push 0
lea eax, [ebx + 0x80c]
push eax
push 0x800
lea eax, [ebx + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x43c]
push eax
push str.CSecRMMWMILicense::GetLicenseFromExternalFileInHyperVVM:_Found_file__s_n
call fcn.00404100
add esp, 8
lea eax, [ebp - 0x43c]
lea ecx, [ebx + 0x844]
push eax
call fcn.00409270
mov ecx, ebx
call fcn.00408fb0
mov eax, 1
jmp 0x408b0d
xor eax, eax
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.0040cc4a
mov esp, ebp
pop ebp
ret
Function at 0x408e10
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420328
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x42f024]
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 ebx, ecx
mov dword [ebp - 4], 0
push 0xc
mov dword [ebp - 0x14], 0
call fcn.0040cc69
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x408e8a
push 0x428f00
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x408f8c
jmp 0x408e8c
xor esi, esi
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [eax], esi
test esi, esi
je 0x408f96
mov dword [ebp - 4], 0
lea esi, [ebx + 0x80c]
push dword [esi]
mov dword [ebp - 0x14], 1
call fcn.00412d8a
mov ecx, dword [esi]
add esp, 4
dec ecx
mov edi, eax
cmp ecx, 0xffffffff
jle 0x408ed7
mov edx, edi
mov al, byte [ebx + ecx + 0xc]
lea edx, [edx + 1]
dec ecx
mov byte [edx - 1], al
cmp ecx, 0xffffffff
jg 0x408ec7
push esi
push edi
push 0
push 1
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x408f07
mov eax, dword [esi]
xor ecx, ecx
test eax, eax
je 0x408f02
mov al, byte [ecx + edi]
mov byte [ebx + ecx + 0xc], al
inc ecx
mov eax, dword [esi]
cmp ecx, eax
jb 0x408ef4
mov byte [eax + ebx + 0xc], 0
push edi
call fcn.00412d95
add esp, 4
add ebx, 0xc
je 0x408f5d
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408f20
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x408f5d
lea eax, [edi + edi]
call fcn.0040d6b0
mov esi, esp
test esi, esi
je 0x408f5d
push edi
push esi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x408f5f
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
call fcn.00409270
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x28]
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.0040cc4a
mov esp, ebp
pop ebp
ret 8
push 0x8007000e
call fcn.0040cae0
push 0x8007000e
call fcn.0040cae0
int3

Function at 0x409390
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42da80
push 0x40e500
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x42f024]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
push str.CSecRMMWMIOsCallWithExceptionHandler::WTSQuerySessionInformationWithExceptionHandler_entered..._n
call fcn.00404100
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffffffffffffffff
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
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 0x40b710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b769
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b769
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40b758
cmp esi, edx
jae 0x40b769
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40b746
cmp esi, edx
jae 0x40b769
cmp word [esi], 0
je 0x40b769
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x418536
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004181e4
Function at 0x4026e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x402772
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x402764
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40275c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x402725
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x10001c62
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x10001ca9
cmp ebx, 0x20
je 0x10001ca9
cmp ebx, 0xffffffe0
je 0x10001ca9
jne 0x10001cb2
add eax, 1
cmp esi, eax
je 0x10001cbf
jne 0x10001c8e
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x10001cc3
jne 0x10001c8a
pop edx
mov eax, dword [edx + 0x18]
mov ebx, eax
cmp ebx, 0
je 0x10001d04
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x10001d0a
add eax, 4
pop esi
dec esi
push esi
jne 0x10001cec
xor eax, eax
mov dword [ebp - 8], eax
nop
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
mov dword [ebp - 8], eax
sub esp, 8
push esi
mov esi, dword [ebp + 0x10]
mov esi, dword [esi]
mov esi, dword [esi + 4]
lea ecx, [esi - 1]
test ecx, ecx
jl 0x10001d4b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
lea eax, [eax + ecx*4 + 8]
inc ecx
push dword [eax]
sub eax, 4
dec ecx
jne 0x10001d43
call dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10001d60
lea eax, [esi*4]
add esp, eax
mov eax, ebx
leave
ret 0x14

Function at 0x10001dad
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x30]
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x12c
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.100b06a0
add esp, 0x1c
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.10001e35
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10001e29
push ebx
call fcn.100afeb9
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x10001e31
mov esp, ebp
pop ebp
ret