joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416c9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a0c
xor eax, eax
push ebp
push 0x416cf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403a1c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x416cd8
test byte [ebp - 0xc], 0x10
jne 0x416cdc
xor eax, eax
jmp 0x416cde
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416cfe
lea eax, [ebp - 4]
call fcn.004035dc
ret

Function at 0x417294
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a0c
xor eax, eax
push ebp
push 0x4173fd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00416d08
test al, al
je 0x4173da
mov eax, dword [0x43ba80]
cmp dword [eax], 1
jne 0x4172fb
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.00406efc
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00416f84
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 4]
call fcn.00403674
mov eax, dword [0x43ba2c]
mov al, byte [eax]
sub al, 2
jae 0x417357
mov eax, dword [0x43ba2c]
cmp dword [eax + 0xd], 0x457
jge 0x417357
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
call fcn.00403a1c
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
je 0x4173da
mov eax, dword [ebp - 0x30]
imul dword [ebp - 0x2c]
imul dword [ebp - 0x34]
test eax, eax
jns 0x41734c
add eax, 0x3ff
sar eax, 0xa
mov dword [ebp - 8], eax
jmp 0x4173da
push 0x41740c
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4173da
xor eax, eax
push ebp
push 0x4173d3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41741c
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4173bc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00403a1c
push eax
call dword [ebp - 0x10]
test eax, eax
je 0x4173bc
mov eax, dword [ebp - 0x14]
shl eax, 0x16
mov edx, dword [ebp - 0x18]
shr edx, 0xa
or eax, edx
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4173da
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417404
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00403600
lea eax, [ebp - 4]
call fcn.004035dc
ret
Function at 0x417430
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0x80
mov eax, dword [ebp - 4]
call fcn.00403a1c
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.00406d78
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x417dac
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004035dc
mov edx, 0x20
mov eax, dword [ebp - 4]
call fcn.00406b10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x417e35
xor eax, eax
push ebp
push 0x417e2e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetFileSize_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x417e18
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00403b88
mov eax, dword [ebp - 8]
call fcn.00403a28
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00406b74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417e35
mov eax, dword [ebp - 0xc]
call fcn.00406bd8
ret
mov esp, ebp
pop ebp
ret

Function at 0x41851c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004035dc
cmp dword [ebp - 4], 0
je 0x41857a
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403a1c
push eax
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jle 0x41857a
mov edx, dword [ebp - 0xc]
dec edx
mov eax, dword [ebp - 8]
call fcn.00403b88
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00403a1c
push eax
mov eax, dword [ebp - 4]
call fcn.00403a1c
push eax
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov esp, ebp
pop ebp
ret

Function at 0x418b88
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x418c38
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.0040d528
xor eax, eax
push ebp
push 0x418c1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x418bf4
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00403790
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x10]
call fcn.00403858
inc eax
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0
jne 0x418bd2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418c22
mov eax, dword [ebp - 4]
call fcn.0040d5e4
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
ret
Function at 0x418de0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x418ebf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x104
call fcn.00403b88
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403a1c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403858
push eax
call sub.KERNEL32.DLL_GetTempPathA
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00403b88
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00416f84
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00403674
lea eax, [ebp - 0xc]
call fcn.00407148
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00416f84
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00406814
test eax, eax
jne 0x418ea4
mov eax, dword [0x43ba80]
cmp dword [eax], 1
jne 0x418e97
lea eax, [ebp - 0xc]
call fcn.00418ef0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00416f84
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, 0x418ed4
call fcn.004038a4
jmp 0x418ea4
mov eax, dword [ebp - 4]
mov edx, 0x418ee4
call fcn.00403674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418ec6
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403600
ret

Function at 0x4191e8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov edx, dword [0x419110]
call fcn.00403eb0
xor eax, eax
push ebp
push 0x41924d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00403674
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x419134
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419254
lea eax, [ebp - 0x10]
mov edx, dword [0x419110]
call fcn.00403f78
ret

Function at 0x425610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
dec ecx
test ecx, ecx
jl 0x425635
inc ecx
xor esi, esi
mov bl, byte [eax + esi]
xor bl, byte [edx + esi]
mov edi, dword [ebp - 4]
mov byte [edi + esi], bl
inc esi
dec ecx
jne 0x425625
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x429e68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 3], cl
mov word [ebp - 2], dx
mov esi, eax
xor eax, eax
push ebp
push 0x429fb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov ax, word [ebp - 2]
mov word [esi + 0x17], ax
test byte [esi + 0x17], 1
setne al
xor al, 1
mov byte [esi + 0x14], al
mov eax, dword [esi + 0x1c]
call fcn.00406c48
test al, al
je 0x429fa1
mov byte [esi + 0x15], 1
push 1
lea eax, [ebp - 8]
push eax
mov eax, dword [0x43ba6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
xor ecx, ecx
xor edx, edx
call fcn.00416a7c
mov ecx, dword [ebp - 8]
mov eax, dword [0x43ba6c]
mov eax, dword [eax]
mov edx, dword [eax + 0x24]
lea eax, [esi + 0x20]
call fcn.004038a4
mov eax, dword [esi + 0x1c]
call fcn.00412354
xor ecx, ecx
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
call fcn.00417d80
mov ebx, eax
test byte [ebp - 3], bl
je 0x429fa1
test byte [esi + 0x17], 4
je 0x429f12
mov eax, dword [esi + 0x1c]
call fcn.00415d8c
test byte [esi + 0x17], 8
je 0x429f36
mov eax, dword [esi + 0x1c]
call fcn.00403a1c
push eax
call sub.gdi32.dll_RemoveFontResourceA
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendMessageA
mov eax, dword [esi + 0x1c]
call fcn.00417430
test al, al
jne 0x429fa1
mov byte [esi + 0x2c], 1
lea eax, [esi + 0x24]
mov edx, 0x104
call fcn.00403b88
mov eax, dword [esi + 0x24]
call fcn.00403a1c
push eax
push 0
push 0x429fc8
lea edx, [ebp - 8]
mov eax, dword [esi + 0x1c]
call fcn.00406ec8
mov eax, dword [ebp - 8]
call fcn.00403a1c
push eax
call sub.KERNEL32.DLL_GetTempFileNameA
mov eax, dword [esi + 0x24]
call fcn.00403a1c
mov edx, eax
lea eax, [esi + 0x24]
call fcn.00403790
mov eax, dword [0x43ba6c]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x429fd4
call fcn.00423c3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429fbe
lea eax, [ebp - 8]
call fcn.004035dc
ret
Function at 0x42de10
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42df8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00406c48
test al, al
je 0x42df5c
mov eax, ebx
call fcn.00417030
mov edi, eax
mov eax, ebx
call fcn.00403a1c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [eax - 1], 0
je 0x42de61
and esi, 0xfffffffe
mov eax, ebx
call fcn.00406be0
call fcn.0040704c
fstp qword [ebp - 8]
wait
lea eax, [ebp - 0xc]
call fcn.004035dc
mov byte [0x43b664], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
mov edx, edi
mov eax, ebx
call fcn.0042d25c
pop ecx
dec eax
jne 0x42df77
cmp dword [0x43c74c], 0
je 0x42debf
mov eax, dword [0x43c74c]
test byte [eax + 0x25], 4
je 0x42debf
mov byte [0x43b664], 1
cmp byte [0x43b664], 0
je 0x42dedf
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, 0x43c75c
mov ecx, pe_nt_image_headers32
call fcn.00425f70
mov eax, 0x42dda0
push eax
push 0
mov ecx, 0x42dd6c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00417b0c
mov byte [ebp - 0xd], al
cmp byte [0x43b664], 0
je 0x42df0c
mov eax, 0x43c75c
call fcn.00426070
cmp byte [ebp - 0xd], 0
je 0x42df41
mov eax, dword [ebp + 8]
cmp byte [eax - 1], 0
je 0x42df2a
push esi
mov eax, dword [ebp - 0xc]
call fcn.00403a1c
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, esi
mov edx, edi
mov eax, ebx
call fcn.0042d9b8
jmp 0x42df77
mov eax, dword [0x43b97c]
cmp byte [eax], 0
jne 0x42df77
mov byte [0x43c756], 1
mov eax, dword [0x43b97c]
mov byte [eax], 1
jmp 0x42df77
mov eax, 0x43c744
mov edx, ebx
call fcn.00403630
mov byte [0x43c756], 1
mov eax, dword [0x43b97c]
mov byte [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42df94
lea eax, [ebp - 0xc]
call fcn.004035dc
ret
Function at 0x4372c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4375ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00406f90
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00406ec8
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0042ae2c
test al, al
jne 0x437365
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x48]
mov eax, 0x16
call fcn.0042a678
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x54]
xor ecx, ecx
pop eax
call fcn.004077d4
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
mov eax, dword [0x43ba6c]
mov eax, dword [eax]
call fcn.004234c4
mov edx, dword [ebp - 0x48]
mov eax, 0x437608
call fcn.0042b13c
jmp 0x4375c4
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
call fcn.00416f84
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
add eax, 0x24
mov ecx, dword [ebp - 0x10]
call fcn.004038a4
lea ecx, [ebp - 0x48]
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00406e34
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
add eax, 0x1c
call fcn.00403630
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, 0x20
call fcn.00406b10
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x437502
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetFileSize_1
mov edi, eax
cmp edi, 0x10000
jle 0x4373d7
mov edi, 0x10000
mov eax, edi
call fcn.004025b0
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x43748d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov edx, edi
neg edx
mov ecx, 2
mov eax, dword [ebp - 0xc]
call fcn.00406bcc
mov edx, dword [ebp - 0x18]
mov ecx, edi
mov eax, dword [ebp - 0xc]
call fcn.00406b74
mov esi, edi
sub esi, 6
cmp esi, 0
jl 0x437477
mov eax, 0x437620
mov al, byte [eax]
call fcn.00402884
mov edx, dword [ebp - 0x18]
cmp al, byte [edx + esi]
jne 0x437471
mov byte [ebp - 0x19], 1
mov ebx, 1
mov eax, 0x437620
mov al, byte [eax + ebx]
call fcn.00402884
lea edx, [ebx + esi]
mov ecx, dword [ebp - 0x18]
cmp al, byte [ecx + edx]
je 0x43745b
mov byte [ebp - 0x19], 0
jmp 0x437461
inc ebx
cmp ebx, 6
jne 0x43743d
cmp byte [ebp - 0x19], 0
je 0x437471
sub edi, esi
sub edi, 6
mov dword [ebp - 0x20], edi
jmp 0x437477
dec esi
cmp esi, 0xffffffff
jne 0x437420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437494
mov eax, dword [ebp - 0x18]
call fcn.004025c8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4375f3
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00403600
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403600
ret
Function at 0x409f70
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46840b
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.0045ce21
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409ff2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045aba0
mov eax, dword [eax]
push 0x4cd1f0
push eax
call fcn.0044d7d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045d0ac
test bl, bl
je 0x409ff2
push 0x4cd1f0
lea ecx, [esp + 0xc]
call fcn.0045d43c
push 0x4d0d6c
lea ecx, [esp + 0xc]
call fcn.0045d43c
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 0x40a02e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045d0ac
jmp 0x40a0f9
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 0x40a0b2
lea edx, [esp + 0x7c]
push 0x4d0d68
push edx
call fcn.0044d7d4
add esp, 8
test eax, eax
je 0x40a0b2
lea eax, [esp + 0x7c]
push 0x4d0d64
push eax
call fcn.0044d7d4
add esp, 8
test eax, eax
je 0x40a0b2
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 0x40a042
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.0045d0ac
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 0x40a8f0
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 0x40a952
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 0x40a960
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46848b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4d72d0]
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 0x40aa98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a9c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d0ac
xor eax, eax
jmp 0x40ab0f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045d1e9
push esi
lea ecx, [esp + 0xc]
call fcn.0045d478
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4d0da4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40aaed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040a8f0
test eax, eax
jne 0x40aaed
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.0040a8f0
test eax, eax
jne 0x40aaed
lea eax, [esp + 0x14]
push 0x4d0d80
push eax
call fcn.0044e810
mov esi, eax
add esp, 8
test esi, esi
jne 0x40aacc
lea ecx, [esp + 0x14]
push 0x4d0d7c
push ecx
call fcn.0044e790
mov esi, eax
add esp, 8
test esi, esi
jne 0x40aacc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40aacf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045d199
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a9de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d0ac
xor eax, eax
jmp 0x40ab0f
mov byte [esi], 0
push 0x4d0d78
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.0045d0ac
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 0x41b1b0
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 0x41b21e
cmp si, 0x69
ja 0x41b21e
add esi, 0xffd0
cmp si, 0x11
je 0x41b1ee
push 0x11
call edi
test ax, ax
jge 0x41b1ee
or esi, 0x2000
cmp si, 0x10
je 0x41b203
push 0x10
call edi
test ax, ax
jge 0x41b203
or esi, 0x4000
cmp si, 0x12
je 0x41b218
push 0x12
call edi
test ax, ax
jge 0x41b218
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41b22b
mov esi, 0xbd
jmp 0x41b1df
cmp si, 0x6e
jne 0x41b238
mov esi, 0xbe
jmp 0x41b1df
cmp si, 0x6f
jne 0x41b1d9
mov esi, 0xbf
jmp 0x41b1df

Function at 0x41c8d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4e7940]
xor edx, edx
cmp eax, edx
jne 0x41c8f6
xor eax, eax
mov byte [eax + 0x4e7840], al
inc eax
cmp eax, 0x100
jl 0x41c8de
mov dword [0x4e7940], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4e7840
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41c987
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 0x41c95a
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 0x41c928
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41ca00
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 0x41ca53
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 0x41ca3a
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