joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ea335
Capabilities:
Encode data using xor

Disassembly:
push 0xf20ad33c
cmp eax, 0x27ef7ff
xchg ecx, eax
test dword [edi + 0x5dbc9ccb], 0xb39677df
mov cl, 0x3a
lcall 0x17e8, 0xe75b57d1
cwde
leave
lds eax, [edi - 0x3a]
sbb eax, 0xf9417aa1
jp 0x4ea378
stc
jp 0x4ea378
stc
je 0x4ea350
sub al, byte [esi - 0x75]
sbb al, 0x80
outsb dx, byte [esi]
inc ebx
push esp
push esp
salc
dec edi
dec byte [ebx - 0x58]
xor ebp, edx
jmp 0x4ea3c4
sbb dword [ebx*8 + 0x12efbd04], ebp
and eax, 0x4972202d
xlatb
imul edx, dword [edx + 0x5a069e45], 0xffb78f13
pushal
xchg ecx, eax
xchg ebx, eax
and eax, dword [eax - 0x37]
fidiv word [edi]
dec ecx
enter 0xffffffffffffc20d, 0x61
jnp 0x4ea310
cmp ecx, dword [edx]
mov edi, 0xe17ed17b
push 0x47d75562
in al, 0x36
xor dh, byte [esi - 0x68145384]
pop esi
mov dh, 0x56
clc
fldcw word [esp + 0x21]
fsubr dword [esi]
xor esi, dword [edi - 0x43]
inc esi
pop esi
push ss
adc eax, 0xb4767ceb
sub byte [edx + ebx + 0x3ac0994c], al
dec esi
test eax, 0x4074ba8f
cmp dl, al
xchg ebx, eax
mov al, al
lahf
mov dl, 0x94
das
mov ah, 0xba
dec ecx
add eax, 0x7104932
adc edi, esp
push eax
mov dh, 0x49
dec ecx
cdq
pop ss
pop es
test dword [ebp - 0x5a], eax
std
ficom dword [eax]
mov bh, 0xe7
fild word [edx]
invalid

Function at 0x543e49
Capabilities:
Encode data using xor

Disassembly:
test al, 0xfc
test al, 0x4c
cmp dword [esi], esi
adc byte [esi], 0xa0
sbb esp, dword [ebx + 0x55f8571f]
xchg ebx, eax
inc ebx
pop eax
sub eax, 0xd780635c
xor byte [eax - 0x402543b3], dh
sbb byte [ebx + 0x5d], dl
push ebx
pop ebp
push ebx
pop ebp
push ecx
div byte [edx + 0x6b1463b2]
and dword [eax + ecx*2], esi
jo 0x543e2f
ja 0x543ec2
adc edi, dword [edx]
nop
jnp 0x543e24
invalid
mov dword [edx - 0x7567c7d8], 0xc6635694
sbb byte [eax], 0x88
shr byte [eax], 0xed
cmp byte [edx + 0x44155a0], dl
or al, 0x18
invalid
das
dec eax
Function at 0x5840e5
Capabilities:
Encode data using xor

Disassembly:
sbb dword [bp + si - 2], 0x97a9c4e6
std
nop
rol byte [ebx + 0x16b041c0], 0xb
out 0xc4, al
test eax, 0xc090fd97
add eax, 0x41
mov al, 0x16
or eax, dword [ebp + 0x58]
inc ebp
pop eax
cmp dword ss:[ebp + 0x27], edx
cmp byte [ecx + 0x572b5f45], ch
movsd dword es:[edi], dword [esi]
sbb byte [si - 0x6364], bl
pushfd
pushfd
pushfd
mov dword [0x4438f720], eax
cwde
int1
or esp, dword [ebp + ecx*4 - 0x53]
push 0xd7111d65
lea ebp, [ebp + 0x111d6568]
xlatb
in eax, 0xe0
add eax, edi
adc ebx, dword [ecx]
jnp 0x584095
pushal
push edi
imul edi, dword [esi - 0x31bec2dd], 0xffffffe9
mov ah, 0xff
sub esp, ebp
cmpsb byte [esi], byte es:[edi]
pop esp
xchg ebp, eax
outsd dx, dword [esi]
leave
and eax, 0x541360ed
sub byte [ebx + 0x2f], dl
xor al, 0x65
sub byte [bp + si - 0x4edf], ch
outsb dx, byte [esi]
adc edi, dword [esi]
rcr dword [edi - 0x434e636b], 1
loopne 0x584011
rol byte [ebx - 0x2e5a636d], cl
mov dh, 0xbc
jae 0x584022
fstp qword [esi]
fisub dword [ebx]
lodsd eax, dword [esi]
mov ecx, 0x7e3440df
jne 0x584015
cmc
js 0x584028
adc ebx, ebx
invalid
dec esp
and eax, 0xffcb0e17
mov dl, 0xb5
push esi
inc ebp
mov ebp, 0xe33d18b9
mov ah, 0x18
jns 0x58403d
sub ah, byte [edi + 0x1b796333]
xor eax, 0x4f7bc4c7
std
movsb byte es:[edi], byte [esi]
or byte [edx + 0x28375995], 0x74
cmp ebp, ebx
aaa
sub byte [ecx + edi - 0x23], dh
xchg dl, dh
xchg ecx, eax
xchg ebp, eax
and byte [edi + 0x62], dh
bound eax, qword [esi - 0x713bbe79]
xor al, 0x79
and dword [ebx], 0xffffffbc
imul edx, esi, 0x1b
std
lodsb al, byte [esi]
in al, 0xdd
and ah, 0xeb
sal dword [esi], 1
xchg ebx, eax
cld
jecxz 0x5840ba
out dx, eax
invalid
and dword [0x24c5e351], esp
jae 0x584087
xor dl, byte [esi]
hlt
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x49c008], 0x8088405
inc edx
mov dword [ebx + 0x49c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
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 0x41cd8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e5a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x483a63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e655
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483a6a
ret
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x484473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x49e2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x49e2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x49d10c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48447a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40a0c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40a0d7
pop dword [ebp - 0x40]
mov eax, 0xd3354318
add eax, 0x2d0b5dbf
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3dfcf
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x48e9
mov ebx, eax
mov esi, 0x1db164b8
add esi, 0xe291ef48
add esi, dword [ebp - 0x40]
mov edx, 0x8f13c55
sub edx, 0x7e9a31bc
mov edi, dword [esi]
xor dword [ebp - 0x38], ebx
sub edi, edx
mov dword [ebx], edi
add ebx, 4
add esi, 0x421bcda0
add esi, 0xbde43264
loop 0x40a12b
add eax, 0xb2c7e3c2
sub eax, 0xb2c6cd4b
xor ebx, ebx
add ebx, eax
add eax, 0xea112797
sub eax, 0xea112792
mov ecx, 0x7f38c2c
add ecx, 0xf84c73d4
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x10010033
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10010072
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010072
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010072
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10010072
cmp dword [ecx + 0x74], 0xe
jbe 0x10010072
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10012cef
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 0x10012d8c
push ebx
push esi
call fcn.10012cb8
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.10012c4c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012d39
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012d8b
push edi
push eax
call fcn.10013caa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10012d59
call fcn.10011794
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012d8a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10012c4c
add esp, 0x20
test eax, eax
jne 0x10012d78
push edi
call fcn.10011794
jmp 0x10012d80
push ebx
call fcn.10011794
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 0x10012ff9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a888
push 0x1001a880
push str.FlsAlloc
push 0x1f
call fcn.10012f15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001302d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
jmp 0x10013033
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10013077
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a898
push 0x1001a890
push str.FlsGetValue
push 0x21
call fcn.10012f15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100130ae
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100130b6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a8a0
push 0x1001a898
push str.FlsSetValue
push 0x22
call fcn.10012f15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100130f0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10018770
Capabilities:
Parse pe header

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

Function at 0x4912ae
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x4912cb
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4912bc
add dl, dl
jne 0x4912d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x491322
xor eax, eax
add dl, dl
jne 0x4912e3
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4913bf
add dl, dl
jne 0x4912f2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4912fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x491308
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x491313
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x49131d
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x4912c2
mov eax, 1
add dl, dl
jne 0x491330
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x49133b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x491327
sub eax, 2
jne 0x49136a
mov ecx, 1
add dl, dl
jne 0x491350
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x49135b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x491347
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4912c2
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x491381
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x49138c
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x491378
cmp eax, 0x7d00
jae 0x4913af
cmp eax, 0x500
jb 0x4913aa
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4912c2
cmp eax, 0x7f
ja 0x4913b2
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4912c2
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4913db
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4912c2
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
pop ebp
ret

Function at 0x4010d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret

Function at 0x4010f0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x413250]
movdqu xmm0, xmmword [str.SOFTWAREMicrosoftWindowsCurrentVersionRun]
mov dword [ebp - 0x3dc], eax
mov ax, word [0x413254]
mov word [ebp - 0x3d8], ax
lea eax, [ebp - 0xc0c]
movdqu xmmword [ebp - 0x404], xmm0
push eax
movdqu xmm0, xmmword [0x413238]
lea eax, [ebp - 0x404]
mov dword [ebp - 0xc10], 0x800
push eax
movdqu xmmword [ebp - 0x3f4], xmm0
push 0x80000001
movq xmm0, qword [0x413248]
movq qword [ebp - 0x3e4], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4011dc
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0xc14]
push eax
push 0
push str.browser_agent
push dword [ebp - 0xc0c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4011d0
lea eax, [ebp - 0xc08]
push eax
call fcn.00401030
add esp, 4
test eax, eax
je 0x4011d0
push dword [ebp - 0xc0c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406367
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc0c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00406367
mov esp, ebp
pop ebp
ret
Function at 0x4011f0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x413250]
movdqu xmm0, xmmword [str.SOFTWAREMicrosoftWindowsCurrentVersionRun]
mov dword [ebp - 0x3dc], eax
mov ax, word [0x413254]
mov word [ebp - 0x3d8], ax
lea eax, [ebp - 0xc0c]
movdqu xmmword [ebp - 0x404], xmm0
push eax
movdqu xmm0, xmmword [0x413238]
lea eax, [ebp - 0x404]
mov dword [ebp - 0xc10], 0x800
push eax
movdqu xmmword [ebp - 0x3f4], xmm0
push 0x80000001
movq xmm0, qword [0x413248]
movq qword [ebp - 0x3e4], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4012dc
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0xc14]
push eax
push 0
push str.Network_guide
push dword [ebp - 0xc0c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4012d0
lea eax, [ebp - 0xc08]
push eax
call fcn.00401030
add esp, 4
test eax, eax
je 0x4012d0
push dword [ebp - 0xc0c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406367
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc0c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00406367
mov esp, ebp
pop ebp
ret

Function at 0x4012f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x413258
push dword [ebp + 8]
push dword [0x41c140]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
xor esi, esi
test edi, edi
jne 0x401315
pop edi
pop esi
pop ebp
ret
push ebx
push edi
push dword [0x41c140]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [0x41c140]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x401361
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40135a
push ebx
push eax
push dword [ebp + 0xc]
call fcn.00401370
add esp, 0xc
mov ecx, 1
test eax, eax
cmovne esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4013c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00406380
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x808]
push ebx
push esi
mov ebx, 1
sub edx, ecx
lea esp, [esp]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4013f0
lea esi, [ebp - 0x808]
cmp byte [ebp - 0x808], al
je 0x4014ad
push edi
push 0x5c
push esi
call fcn.00406153
mov edi, eax
add esp, 8
test edi, edi
je 0x40142d
mov esi, edi
lea eax, [ebp - 0x808]
sub esi, eax
jmp 0x40144d
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401430
sub esi, ecx
je 0x4014ac
lea esi, [ebp - 0x808]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401444
sub esi, ecx
push esi
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x100c]
push eax
call fcn.00406205
add esp, 0xc
cmp esi, 0x801
jae 0x4014bf
lea eax, [ebp - 0x100c]
mov byte [ebp + esi - 0x100c], 0
push eax
call fcn.004010d0
add esp, 4
test eax, eax
jne 0x40149b
push eax
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
and ebx, eax
test edi, edi
je 0x4014ac
cmp byte [edi + 1], 0
lea esi, [edi + 1]
jne 0x401410
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00406367
mov esp, ebp
pop ebp
ret
call fcn.00405fef
int3

Function at 0x4014d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401523
cmp dword [ebp - 0x88], 2
jne 0x401523
cmp dword [ebp - 0x94], 6
jb 0x401523
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406367
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00406367
mov esp, ebp
pop ebp
ret

Function at 0x401560
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004063b0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esp, ebp
pop ebp
ret