joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51b560
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565f9c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.BrokerMAPIObject.0
xor eax, eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov byte [edi + 0x14], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 7
mov dword [ebp - 4], 0
mov word [edi + 0x1c], ax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 7
mov word [edi + 0x34], ax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 7
mov word [edi + 0x4c], ax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], 0xf
mov byte [edi + 0x64], al
mov dword [edi + 0x8c], eax
mov dword [edi + 0x90], 0xf
mov byte [edi + 0x7c], al
mov dword [edi + 0xa4], eax
mov dword [edi + 0xa8], 0xf
mov byte [edi + 0x94], al
push 0x599a54
mov byte [ebp - 4], 6
mov dword [edi + 0xac], eax
mov dword [edi + 0xb0], eax
mov dword [edi + 0xb4], eax
mov dword [edi + 0xb8], eax
mov dword [edi + 0xbc], eax
mov dword [edi + 0xc0], eax
mov dword [edi + 0xc4], eax
mov dword [edi + 0xc8], eax
mov dword [edi + 0xcc], eax
mov dword [edi + 0xd0], eax
mov dword [edi + 0xd4], eax
mov dword [edi + 0xd8], eax
mov dword [edi + 0xdc], eax
mov dword [edi + 0xe0], eax
call fcn.004368c0
add esp, 4
mov dword [edi + 0xe0], eax
test eax, eax
je 0x51b750
push 8
call fcn.00406909
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 7
test ebx, ebx
je 0x51b6e3
xorps xmm0, xmm0
push str.MAPIFreeBuffer
movq qword [ebx], xmm0
push dword [edi + 0xe0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIAllocateBuffer
push dword [edi + 0xe0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx], eax
mov dword [ebx + 4], esi
jmp 0x51b6e5
xor ebx, ebx
push str.MAPIInitialize
push dword [edi + 0xe0]
mov byte [ebp - 4], 6
mov dword [edi + 0xac], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIUninitialize
push dword [edi + 0xe0]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [edi + 4]
mov dword [edi + 8], eax
test esi, esi
je 0x51b750
test eax, eax
je 0x51b750
push 0
mov ecx, esi
call dword [0x5677a4]
call esi
test eax, eax
mov eax, edi
js 0x51b75c
mov dword [edi + 0xb8], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
mov dword [edi + 0xb8], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x520590
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5580b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0051fca0
add esp, 0x18
cmp dword [edi], 6
mov dword [ebp - 4], 0
je 0x52062b
cmp dword [ebp - 0x18], 0
je 0x520635
cmp dword [esi + 0x14], 8
jb 0x5205f6
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push 0
push esi
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jne 0x520625
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x5677a4]
call esi
test eax, eax
jne 0x520635
mov dword [edi], 6
lea ecx, [ebp - 0x28]
call fcn.00408e50
jmp 0x520672
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp edx, 8
jb 0x520672
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x520668
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52068e
push edx
push ecx
call fcn.004097e6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
call fcn.0052cae1
int3
Function at 0x522230
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor dl, dl
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x52244f
push ebx
mov eax, ecx
push edi
cmp eax, 0x7c
je 0x52244d
cmp eax, 0x29
jne 0x522273
cmp dword [esi + 0x10], 0
jne 0x52244d
cmp eax, eax
jne 0x522273
test dword [esi + 0x50], 0x10000000
je 0x52245c
jmp 0x522404
cmp eax, 0x2e
jne 0x5222d4
push 5
lea ecx, [esi + 0x24]
call fcn.00518370
mov ecx, dword [esi]
mov edx, dword [esi + 8]
cmp ecx, edx
je 0x5222c8
cmp word [ecx], 0x5c
jne 0x5222c3
lea eax, [ecx + 2]
cmp eax, edx
je 0x5222c3
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x5222ad
movzx edi, word [eax]
cmp edi, 0x28
je 0x5222bf
cmp edi, 0x29
je 0x5222bf
test dl, 0x10
jne 0x5222c3
movzx edx, word [eax]
cmp edx, 0x7b
je 0x5222bf
cmp edx, 0x7d
jne 0x5222c3
mov dword [esi], eax
mov ecx, eax
lea eax, [ecx + 2]
mov dword [esi], eax
mov ecx, esi
call fcn.00524460
jmp 0x522436
cmp eax, 0x5c
jne 0x522333
mov ecx, esi
call fcn.005242c0
test byte [esi + 0x50], 0x80
je 0x522327
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x522305
push 4
lea ecx, [esi + 0x24]
call fcn.00518370
mov ecx, esi
call fcn.005242c0
jmp 0x52243d
cmp eax, 0x42
jne 0x522327
push 4
lea ecx, [esi + 0x24]
call fcn.00518370
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.005242c0
jmp 0x52243d
mov ecx, esi
call fcn.00522480
jmp 0x522436
cmp eax, 0x5b
jne 0x522394
mov ecx, esi
call fcn.005242c0
lea ecx, [esi + 0x24]
call fcn.005216d0
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x522360
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.005242c0
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x52237e
cmp eax, 0x5d
jne 0x52237e
push eax
lea ecx, [esi + 0x24]
call fcn.00521630
mov ecx, esi
call fcn.005242c0
mov ecx, esi
call fcn.00522b80
cmp dword [esi + 0x4c], 0x5d
jne 0x522465
jmp 0x52242f
cmp eax, 0x28
jne 0x5223c0
mov ecx, esi
call fcn.005242c0
mov ecx, esi
call fcn.00524610
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x52245c
mov ecx, esi
call fcn.005242c0
test bl, bl
je 0x52243d
jmp 0x522436
cmp eax, 0x5e
jne 0x5223d8
push 2
lea ecx, [esi + 0x24]
call fcn.00518370
mov ecx, esi
call fcn.005242c0
jmp 0x52243d
cmp eax, 0x24
jne 0x5223f0
push 3
lea ecx, [esi + 0x24]
call fcn.00518370
mov ecx, esi
call fcn.005242c0
jmp 0x52243d
cmp eax, 0x2a
je 0x522453
cmp eax, 0x2b
je 0x522453
cmp eax, 0x3f
je 0x522453
cmp eax, 0x7b
je 0x522453
cmp ecx, 0x7d
jne 0x522414
test dword [esi + 0x50], 0x10000000
je 0x52246e
jmp 0x522422
cmp ecx, 0x5d
jne 0x522422
test dword [esi + 0x50], 0x10000000
je 0x522465
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00521430
mov ecx, esi
call fcn.005242c0
mov ecx, esi
call fcn.00524310
mov ecx, dword [esi + 0x4c]
mov dl, 1
mov eax, ecx
cmp ecx, 0xffffffff
jne 0x522245
pop edi
pop ebx
mov al, dl
pop esi
ret
push 0xa
mov ecx, esi
call fcn.00517c10
push 5
mov ecx, esi
call fcn.00517c10
push 4
mov ecx, esi
call fcn.00517c10
push 6
mov ecx, esi
call fcn.00517c10
int3
Function at 0x524760
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x811c9dc5
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
sub edi, ecx
xor esi, esi
and edi, 0xfffffffe
lea edx, [edi + ecx]
cmp ecx, edx
cmova edi, ebx
test edi, edi
je 0x524799
movzx edx, byte [ecx]
lea ecx, [ecx + 1]
xor edx, eax
inc esi
imul eax, edx, 0x1000193
cmp esi, edi
jne 0x524786
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x540eab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00540ce3

Function at 0x54a600
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 4]
push ebx
push esi
push edi
mov ebx, dword [eax + 0x3c]
xor esi, esi
add ebx, eax
mov dword [ebp - 4], eax
xor edi, edi
movzx ecx, word [ebx + 6]
cmp esi, ecx
jae 0x54a659
movzx eax, word [ebx + 0x14]
lea edx, [ebx + 0x18]
add eax, edi
add edx, eax
je 0x54a659
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 4]
add ecx, eax
neg eax
sbb eax, eax
and eax, ecx
cmp eax, dword [ebp + 8]
ja 0x54a648
mov ecx, dword [edx + 8]
add ecx, eax
cmp ecx, dword [ebp + 8]
ja 0x54a64e
inc esi
add edi, 0x28
jmp 0x54a616
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b5c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427c48
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x439018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ecx + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ecx - 4], eax
mov eax, dword [ecx]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov ebx, dword [eax + 4]
add ebx, ecx
mov ecx, ebx
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.00406bc0
push 8
call fcn.0040f1a2
mov edi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 2
call fcn.0040e6d4
mov dword [edi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov edi, dword [edi + 4]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x429174]
mov ecx, edi
call esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 3
push eax
call fcn.00405210
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x429174]
mov ecx, edi
call esi
movzx edi, ax
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x40b719
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x429174]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x40b719
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x429174]
mov ecx, edi
call esi
cmp dword [ebx + 0x38], 0
mov eax, dword [ebp - 0x10]
mov word [ebx + 0x40], ax
jne 0x40b736
mov eax, dword [ebx + 0xc]
mov ecx, ebx
push 0
or eax, 4
push eax
call fcn.00406bc0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 4]
mov dword [edx + eax + 0x10], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx + 0xc], eax
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + edx - 4], eax
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402f10
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x403488
call fcn.0040323c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043a0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d98
cmp eax, esi
jne 0x402d8b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d9b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402d6f
xor esi, esi
inc esi
cmp dword [0x4043a4], esi
jne 0x402dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402de7
cmp dword [0x4043a4], ebx
jne 0x402de1
mov dword [0x4043a4], esi
push 0x4011a8
push 0x40119c
call fcn.00529000
pop ecx
pop ecx
test eax, eax
je 0x402de7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402ebc
mov dword [0x404034], esi
cmp dword [0x4043a4], esi
jne 0x402e0a
push 0x401198
push 0x401190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043a4], 2
test edi, edi
jne 0x402e17
xor eax, eax
mov ecx, 0x4043a0
xchg dword [ecx], eax
cmp dword [0x4043a8], 0
je 0x402e43
push 0x4043a8
call fcn.00403090
pop ecx
test eax, eax
je 0x402e43
push ebx
push 2
push ebx
mov esi, dword [0x4043a8]
mov ecx, esi
call dword [0x40515c]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401a43
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402ea1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402eb5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403284
ret
call fcn.00403183
jmp 0x402d53

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
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 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4011f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
sub ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov eax, str.SOFTWAREYahooSSP
cmp byte [ebp + 0x14], bl
jne 0x401211
mov eax, str.SOFTWAREYahooSS
push eax
sub eax, eax
cmp byte [ebp + 0x10], bl
setne al
add eax, 0x80000001
push eax
lea eax, [ebp - 0xc]
call fcn.0040256e
or eax, eax
je 0x401265
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp esi, ebx
je 0x401252
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
cmp dword [ebp - 0xc], ebx
je 0x401273
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0xc], ebx
je 0x401273
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402daa
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402daa
pop ebx
leave
ret

Function at 0x40128c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
sub ebx, ebx
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov eax, str.SOFTWAREYahooSSP
cmp byte [ebp + 0x14], bl
jne 0x4012ae
mov eax, str.SOFTWAREYahooSS
push eax
sub eax, eax
cmp byte [ebp + 0x10], bl
setne al
add eax, 0x80000001
push eax
lea eax, [ebp - 0xc]
call fcn.0040256e
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, eax
je 0x4012f7
mov eax, dword [ebp + 0xc]
push 4
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push 4
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0xc], ebx
je 0x401301
push dword [ebp - 0xc]
call esi
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0xc], ebx
je 0x401301
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402daa
pop esi
pop ebx
leave
ret

Function at 0x401310
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
sub ebx, ebx
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov eax, str.SOFTWAREYahooSSP
cmp byte [ebp + 0x10], bl
jne 0x401332
mov eax, str.SOFTWAREYahooSS
push eax
sub eax, eax
cmp byte [ebp + 0xc], bl
setne al
add eax, 0x80000001
push eax
lea eax, [ebp - 0xc]
call fcn.0040256e
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, eax
je 0x40136c
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 0xc], ebx
je 0x401376
push dword [ebp - 0xc]
call esi
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0xc], ebx
je 0x401376
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402daa
pop esi
pop ebx
leave
ret
Function at 0x401385
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x41c9e3
call fcn.0041b8a8
and dword [ebp - 4], 0
push 0
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x21c], esp
push eax
mov edi, str.enableLogging
call fcn.00402d3a
call fcn.0040116d
add esp, 0xc
or eax, eax
setne al
mov byte [0x42abb8], al
test al, al
je 0x401412
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
or eax, eax
je 0x401412
lea eax, [ebp - 0x218]
push eax
mov esi, 0x42abd4
push esi
call fcn.00402d02
push str._temp_
push esi
call fcn.00402111
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
push eax
push esi
pop eax
call fcn.00402477
push str..log
push esi
call fcn.00402111
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402daa
call fcn.0041b8f2
ret
Function at 0x401826
Capabilities:
Enumerate processes

Disassembly:
push 0x23c
mov eax, 0x41c9b3
call fcn.0041b8a8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
sub ebx, ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x40192f
push 0x22c
lea eax, [ebp - 0x23c]
push ebx
push eax
call fcn.0040e690
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
mov dword [ebp - 0x23c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x4018f1
cmp dword [ebp - 0x228], ebx
jbe 0x4018de
lea eax, [ebp - 0x244]
push eax
lea edi, [ebp - 0x218]
call fcn.00402d3a
sub eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp + 8], ebx
setne al
cmp eax, ebx
je 0x4018f7
push dword [ebp + 8]
push dword [ebp - 0x244]
call fcn.0040cbdc
pop ecx
pop ecx
cmp eax, ebx
je 0x401901
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
call fcn.00402daa
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
or eax, eax
jne 0x40188f
jmp 0x401923
push 0x80004005
call fcn.00402d92
mov eax, dword [ebp - 0x248]
cmp eax, ebx
je 0x401913
mov ecx, dword [ebp - 0x234]
mov dword [eax], ecx
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
mov bl, 1
call fcn.00402daa
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402daa
mov al, bl
call fcn.0041b8f2
ret

Function at 0x401942
Capabilities:
Get session user name

Disassembly:
push 0x214
mov eax, 0x41cc1b
call fcn.0041b8a8
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
xor bl, bl
mov dword [ebp - 0x21c], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
or eax, eax
je 0x4019be
lea eax, [ebp - 0x218]
push eax
lea edi, [ebp - 0x214]
call fcn.00402d3a
and dword [ebp - 4], 0
push str.SYSTEM
push dword [ebp - 0x218]
call fcn.0040cbdc
push eax
pop ebx
neg ebx
sbb bl, bl
pop ecx
inc bl
pop ecx
or esi, esi
je 0x4019b6
lea eax, [ebp - 0x218]
push esi
pop edi
call fcn.0040291a
mov eax, dword [ebp - 0x218]
jmp 0x4019df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x220]
push 0x420678
push eax
call fcn.00401423
mov eax, dword [ebp - 0x220]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00402daa
mov al, bl
call fcn.0041b8f2
ret
Function at 0x4019ef
Capabilities:
Check os version
Enumerate processes
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cbe8
mov eax, dword fs:[0]
push eax
mov eax, 0x10358
call fcn.004164d0
mov eax, dword [0x4280b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub ebx, ebx
lea eax, [ebp - 0x10124]
push eax
mov dword [ebp - 0x1035c], ebx
mov dword [ebp - 0x10360], ebx
mov dword [ebp - 0x10358], ebx
mov byte [ebp - 0x10351], bl
mov dword [ebp - 0x10124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x10120], 5
jne 0x401a6b
cmp dword [ebp - 0x1011c], 1
jb 0x401a7b
mov byte [ebp - 0x10351], 1
cmp dword [ebp - 0x10120], 6
jb 0x401a7b
mov byte [ebp - 0x10351], 1
push 0x7fff
lea eax, [ebp - 0x10010]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or eax, eax
jne 0x401ae6
mov eax, dword [0x428020]
mov ecx, 0x428020
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10364], eax
push str.kernel32.dll
lea eax, [ebp - 0x10010]
push eax
push 0x420cf0
lea eax, [ebp - 0x10364]
mov dword [ebp - 4], ebx
call fcn.00402420
mov esi, dword [ebp - 0x10364]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
or dword [ebp - 4], 0xffffffff
push eax
pop edi
lea eax, [esi - 0x10]
call fcn.00402daa
jmp 0x401aec
mov edi, dword [ebp - 0x1035c]
cmp edi, ebx
je 0x401b0f
push str.WTSGetActiveConsoleSessionId
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x401b08
call eax
mov dword [ebp - 0x10358], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push eax
pop esi
cmp esi, 0xffffffff
je 0x401b99
lea eax, [ebp - 0x10350]
push eax
push esi
mov dword [ebp - 0x10350], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x401b93
lea eax, [ebp - 0x1032c]
push str.explorer.exe
push eax
call fcn.0040cbdc
pop ecx
pop ecx
or eax, eax
jne 0x401b85
lea eax, [ebp - 0x10360]
push eax
push dword [ebp - 0x10348]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov eax, dword [ebp - 0x10348]
mov dword [ebp - 0x1035c], eax
mov eax, dword [ebp - 0x10358]
cmp eax, dword [ebp - 0x10360]
je 0x401bc2
cmp byte [ebp - 0x10351], bl
je 0x401bc2
lea eax, [ebp - 0x10350]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
or eax, eax
jne 0x401b39
jmp 0x401bc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10358]
push str.GetInteractiveUserProcessId___could_not_CreateToolhelp32Snapshot_:__d
push eax
call fcn.00401423
mov eax, dword [ebp - 0x10358]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00402daa
mov eax, dword [ebp - 0x1035c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b965
leave
ret