joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d87d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x18
call fcn.00413e71
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 6
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0xffff
jle 0x40da85
cmp dword [ebp + 0x24], 0
je 0x40d8de
cmp dword [ebp + 0x2c], 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40d8de
xor eax, eax
jmp 0x40d8e3
mov eax, 1
test eax, eax
je 0x40d8f2
mov dword [ebp + 0x18], 0
cmp dword [0x445499], 0
jne 0x40d98a
mov ebx, dword [0x445431]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
mov eax, 0x442c80
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004023fb
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40d93e
push ebx
call fcn.00413e6b
add esp, 4
lea eax, [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call fcn.00408bd0
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40d95f
push ebx
call fcn.00413e6b
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [0x445499], eax
push 0x80000006
push 0
push 0x40dd2b
push 1
mov ebx, 0x9dc
call fcn.004153c0
add esp, 0x10
mov dword [0x44549d], eax
push 1
lea eax, [ebp - 4]
push eax
push 1
push 0
push 1
push 0
push dword [0x44549d]
push dword [0x445499]
call fcn.00408bef
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40d9ea
push 6
call fcn.00413e7d
add esp, 4
mov ebx, dword [ebp + 0x20]
mov dword [ebx], eax
push 1
lea eax, [ebp - 4]
push eax
call fcn.0040b6c5
mov ebx, dword [ebp + 0x20]
cmp dword [ebx], 0
jle 0x40da85
cmp dword [ebp + 0x2c], 0
mov eax, 0
sete al
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40da56
mov ebx, dword [ebp + 0x20]
push dword [ebx]
call fcn.0040daa1
push 1
push 0xffffffff
push dword [ebp + 0x28]
mov ebx, dword [ebp + 0x20]
push dword [ebx]
call fcn.0040daeb
push dword [ebp + 0x20]
call fcn.0040d1ed
mov ebx, dword [ebp + 0x20]
mov dword [ebx], 0
mov eax, dword [ebp - 8]
jmp 0x40da8d
cmp dword [ebp + 0x18], 0
jne 0x40da6a
mov ebx, dword [ebp + 0x20]
push dword [ebx]
call fcn.0040daa1
cmp dword [ebp + 0x24], 0
jne 0x40da85
push dword [ebp + 0x20]
call fcn.0040d1ed
mov ebx, dword [ebp + 0x20]
mov dword [ebx], 0
mov eax, dword [ebp - 8]
jmp 0x40da8d
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.00413e6b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x28
Function at 0x410b0f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x410b56
cmp ebx, 0x20
je 0x410b56
cmp ebx, 0xffffffe0
je 0x410b56
jne 0x410b5f
add eax, 1
cmp esi, eax
je 0x410b6c
jne 0x410b3b
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x410b70
jne 0x410b37
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x410b84
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x410bc9
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x410bcf
add eax, 4
pop esi
dec esi
push esi
jne 0x410bb1
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8

Function at 0x412ed7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.00415010
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x412f1c
push ebx
call fcn.00413e6b
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x412f47
push 6
call fcn.00413e7d
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x412f5a
mov eax, 0x440283
push eax
push 1
mov ebx, 0x170
call fcn.00415e10
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x412f78
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x412f89
push ebx
call fcn.00413e6b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x4146e0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
mov al, 0x20
mov cl, byte [edi]
inc edi
cmp cl, 0x22
jne 0x4146fa
mov al, cl
mov dl, byte [edi]
inc edi
cmp dl, al
je 0x414708
mov cl, byte [edi]
inc edi
cmp cl, al
jne 0x414701
cmp al, 0x20
je 0x414712
cmp byte [edi], 0x20
jne 0x414712
inc edi
lea ecx, [esp + 0xc]
call fcn.00416790
mov dword [esp + 0xc], 0x43d1d4
mov al, byte [edi]
test al, al
je 0x4147d6
mov esi, dword [esp + 0x28]
cmp al, 0x22
jne 0x41477e
mov al, byte [edi + 1]
inc edi
test al, al
mov esi, edi
je 0x414759
mov al, byte [esi]
cmp al, 0x22
je 0x414759
test al, al
jge 0x414751
mov al, byte [esi + 1]
test al, al
je 0x414759
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41473f
mov edx, esi
sub edx, edi
push edx
push edi
call fcn.00416c40
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.00416a20
mov al, byte [esi]
mov edi, esi
test al, al
je 0x4147cc
lea edi, [esi + 1]
jmp 0x4147cc
cmp al, 0x20
jg 0x41478a
cmp byte [esi], 0
jl 0x41478a
inc edi
jmp 0x4147cc
test al, al
mov esi, edi
je 0x4147b2
mov al, byte [esi]
cmp al, 0x22
je 0x4147b2
cmp al, 0x20
jg 0x41479e
test al, al
jge 0x4147b2
test al, al
jge 0x4147aa
mov al, byte [esi + 1]
test al, al
je 0x4147b2
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x414790
mov eax, esi
sub eax, edi
push eax
push edi
call fcn.00416c40
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.00416a20
mov edi, esi
mov al, byte [edi]
test al, al
jne 0x414731
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x4147e9
push eax
call fcn.00416be0
add esp, 4
mov edi, dword [esp + 0x1c]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.004140b0
mov dword [eax], 1
mov edx, dword [esp + 0x20]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [ebx], eax
mov dword [esp + 0xc], 0x43d1d0
call fcn.00416990
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x414cb0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x414d19
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004140b0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x414d50
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x414de2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x414dd4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x414dcc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x414d95
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x415800
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x41581e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x415813
pop esi
ret

Function at 0x415d80
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x11c
test eax, eax
jne 0x415da4
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x415e02
jmp 0x415dc6
mov edx, dword [esp + 0x124]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x415e02
mov cl, byte [edx]
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x18], cl
lea edx, [esp + 8]
lea eax, [esp]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x2a], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x415e02
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ecx, 0xa
call fcn.0041ede0
add esp, 0x11c
ret
or eax, 0xffffffff
add esp, 0x11c
ret
Function at 0x41a400
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43b5d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.0041a800
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x46206c
call fcn.0041fd41
mov ecx, dword [0x43d204]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00417b60
mov esi, 0x43d25c
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x41a4a7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x41a49e
cmp al, 0xff
je 0x41a49e
dec al
mov byte [ecx], al
jmp 0x41a4a7
push ecx
call fcn.0041ea63
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00439d00
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x41a4ed
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x41a4e4
cmp al, 0xff
je 0x41a4e4
dec al
mov byte [ecx], al
jmp 0x41a4ed
push ecx
call fcn.0041ea63
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0041fdc8
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x434160
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43bd20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00428f0e
mov eax, dword [0x43daa8]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00428e40
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00434c80
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x434207
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4341fe
cmp al, 0xff
je 0x4341fe
dec al
mov byte [ecx], al
jmp 0x434207
push ecx
call fcn.0041ea63
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x434238
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x43422f
cmp al, 0xff
je 0x43422f
dec al
mov byte [ecx], al
jmp 0x434238
push ecx
call fcn.0041ea63
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x401834
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004019e4
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x401932
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4018d5
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401918
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4018ec
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401907
test al, 0x40
je 0x4018fe
mov ecx, dword [edi + 0x20]
jmp 0x401905
test al, 0x80
je 0x401918
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401918
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4018a4
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x409400
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f66b
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.00462391
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409482
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045fe47
mov eax, dword [eax]
push 0xd651d0
push eax
call fcn.00452b94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046261c
test bl, bl
je 0x409482
push 0xd651d0
lea ecx, [esp + 0xc]
call fcn.004629f8
push 0xd68d38
lea ecx, [esp + 0xc]
call fcn.004629f8
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 0x4094be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046261c
jmp 0x409589
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 0x409542
lea edx, [esp + 0x7c]
push 0xd68d34
push edx
call fcn.00452b94
add esp, 8
test eax, eax
je 0x409542
lea eax, [esp + 0x7c]
push 0xd68d30
push eax
call fcn.00452b94
add esp, 8
test eax, eax
je 0x409542
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 0x4094d2
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.0046261c
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 0x409d80
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 0x409de2
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 0x409df0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f6eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xd6fc10]
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 0x409f28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409e56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046261c
xor eax, eax
jmp 0x409f9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004627a5
push esi
lea ecx, [esp + 0xc]
call fcn.00462a34
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 0x409f7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00409d80
test eax, eax
jne 0x409f7d
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.00409d80
test eax, eax
jne 0x409f7d
lea eax, [esp + 0x14]
push 0xd68d4c
push eax
call fcn.00453c70
mov esi, eax
add esp, 8
test esi, esi
jne 0x409f5c
lea ecx, [esp + 0x14]
push 0xd68d48
push ecx
call fcn.00453bf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x409f5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409f5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00462755
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409e6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046261c
xor eax, eax
jmp 0x409f9f
mov byte [esi], 0
push 0xd68d44
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.0046261c
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 0x41a580
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 0x41a5ee
cmp si, 0x69
ja 0x41a5ee
add esi, 0xffd0
cmp si, 0x11
je 0x41a5be
push 0x11
call edi
test ax, ax
jge 0x41a5be
or esi, 0x2000
cmp si, 0x10
je 0x41a5d3
push 0x10
call edi
test ax, ax
jge 0x41a5d3
or esi, 0x4000
cmp si, 0x12
je 0x41a5e8
push 0x12
call edi
test ax, ax
jge 0x41a5e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a5fb
mov esi, 0xbd
jmp 0x41a5af
cmp si, 0x6e
jne 0x41a608
mov esi, 0xbe
jmp 0x41a5af
cmp si, 0x6f
jne 0x41a5a9
mov esi, 0xbf
jmp 0x41a5af

Function at 0x41bd30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xd809e8]
xor edx, edx
cmp eax, edx
jne 0x41bd56
xor eax, eax
mov byte [eax + 0xd808e8], al
inc eax
cmp eax, 0x100
jl 0x41bd3e
mov dword [0xd809e8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xd808e8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41bde7
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 0x41bdba
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 0x41bd88
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41be60
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 0x41beb3
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 0x41be9a
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