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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4211f8]
je 0x410033
inc edi
cmp edi, 0x17
jb 0x410024
cmp edi, 0x17
jae 0x4101b3
push ebp
push 3
call fcn.00416eba
cmp eax, 1
pop ecx
je 0x41017f
push 3
call fcn.00416eba
test eax, eax
pop ecx
jne 0x410067
cmp dword [0x42062c], 1
je 0x41017f
cmp ebx, 0xfc
je 0x4101b2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x421d48
push ebp
call fcn.0040c06b
add esp, 0xc
test eax, eax
je 0x41009d
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
push 0x104
mov esi, 0x421d61
push esi
push 0
mov byte [0x421e65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4100e1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040c06b
add esp, 0xc
test eax, eax
je 0x4100e1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407516
add esp, 0x14
push esi
call fcn.00409b50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x410126
push esi
call fcn.00409b50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42205c
push 0x41c64c
sub ecx, eax
push ecx
push eax
call fcn.00412056
add esp, 0x14
test eax, eax
je 0x410126
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
jmp 0x410128
xor esi, esi
push 0x41c648
push ebx
push ebp
call fcn.00411f95
add esp, 0xc
test eax, eax
je 0x410148
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
push dword [edi*8 + 0x4211fc]
push ebx
push ebp
call fcn.00411f95
add esp, 0xc
test eax, eax
je 0x41016a
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00416cfd
add esp, 0xc
jmp 0x4101b2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4101b2
cmp ebp, 0xffffffff
je 0x4101b2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4211fc]
push dword [esi]
call fcn.00409b50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x416cfd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040d90c
xor ebx, ebx
cmp dword [0x4222ec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x416dd3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x416eb3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x416eb3
push eax
call fcn.0040d89e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4222ec], eax
call esi
push eax
call fcn.0040d89e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4222f0], eax
call esi
push eax
call fcn.0040d89e
mov dword [0x4222f4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040b068
test eax, eax
pop ecx
pop ecx
je 0x416da1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407516
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x416dd3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040d89e
cmp eax, ebx
pop ecx
mov dword [0x4222fc], eax
je 0x416dd3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d89e
pop ecx
mov dword [0x4222f8], eax
mov eax, dword [0x4222f8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x416e58
cmp dword [0x4222fc], ecx
je 0x416e58
push eax
call fcn.0040d915
push dword [0x4222fc]
mov esi, eax
call fcn.0040d915
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x416e58
cmp edi, ebx
je 0x416e58
call esi
cmp eax, ebx
je 0x416e25
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416e25
test byte [ebp - 0x18], 1
jne 0x416e58
lea eax, [ebp - 0x10]
push eax
call fcn.0040b09f
test eax, eax
pop ecx
je 0x416e40
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407516
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x416e4f
or dword [ebp + 0x10], 0x200000
jmp 0x416e93
or dword [ebp + 0x10], 0x40000
jmp 0x416e93
mov eax, dword [0x4222f0]
cmp eax, dword [ebp - 8]
je 0x416e93
push eax
call fcn.0040d915
cmp eax, ebx
pop ecx
je 0x416e93
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x416e93
mov eax, dword [0x4222f4]
cmp eax, dword [ebp - 8]
je 0x416e93
push eax
call fcn.0040d915
cmp eax, ebx
pop ecx
je 0x416e93
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4222ec]
call fcn.0040d915
cmp eax, ebx
pop ecx
je 0x416eb3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416eb5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0xae89e4
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00ae89e4
ret
Function at 0x4030e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x418020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40317c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40315c
xor eax, eax
push ebp
push 0x403155
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403198
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40315c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x418020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x418020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403c3c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41904c], 0
je 0x403c9d
cmp word [0x419220], 0xd7b2
jne 0x403c65
cmp dword [0x419228], 0
jbe 0x403c65
mov eax, 0x41921c
call dword [0x419238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x418068
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403cc4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41802c], 0
jne 0x403cb9
push 0
push 0x418060
push 0x418068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405be6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404030
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cd8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405bd0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bed
lea eax, [ebp - 0x10]
call fcn.00403dc0
ret

Function at 0x409f30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409f69
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403eb0
jmp 0x409f72
mov eax, ebx
mov edx, esi
call fcn.00403e14
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409f7c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409f9d
mov al, byte [esp]
jmp 0x409f9f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a634
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a49c
mov eax, dword [0x418578]
cmp byte [eax], 0
je 0x40a6b0
mov eax, dword [0x418484]
call fcn.00402c54
call fcn.00402b04
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407850
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a6f8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a6e6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41845c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x419668]
call fcn.00405028
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b440
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b4a4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404030
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004073ac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b4ab
lea eax, [ebp - 0xc]
call fcn.00403dc0
ret

Function at 0x416edc
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe8
xor ebx, ebx
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 0xc]
push eax
push 0x416f3c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x416f35
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0x10
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
add esp, 0x18
pop ebx
ret
Function at 0x416f50
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x417085
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call fcn.00416edc
test al, al
je 0x41706f
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x417068
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
call fcn.00416e68
mov eax, dword [ebp - 8]
call fcn.0040405c
add eax, eax
inc eax
call fcn.004029a4
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.0040405c
mov ecx, eax
add ecx, ecx
inc ecx
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00404a9c
push ebx
call sub.kernel32.dll_lstrlenW
inc eax
mov esi, eax
add esi, esi
push 4
push 0x1000
push esi
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x417051
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x417051
cmp esi, dword [ebp - 0x18]
jne 0x417051
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0x417098
push 0x4170a8
call sub.kernel32.dll_LoadLibraryA
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateRemoteThread
test eax, eax
je 0x417051
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41706f
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41708c
lea eax, [ebp - 8]
call fcn.00403dc0
ret

Function at 0x4171a0
Capabilities:
Create thread

Disassembly:
push ecx
call fcn.004170f0
push esp
push 0
push 0
push 0x417114
push 0
push 0
call sub.kernel32.dll_CreateThread
pop edx
ret
Function at 0x10001320
Capabilities:
Create thread
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x10035b10]
xor eax, esp
mov dword [esp + 0x10c], eax
push 0x12c
push 0
push 0x1003a0e8
call fcn.10012780
add esp, 0xc
call fcn.10002460
test eax, eax
je 0x1000156e
push 0x1002f304
push 0x1002f308
mov dword [0x1003a3c8], 0
call fcn.10011568
add esp, 8
test eax, eax
jne 0x10001381
mov dword [0x1003a3cc], 1
jmp 0x10001394
push eax
mov dword [0x1003a3cc], 0
call fcn.100115f6
add esp, 4
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [esp + 0x10]
push eax
push 0x1002f318
push closesocket
mov dword [esp + 0x18], 0
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100013c4
xor esi, esi
jmp 0x100013f5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x1002f340
push eax
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov esi, dword [esp + 0xc]
push 0xff
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.10012780
push esi
lea eax, [esp + 0x28]
push 0x1002f34c
push eax
call fcn.10011672
add esp, 0x18
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push closesocket
call edi
test eax, eax
jne 0x1000144e
push eax
push 0x1002fa44
push 1
push eax
mov eax, dword [esp + 0x1c]
push 0x1002f374
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call ebp
xor eax, eax
push 0x32
push eax
push 0x1003a2ec
mov dword [0x1003a320], eax
mov dword [0x1003a324], eax
mov dword [0x1003a328], eax
mov dword [0x1003a32c], eax
mov dword [0x1003a330], eax
mov dword [0x1003a334], eax
mov dword [0x1003a338], eax
mov word [0x1003a33c], ax
call fcn.10012780
xor eax, eax
push 0x32
push eax
push 0x1003a244
mov dword [0x1003a2cc], eax
mov dword [0x1003a2d0], eax
mov dword [0x1003a2d4], eax
mov dword [0x1003a2d8], eax
mov dword [0x1003a2dc], eax
mov dword [0x1003a2e0], eax
mov dword [0x1003a2e4], eax
mov word [0x1003a2e8], ax
mov dword [0x1003a278], eax
mov dword [0x1003a27c], eax
mov dword [0x1003a280], eax
mov dword [0x1003a284], eax
mov dword [0x1003a288], eax
mov dword [0x1003a28c], eax
mov dword [0x1003a290], eax
mov word [0x1003a294], ax
mov dword [0x1003a218], eax
mov dword [0x1003a21c], eax
mov dword [0x1003a220], eax
mov dword [0x1003a224], eax
mov dword [0x1003a228], eax
mov dword [0x1003a22c], eax
mov dword [0x1003a230], eax
mov word [0x1003a234], ax
call fcn.10012780
push 0x32
push 0
push 0x1003a298
call fcn.10012780
xor eax, eax
push 0x1002f384
mov dword [0x1003a238], eax
mov dword [0x1003a23c], eax
mov word [0x1003a240], ax
call fcn.1001172e
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x28
push 0
push 0
push 0x1003a348
push 0x10003560
push 0
push 0
call esi
push 0
push 0
push 0x1003a348
push 0x10002c80
push 0
push 0
call esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.1001116a
add esp, 0x110
ret
Function at 0x10001600
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x138
mov eax, dword [0x10035b10]
xor eax, esp
mov dword [esp + 0x130], eax
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10001703
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100016fc
xor eax, eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 0x1003a0c8
mov dword [0x1003a0c8], eax
mov dword [0x1003a0cc], eax
mov dword [0x1003a0d0], eax
mov dword [0x1003a0d4], eax
mov dword [0x1003a0d8], eax
mov dword [0x1003a0dc], eax
mov dword [0x1003a0e0], eax
mov word [0x1003a0e4], ax
mov dword [0x1003a0a8], eax
mov dword [0x1003a0ac], eax
mov dword [0x1003a0b0], eax
mov dword [0x1003a0b4], eax
mov dword [0x1003a0b8], eax
mov dword [0x1003a0bc], eax
mov dword [0x1003a0c0], eax
mov word [0x1003a0c4], ax
call fcn.10001590
push esi
mov ecx, 0x1003a0a8
call fcn.10001590
add esp, 8
mov ecx, 0x1003a0a8
mov eax, 0x1003a0c8
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100016e0
test dl, dl
je 0x100016dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100016e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100016c0
xor eax, eax
jmp 0x100016e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000171b
lea edx, [esp + 8]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10001644
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.1001116a
add esp, 0x138
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop edi
xor ecx, esp
mov eax, 1
call fcn.1001116a
add esp, 0x138
ret
Function at 0x10001740
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x138
mov eax, dword [0x10035b10]
xor eax, esp
mov dword [esp + 0x130], eax
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10001843
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000183c
xor eax, eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 0x1003a0c8
mov dword [0x1003a0c8], eax
mov dword [0x1003a0cc], eax
mov dword [0x1003a0d0], eax
mov dword [0x1003a0d4], eax
mov dword [0x1003a0d8], eax
mov dword [0x1003a0dc], eax
mov dword [0x1003a0e0], eax
mov word [0x1003a0e4], ax
mov dword [0x1003a0a8], eax
mov dword [0x1003a0ac], eax
mov dword [0x1003a0b0], eax
mov dword [0x1003a0b4], eax
mov dword [0x1003a0b8], eax
mov dword [0x1003a0bc], eax
mov dword [0x1003a0c0], eax
mov word [0x1003a0c4], ax
call fcn.10001590
push esi
mov ecx, 0x1003a0a8
call fcn.10001590
add esp, 8
mov ecx, 0x1003a0a8
mov eax, 0x1003a0c8
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10001820
test dl, dl
je 0x1000181c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10001820
add eax, 2
add ecx, 2
test dl, dl
jne 0x10001800
xor eax, eax
jmp 0x10001825
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000185b
lea edx, [esp + 8]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10001784
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.1001116a
add esp, 0x138
ret
mov eax, dword [esp + 0x10]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop edi
xor ecx, esp
mov eax, 1
call fcn.1001116a
add esp, 0x138
ret
Function at 0x10001c50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
mov eax, 0x42d681
mov ecx, dword [eax]
mov dword [0x1003a0a0], ecx
mov dx, word [eax + 4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov word [0x1003a0a4], dx
lea edx, [esp + 8]
push edx
push 0x40
mov dword [esp + 0x18], eax
mov al, byte [eax + 6]
mov ecx, 0x10001fe0
push 7
sub ecx, 0x42d686
push 0x42d681
mov byte [0x1003a0a6], al
mov dword [esp + 0x1c], ecx
call esi
mov ebx, dword [esp + 0x10]
mov dl, 0xe9
mov byte [ebx], dl
add ebx, 1
mov edx, dword [esp + 0xc]
mov dword [ebx], edx
add ebx, 4
mov dl, 0x90
mov byte [ebx], dl
add ebx, 1
mov dl, 0x90
mov byte [ebx], dl
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push ecx
push 7
push 0x42d681
call esi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x10001ce0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
mov ecx, dword [esi]
sub eax, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, 5
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0x40
mov dword [0x1003a0a0], ecx
mov dx, word [esi + 4]
push 6
push esi
mov word [0x1003a0a4], dx
call edi
mov ebx, dword [esp + 0x18]
mov dl, 0xe9
mov byte [ebx], dl
add ebx, 1
mov edx, dword [esp + 0x10]
mov dword [ebx], edx
add ebx, 4
mov dl, 0x90
mov byte [ebx], dl
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push edx
push 6
push esi
call edi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x100020ae
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push 0x1002f570
push 0x1002f520
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x10002249
push esi
push 0x32
push 0
push 0x1003a244
call fcn.10012780
mov esi, dword [0x10039ef4]
add esp, 0xc
test esi, esi
je 0x10002248
push ebx
push ebp
push edi
push 0x32
push 0
push 0x1003a244
call fcn.10012780
mov ecx, 0x1003a247
sub ecx, esi
mov dword [esp + 0x20], ecx
mov edi, 0x1003a244
mov ebx, 0x1003a245
mov ebp, 0x1003a246
sub ebp, esi
mov ecx, 0x1003a248
add esp, 0xc
xor eax, eax
sub edi, esi
sub ebx, esi
sub ecx, esi
mov dword [0x1003a214], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ecx
jmp 0x10002124
mov ebp, dword [esp + 0x10]
mov dl, byte [esi + eax]
lea ecx, [esi + eax]
test dl, dl
je 0x100021c8
cmp dl, 0x20
je 0x100021c8
cmp dl, 0x30
jl 0x100021c8
cmp dl, 0x39
jg 0x100021c8
mov byte [edi + ecx], dl
mov dl, byte [esi + eax + 1]
test dl, dl
je 0x100021c8
cmp dl, 0x20
je 0x100021c8
cmp dl, 0x30
jl 0x100021c8
cmp dl, 0x39
jg 0x100021c8
mov byte [ebx + ecx], dl
mov dl, byte [esi + eax + 2]
test dl, dl
je 0x100021c8
cmp dl, 0x20
je 0x100021c8
cmp dl, 0x30
jl 0x100021c8
cmp dl, 0x39
jg 0x100021c8
mov byte [ecx + ebp], dl
mov dl, byte [esi + eax + 3]
test dl, dl
je 0x100021c8
cmp dl, 0x20
je 0x100021c8
cmp dl, 0x30
jl 0x100021c8
cmp dl, 0x39
jg 0x100021c8
mov ebp, dword [esp + 0x14]
mov byte [ecx + ebp], dl
mov dl, byte [esi + eax + 4]
test dl, dl
je 0x100021c8
cmp dl, 0x20
je 0x100021c8
cmp dl, 0x30
jl 0x100021c8
cmp dl, 0x39
jg 0x100021c8
mov ebp, dword [esp + 0x18]
add eax, 5
cmp eax, 0x32
mov byte [ecx + ebp], dl
jl 0x10002120
pop edi
mov eax, 0x1003a244
pop ebp
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100021d3
sub eax, edx
cmp eax, 0x11
je 0x100021fe
mov eax, 0x1003a244
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100021f0
sub eax, edx
cmp eax, 0x12
jne 0x10002208
mov dword [0x1003a3c8], 1
push 0x1002f50c
push 0x1002f510
call fcn.10011568
mov esi, eax
add esp, 8
test esi, esi
je 0x10002248
mov eax, 0x1003a244
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002228
push esi
sub eax, edx
push eax
push 1
push 0x1003a244
call fcn.10011e0b
push esi
call fcn.100115f6
add esp, 0x14
pop esi
add esp, 0xc
ret