joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401980
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x406088]
test esi, esi
jle 0x401aa0
mov edi, dword [0x40608c]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4019b4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401a39
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4019a0
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401ac7
mov eax, dword [0x40608c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x40608c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401aa7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a32
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401a40
add dword [0x406088], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40608c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea edi, [edi]
xor esi, esi
jmp 0x4019be
mov eax, dword [0x40608c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x401f50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4060a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40609c]
sub esp, 4
test ebx, ebx
je 0x401fa5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401f9e
test esi, esi
je 0x401f9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f80
mov dword [esp], 0x4060a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40633c
pop dword [ebp - 0x2c]
mov eax, 0x40633c
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x4db030bd
add dword [ebp - 0x3c], 0xa2148e
mov dword [ebp - 0x38], 0xeceb1fb8
add dword [ebp - 0x38], 0x45482c8d
mov dword [ebp - 0x34], 0xea49ec62
add dword [ebp - 0x34], 0x620257cc
mov dword [ebp - 0x30], 0x6149398a
add dword [ebp - 0x30], 0x9eb6c676
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xe6d20bf8
sub eax, 0xe6919b98
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xe447db66
sub dword [ebp - 0x3c], 0x6fd57210
mov dword [ebp - 0x38], 0x8114f0a3
sub dword [ebp - 0x38], 0x3fa88f2e
mov dword [ebp - 0x34], 0x9505048
add dword [ebp - 0x34], 0x5a1f1c24
mov dword [ebp - 0x30], 0x9654a8ba
add dword [ebp - 0x30], 0x69ab5746
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ab51
push 0
call eax
mov ecx, 0xd03d867b
add ecx, 0x2fc2d1e0
mov ebx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x2c]
mov edi, 0xd4e5587d
add edi, 0xe3e2038d
mov dword [ebp - 0x10], 0x67f87c8
mov edx, dword [esi]
sub dword [ebp - 0x10], eax
add edx, edi
xor dword [ebp - 4], edx
mov dword [ebx], edx
xor dword [ebp - 0x24], 0xba8a214
add ebx, 0x72ba8465
add ebx, 0x8d457b9f
add esi, 0x63049e91
add esi, 0x9cfb6173
loop 0x40644e
add eax, 0x12d5da72
add eax, 0xed2b79cd
xor ebx, ebx
add ebx, eax
add eax, 0x9ded7a8f
add eax, 0x62128576
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movups xmm0, xmmword [0x405310]
push ebx
push esi
mov esi, ecx
push edi
push 0x1000
push 0x405358
movups xmmword [esi], xmm0
lea eax, [esi + 0x48]
mov dword [ebp - 0x10], esi
movups xmm0, xmmword [0x405320]
push eax
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [0x405330]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [0x405340]
movups xmmword [esi + 0x30], xmm0
movq xmm0, qword [0x405350]
movq qword [esi + 0x40], xmm0
call sub.msvcrt.dll_memcpy
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, edi
mov ebx, 4
and ecx, 0x80000003
jns 0x401075
dec ecx
or ecx, 0xfffffffc
add ecx, 1
je 0x401084
mov eax, ebx
mov ebx, ecx
cdq
idiv ecx
mov ecx, edx
test ecx, ecx
jne 0x401077
mov eax, edi
xor ecx, ecx
cdq
idiv ebx
mov edx, 4
mov dword [ebp - 0xc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402153
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
test eax, eax
jle 0x401109
mov ebx, dword [ebp + 8]
mov ecx, 2
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
nop
lea eax, [ecx - 2]
cdq
idiv edi
movzx eax, byte [edx + ebx]
mov byte [ebp + 0xf], al
lea eax, [ecx - 1]
cdq
idiv edi
movzx eax, byte [edx + ebx]
mov byte [ebp + 0xe], al
mov eax, ecx
cdq
idiv edi
movzx eax, byte [edx + ebx]
mov byte [ebp + 0xd], al
lea eax, [ecx + 1]
cdq
idiv edi
movzx eax, byte [edx + ebx]
mov byte [ebp + 0xc], al
mov eax, dword [ebp + 0xc]
mov dword [ecx + esi - 2], eax
add ecx, 4
sub dword [ebp - 4], 1
jne 0x4010c0
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
lea ecx, [esi + 8]
mov esi, 2
lea eax, [esi - 2]
cdq
lea ecx, [ecx + 0x18]
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x20], eax
lea eax, [esi - 1]
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x1c], eax
mov eax, esi
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x18], eax
lea eax, [esi + 1]
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x14], eax
lea eax, [esi + 2]
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x10], eax
lea eax, [esi + 3]
cdq
add esi, 6
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0xc], eax
lea eax, [esi - 2]
cmp eax, 0x12
jl 0x401114
push ebx
call fcn.0040214e
mov esi, dword [ebp - 0x10]
add esp, 4
mov dword [ebp + 0xc], 0
xor edi, edi
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
mov ecx, esi
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004011e0
mov eax, dword [ebp + 0xc]
mov dword [esi + edi*8], eax
mov eax, dword [ebp + 8]
mov dword [esi + edi*8 + 4], eax
inc edi
cmp edi, 9
jl 0x401185
lea edi, [esi + 0x4c]
mov ebx, 0x200
nop
lea eax, [ebp + 8]
mov ecx, esi
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004011e0
mov eax, dword [ebp + 0xc]
lea edi, [edi + 8]
mov dword [edi - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [edi - 8], eax
sub ebx, 1
jne 0x4011b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4011e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
xor edi, edi
nop dword [eax]
mov eax, dword [ebp + 8]
mov edx, dword [esi + edi*4]
inc edi
xor edx, dword [eax]
mov eax, edx
mov ecx, edx
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
mov eax, dword [esi + eax*4 + 0x448]
add eax, dword [esi + ecx*4 + 0x48]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor eax, dword [esi + ecx*4 + 0x848]
movzx ecx, dl
add eax, dword [esi + ecx*4 + 0xc48]
mov ecx, dword [ebp + 8]
xor eax, dword [ebx]
mov dword [ebx], edx
mov dword [ecx], eax
cmp edi, 0x10
jl 0x4011f0
mov ecx, dword [esi + 0x40]
xor ecx, eax
mov eax, dword [esi + 0x44]
mov dword [ebx], ecx
xor eax, edx
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
pop ebp
ret 8
Function at 0x401c50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x401c70
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 0xc

Function at 0x401dc0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x401e1d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x401de0
mov eax, dword [esi]
jmp 0x401efb
cmp eax, 0x4e0
jb 0x401efb
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x401e36
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x401e81
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402a10
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x402ff7
mov ecx, 5
int 0x29
push 2
call fcn.00402ab4
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x403102
test esi, esi
jne 0x403102
push 2
call fcn.00402ab4
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00402140
mov esp, ebp
pop ebp
ret

Function at 0x403460
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00403490
mov esi, dword [ebp + 8]
test al, al
je 0x40347e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.004034a0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4035d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40362c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40362c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40362c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40362c
cmp dword [ecx + 0x74], 0xe
jbe 0x40362c
cmp dword [ecx + 0xe8], 0
je 0x40362c
push dword [ebp + 8]
call fcn.004034a0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x4084ec
call fcn.00403270
add esp, 8
cmp dword [ebp - 8], 0
jne 0x403661
push dword [ebp + 8]
call fcn.00403460
mov esp, ebp
pop ebp
ret
Function at 0x4036a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4036fc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4036fc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4036fc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4036fc
cmp dword [ecx + 0x74], 0xe
jbe 0x4036fc
cmp dword [ecx + 0xe8], 0
je 0x4036fc
push dword [ebp + 8]
call fcn.004034a0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x4084ec
call fcn.00403270
add esp, 8
cmp dword [ebp - 8], 0
jne 0x403731
push dword [ebp + 8]
call fcn.00403460
mov esp, ebp
pop ebp
ret

Function at 0x403740
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x40376a
mov eax, 2
pop ebp
ret
push esi
call fcn.00402e20
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x40378a
jmp dword [eax*4 + 0x4037c0]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00402f60
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x41f410
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47eb0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0047341d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41f492
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00471190
mov eax, dword [eax]
push 0x4f0214
push eax
call fcn.00463dd4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004736a8
test bl, bl
je 0x41f492
push 0x4f0214
lea ecx, [esp + 0xc]
call fcn.00473a38
push 0x4f3d84
lea ecx, [esp + 0xc]
call fcn.00473a38
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41f4ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004736a8
jmp 0x41f599
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41f552
lea edx, [esp + 0x7c]
push 0x4f3d80
push edx
call fcn.00463dd4
add esp, 8
test eax, eax
je 0x41f552
lea eax, [esp + 0x7c]
push 0x4f3d7c
push eax
call fcn.00463dd4
add esp, 8
test eax, eax
je 0x41f552
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f4e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004736a8
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41fd90
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41fdf2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x41fe00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47eb8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4fc988]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x41ff38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41fe66
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004736a8
xor eax, eax
jmp 0x41ffaf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004737e5
push esi
lea ecx, [esp + 0xc]
call fcn.00473a74
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4f3dbc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41ff8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0041fd90
test eax, eax
jne 0x41ff8d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0041fd90
test eax, eax
jne 0x41ff8d
lea eax, [esp + 0x14]
push 0x4f3d98
push eax
call fcn.00464ee0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ff6c
lea ecx, [esp + 0x14]
push 0x4f3d94
push ecx
call fcn.00464e60
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ff6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41ff6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00473795
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41fe7e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004736a8
xor eax, eax
jmp 0x41ffaf
mov byte [esi], 0
push 0x4f3d90
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004736a8
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x430460
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x4304ce
cmp si, 0x69
ja 0x4304ce
add esi, 0xffd0
cmp si, 0x11
je 0x43049e
push 0x11
call edi
test ax, ax
jge 0x43049e
or esi, 0x2000
cmp si, 0x10
je 0x4304b3
push 0x10
call edi
test ax, ax
jge 0x4304b3
or esi, 0x4000
cmp si, 0x12
je 0x4304c8
push 0x12
call edi
test ax, ax
jge 0x4304c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4304db
mov esi, 0xbd
jmp 0x43048f
cmp si, 0x6e
jne 0x4304e8
mov esi, 0xbe
jmp 0x43048f
cmp si, 0x6f
jne 0x430489
mov esi, 0xbf
jmp 0x43048f

Function at 0x431c10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x50d0f8]
xor edx, edx
cmp eax, edx
jne 0x431c36
xor eax, eax
mov byte [eax + 0x50cff8], al
inc eax
cmp eax, 0x100
jl 0x431c1e
mov dword [0x50d0f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x50cff8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x431cc7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x431c9a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x431c68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x431d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x431d93
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x431d7a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret