joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032d4
Capabilities:
Copy file
Delete file
Get common file path
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x44de90]
and dword [ebp - 0x214], 0
push ebx
push edi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push 0x434960
push eax
call fcn.00425610
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x320]
push str._s.tmp
push eax
call fcn.00424fde
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x424]
push str._s.inf
push eax
call fcn.00424fde
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x20
lea eax, [ebp - 0x424]
push eax
call edi
test eax, eax
je 0x403361
xor eax, eax
inc eax
jmp 0x403476
push 0
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00418400
lea ecx, [ebp - 0x21c]
call fcn.00418539
lea ecx, [ebp - 0x21c]
call fcn.004183da
test eax, eax
jne 0x403417
push esi
lea ecx, [ebp - 0x21c]
call fcn.00418412
push eax
push dword [ebp - 0x10c]
push 0xc
push str.t_DLLs
call fcn.00401833
mov esi, eax
add esp, 0x10
test esi, esi
je 0x403416
cmp byte [esi - 6], 0x49
je 0x403416
cmp byte [esi - 4], 0x6e
je 0x403416
cmp byte [esi - 2], 0x69
je 0x403416
cmp byte [esi - 0xc], 0x41
jne 0x403416
cmp byte [esi - 0xa], 0x70
jne 0x403416
cmp byte [esi - 8], 0x70
jne 0x403416
push str.Trojan.Win32.Patched.gq_n
lea eax, [ebp - 0x108]
push eax
push str._s_tinfected_t_s_n
call fcn.00419ab0
add esp, 0xc
mov byte [esi - 6], 0x49
mov byte [esi - 4], 0x6e
mov byte [esi - 2], 0x69
mov bl, 1
pop esi
lea ecx, [ebp - 0x21c]
call fcn.004183de
test bl, bl
je 0x403467
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403467
lea eax, [ebp - 0x108]
push eax
push str._s_twill_be_disinfected_after_reboot_n
call fcn.00419ab0
pop ecx
pop ecx
lea eax, [ebp - 0x320]
push eax
call edi
test bl, bl
jne 0x403487
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.00425221
leave
ret
call fcn.004262b5
call fcn.00426376
test eax, eax
jne 0x403482
push str._nTo_finalize_removal_of_infection_and_avoid_loosing_of_data_program_will_reboot_your_PC_now._nClose_all_programs_and_choose_Y_to_restart_or_N_to_continue._n.
call fcn.00425036
mov dword [esp], 0x44dc28
call fcn.00426157
pop ecx
call fcn.004262b5
xor ecx, ecx
cmp eax, 0x79
sete cl
xor edx, edx
cmp eax, 0x59
sete dl
or ecx, edx
je 0x4034c5
call fcn.0042095f
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403ba1
Capabilities:
Get system information on windows

Disassembly:
push 0x58
push 0x434a60
call fcn.00425230
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 0x64]
call fcn.00425520
pop ecx
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
je 0x403c05
push 0x1c
lea eax, [ebp - 0x44]
push eax
mov edi, 0x20498
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x403c05
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x64]
push esi
push dword [ebp - 0x44]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x403c0e
mov dword [ebp - 0x20], 1
jmp 0x403c63
sub esi, dword [ebp - 0x44]
add esi, edi
mov dword [ebp - 0x1c], esi
push esi
call fcn.00426601
pop ecx
lea eax, [esi + eax*2 + 2]
mov dword [ebp - 0x1c], eax
mov ecx, eax
and ecx, 0xfffffffc
je 0x403c2e
lea eax, [ecx + 4]
mov esi, eax
mov dword [ebp - 0x1c], esi
push esi
call fcn.00426601
pop ecx
lea eax, [esi + eax*2 + 2]
mov dword [ebp - 0x1c], eax
cmp byte [eax], bl
jne 0x403c4a
inc eax
inc eax
mov dword [ebp - 0x1c], eax
push 0x104
push eax
mov esi, dword [ebp + 0xc]
push esi
call fcn.004265c4
add esp, 0xc
mov word [esi + 0x206], bx
or dword [ebp - 4], 0xffffffff
call fcn.00403c6e
xor ebx, ebx

Function at 0x403c8d
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x44de90]
push ebx
push esi
push 0x434870
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00425100
test eax, eax
mov ebx, dword [ebp + 0xc]
pop ecx
pop ecx
jne 0x403cf1
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403cf1
lea eax, [ebp - 0x108]
push str._autorun.inf
push eax
call fcn.00425610
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0042766e
add esp, 0x10
test eax, eax
je 0x403d34
push 0x434aa0
push dword [ebp + 8]
call fcn.00425100
test eax, eax
pop ecx
pop ecx
jne 0x403d6a
push eax
mov eax, 0x80
push eax
push 3
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403d6a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
push esi
jne 0x403d64
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0041b113
mov esi, eax
test esi, esi
pop ecx
jne 0x403d4e
push ebx
push str._s_was_deleted_n
call fcn.00425036
pop ecx
pop ecx
cmp esi, 1
jne 0x403d60
push ebx
push str._s_will_be_deleted_after_reboot_n
call fcn.00425036
pop ecx
pop ecx
mov al, 1
jmp 0x403d6c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00425221
leave
ret
Function at 0x4043e8
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x44de90]
and dword [ebp - 0x80], 0
push ebx
push esi
push edi
mov dword [ebp + 0x394], eax
push 0
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0x3a0]
call fcn.00426b7e
mov esi, dword [ebp + 0x3a4]
mov ebx, 0x434c3c
push ebx
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [esi]
call fcn.00426aee
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x28
jmp 0x4044dc
inc dword [ebp - 0x80]
cmp dword [ebp - 0x80], 0x63
ja 0x4044eb
push 0xa
lea eax, [ebp + 0x38c]
push eax
push dword [ebp - 0x80]
call fcn.00426d3c
lea eax, [ebp + 0x38c]
push eax
call fcn.00425700
add esp, 0x10
cmp eax, 1
lea eax, [ebp + 0x28c]
jne 0x404499
push 0x434c38
jmp 0x40449e
push 0x434c34
push eax
call fcn.00425600
pop ecx
pop ecx
lea eax, [ebp + 0x38c]
push eax
lea eax, [ebp + 0x28c]
push eax
call fcn.00425610
lea eax, [ebp + 0x28c]
push eax
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [esi]
call fcn.00426aee
add esp, 0x1c
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x40445a
jmp 0x404527
xor edi, edi
push edi
push edi
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00426aee
add esp, 0x14
push dword [esi]
lea eax, [ebp - 0x78]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x404527
push dword [ebp + 0x3a0]
push dword [esi]
call fcn.00425600
pop ecx
pop ecx
mov ecx, dword [ebp + 0x394]
pop edi
pop esi
pop ebx
call fcn.00425221
add ebp, 0x398
leave
ret
Function at 0x40ae90
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push 0
push 4
mov dword [ebp - 0x1c], 0x1c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40aefb
push esi
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.KERNEL32.dll_Thread32First
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40aef7
push edi
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x10]
jne 0x40aee8
push dword [ebp - 0x14]
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x40aec4
pop edi
push ebx
call esi
pop esi
xor al, al
pop ebx
leave
ret
Function at 0x415a2d
Capabilities:
Parse pe header

Disassembly:
push 0x58
push 0x43de18
call fcn.00425230
mov eax, dword [0x44de90]
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call dword [0x451e40]
cmp eax, 0xffffffff
je 0x415b26
push ebx
lea eax, [ebp - 0x64]
push eax
push 0x40
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
call dword [0x451e3c]
test eax, eax
je 0x415b26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
xor eax, eax
cmp word [ebp - 0x5c], 0x5a4d
sete al
xor ecx, ecx
cmp dword [ebp - 0x64], 0x40
sete cl
test ecx, eax
je 0x415b26
push ebx
push ebx
mov eax, dword [ebp - 0x20]
add eax, edi
push eax
push dword [ebp + 8]
call dword [0x451e40]
cmp eax, 0xffffffff
je 0x415b26
push ebx
lea eax, [ebp - 0x64]
push eax
mov esi, 0x400
push esi
push 0x451608
push dword [ebp + 8]
call dword [0x451e3c]
test eax, eax
je 0x415b26
xor eax, eax
cmp dword [ebp - 0x64], esi
sete al
xor ecx, ecx
cmp byte [0x451609], 0x45
sete cl
and eax, ecx
xor ecx, ecx
cmp byte [0x451608], 0x50
sete cl
and eax, ecx
xor ecx, ecx
cmp byte [0x45160b], bl
sete cl
and eax, ecx
xor ecx, ecx
cmp byte [0x45160a], bl
sete cl
test ecx, eax
je 0x415b26
mov eax, dword [ebp - 0x20]
add eax, edi
mov dword [0x44ece8], eax
mov dword [ebp - 0x60], 1
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.004253ca
pop ecx
pop ecx
jmp 0x415b38
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x1c]
call fcn.00425221
call fcn.0042526b
ret

Function at 0x415c6f
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
test edx, edx
mov al, byte [ecx + 0x101]
push ebx
mov bl, byte [ecx + 0x100]
je 0x415cc7
push esi
mov dword [ebp + 0x10], edx
mov edx, dword [ebp + 0xc]
push edi
mov al, byte [edx]
movzx esi, al
xor al, bl
mov byte [edx], al
add esi, ecx
movzx eax, byte [esi]
add ebx, eax
and ebx, 0xff
lea edi, [ebx + ecx]
movzx ebx, byte [edi]
mov byte [esi], bl
mov byte [edi], al
mov byte [ebp + 0xb], al
add al, bl
inc edx
dec dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov bl, al
jne 0x415c92
mov al, byte [ebp + 0xb]
pop edi
pop esi
mov byte [ecx + 0x100], bl
mov byte [ecx + 0x101], al
pop ebx
leave
ret

Function at 0x415cd6
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov bl, byte [esi + 0x100]
mov dl, byte [esi + 0x101]
je 0x415d21
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 8], eax
push edi
xor byte [ecx], bl
movzx edi, byte [ecx]
add edi, esi
movzx eax, byte [edi]
add ebx, eax
and ebx, 0xff
lea edx, [ebx + esi]
movzx ebx, byte [edx]
mov byte [edi], bl
mov byte [edx], al
mov dl, al
add al, bl
inc ecx
dec dword [ebp + 8]
mov bl, al
jne 0x415cf8
pop edi
mov byte [esi + 0x100], bl
mov byte [esi + 0x101], dl
pop esi
pop ebx
pop ebp
ret
Function at 0x4181b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x44de90]
push ebx
push esi
push edi
mov dword [ebp + 0x198], eax
mov esi, dword [ebp + 0x1a4]
push 0x40
xor eax, eax
pop ecx
xor ebx, ebx
mov byte [ebp + 0x94], bl
lea edi, [ebp + 0x95]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x70], bl
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
lea eax, [ebp - 0x70]
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_s
push eax
call fcn.00424fde
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x70]
push eax
push 0x80000002
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41825c
push 4
pop eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push str.EnableDHCP
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [ebp - 0x7c]
je 0x41825f
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x41829a
push str.Settings_of_DNS_has_been_modified_using_you_DHCP_server._n
call fcn.00425036
push esi
lea eax, [ebp + 0x94]
push str.netsh_interface_ip_set_dns_name_s_sourcedhcp
push eax
call fcn.00424fde
lea eax, [ebp + 0x94]
push eax
call fcn.00425067
push str.ipconfig__renew
call fcn.00425067
add esp, 0x18
jmp 0x418319
push str.This_tool_restores_the_original_DNS_addresses__provided_by_ISPs._n
call fcn.00425036
mov dword [esp], str.The_tool_will_use_the_OpenDNS__www.opendns.com__resources_in_case_of_impossibility_to_restore_the_ISPs_settings._Please_be_aware_that_Kaspersky_Lab_takes_no_responsibility_for_possible_connectivity_issues_with_OpenDNS_services_n_n
call fcn.00425036
mov dword [esp], str.There_is_a_possibility_of_the_network_connection_failures_after_tool_execution._In_this_case_we_recommend_to_contact_your_ISP_for_original_internet_connection_settings._n
call fcn.00425036
push esi
lea eax, [ebp + 0x94]
push str.netsh_interface_ip_delete_dns__s_all
push eax
call fcn.00424fde
lea eax, [ebp + 0x94]
push eax
call fcn.00425067
push esi
lea eax, [ebp + 0x94]
push str.netsh_interface_ip_add_dns_name_s_addr208.67.222.222_index1
push eax
call fcn.00424fde
lea eax, [ebp + 0x94]
push eax
call fcn.00425067
push esi
lea eax, [ebp + 0x94]
push str.netsh_interface_ip_add_dns_name_s_addr208.67.220.220_index2
push eax
call fcn.00424fde
lea eax, [ebp + 0x94]
push eax
call fcn.00425067
add esp, 0x34
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
pop ebx
call fcn.00425221
add ebp, 0x19c
leave
ret
Function at 0x41841d
Capabilities:
Read file via mapping

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
xor edi, edi
inc edi
push edi
mov esi, ecx
push 0x80000000
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ebx, 0x45e5a0
jne 0x418491
call ebp
cmp eax, 0x20
jne 0x41846a
push str.:_tused_by_another_process__n
push ebx
call fcn.0040ac94
pop ecx
pop ecx
mov dword [esi + 8], edi
push 0x43d41c
call ebp
push eax
push str.:_tCould_not_open_file__
push ebx
call fcn.0040ac94
pop ecx
pop ecx
mov ecx, eax
call fcn.00413083
push eax
call fcn.0040ac94
pop ecx
pop ecx
mov dword [esi + 8], edi
xor edi, edi
push edi
push edi
push edi
push 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], eax
je 0x4184b3
cmp eax, 0xffffffff
jne 0x4184e2
push 0x43e484
call ebp
push eax
push str.Could_not_create_file_mapping_object__
push ebx
call fcn.0040ac94
pop ecx
pop ecx
mov ecx, eax
call fcn.00413083
push eax
call fcn.0040ac94
pop ecx
pop ecx
push dword [esi]
call edi
mov dword [esi + 8], 1
xor eax, eax
push eax
push eax
push eax
push 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x110], eax
jne 0x418530
push 0x43e484
call ebp
push eax
push str.Could_not_map_view_of_file__
push ebx
call fcn.0040ac94
pop ecx
pop ecx
mov ecx, eax
call fcn.00413083
push eax
call fcn.0040ac94
pop ecx
pop ecx
push dword [esi + 4]
call edi
push dword [esi]
call edi
mov dword [esi + 8], 1
and dword [esi + 8], 0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x419098
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, 0x4334d6
call fcn.004269c8
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x14]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x41911d
push str.LookupPrivilegeValue_SeDebugPrivilege__error_n
push 0x45e5a0
call fcn.0040ac94
pop ecx
pop ecx
xor al, al
jmp 0x41913e
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41914d
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4334e0
call fcn.004269c8
sub esp, 0x158
mov eax, dword [0x44de90]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
push str.Ntdll.dll
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.NtQueryInformationThread
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
jne 0x4191c1
push str.couldnt_load_NtQueryInformationThread_t
push 0x45e5a0
call fcn.0040ac94
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00413083
push 0x434408
push eax
call fcn.0040ac94
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x419292
push edi
push 4
lea ecx, [ebp - 0x144]
push ecx
push 9
push dword [ebp + 0xc]
call eax
cmp dword [ebp - 0x144], edi
je 0x4191b9
push 0x1c
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x144]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x4191b9
cmp dword [ebp - 0x150], 0x40
jne 0x4191b9
mov esi, dword [ebp + 0x18]
cmp dword [ebp - 0x158], esi
mov dword [ebp - 0x148], edi
jb 0x4191b9
lea eax, [ebp - 0x148]
push eax
push esi
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x160]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp + 0x14]
push esi
lea eax, [ebp + eax - 0x140]
push eax
push dword [ebp + 0x10]
call fcn.00425540
add esp, 0xc
test eax, eax
jne 0x41925a
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
neg eax
sbb eax, eax
inc eax
jmp 0x419292
push 2
pop eax
jmp 0x419292
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00425221
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4192a9
Capabilities:
Enumerate threads

Disassembly:
mov eax, 0x4334ea
call fcn.004269c8
sub esp, 0x238
mov eax, dword [0x44de90]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edi
mov dword [ebp - 0x244], 0x1c
call fcn.00419098
push str.Start_scan_injected_threads_n
call fcn.00425036
pop ecx
push edi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x220], eax
je 0x41944e
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x220]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x419442
mov ebx, 0x104
mov esi, 0x45e638
push dword [ebp - 0x23c]
push edi
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
push dword [ebp - 0x238]
mov dword [ebp - 0x228], eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x224], eax
je 0x419428
cmp dword [ebp - 0x228], edi
je 0x419428
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x228]
push eax
call fcn.0041914d
add esp, 0x14
cmp eax, edi
jne 0x4193c3
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x21c], 0
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0x224]
call sub.PSAPI.DLL_GetModuleFileNameExA
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.0040ac94
pop ecx
pop ecx
push str._t_:_Injected_thread_terminated_n
jmp 0x419408
cmp eax, 1
jne 0x419410
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x118], 0
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
push eax
push 0
push dword [ebp - 0x224]
call sub.PSAPI.DLL_GetModuleFileNameExA
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.0040ac94
pop ecx
pop ecx
push str._t_:_Fail_to_terminate_injected_thread_n
push eax
call fcn.0040ac94
pop ecx
pop ecx
push dword [ebp - 0x228]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x224]
call edi
xor edi, edi
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x220]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x419321
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor al, al
call fcn.00425221
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419498
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
xor ebp, ebp
mov dword [esp + 0x14], esi
mov ebx, str.I_Worm.Zafi.b
mov dword [esp + 0x18], 0xc6
lea eax, [ebp + 0x66]
movzx eax, ax
push 0xa
push eax
push 0
lea edi, [esi + 0x449868]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x419575
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esi + 0x449870], eax
je 0x419562
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esi + 0x44986c], eax
je 0x419562
push 4
push 0x1000
push dword [esi + 0x449874]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [esi + 0x4498a4], eax
je 0x419562
push dword [esi + 0x449874]
push dword [esi + 0x44986c]
push eax
call fcn.00425790
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x449874], eax
jbe 0x41954c
mov ecx, dword [esi + 0x4498a4]
add ecx, eax
not byte [ecx]
inc eax
cmp eax, dword [esi + 0x449874]
jb 0x419539
mov dword [edi + 0x34], ebx
cmp dword [esp + 0x10], 0
je 0x41957d
mov eax, dword [esp + 0x14]
mov dword [eax + 0x449868], edi
jmp 0x419581
mov eax, dword [esi + 0x449870]
test eax, eax
je 0x419585
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x419585
mov dword [esi + 0x44989c], ebx
jmp 0x41954f
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
inc ebp
add ebx, 0x32
add esi, 0x40
dec dword [esp + 0x18]
jne 0x4194b8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret