joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov dword [ebp - 8], ecx
call fcn.00409d70
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00409da0
movzx edx, al
test edx, edx
je 0x40a7a5
lea eax, [ebp + 8]
push eax
call fcn.0040a660
jmp 0x40a913
mov ecx, dword [ebp - 8]
call fcn.0040aab0
test eax, eax
je 0x40a7e4
mov ecx, dword [ebp - 8]
call fcn.0040aab0
mov esi, eax
mov ecx, dword [ebp - 8]
call fcn.00409d80
cmp esi, eax
jae 0x40a7e4
lea ecx, [ebp + 8]
push ecx
call fcn.0040b470
mov bl, al
mov ecx, dword [ebp - 8]
call fcn.00408540
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40a913
mov edx, dword [ebp - 8]
cmp dword [edx + 0x4c], 0
jne 0x40a7f7
call fcn.00409d70
jmp 0x40a913
mov ecx, dword [ebp - 8]
call fcn.00408680
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x40a840
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.0040b470
movzx ecx, al
push ecx
call fcn.00402cb0
movzx edx, al
test edx, edx
je 0x40a830
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
jmp 0x40a838
call fcn.00409d70
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x40a913
mov dword [ebp - 0x28], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.0040b470
mov byte [ebp - 2], al
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 2]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x40
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
call fcn.0040a730
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40a894
cmp dword [ebp - 0xc], 1
je 0x40a894
cmp dword [ebp - 0xc], 3
je 0x40a8e1
jmp 0x40a90e
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x4c]
sub ecx, edx
mov dword [ebp - 0x10], ecx
je 0x40a8c6
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
lea eax, [ebp - 0x4c]
push eax
call fcn.004136fd
add esp, 0x10
cmp dword [ebp - 0x10], eax
je 0x40a8c6
call fcn.00409d70
jmp 0x40a913
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 2]
cmp dword [ebp - 0x24], edx
je 0x40a8da
mov eax, dword [ebp + 8]
jmp 0x40a913
call fcn.00409d70
jmp 0x40a913
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 2]
push edx
call fcn.00402cb0
movzx eax, al
test eax, eax
je 0x40a901
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
jmp 0x40a909
call fcn.00409d70
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x40a913
call fcn.00409d70
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x40b920
jl 0x40b917
cmp dword [ebp + 0xc], 0
ja 0x40b920
xor eax, eax
xor edx, edx
jmp 0x40ba51
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x40b942
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040ba60
jmp 0x40ba51
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00407480
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x40b9ab
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00403d00
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0040a1a0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00409210
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040a0f0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x40ba42
mov ecx, dword [ebp - 8]
call fcn.00408680
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x40ba1b
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00413076
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x40ba19
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x40ba51
jmp 0x40b9c7
cmp dword [ebp - 4], 0
jbe 0x40ba42
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00413076
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40d796
Capabilities:
Parse pe header

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

Function at 0x41b7c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b638
Function at 0x427980
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4279ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4279ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x405bb3
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor esi, esi
cmp dword [0x4dcf68], 0x594
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], eax
jne 0x405bf4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
push 0x405830
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x42c6f8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42c6fc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00405ba9
mov eax, dword [0x42c700]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42c704]
add ebx, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
jmp 0x405c34
mov edi, dword [ebp - 0x14]
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edi
shl eax, 4
cmp dword [0x4dcf68], 0xc
mov dword [ebp - 4], eax
jne 0x405c72
push esi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x4dcf68]
cmp eax, 0xfa9
jne 0x405c8e
mov dword [0x4dc504], 0xedeb2e40
cmp eax, 0x3eb
jne 0x405c9b
mov dword [0x4dbeb8], esi
mov ecx, dword [ebp - 8]
lea eax, [ebx + edi]
shr edi, cl
mov dword [ebp - 0x10], eax
mov dword [0x4dc500], 0xf4ea3dee
add edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor edi, dword [ebp - 4]
cmp dword [0x4dcf68], 0x213
mov dword [ebp - 0x10], edi
jne 0x405cd3
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x4dcf68], 0xc
jne 0x405d13
lea eax, [ebp - 0x10]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
push esi
lea eax, [ebp - 0x830]
push eax
push 0x405840
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add eax, dword [ebp - 0x20]
xor eax, edi
xor dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x14]
call fcn.00405bb0
add ebx, 0x61c88647
dec dword [ebp - 0x18]
jne 0x405c31
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
leave
ret 4
Function at 0x405d63
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4dcf68]
mov ecx, dword [0x4dbebc]
sub esp, 0xa7c
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x405e17
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x4dcf68], 0x959
jne 0x405e05
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
push esi
push esi
lea eax, [ebp - 0xa78]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push ebx
call fcn.00405bb3
add ebx, 8
dec dword [ebp - 8]
jne 0x405d8c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40969e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b6b0]
jne 0x4096a8
repz ret
jmp fcn.0040f60e

Function at 0x4114d4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407ff3
and dword [ebp - 4], 0
cmp dword [0x42daec], 0
mov ebx, eax
jne 0x411585
push 0x4057a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411636
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x405798
push edi
call esi
test eax, eax
je 0x411636
push eax
call fcn.00407f81
mov dword [esp], 0x405788
push edi
mov dword [0x42daec], eax
call esi
push eax
call fcn.00407f81
mov dword [esp], 0x405774
push edi
mov dword [0x42daf0], eax
call esi
push eax
call fcn.00407f81
mov dword [esp], 0x405758
push edi
mov dword [0x42daf4], eax
call esi
push eax
call fcn.00407f81
pop ecx
mov dword [0x42dafc], eax
test eax, eax
je 0x411585
push 0x405740
push edi
call esi
push eax
call fcn.00407f81
pop ecx
mov dword [0x42daf8], eax
mov eax, dword [0x42daf8]
cmp eax, ebx
je 0x4115dd
cmp dword [0x42dafc], ebx
je 0x4115dd
push eax
call fcn.00407ffc
push dword [0x42dafc]
mov esi, eax
call fcn.00407ffc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4115dd
test edi, edi
je 0x4115dd
call esi
test eax, eax
je 0x4115d4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4115d4
test byte [ebp - 0xc], 1
jne 0x4115dd
or dword [ebp + 0x10], 0x200000
jmp 0x411616
mov eax, dword [0x42daf0]
cmp eax, ebx
je 0x411616
push eax
call fcn.00407ffc
pop ecx
test eax, eax
je 0x411616
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411616
mov eax, dword [0x42daf4]
cmp eax, ebx
je 0x411616
push eax
call fcn.00407ffc
pop ecx
test eax, eax
je 0x411616
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42daec]
call fcn.00407ffc
pop ecx
test eax, eax
je 0x411636
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411638
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d350
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x474a4b
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.00469060
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d3d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00466c4a
mov eax, dword [eax]
push 0x4c3204
push eax
call fcn.00458f54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004692eb
test bl, bl
je 0x40d3d2
push 0x4c3204
lea ecx, [esp + 0xc]
call fcn.0046967b
push 0x4c6d74
lea ecx, [esp + 0xc]
call fcn.0046967b
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 0x40d40e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004692eb
jmp 0x40d4d9
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 0x40d492
lea edx, [esp + 0x7c]
push 0x4c6d70
push edx
call fcn.00458f54
add esp, 8
test eax, eax
je 0x40d492
lea eax, [esp + 0x7c]
push 0x4c6d6c
push eax
call fcn.00458f54
add esp, 8
test eax, eax
je 0x40d492
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 0x40d422
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.004692eb
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 0x40dcd0
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 0x40dd32
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 0x40dd40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x474acb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4cf418]
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 0x40de78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40dda6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004692eb
xor eax, eax
jmp 0x40deef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00469428
push esi
lea ecx, [esp + 0xc]
call fcn.004696b7
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 0x40decd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040dcd0
test eax, eax
jne 0x40decd
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.0040dcd0
test eax, eax
jne 0x40decd
lea eax, [esp + 0x14]
push 0x4c6d88
push eax
call fcn.00459f90
mov esi, eax
add esp, 8
test esi, esi
jne 0x40deac
lea ecx, [esp + 0x14]
push 0x4c6d84
push ecx
call fcn.00459f10
mov esi, eax
add esp, 8
test esi, esi
jne 0x40deac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40deaf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004693d8
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ddbe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004692eb
xor eax, eax
jmp 0x40deef
mov byte [esi], 0
push 0x4c6d80
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.004692eb
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 0x41fe70
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 0x41fede
cmp si, 0x69
ja 0x41fede
add esi, 0xffd0
cmp si, 0x11
je 0x41feae
push 0x11
call edi
test ax, ax
jge 0x41feae
or esi, 0x2000
cmp si, 0x10
je 0x41fec3
push 0x10
call edi
test ax, ax
jge 0x41fec3
or esi, 0x4000
cmp si, 0x12
je 0x41fed8
push 0x12
call edi
test ax, ax
jge 0x41fed8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41feeb
mov esi, 0xbd
jmp 0x41fe9f
cmp si, 0x6e
jne 0x41fef8
mov esi, 0xbe
jmp 0x41fe9f
cmp si, 0x6f
jne 0x41fe99
mov esi, 0xbf
jmp 0x41fe9f

Function at 0x4216a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4dfb08]
xor edx, edx
cmp eax, edx
jne 0x4216c6
xor eax, eax
mov byte [eax + 0x4dfa08], al
inc eax
cmp eax, 0x100
jl 0x4216ae
mov dword [0x4dfb08], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4dfa08
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421757
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 0x42172a
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 0x4216f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4217d0
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 0x421823
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 0x42180a
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