joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40236c
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
mov esi, dword [edi]
mov dword [ebp + 8], esi
add esi, 2
lea eax, [esi*4 + 4]
push eax
call fcn.0040207c
pop ecx
mov dword [edi], esi
mov esi, 0x408010
push 4
mov dword [ebx], eax
mov edx, esi
pop ebx
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x4023b5
cmp byte [ecx + 1], 0x4a
jne 0x4023b5
add ecx, 2
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, 0x408018
jl 0x4023a1
xor edi, edi
cmp dword [ebp + 8], edi
jle 0x4023ea
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x4023e2
cmp byte [ecx + 1], 0x4a
jne 0x4023e2
add ecx, 2
cmp byte [ecx], 0
je 0x40242f
mov dword [eax], ecx
add eax, ebx
inc edi
add edx, ebx
cmp edi, dword [ebp + 8]
jl 0x4023c9
mov edx, esi
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x4023f9
cmp byte [ecx + 1], 0x4a
je 0x4023fd
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, 0x408018
jl 0x4023ec
mov esi, dword [ebp + 8]
test esi, esi
jle 0x402427
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x40241e
cmp byte [ecx + 1], 0x4a
je 0x402422
mov dword [eax], ecx
add eax, ebx
add edx, ebx
dec esi
jne 0x402411
and dword [eax], 0
pop edi
pop esi
pop ebx
pop ebp
ret
push 1
push 0x4089e8
call fcn.00403335
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x402445
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
and byte [esp + 7], 0
push ebx
push ebp
push esi
push edi
push 0x408a20
mov byte [esp + 0x1a], 0x3b
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, eax
or ebp, 0xffffffff
pop ecx
test ebx, ebx
je 0x40249d
mov edi, ebx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.0040207c
mov edi, eax
push ebx
push 0x408a2c
push edi
call esi
push 0
push edi
call fcn.0040178c
add esp, 0x18
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.0040308e
pop ecx
test al, al
pop ecx
jne 0x4024c7
push 1
push 0x408a40
call fcn.00403335
pop ecx
xor al, al
pop ecx
jmp 0x4025eb
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.0040207c
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push 0x408a64
push edi
call esi
push 0
push edi
call fcn.0040178c
lea edi, [esp + 0x30]
mov ecx, ebp
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
push 0x28
dec ecx
mov ebx, 0x408018
pop edx
mov dword [esp + 0x10], ecx
mov esi, ebx
mov edi, dword [esi]
mov ecx, ebp
xor eax, eax
add esi, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, dword [esp + 0x10]
cmp esi, 0x408020
lea edx, [edx + ecx + 1]
jl 0x402511
inc edx
push edx
call fcn.0040207c
mov edx, eax
mov esi, 0x408a7c
mov edi, edx
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
add dword [esp + 0x10], 4
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x16]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
cmp dword [esp + 0x10], 0x408020
rep movsb byte es:[edi], byte [esi]
jl 0x40254b
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push edx
and byte [ecx + edx - 1], al
call fcn.0040178c
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x402829
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.00403050
lea eax, [ebp - 0x184]
push 0x4090d8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x402882
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push 0x4090dc
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x4028d2
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x4028c6
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x40289c
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x402dc5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402ea1
pop ecx
test al, al
pop ecx
jne 0x402df1
push 1
push 0x4092b4
call fcn.00403335
pop ecx
pop ecx
push 2
call dword [sym.imp.MSVCRT.dll_exit]
push 0
call fcn.00402dbf
push eax
push dword [ebp + 0x10]
call fcn.004028d5
add esp, 0xc
cmp eax, 1
jge 0x402e1f
push 1
push 0x4092e8
call fcn.00403335
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401537
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov edi, eax
and byte [ebx], 0
push ebx
push edi
mov dword [ebp + 0x14], edi
push dword [ebp + 0x10]
call fcn.00402f69
add esp, 0x1c
test al, al
jne 0x402e9d
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push esi
dec ecx
mov esi, 0x409320
add edx, ecx
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
call fcn.0040207c
push ebx
mov edi, eax
push dword [ebp + 0x14]
push esi
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 1
push edi
call fcn.00403335
add esp, 0x1c
push 4
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403421
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, 0x104
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [ebp - 0x114]
xor eax, eax
push esi
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call edi
test eax, eax
jne 0x4034c0
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
push dword [eax + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.00403fea
pop ecx
test eax, eax
pop ecx
je 0x4034a5
cmp dword [ebp - 8], 0
je 0x403494
push dword [ebp - 8]
lea eax, [ebp - 0x114]
push eax
call fcn.00403f1b
pop ecx
test eax, eax
pop ecx
jle 0x4034a5
push dword [ebp - 8]
call ebx
pop ecx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x114]
push esi
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x403458
mov edi, dword [ebp - 8]
test edi, edi
jne 0x4034c4
xor eax, eax
jmp 0x40353a
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
push edi
je 0x4034e7
call ebx
cmp dword [ebp - 4], 0
pop ecx
jmp 0x403511
call ebx
pop ecx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x114]
xor esi, esi
push eax
push esi
push esi
push 0x4096f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40351e
cmp dword [ebp - 4], esi
je 0x4034c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4034c0
cmp dword [ebp - 4], esi
je 0x40352c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40353f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403578
push 1
push 0x409700
call fcn.00403335
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x104]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x40364d
mov edi, dword [ebp + 8]
mov ecx, ebx
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x104]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
mov ecx, ebx
repne scasb al, byte es:[edi]
dec edi
mov esi, 0x409738
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, edx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov eax, 0x409730
dec edi
mov esi, eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
cmp byte [0x40ac62], 0
je 0x403632
mov esi, dword [sym.imp.MSVCRT.dll_printf]
lea eax, [ebp - 0x104]
push eax
push 0x409740
call esi
mov eax, dword [edi]
pop ecx
test eax, eax
pop ecx
je 0x40362a
mov ebx, edi
push eax
push 0x40974c
call esi
mov eax, dword [ebx + 4]
add ebx, 4
pop ecx
test eax, eax
pop ecx
jne 0x403616
push 0x409754
call esi
pop ecx
lea eax, [ebp - 0x104]
push edi
push eax
push 0
call dword [sym.imp.MSVCRT.dll__spawnv]
add esp, 0xc
push eax
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4037f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 4], 0xffffffff
je 0x403850
cmp dword [esi], 0xffffffff
je 0x403850
push 0
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
test eax, eax
jl 0x403850
mov eax, dword [esi + 4]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x403850
mov edi, dword [esi + 4]
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, edi
je 0x403857
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp eax, ecx
jne 0x403867
and byte [edi + ebx], cl
mov eax, ebx
jmp 0x403852
cmp eax, 8
jne 0x403850
push 0x38
push 0x4097c0
lea eax, [ebp - 0x38]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edi
call fcn.0040432c
add esp, 0x10
test eax, eax
jl 0x403848
mov eax, dword [esi]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x403848
mov eax, dword [esi]
push 1
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x2c], edi
call fcn.00404416
pop ecx
test eax, eax
pop ecx
jge 0x4038cd
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
call esi
push edi
call esi
pop ecx
jmp 0x40384f
mov eax, dword [esi]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
and byte [eax + edi], 0
call esi
lea eax, [ebp - 0x38]
push eax
call fcn.004042ee
pop ecx
test eax, eax
pop ecx
jge 0x4038f3
push edi
call esi
jmp 0x40384f
mov eax, edi
jmp 0x403852
Function at 0x403b81
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__lseek]
push edi
push 2
push 0xffffffffffffffea
push dword [ebp + 8]
call esi
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jl 0x403cb5
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__read]
push 0x16
push ebx
push dword [ebp + 8]
call edi
add esp, 0xc
test eax, eax
jl 0x403cb5
movzx ecx, byte [ebx + 1]
xor eax, eax
mov ah, byte [ebx + 3]
mov al, byte [ebx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebx]
shl eax, 8
or eax, ecx
cmp eax, 0x6054b50
jne 0x403beb
mov eax, dword [ebp - 4]
jmp 0x403cb8
push 2
push 0
push dword [ebp + 8]
call esi
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x403cb5
mov ebx, 0x10015
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x403c11
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
push 2
neg eax
push eax
push dword [ebp + 8]
call esi
add esp, 0xc
test eax, eax
jl 0x403cb5
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
mov dword [ebp - 8], esi
je 0x403cb5
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call edi
add esp, 0xc
test eax, eax
jl 0x403cad
add eax, esi
mov dword [ebp + 8], eax
lea ebx, [eax - 0x16]
cmp ebx, esi
jb 0x403cad
cmp byte [ebx], 0x50
jne 0x403c8a
movzx edx, byte [ebx + 1]
xor ecx, ecx
mov ch, byte [ebx + 3]
mov cl, byte [ebx + 2]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x403c8a
xor ecx, ecx
mov ch, byte [ebx + 0x15]
mov cl, byte [ebx + 0x14]
lea ecx, [ecx + ebx + 0x16]
cmp ecx, eax
je 0x403c8d
dec ebx
jmp 0x403c52
mov edi, dword [ebp + 0xc]
push 5
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 8]
movsw word es:[edi], word [esi]
call dword [sym.imp.MSVCRT.dll_free]
mov eax, ebx
pop ecx
sub eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
jmp 0x403cb8
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40639a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407378
push 0x4064d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40aca0], 0xffffffff
or dword [0x40aca4], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40ac9c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40ac98]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40aca8], eax
call fcn.00406261
cmp dword [0x40ac40], 0
jne 0x40641d
push 0x4064c8
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004064b6
push 0x40800c
push 0x408008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40ac94]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40ac90]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x408004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x4071e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d21b
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.00460071
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407262
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045db27
mov eax, dword [eax]
push 0x4851d0
push eax
call fcn.00450874
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004602fc
test bl, bl
je 0x407262
push 0x4851d0
lea ecx, [esp + 0xc]
call fcn.004606d8
push 0x488d28
lea ecx, [esp + 0xc]
call fcn.004606d8
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 0x40729e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004602fc
jmp 0x407369
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 0x407322
lea edx, [esp + 0x7c]
push 0x488d24
push edx
call fcn.00450874
add esp, 8
test eax, eax
je 0x407322
lea eax, [esp + 0x7c]
push 0x488d20
push eax
call fcn.00450874
add esp, 8
test eax, eax
je 0x407322
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 0x4072b2
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.004602fc
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 0x407b60
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 0x407bc2
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 0x407bd0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d29b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48fbf8]
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 0x407d08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407c36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004602fc
xor eax, eax
jmp 0x407d7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00460485
push esi
lea ecx, [esp + 0xc]
call fcn.00460714
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x407d5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00407b60
test eax, eax
jne 0x407d5d
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 SysReAllocStringLen
mov ecx, edi
call fcn.00407b60
test eax, eax
jne 0x407d5d
lea eax, [esp + 0x14]
push 0x488d3c
push eax
call fcn.00451950
mov esi, eax
add esp, 8
test esi, esi
jne 0x407d3c
lea ecx, [esp + 0x14]
push 0x488d38
push ecx
call fcn.004518d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x407d3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x407d3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00460435
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x407c4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004602fc
xor eax, eax
jmp 0x407d7f
mov byte [esi], 0
push 0x488d34
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.004602fc
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 0x418340
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 0x4183ae
cmp si, 0x69
ja 0x4183ae
add esi, 0xffd0
cmp si, 0x11
je 0x41837e
push 0x11
call edi
test ax, ax
jge 0x41837e
or esi, 0x2000
cmp si, 0x10
je 0x418393
push 0x10
call edi
test ax, ax
jge 0x418393
or esi, 0x4000
cmp si, 0x12
je 0x4183a8
push 0x12
call edi
test ax, ax
jge 0x4183a8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4183bb
mov esi, 0xbd
jmp 0x41836f
cmp si, 0x6e
jne 0x4183c8
mov esi, 0xbe
jmp 0x41836f
cmp si, 0x6f
jne 0x418369
mov esi, 0xbf
jmp 0x41836f

Function at 0x419ab0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a09d8]
xor edx, edx
cmp eax, edx
jne 0x419ad6
xor eax, eax
mov byte [eax + 0x4a08d8], al
inc eax
cmp eax, 0x100
jl 0x419abe
mov dword [0x4a09d8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a08d8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x419b67
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 0x419b3a
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 0x419b08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x419be0
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 0x419c33
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 0x419c1a
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