joyce8/EMBER2024-capa huggingface dataset:
Function at 0x617fd7
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp]
std
pop dword [esp]
std
std
bswap eax
jmp 0x617fa7
lea edx, [esp + ebx]
pop dword [esp]
dec ax
xchg si, ax
sub edx, 0xa6861ab0
btc edx, esi
jmp 0x617f60
lea edx, [ebp*4]
setae dl
not dx
jmp 0x617fbe
xchg word [esp], si
mov edx, 0xf866c530
mov al, byte [esp]
mov dword [esp], ecx
setbe ah
not ax
jmp 0x617f91
lea eax, reloc.KERNEL32.dll_GetLocalTime
mov edx, dword [esp]
clc
lea edx, [ebp*4]
jmp 0x617ffb
sub eax, 0x5073258a
add esp, 0xd
mov ah, byte [esp + 1]
jmp 0x617f7b
mov word [esp + 1], si
xchg word [esp], ax
bts dx, di
xchg dword [esp], esi
jmp 0x618036
setae dl
add ah, ah
xchg dword [esp], esi
lea esi, [ecx + 4]
shl dl, 2
mov dword [esp], edi
jmp 0x617fe5
bsf dx, si
xchg esi, edx
cmc
ror dx, cl
cld
mov si, word [esp]
jmp 0x61805c
rol eax, cl
pop esi
std
lea esi, reloc.KERNEL32.dll_GetLocalTime
rdtsc
xchg ah, dh
jmp 0x618020
pop word [esp]
mov ah, dl
bsr ax, sp
ror esi, cl
xchg edx, eax
jmp 0x618113
mov ax, 0xe5eb
xchg si, ax
lea edx, [edi*4]
lea edx, [eax*4]
push ebp
clc
jmp 0x618046
rdtsc
lea eax, [ebx*4]
clc
btr dx, ax
not dh
sbb eax, 0xb64fa21d
jmp 0x6180a0
mov ax, 0x9ade
add esp, 1
neg edx
dec eax
shr ah, cl
add esp, 0
jmp 0x6180b6
Function at 0x61a0ab
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp + 0x16], dl
add esp, 9
not edx
mov byte [esp + 8], bh
rdtsc
jmp 0x61a0ca
bswap edx
mov dl, ah
mov ah, 0xf6
pop eax
jmp 0x61a095
bswap eax
pop si
pop esi
mov dx, ax
sub esp, 0x1b
pop dword [esp + 0x15]
jmp 0x61a0d9
inc si
bsr eax, esi
dec ax
stc
lea esi, [edx + ebp]
not dh
jmp 0x61a0b4
mov al, byte [esp + 0xd]
pop dword [esp + 0x18]
add esp, 0x18
bswap eax
mov edx, ebx
jmp 0x61a109
mov dx, 0xd8a4
setg ah
sets dl
add esp, 0xa
jmp 0x61a21b
dec dl
mov word [esp + 9], dx
pop dx
mov byte [esp + 2], cl
jmp 0x61a180
lea esi, [eax*4]
mov word [esp + 0xc], dx
not edx
xchg dword [esp + 3], eax
pop word [esp + 1]
stc
jmp 0x61a139
mov esi, dword [esp + 5]
lea edx, [edx + edx]
mov dl, 0x1f
inc edx
setb dl
jmp 0x61a1c7
mov edx, 0x1622afc2
add esp, 9
mov dh, 0xfc
mov byte [esp + 2], dl
jmp 0x61a16a
setnp al
mov eax, dword [esp + 6]
lea eax, reloc.KERNEL32.dll_GetLocalTime
rcr eax, 0x18
mov dx, 0x59cb
sub esp, 0xa
jmp 0x61a150
sub esp, 4
xchg word [esp + 7], ax
add esp, 0xa
mov eax, dword [esp]
jmp 0x61a1f9
push word [esp]
mov ah, al
xchg byte [esp + 4], al
lea eax, [esi*4]
mov dx, word [esp + 3]
btc si, bp
jmp 0x61a1b1
not edx
mov eax, 0x56d9f5e2
mov si, ax
bts edx, ebx
jmp 0x61a247
mov esi, 0x6027a698
lea esp, [esp + 1]
cld
xchg si, ax
mov dx, 0x3add
mov si, word [esp]
jmp 0x61a1e3
lea eax, reloc.KERNEL32.dll_GetLocalTime
neg al
inc edx
rdtsc
mov ah, byte [esp + 4]
dec si
jmp 0x61a197
setne al
mov al, byte [esp]
lea eax, [edx + esi]
neg ax
neg si
jmp 0x61a2a5
mov ax, 0x64a8
bsf esi, esi
cld
and edx, 0x7b73d66d
mov ax, word [esp]
mov esi, dword [esp]
jmp 0x61a231
sub esp, 0xb
bsr edx, ebp
push word [esp + 4]
push word [esp]
bswap eax
jmp 0x61a2da
xchg dx, ax
lea edx, [esp + eax]
mov esi, eax
lea eax, [ecx - 0xcf]
xchg esi, eax
cmc
jmp 0x61a288
neg dx
mov edx, dword [esp + 9]
xchg dword [esp + 1], eax
mov si, word [esp + 4]
ror ah, 5
mov esi, 0x51bc21cb
jmp 0x61a2f4
lea esi, [edx*4]
mov dh, 0x3e
mov word [esp + 9], bp
rol esi, cl
mov byte [esp + 6], dl
lea esp, [esp + 6]
jmp 0x61a2b7
push dword [esp + 5]
shl eax, cl
push ecx
push dword [esp + 0xb]
push dword [esp + 0x14]
bswap esi
jmp 0x61a90b
stc
pop word [esp]
push word [esp + 1]
pushal
call fcn.0061a35a
mov esi, 0x540492a6
mov si, di
mov dl, byte [esp]
call fcn.0061a45b
adc byte [ebx + 0x47d4a50a], dl
push word [esp]
pop eax
cmc
neg esi
lea eax, reloc.KERNEL32.dll_GetLocalTime
mov dl, 0xd4
jmp 0x61a433
setne al
stc
add esp, 0x14
mov dx, 0xfd87
not al
pop word [esp]
jmp 0x61a423

Function at 0x61ac2f
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x61ac93
mov dh, cl
push dword [esp + 7]
lea edi, [ebx*4]
mov dx, word [esp + 0xc]
Function at 0x61e704
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.0061e0bf
mov dword [esp + 0x1c], esp
push ecx
jmp 0x61e731
pop word [esp]
push word [esp + 1]
mov byte [esp + 1], dh
mov dword [esp + 0x1c], ebp
jmp 0x61e7bf
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x61e793
mov dword [esp + 0x1c], edi
lea esp, [esp + 0x1c]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x61e750
mov eax, dword [eax + 8]
push eax
jmp 0x61e0ba
mov dword [esp + 0x18], esi
pushfd
mov dword [esp], ebp
mov word [esp], cx
push dword [esp + 1]
mov byte [esp + 4], bl
jmp 0x61e76a

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4131a9
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35373535
xor eax, 0x35353735
xor eax, 0x35353535
xor eax, 0xb5353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353735
xor eax, 0x35353537
xor eax, 0x35353535
xor eax, 0x35b53535
xor eax, 0x233e3335
loopne 0x41328f
xor eax, 0x3e333535
and esp, eax
clc
jbe 0x413272
inc ebx
ror byte [eax], 0x6b
xor eax, 0x1dd033ed
enter 0xffffffffffffe631, 0xffffffffffffff81
mov dword [0x8e08851a], eax
mov ebx, 0x3dfaeb5a
out dx, al
dec edx
mov esp, 0xfd3c929c
cmp dword [edi], ebp
adc bl, byte [eax - 0xd]
sbb edx, ecx
pop esp
pushfd
mov esp, 0x29a01cff
mov cs, word [eax + 0x5b2420be]
sbb ecx, eax
inc ebp
scasd eax, dword es:[edi]
pmaddwd mm3, qword [edx - 0x5fb19678]
or esi, dword [ebx]
test ah, ch
arpl word [esi + 0x24], si
cmpsd dword [esi], dword es:[edi]
inc ebp
inc esi
pop ds
pop eax
in al, 0x52
lodsd eax, dword [esi]
xor ebx, edx
mov ch, 0xb9
cmp byte [edx + 0x19], 0xf5
Function at 0x419991
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353537
aaa
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x353535b5
xor edi, dword [esi]
xor eax, 0x35353535
xor eax, 0x35353535
xor eax, 0x35353735
xor eax, 0x35353537
xor eax, 0x35353535
xor eax, 0x35b53535
xor eax, 0x233e3335
loopne 0x419a7f
xor eax, 0x3e333535
and esp, eax
clc
jbe 0x419a62
inc ebx
ror byte [eax], 0x6b
xor eax, 0x1dd033ed
enter 0xffffffffffffe631, 0xffffffffffffff81
mov dword [0x8e08851a], eax
mov ebx, 0x3dfaeb5a
out dx, al
dec edx
mov esp, 0xfd3c929c
cmp dword [edi], ebp
adc bl, byte [eax - 0xd]
sbb edx, ecx
pop esp
pushfd
mov esp, 0x29a01cff
mov cs, word [eax + 0x5b2420be]
sbb ecx, eax
inc ebp
scasd eax, dword es:[edi]
pmaddwd mm3, qword [edx - 0x5fb19678]
or esi, dword [ebx]
test ah, ch
arpl word [esi + 0x24], si
cmpsd dword [esi], dword es:[edi]
inc ebp
inc esi
pop ds
pop eax
in al, 0x52
lodsd eax, dword [esi]
xor ebx, edx
mov ch, 0xb9
cmp byte [edx + 0x19], 0xf5
jmp 0xd469315c
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x7fb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007fb1a8
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 0x7fb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7fb06a
add dl, dl
jne 0x7fb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7fb0dc
xor eax, eax
add dl, dl
jne 0x7fb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7fb17d
add dl, dl
jne 0x7fb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7fb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7fb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7fb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7fb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7fb075
mov eax, 1
add dl, dl
jne 0x7fb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7fb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7fb0e1
sub eax, ebx
mov ebx, 1
jne 0x7fb128
mov ecx, 1
add dl, dl
jne 0x7fb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7fb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7fb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7fb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7fb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7fb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7fb136
cmp eax, 0x7d00
jae 0x7fb16d
cmp eax, 0x500
jb 0x7fb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7fb075
cmp eax, 0x7f
ja 0x7fb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7fb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7fb19e
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 0x7fb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x416903
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x416945
call fcn.0041da95
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x416945
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41693c
xor eax, eax
jmp 0x41694d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00416953
pop edi
pop esi
pop ebx
ret 4

Function at 0x418bd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4211ac
call fcn.00409c40
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041da95
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x418c17
call fcn.0041da95
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x418c25
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x418c33
or eax, 0xffffffff
jmp 0x418d1b
mov ecx, esi
call fcn.00418b4e
mov dword [ebp - 0x14], eax
call fcn.00414c6a
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x418c6a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x418c6a
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00414c1e
push dword [ebp - 0x14]
call fcn.00414750
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004188e6
cmp eax, edi
je 0x418cdd
test byte [esi + 0x24], 0x10
je 0x418cab
push 4
mov ecx, esi
pop ebx
call fcn.00413f73
test ah, 1
je 0x418ca3
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00416a55
cmp dword [esi + 0x1c], edi
je 0x418cdd
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041408a
jmp 0x418cdd
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x418cf1
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x418d0a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x418d0a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00418b88
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4033b5
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x440af8], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x4033f5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4363c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4363cc]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004033ae
mov eax, dword [0x4363d0]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4363d4]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x440af8], 0xc
mov dword [ebp - 4], eax
jne 0x40348b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x834]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x440af8]
cmp eax, 0xfa9
jne 0x4034a7
mov dword [0x440094], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4034b4
mov dword [0x43fa40], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x440090], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x440af8], 0x213
mov dword [ebp - 0x14], edx
jne 0x4034ee
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.004033a8
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x24]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x403431
cmp dword [0x440af8], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x403557
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, reloc.msvcrt.dll_rand
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401340
Capabilities:
Check os version
Persist via run registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x2bb4
call fcn.004018d0
push esi
push edi
lea eax, [esp + 0x18]
mov edi, 0x400
push eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x28], 2
jne 0x401389
mov ecx, dword [esp + 0x1c]
mov eax, 1
cmp ecx, 5
mov dword [0x40a3e4], eax
jbe 0x401393
mov dword [0x40a3e8], eax
jmp 0x401393
mov dword [0x40a3e4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 8]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call esi
test eax, eax
jne 0x4013f3
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
lea eax, [esp + 0x4ac]
push edx
push eax
push 0
push 0
push str.Common_Startup
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4013e8
lea edx, [esp + 0x4ac]
push eax
push edx
call fcn.004010c0
add esp, 8
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x80000003
call esi
test eax, eax
jne 0x401524
push ebp
mov ecx, dword [esp + 0x14]
xor ebp, ebp
lea edx, [esp + 0x18]
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0xc0]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x38], edi
mov byte [esp + 0xd0], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401518
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 0x40706c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
push eax
push 0xf003f
lea ecx, [esp + 0xbc]
push 0
push ecx
push edx
call ebx
test eax, eax
jne 0x4014dd
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x4b4]
push eax
push ecx
push 0
push 0
push str.Startup
push edx
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4014d2
push eax
lea eax, [esp + 0x4b8]
push eax
call fcn.004010c0
add esp, 8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
lea edx, [esp + 0x28]
push 0
lea eax, [esp + 0xc4]
inc ebp
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x400
mov byte [esp + 0xd4], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x401444
pop ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
add esp, 0x2bb4
ret
Function at 0x401650
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub esp, 0x200
lea eax, [esp]
push ebp
push 0x200
push eax
push 0
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40167a
pop ebp
add esp, 0x200
ret
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x401735
push ebx
push esi
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
push 1
push 2
push 0x110
push 0xf01ff
push str.HdSnSvr
push str.HdSvr
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4016ee
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
mov eax, ebp
pop edi
pop ebp
add esp, 0x200
ret
push 0xf01ff
push str.HdSvr
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x401723
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
mov eax, ebp
pop edi
pop ebp
add esp, 0x200
ret
push edi
xor ebp, ebp
call ebx
pop esi
pop ebx
mov eax, ebp
pop edi
pop ebp
add esp, 0x200
ret
xor ebp, ebp
pop edi
mov eax, ebp
pop ebp
add esp, 0x200
ret

Function at 0x401750
Capabilities:
Delete service
Stop service

Disassembly:
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40176a
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401784
pop edi
pop esi
ret
push 0x40a3c8
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4017a1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4017af
pop edi
pop esi
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
test eax, eax
jne 0x4017bf
pop edi
pop esi
ret
push edi
call esi
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
ret