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

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

Function at 0x426ae0
Capabilities:
Parse pe header

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

Function at 0x1bc2160
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01bc22b0
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 0x1bc2186
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1bc2172
add dl, dl
jne 0x1bc2191
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1bc21e4
xor eax, eax
add dl, dl
jne 0x1bc219e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1bc2285
add dl, dl
jne 0x1bc21ad
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1bc21b8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1bc21c3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1bc21ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1bc21da
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1bc217d
mov eax, 1
add dl, dl
jne 0x1bc21f2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1bc21fd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1bc21e9
sub eax, ebx
mov ebx, 1
jne 0x1bc2230
mov ecx, 1
add dl, dl
jne 0x1bc2216
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1bc2221
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1bc220d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1bc217d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1bc2247
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1bc2252
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1bc223e
cmp eax, 0x7d00
jae 0x1bc2275
cmp eax, 0x500
jb 0x1bc2270
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1bc217d
cmp eax, 0x7f
ja 0x1bc2278
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1bc217d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1bc22a6
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 0x1bc217d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1026133e
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
test dl, bh
cmp al, 0xcc
push ebx
cmp di, 0x39de
push esi
and si, bp
test al, 0x33
bt esi, eax
push edi
mov edi, eax
ror al, cl
mov esi, ecx
sete al
mov al, cl
sub edx, edx
lea ecx, [ecx]
dec cl
mov cl, byte [edi]
dec al
setge al
mov al, byte [esi]
jmp 0x10344bbb
cmp byte [ebp + 8], 0
mov byte [ebp - 1], cl
jmp 0x10309abd
ret
inc edi
test al, 9
jmp 0x10283eed
je 0x102c38da
cmp al, cl
jmp 0x102c38d4
ret
je 0x10261368
pop edi
ror bx, 0x41
cmp ebx, edi
pop esi
sub bl, 0xbc
pop ebx
test ebp, esp
cmp cl, al
jmp 0x102fcd98
jbe 0x103eec55
or eax, 0xffffffff
mov esp, ebp
bswap ebp
pop ebp
jmp 0x102bab57
je 0x103e143f
mov cl, dl
movzx ebx, di
btr bx, 0xa2
btc ebx, eax
mov ebx, 0x72414db9
clc
rol ebx, cl
cmc
mov cl, byte [ebp - 1]
test ebp, esi
add bl, dl
clc
cmc
xor al, bl
jmp 0x103e143e
inc esi
jmp 0x1029bf25
neg eax
jmp 0x103d688b
mov esp, ebp
pop ebp
jmp 0x102885a3
inc edx
test al, al
jmp 0x1029e95d
sbb eax, eax
stc
jmp 0x103ac0ef
Function at 0x403963
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43b5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, eax
je 0x4039ab
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004023a1
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1c]
call fcn.00401c01
mov esi, dword [esi]
cmp esi, dword [edi]
jne 0x40397f
mov ecx, edi
call fcn.004039d2
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041206b
leave
ret

Function at 0x403fee
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea ecx, [ebx - 3]
xor esi, esi
xor eax, eax
mov dword [ebp - 4], edx
test ecx, ecx
jle 0x4040b9
lea eax, [ecx - 1]
push 3
pop ecx
xor edx, edx
div ecx
push 3
pop edx
lea ecx, [eax + 1]
mov eax, ecx
mov dword [ebp - 8], ecx
mov ebx, ecx
shl eax, 2
imul ecx, ecx, 3
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov esi, dword [ecx]
mov ecx, esi
shr ecx, 8
and ecx, 0xf
mov eax, esi
shr eax, 0x16
shl ecx, 2
and eax, edx
or ecx, eax
call fcn.00403fb1
mov ecx, esi
shr ecx, 0x10
and ecx, 0x3f
movsx edx, al
call fcn.00403fb1
movsx eax, al
shl eax, 8
or edx, eax
mov ecx, esi
shr ecx, 0xc
mov eax, esi
and eax, 3
and ecx, 0xf
shl eax, 4
or ecx, eax
shl edx, 8
call fcn.00403fb1
movsx eax, al
shr esi, 2
or edx, eax
and esi, 0x3f
mov ecx, esi
shl edx, 8
call fcn.00403fb1
mov ecx, dword [ebp - 4]
movsx eax, al
or edx, eax
mov dword [edi], edx
push 3
pop edx
add ecx, edx
add edi, 4
mov dword [ebp - 4], ecx
dec ebx
jne 0x404034
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
jmp 0x4040bb
mov ecx, edx
cmp eax, ebx
jge 0x404151
sub ebx, eax
xor edx, edx
mov dword [ebp + 8], edx
test ebx, ebx
jle 0x4040df
push ebx
push ecx
lea eax, [ebp + 8]
push eax
call fcn.00414a60
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, edx
shr ecx, 2
and ecx, 0x3f
call fcn.00403fb1
mov byte [edi], al
mov ecx, edx
shr ecx, 0xc
mov eax, edx
and eax, 3
and ecx, 0xf
shl eax, 4
or ecx, eax
call fcn.00403fb1
push 0x3d
mov byte [edi + 1], al
pop eax
cmp ebx, 1
jle 0x404131
mov ecx, edx
shr ecx, 8
and ecx, 0xf
mov eax, edx
shr eax, 0x16
shl ecx, 2
and eax, 3
or ecx, eax
call fcn.00403fb1
push 0x3d
mov cl, al
pop eax
jmp 0x404133
mov cl, al
mov byte [edi + 2], cl
cmp ebx, 2
jle 0x404148
shr edx, 0x10
and edx, 0x3f
mov ecx, edx
call fcn.00403fb1
mov byte [edi + 3], al
add edi, 4
add esi, 4
mov byte [edi], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40424e
Capabilities:
Delete file

Disassembly:
push 0x70
mov eax, 0x42b610
call fcn.004151ec
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
xor eax, eax
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x5c], al
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x78], eax
call fcn.004023a1
mov byte [ebp - 4], 1
cmp dword [esi + 0x10], 0
jne 0x4042d7
lea eax, [ebp - 0x2c]
cmp eax, ebx
je 0x4042a3
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.00401e97
push ecx
push 0x435ba4
lea ecx, [ebp - 0x2c]
call fcn.00402422
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040249d
push eax
lea ecx, [ebp - 0x2c]
call fcn.004023ea
lea ecx, [ebp - 0x74]
call fcn.00401c01
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x44]
call fcn.004023a1
push ecx
mov esi, 0x435ba8
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00402422
mov ecx, dword [ebp - 0x34]
sub ecx, eax
cmp ecx, 1
je 0x404310
push esi
call fcn.00401001
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.004025a2
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x44]
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004032f1
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [edi + 0x14], 0x10
jb 0x40433b
mov edi, dword [edi]
push edi
push str.MyDownLoad_strFileName:_s
call fcn.00403ba1
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.0040438c
mov esi, dword [ebp - 0x78]
push esi
push str.MyDownLoad_res_code:_d
call fcn.00403ba1
pop ecx
pop ecx
neg esi
lea ecx, [ebp - 0x44]
sbb esi, esi
call fcn.00401c01
lea ecx, [ebp - 0x2c]
call fcn.00401c01
lea ecx, [ebp - 0x5c]
call fcn.00401c01
mov eax, esi
call fcn.004151aa
ret 0xc
Function at 0x4046fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x43b5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
test ecx, ecx
jne 0x40471e
xor eax, eax
jmp 0x4047f8
push esi
mov esi, ecx
push edi
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x14]
mov ecx, eax
ror ecx, 8
mov esi, 0xff00ff00
and ecx, esi
rol eax, 8
mov edx, 0xff00ff
and eax, edx
or ecx, eax
mov eax, dword [ebp - 0x10]
xor ecx, 0xa3b1bac6
mov dword [ebp - 0xa4], ecx
mov ecx, eax
ror ecx, 8
and ecx, esi
rol eax, 8
and eax, edx
or ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, 0x56aa3350
mov dword [ebp - 0xa0], ecx
mov ecx, eax
ror ecx, 8
and ecx, esi
rol eax, 8
and eax, edx
or ecx, eax
mov eax, dword [ebp - 8]
xor ecx, 0x677d9197
mov dword [ebp - 0x9c], ecx
mov ecx, eax
ror ecx, 8
and ecx, esi
rol eax, 8
and eax, edx
or ecx, eax
xor ecx, 0xb27022dc
mov dword [ebp - 0x98], ecx
xor esi, esi
mov ecx, dword [esi + 0x435b20]
xor ecx, dword [ebp + esi - 0x98]
xor ecx, dword [ebp + esi - 0x9c]
xor ecx, dword [ebp + esi - 0xa0]
call fcn.004046da
mov edx, eax
rol edx, 0x17
mov ecx, eax
rol ecx, 0xd
xor edx, ecx
xor edx, dword [ebp + esi - 0xa4]
xor edx, eax
mov dword [ebp + esi - 0x94], edx
mov dword [esi + ebx], edx
add esi, 4
cmp esi, 0x80
jl 0x4047a9
xor eax, eax
pop edi
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041206b
leave
ret
Function at 0x404805
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x43b5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [edx]
mov eax, esi
ror eax, 8
mov ebx, 0xff00ff00
and eax, ebx
rol esi, 8
and esi, 0xff00ff
or eax, esi
mov dword [ebp - 0x94], eax
push edi
mov edi, ecx
mov ecx, dword [edx + 4]
mov eax, ecx
mov esi, 0xff00ff
ror eax, 8
and eax, ebx
rol ecx, 8
and ecx, esi
or eax, ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x90], eax
mov eax, ecx
ror eax, 8
and eax, ebx
rol ecx, 8
and ecx, esi
or eax, ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x8c], eax
mov eax, ecx
ror eax, 8
and eax, ebx
mov ebx, dword [ebp + 8]
rol ecx, 8
and ecx, esi
or eax, ecx
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
xor esi, esi
sub ebx, eax
lea eax, [ebx + esi*4]
mov ecx, dword [ebp + eax - 0x88]
xor ecx, dword [ebp + esi*4 - 0x88]
xor ecx, dword [ebp + esi*4 - 0x8c]
xor ecx, dword [ebp + esi*4 - 0x90]
call fcn.004046da
mov edx, eax
rol edx, 0x18
mov ecx, eax
rol ecx, 0x12
xor edx, ecx
mov ecx, eax
rol ecx, 0xa
xor edx, ecx
mov ecx, eax
rol ecx, 2
xor edx, ecx
xor edx, dword [ebp + esi*4 - 0x94]
xor edx, eax
mov dword [ebp + esi*4 - 0x84], edx
inc esi
cmp esi, 0x20
jl 0x404893
mov eax, dword [ebp - 8]
mov ecx, eax
ror ecx, 8
mov ebx, 0xff00ff
mov edx, 0xff00ff00
rol eax, 8
and ecx, edx
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [edi], ecx
mov ecx, eax
ror ecx, 8
and ecx, edx
rol eax, 8
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 4], ecx
mov ecx, eax
ror ecx, 8
and ecx, edx
rol eax, 8
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], ecx
mov ecx, eax
ror ecx, 8
and ecx, edx
rol eax, 8
and eax, ebx
or ecx, eax
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041206b
leave
ret
Function at 0x40494f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43b5a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ebx
test edx, edx
je 0x404a8e
test eax, eax
je 0x404a8e
test ebx, ebx
je 0x404a8e
mov eax, dword [ebp + 0xc]
add eax, 0x10
and eax, 0xfffffff0
test ecx, ecx
jne 0x4049a5
mov dword [edx], eax
xor eax, eax
inc eax
jmp 0x404a90
cmp dword [edx], eax
jb 0x404a8e
mov edx, dword [ebp + 0xc]
push edi
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
movsd dword es:[edi], dword [esi]
mov esi, ebx
mov dword [ebp - 0x28], esi
cmp edx, 0x10
jb 0x404a29
mov eax, dword [ebp - 0x2c]
sub eax, ecx
mov dword [ebp - 0x38], eax
push 0x10
pop eax
sub eax, ecx
mov edi, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], eax
mov ecx, ebx
mov ebx, dword [ebp - 0x38]
lea eax, [ebx + edi]
mov al, byte [eax + ecx]
xor al, byte [ebp + ecx - 0x14]
inc ecx
mov byte [ebp + ecx - 0x25], al
cmp ecx, 0x10
jb 0x4049de
push dword [ebp - 0x34]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00404805
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x28]
add edi, 0x10
pop ecx
add esi, 0x10
add eax, edi
push 0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], edi
pop ebx
cmp eax, edx
jbe 0x4049d9
push 0x10
pop eax
sub edx, esi
sub eax, edx
movzx eax, al
imul eax, eax, 0x1010101
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2c]
push edx
add eax, esi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00414a60
add esp, 0xc
mov al, byte [ebp + ebx - 0x14]
xor byte [ebp + ebx - 0x24], al
inc ebx
cmp ebx, 0x10
jb 0x404a53
push dword [ebp - 0x34]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00404805
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
lea edi, [edi + esi]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
mov ecx, dword [ebp - 0x40]
add eax, 0x10
movsd dword es:[edi], dword [esi]
mov dword [ecx], eax
xor eax, eax
inc eax
pop edi
jmp 0x404a90
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041206b
leave
ret
Function at 0x405177
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x43b5a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
mov dword [ebp - 0x90], ecx
xor ecx, ecx
push ecx
push ecx
push 0xffffffffffffffff
push eax
push ecx
push ecx
mov dword [ebp - 0x8c], eax
call ebx
mov edi, eax
lea esi, [edi + edi]
push esi
call fcn.00412dd5
push esi
push 0
push eax
mov dword [ebp - 0x88], eax
call fcn.00417240
mov esi, dword [ebp - 0x88]
add esp, 0x10
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x8c]
xor edi, edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push 0xfde9
call esi
mov edi, eax
lea eax, [edi + 2]
push eax
call fcn.00412dd5
mov ebx, eax
lea eax, [edi + 2]
push eax
push 0
push ebx
call fcn.00417240
add esp, 0x10
xor eax, eax
push eax
push eax
push edi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x88]
push eax
push 0xfde9
call esi
push dword [ebp - 0x88]
call fcn.00412d5f
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00417240
push edi
lea eax, [ebp - 0x84]
push str.UnicodeToUTF8_Len:_d__n
push eax
call fcn.0041207a
add esp, 0x1c
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x90]
lea eax, [edi + 2]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041206b
leave
ret 8
Function at 0x405729
Capabilities:
Create service
Modify service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x43b5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
mov edi, ecx
push ebx
mov dword [ebp - 0x21c], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x228], esi
test esi, esi
jne 0x40577c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_servic_control_manager_database_Error_Code:_d
call fcn.00403e19
pop ecx
pop ecx
xor eax, eax
jmp 0x405908
push 0x104
lea eax, [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x110]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
lea eax, [edi + 4]
push eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x4057d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_Error_Code:_d
call fcn.00403e19
pop ecx
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x405775
mov edx, dword [ebp - 0x21c]
push 0xe
pop ecx
mov esi, str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea edi, [ebp - 0x210]
add edx, 4
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x214], ebx
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4057f9
lea edi, [ebp - 0x210]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405809
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
mov ecx, edx
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40585a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegCreateKey_Error_Code:_d
call fcn.00403e19
mov esi, dword [ebp - 0x218]
pop ecx
pop ecx
jmp 0x4058f5
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405863
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x110]
push eax
push 2
push ebx
push str.EventMessageFile
push dword [ebp - 0x214]
call esi
push 4
lea eax, [ebp - 0x220]
push eax
push 4
push ebx
push str.TypesSupported
push dword [ebp - 0x214]
mov dword [ebp - 0x220], 7
call esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x21c]
push ecx
push ecx
lea eax, [ebx + 4]
push eax
push 0x64
push 4
mov ecx, ebx
call fcn.0040598d
mov esi, dword [ebp - 0x218]
lea eax, [ebx + 0x44]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
xor ebx, ebx
inc ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x228]
call esi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041206b
leave
ret
Function at 0x405d91
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x26c
mov eax, 0x42b7a4
call fcn.004151ec
mov dword [ebp - 0x278], edx
push ecx
lea ecx, [ebp - 0x134]
call fcn.00401bd2
xor ebx, ebx
push 0x433b13
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], ebx
call fcn.00401bd2
push ebx
push 2
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f0b
push 0x124
lea eax, [ebp - 0x270]
push ebx
push eax
call fcn.00417240
add esp, 0xc
lea eax, [ebp - 0x274]
push eax
push esi
mov dword [ebp - 0x274], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x405ee9
lea eax, [ebp - 0x250]
push eax
call fcn.00401001
pop ecx
push eax
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00401dba
push dword [ebp - 0x124]
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push ecx
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040321c
test eax, eax
jne 0x405edb
push dword [ebp - 0x26c]
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp dword [ebp - 0x278], 0
mov edi, eax
je 0x405ef3
push 0x104
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00417240
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0x104
push eax
push ebx
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x405edb
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x11c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405ed2
test dl, dl
je 0x405ece
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405ed2
add eax, 2
add ecx, 2
test dl, dl
jne 0x405eb2
mov eax, ebx
jmp 0x405ed7
sbb eax, eax
or eax, 1
test eax, eax
je 0x405ef3
lea eax, [ebp - 0x274]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x405e11
jmp 0x405f02
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x14c]
call fcn.00401c01
lea ecx, [ebp - 0x134]
call fcn.00401c01
mov al, bl
call fcn.004151aa
ret
Function at 0x405f29
Capabilities:
Enumerate processes

Disassembly:
push 0x26c
mov eax, 0x42b766
call fcn.004151ec
mov dword [ebp - 0x278], edx
push ecx
lea ecx, [ebp - 0x130]
call fcn.00401bd2
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
or esi, 0xffffffff
cmp edi, esi
je 0x4060a7
push 0x124
lea eax, [ebp - 0x26c]
push ebx
push eax
call fcn.00417240
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
push edi
mov dword [ebp - 0x270], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
push 0x433b13
lea ecx, [ebp - 0x148]
mov esi, eax
call fcn.00401bd2
mov byte [ebp - 4], 1
test esi, esi
je 0x406082
mov esi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x24c]
push eax
call fcn.00401001
pop ecx
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x148]
call fcn.00401dba
push dword [ebp - 0x120]
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
cmovae eax, dword [ebp - 0x130]
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.0040321c
test eax, eax
jne 0x40606c
push dword [ebp - 0x268]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp dword [ebp - 0x278], 0
mov dword [ebp - 0x274], eax
je 0x40606c
push 0x104
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.00417240
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
push ebx
push dword [ebp - 0x274]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x40606c
push dword [ebp - 0x278]
lea eax, [ebp - 0x118]
push eax
call fcn.004143d4
pop ecx
pop ecx
test eax, eax
je 0x406080
lea eax, [ebp - 0x270]
push eax
push edi
call esi
test eax, eax
jne 0x405fb6
jmp 0x406082
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test bl, bl
setne al
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x274], eax
call fcn.00401c01
mov esi, dword [ebp - 0x274]
lea ecx, [ebp - 0x130]
call fcn.00401c01
mov eax, esi
call fcn.004151aa
ret

Function at 0x4060ba
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
push 0
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_WinExec]
xor esi, esi
xor edi, edi
inc esi
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.00405f29
test eax, eax
je 0x406108
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.CheckProcess_Running
add edi, 0x3e8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp edi, 0x1d4c0
jl 0x4060d4
jmp 0x40610a
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret