joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492c20
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x509658]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x492c60
cmp byte [ebx], 0xa
jne 0x492c60
or byte [eax + edi + 0x28], 4
jmp 0x492c65
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x492d63
mov al, byte [edx]
cmp al, 0x1a
je 0x492d45
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x492c94
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x492cb9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x492cc3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x492c76
jmp 0x492d63
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492d40
cmp dword [ebp - 0xc], 0
je 0x492d40
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x509658]
test byte [eax + edi + 0x28], 0x48
je 0x492d1a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x492d05
mov byte [esi], dl
jmp 0x492d16
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x509658]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x492d63
cmp byte [ebp - 1], 0xa
jne 0x492d29
cmp esi, ebx
jne 0x492d29
mov byte [esi], 0xa
jmp 0x492d62
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040192e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x492d63
mov byte [esi], 0xd
jmp 0x492d62
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x509658]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x492d5f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x492d63
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x492dbf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x509658]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x492e02
cmp word [esi], dx
jne 0x492e02
or byte [edi + eax + 0x28], 4
jmp 0x492e07
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x492f5a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x492f3a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x492e49
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x492e7f
cmp eax, edx
jae 0x492e8b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x492e21
jmp 0x492f5a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492f36
cmp dword [ebp - 0x14], 0
je 0x492f36
mov eax, dword [ebx*4 + 0x509658]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x492f0e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x492ed7
mov word [esi], cx
jmp 0x492f0a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x509658]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x509658]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x509658]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x492f5a
pop ebx
cmp word [ebp - 4], bx
jne 0x492f1f
cmp esi, dword [ebp + 0xc]
jne 0x492f1f
mov word [esi], bx
jmp 0x492f57
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040192e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x492f5a
push 0xd
jmp 0x492f53
mov ecx, dword [ebx*4 + 0x509658]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x492f51
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x492f5a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49a691
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5059d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49a6dc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049ab53
test al, al
jne 0x49a6d6
sub edx, 2
cmp edx, edi
jne 0x49a6bc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49a6fe
lea eax, [edi + 2]
cmp edx, eax
je 0x49a6fe
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049a28a
add esp, 0x10
jmp 0x49a7f8
push esi
lea ecx, [ebp - 0x255]
call fcn.0049ab53
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49a741
push dword [ebp - 0x25c]
jmp 0x49a6ee
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49a77e
cmp word [ebp - 0x226], 0
je 0x49a79f
cmp word [ebp - 0x226], ax
jne 0x49a77e
cmp word [ebp - 0x224], 0
je 0x49a79f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049a28a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49a7eb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49a758
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49a7d3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49a7f8
push 0x499c72
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405529
add esp, 0x10
jmp 0x49a7c8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040303f
leave
ret
Function at 0x401000
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov ecx, 0x41f00d
call fcn.00402309
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x24]
cmp eax, 9
je 0x401035
movzx eax, word [ebp - 0x24]
cmp eax, 6
je 0x401035
and dword [ebp - 0x68], 0
jmp 0x40103c
mov dword [ebp - 0x68], 1
mov eax, dword [ebp - 0x68]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401044
Capabilities:
Create thread
Delete file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov ecx, 0x41f00d
call fcn.00402309
mov dword [ebp - 0x20], 0x41e100
push dword [ebp + 8]
push dword [ebp - 0x20]
call fcn.0040195f
pop ecx
pop ecx
push 0x41d8d0
call fcn.00401523
pop ecx
push 0x41d8dc
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
push dword [ebp - 0x20]
push 0x40177f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push dword [ebp - 0x20]
push 0x401c3b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 0x14]
mov eax, dword [ebp - 0x20]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x20]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4010f2
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4010c8
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4012a1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov ecx, 0x41f00d
call fcn.00402309
xor eax, eax
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00402eb0
add esp, 0xc
mov dword [ebp - 0x44], 0x44
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x8000020
push 1
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40130d
push str.Create_the_child_process_failed._n
call fcn.004010fc
pop ecx
or eax, 0xffffffff
jmp 0x40132c
push 0xffffffffffffffff
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40136c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d8
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x41f00d
call fcn.00402309
mov dword [ebp - 8], 0x416264
push 0x104
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.00402eb0
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00402eb0
add esp, 0xc
and dword [ebp - 0x358], 0
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0xffffffff
jne 0x40141b
push str.No_files_found._n
call fcn.004010fc
pop ecx
jmp 0x401514
cmp dword [ebp - 0x358], 0
jne 0x4014e4
xor eax, eax
inc eax
imul eax, eax, 0
movsx eax, byte [ebp + eax - 0x324]
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
mov edx, dword [ebp - 8]
movsx ecx, byte [edx + ecx]
cmp eax, ecx
je 0x4014a4
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x416284
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x350]
and eax, 0x10
je 0x401497
lea eax, [ebp - 0x210]
push eax
call fcn.0040136c
pop ecx
jmp 0x4014a4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x350]
push eax
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4014df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4014d2
mov dword [ebp - 0x358], 1
jmp 0x4014df
push str.Couldnt_find_next_file._n
call fcn.004010fc
pop ecx
jmp 0x401514
jmp 0x40141b
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x401514
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.delete_directory_path_s_error_d_n
call fcn.004010fc
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040233b
leave
ret
Function at 0x401dc4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x41f029
call fcn.00402309
mov dword [ebp - 8], str.version
mov dword [ebp - 0xc], str.usbwifi_ndis
mov dword [ebp - 0x10], str.zt9101d_drv
push 0x100
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00402eb0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x120]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x100
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.00402eb0
add esp, 0xc
push 0x100
push 0
lea eax, [ebp - 0x320]
push eax
call fcn.00402eb0
add esp, 0xc
and dword [ebp - 0x328], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.inf_
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
and dword [ebp - 0x324], 0
jmp 0x401e9e
mov eax, dword [ebp - 0x324]
inc eax
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0x258
jge 0x401fb5
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x324]
push str.oem_d.inf
lea eax, [ebp - 0x120]
push eax
call fcn.00401331
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x320]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.00401fc4
add esp, 0xc
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
jne 0x401f50
push 0
push 1
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupUninstallOEMInfA]
test eax, eax
je 0x401f3d
push dword [ebp - 0x324]
push str.Uninstall:_d_n
call fcn.004010fc
pop ecx
pop ecx
jmp 0x401f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Delete_failed__error:_d_n
call fcn.004010fc
pop ecx
pop ecx
lea eax, [ebp - 0x320]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.00401fc4
add esp, 0xc
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
jne 0x401fb0
push 0
push 1
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupUninstallOEMInfA]
test eax, eax
je 0x401f9d
push dword [ebp - 0x324]
push str.Uninstall:_d_n
call fcn.004010fc
pop ecx
pop ecx
jmp 0x401fb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Delete_failed__error:_d_n
call fcn.004010fc
pop ecx
pop ecx
jmp 0x401e91
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040233b
leave
ret
Function at 0x408ee0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4658eb
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.0045a55b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408f62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004584aa
mov eax, dword [eax]
push 0x5da1f0
push eax
call fcn.0044b174
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045a7e6
test bl, bl
je 0x408f62
push 0x5da1f0
lea ecx, [esp + 0xc]
call fcn.0045ab76
push 0x5ddd48
lea ecx, [esp + 0xc]
call fcn.0045ab76
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 0x408f9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045a7e6
jmp 0x409069
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 0x409022
lea edx, [esp + 0x7c]
push 0x5ddd44
push edx
call fcn.0044b174
add esp, 8
test eax, eax
je 0x409022
lea eax, [esp + 0x7c]
push 0x5ddd40
push eax
call fcn.0044b174
add esp, 8
test eax, eax
je 0x409022
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 0x408fb2
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.0045a7e6
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 0x409860
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 0x4098c2
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 0x4098d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46596b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5e42b8]
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 0x409a08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409936
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a7e6
xor eax, eax
jmp 0x409a7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045a923
push esi
lea ecx, [esp + 0xc]
call fcn.0045abb2
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 0x409a5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00409860
test eax, eax
jne 0x409a5d
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.00409860
test eax, eax
jne 0x409a5d
lea eax, [esp + 0x14]
push 0x5ddd5c
push eax
call fcn.0044c1b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x409a3c
lea ecx, [esp + 0x14]
push 0x5ddd58
push ecx
call fcn.0044c130
mov esi, eax
add esp, 8
test esi, esi
jne 0x409a3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409a3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045a8d3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40994e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a7e6
xor eax, eax
jmp 0x409a7f
mov byte [esi], 0
push 0x5ddd54
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.0045a7e6
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 0x41b4f0
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 0x41b55e
cmp si, 0x69
ja 0x41b55e
add esi, 0xffd0
cmp si, 0x11
je 0x41b52e
push 0x11
call edi
test ax, ax
jge 0x41b52e
or esi, 0x2000
cmp si, 0x10
je 0x41b543
push 0x10
call edi
test ax, ax
jge 0x41b543
or esi, 0x4000
cmp si, 0x12
je 0x41b558
push 0x12
call edi
test ax, ax
jge 0x41b558
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41b56b
mov esi, 0xbd
jmp 0x41b51f
cmp si, 0x6e
jne 0x41b578
mov esi, 0xbe
jmp 0x41b51f
cmp si, 0x6f
jne 0x41b519
mov esi, 0xbf
jmp 0x41b51f

Function at 0x41cbd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5f4900]
xor edx, edx
cmp eax, edx
jne 0x41cbf6
xor eax, eax
mov byte [eax + 0x5f4800], al
inc eax
cmp eax, 0x100
jl 0x41cbde
mov dword [0x5f4900], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5f4800
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41cc87
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 0x41cc5a
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 0x41cc28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41cd00
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 0x41cd53
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 0x41cd3a
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