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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
push esi
and al, 3
movzx esi, al
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
neg esi
push 0
sbb esi, esi
push 0x80
and esi, 3
inc esi
push esi
push 0
shr eax, 8
push eax
mov ebx, 0xc0000000
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], 0x1388
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x1000fe60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp eax, 0x20
jne 0x1000fe5a
test byte [ebp + 0x14], 4
je 0x1000fe5a
cmp dword [ebp - 0xc], 0
jle 0x1000fe5a
push 0xc8
push dword [0x1002c1f0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000fe53
sub dword [ebp - 0xc], 0xc8
xor eax, eax
push eax
push 0x80
push esi
push eax
push eax
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x1000fdff
jmp 0x1000fe5a
mov dword [ebp - 8], 0x5b4
cmp dword [ebp - 4], 0xffffffff
je 0x1000feaf
test byte [ebp + 0x14], 2
je 0x1000fe75
push 2
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000fe9d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
and dword [ebp - 8], 0
jmp 0x1000fea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100103f9
Capabilities:
Create directory

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
call fcn.1000fc85
mov esi, eax
cmp esi, edi
je 0x10010428
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10010420
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.100012ff
jmp 0x1001042b
push 8
pop edi
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x10010432
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor esi, esi
push esi
push esi
call ebx
mov edi, eax
test edi, edi
je 0x1001049f
lea eax, [edi + 0x1d]
push eax
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x1001049f
push esi
push edi
call ebx
test eax, eax
je 0x10010497
test ebp, ebp
je 0x1001046f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add ebp, eax
push esi
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x10010497
test ebp, ebp
je 0x1001049f
push 0x1002d466
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1001049f
push esi
call fcn.100012ff
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x100104a8
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
push esi
mov ebp, 0x2365
push ebp
call fcn.10010432
mov esi, eax
test esi, esi
je 0x1001052c
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
je 0x100104e4
lea ecx, [esi + 4]
cmp eax, ecx
jbe 0x100104e4
cmp dword [eax - 5], 0x776f4c5c
jne 0x100104e4
push eax
add eax, 0xfffffffc
push eax
call ebx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
push esi
call edi
push 0
push esi
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10010522
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, ebp
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x10010522
push 0x1002d466
push esi
call edi
push eax
call ebx
jmp 0x1001052a
push esi
call fcn.100012ff
xor esi, esi
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
ret
Function at 0x100105f7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp byte [0x1002c1e0], 6
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], 4
ja 0x10010679
test esi, esi
je 0x10010679
mov eax, dword [ebx + 0x18]
test dword [eax + 4], 0x80000000
jne 0x10010632
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 8], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 8]
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x10010678
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x20], esi
test dword [eax + 4], 0x80000000
jne 0x10010665
mov eax, dword [ebp + 8]
mov byte [eax + esi - 2], 0x7e
jmp 0x1001066b
or dword [esi], 0x40000000
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push esi
call edi
pop edi
mov eax, dword [ebp - 8]
pop ebx
leave
ret 4
Function at 0x10010789
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x14
push 0x100287e8
call fcn.100259e4
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
push dword [ebp + 0xc]
call fcn.10010531
test eax, eax
je 0x100107af
xor eax, eax
jmp 0x100108f1
lea eax, [ebp - 0x20]
push eax
call fcn.1001055d
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x100108ee
mov eax, dword [ebx + 0xc]
mov edi, dword [ebp - 0x20]
test eax, eax
jne 0x100107d0
mov eax, dword [ebx + 8]
mov dword [edi + 0x14], eax
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push dword [ebx + 4]
push dword [ebx]
push dword [ebp + 0xc]
call fcn.10013167
mov esi, eax
test esi, esi
jne 0x10010809
lea eax, [ebp + 8]
push eax
push dword [ebx + 4]
push dword [ebx]
mov eax, dword [ebp + 0xc]
call fcn.1001320d
mov esi, eax
test esi, esi
je 0x100108b7
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100108ac
mov dword [edi + 0x18], ebx
cmp dword [ebx + 0x10], 0
jne 0x10010834
mov eax, ebx
mov ecx, dword [esi]
mov dword [eax + 0x10], ecx
mov eax, dword [esi]
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
mov eax, dword [esi]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [ebp + 0x10]
test ebx, 0x200
je 0x1001086a
push edi
mov esi, dword [ebp + 8]
call fcn.100105f7
or ebx, 0x101
or dword [edi + 0x1c], ebx
mov esi, 0x1002c440
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1002c438]
mov dword [edi], eax
mov dword [edi + 4], 0x1002c438
mov dword [eax + 4], edi
mov dword [0x1002c438], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100108be
mov dword [eax], edi
jmp 0x100108be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x100108be
mov dword [ebp - 0x1c], 2
or dword [ebp - 4], 0xffffffff
jmp 0x100108e2
cmp dword [ebp - 0x1c], 0
je 0x100108ee
push edi
call fcn.100012ff
mov eax, dword [ebp - 0x1c]
call fcn.10025a1f
ret 0x10
Function at 0x10010a13
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x1c
push 0x100287d8
call fcn.100259e4
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24]
push eax
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 4]
mov edi, dword [ebp + 0xc]
call fcn.100132a4
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x10010b73
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
push 0x40
push 4
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x10010b6b
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov ecx, dword [esi]
add ecx, dword [ebp + 0xc]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
mov ecx, dword [esi]
mov dword [edi + 0x10], ecx
push dword [ebp + 0x10]
push eax
mov esi, edi
mov eax, dword [ebp + 0xc]
call fcn.10010950
mov dword [ebp - 0x1c], eax
cmp eax, 1
jne 0x10010b93
mov eax, dword [0x1002c1cc]
test eax, eax
je 0x10010aef
push dword [edi + 8]
push dword [ebp + 0xc]
call fcn.100108f9
mov esi, eax
test esi, esi
je 0x10010aef
lea eax, [ebp + 0x14]
push eax
push 0x40
push 5
push esi
call ebx
test eax, eax
je 0x10010aef
mov eax, dword [edi + 0x14]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
mov byte [esi], 0xe9
mov dword [edi + 0x14], esi
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], esi
cmp dword [ebp + 0x14], 0x40
je 0x10010ae3
mov dword [ebp + 0x14], 0x20
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x14]
push 5
push esi
call ebx
mov ecx, dword [edi + 0x14]
sub ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
mov dword [eax], ecx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x20]
push 4
push eax
call ebx
or dword [edi + 0x1c], 0x102
test dword [edi + 0x1c], 0x200
je 0x10010b1f
push edi
mov esi, dword [ebp - 0x24]
call fcn.100105f7
mov esi, 0x1002c440
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1002c438]
mov dword [edi], eax
mov dword [edi + 4], 0x1002c438
mov dword [eax + 4], edi
mov dword [0x1002c438], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x10]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
and dword [ebp - 0x1c], 0
push dword [ebp + 0xc]
call fcn.1001168e
test eax, eax
je 0x10010b93
and dword [eax + 0x44], 0
jmp 0x10010b93
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10010b90
mov dword [ebp - 0x1c], 2
jmp 0x10010b93
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
call fcn.10025a1f
ret 0x10
Function at 0x10010bf1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call fcn.1001055d
mov ebx, eax
test ebx, ebx
jne 0x10010ca8
and dword [ebp - 4], eax
mov eax, dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [ebp - 8]
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [edi + 4]
call ebx
test eax, eax
je 0x10010c95
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [edi + 4]
call ebx
or dword [esi + 0x1c], 0x101
mov ebx, 0x1002c440
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1002c438]
mov dword [esi], eax
mov dword [esi + 4], 0x1002c438
mov dword [eax + 4], esi
push ebx
mov dword [0x1002c438], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
xor ebx, ebx
jmp 0x10010ca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x10010ca7
push esi
call fcn.100012ff
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10010cad
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x18
push 0x100287a8
call fcn.100259e4
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1c]
mov dword [ebp - 0x24], eax
dec eax
je 0x10010da1
dec eax
je 0x10010d3b
sub eax, 6
jne 0x10010df8
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test dword [esi + 0x1c], 0x200
je 0x10010d2f
cmp dword [esi + 0x20], 0
je 0x10010d2f
mov eax, dword [esi + 0x18]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push 0x40
push ebx
push dword [esi + 0x20]
call edi
test eax, eax
je 0x10010d2f
mov eax, dword [esi + 0x18]
push dword [eax + 4]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push ebx
push dword [esi + 0x20]
call edi
and dword [esi + 0x1c], 0xfffffeff
jmp 0x10010df8
mov eax, dword [0x1002c1cc]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10010d7a
mov ebx, dword [esi + 0x14]
cmp byte [ebx], 0xe9
jne 0x10010da7
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 5
push ebx
call edi
test eax, eax
je 0x10010da7
mov eax, dword [esi + 8]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push 5
push ebx
call edi
jmp 0x10010da7
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 4
push dword [esi + 0xc]
call edi
test eax, eax
je 0x10010da7
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push 4
push dword [esi + 0xc]
jmp 0x10010d76
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 4
push dword [esi + 0xc]
call edi
test eax, eax
je 0x10010dd3
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push 4
push dword [esi + 0xc]
call edi
jmp 0x10010ce6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x10010ce6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call fcn.10025a1f
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, 0x1002c440
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
push edi
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [esi + 0xc]
call edi
test eax, eax
je 0x10010e5f
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [esi + 0xc]
call edi
and dword [esi + 0x1c], 0xfffffeff
xor edi, edi
jmp 0x10010e67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.100012ff
mov eax, edi
pop edi
leave
ret
Function at 0x100110f1
Capabilities:
Check os version

Disassembly:
push ebx
push 0xc
xor ebx, ebx
call fcn.100012ea
mov dword [0x1002c1d0], eax
cmp eax, ebx
je 0x10011194
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 0x1002c440
call esi
mov eax, 0x1002c438
push 0x1002c420
mov dword [0x1002c43c], eax
mov dword [0x1002c438], eax
call esi
mov eax, 0x1002c400
mov dword [0x1002c404], eax
mov dword [0x1002c400], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x10011158
cmp dword [0x1002c270], ebx
jne 0x10011158
call fcn.100139d8
mov dword [0x1002c270], eax
xor edi, edi
inc edi
mov dword [0x1002c1cc], edi
xor esi, esi
push dword [esi + 0x1002b584]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [0x1002c1d0]
mov dword [esi + ecx], eax
add esi, 4
cmp esi, 0xc
jb 0x10011163
mov dword [0x1002c1d4], 3
mov dword [0x1002c1c8], edi
pop edi
pop esi
jmp 0x10011197
push 8
pop ebx
mov eax, ebx
pop ebx
ret

Function at 0x1001119b
Capabilities:
Check os version

Disassembly:
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1002c1f0], eax
test eax, eax
je 0x1001120a
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x100111c7
mov ecx, eax
shr ecx, 8
test cl, cl
ja 0x100111c9
cmp al, al
jbe 0x10011205
mov dword [0x1002c1e0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 4]
push eax
push 0
push 0x47a
mov dword [0x1002c1dc], eax
mov dword [0x1002c1e8], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x1002c1d8], eax
test eax, eax
jne 0x10011201
or dword [0x1002c1d8], 0xffffffff
xor eax, eax
jmp 0x10011210
push 0x32
pop eax
jmp 0x10011210
call dword [sym.imp.KERNEL32.dll_GetLastError]
ret 4

Function at 0x100115dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, eax
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 8], esi
call fcn.10011fe7
test eax, eax
jne 0x10011685
push esi
push esi
push dword [ebp + 8]
call fcn.100132a4
cmp eax, esi
je 0x1001167d
sub eax, edi
push ebx
push eax
mov eax, edi
call fcn.10013482
mov ebx, eax
cmp ebx, esi
je 0x1001167c
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1001167c
push esi
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
jne 0x10011673
push esi
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10011673
cmp dword [ebp - 0xc], 4
jne 0x10011673
mov eax, dword [ebp - 0x10]
add eax, edi
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [ebp - 4]
call fcn.100012ff
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
Function at 0x10011f4f
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1002c1d8]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov esi, 0x1000
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 8
mov ebx, esi
call fcn.100012ea
mov edi, eax
test edi, edi
je 0x10011fdd
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp - 0xc]
call sub.PSAPI.DLL_EnumProcessModules
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10011fae
mov eax, dword [ebp - 4]
cmp ebx, eax
ja 0x10011fb1
push edi
call fcn.100012ff
add ebx, esi
push ebx
call fcn.100012ea
mov edi, eax
test edi, edi
jne 0x10011f7e
mov eax, dword [ebp - 4]
test edi, edi
je 0x10011fdd
cmp dword [ebp - 0x10], 0
je 0x10011fce
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov ecx, dword [ebp + 0xc]
shr eax, 2
and dword [ebp - 8], 0
mov dword [ecx], eax
jmp 0x10011fdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 8], eax
call fcn.100012ff
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1001206e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 8
pop esi
push dword [ebp + 8]
xor eax, eax
xor edi, edi
call fcn.10012623
mov ebx, eax
test ebx, ebx
je 0x100120df
cmp dword [ebp + 0x14], edi
je 0x1001209e
push dword [ebp + 0x14]
xor eax, eax
call fcn.10012623
mov edi, eax
test edi, edi
je 0x100120d9
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000feb9
mov esi, eax
test esi, esi
jne 0x100120cf
push dword [ebp + 0x18]
push eax
push edi
push ebx
push 0x1002d648
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x100120cd
xor eax, eax
mov esi, eax
test edi, edi
je 0x100120d9
push edi
call fcn.100012ff
push ebx
call fcn.100012ff
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x1001223e
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], 0x10000
test esi, esi
je 0x10012257
push esi
call fcn.100012ff
push dword [ebp - 4]
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x10012281
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp edi, 0xc0000004
je 0x1001224d
jmp 0x10012286
mov edi, 0xc000009a
test edi, edi
jl 0x100122a9
push 0x1002c294
push esi
call fcn.10006aec
mov ecx, dword [esi]
test ecx, ecx
je 0x1001229f
add esi, ecx
jmp 0x100122a1
xor esi, esi
test esi, esi
je 0x100122a9
test eax, eax
jne 0x1001228a
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
leave
ret
Function at 0x10012b67
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
and dword [esp + 4], 0
push ebx
push edi
lea eax, [esp + 0x10]
push eax
push 0x201
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10012c31
push 0x10
push eax
push esi
call sub.ntdll.dll_memset
add esp, 0xc
push 2
pop eax
push dword [ebp + 8]
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.100012ea
mov ebx, eax
test ebx, ebx
je 0x10012c2b
push dword [ebp + 8]
push ebx
call sub.ntdll.dll_strcpy
pop ecx
pop ecx
push 0x3a
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov edi, eax
test edi, edi
jne 0x10012bdd
cmp dword [ebp + 0xc], eax
je 0x10012bf7
mov edi, ebx
jmp 0x10012be1
mov byte [edi], 0
inc edi
test edi, edi
je 0x10012bf7
push edi
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
cmp edi, ebx
je 0x10012c12
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10012c25
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
jmp 0x10012c1d
and dword [esi + 4], 0
cmp word [esi + 2], 0
je 0x10012c25
mov dword [esp + 0xc], 1
push ebx
call fcn.100012ff
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0xc]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10012e38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea ecx, [ebp - 4]
push ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x10]
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 8], eax
cmp dword [ebp - 4], edi
je 0x10012eb4
push ebx
push dword [ebp - 4]
call fcn.100012ea
mov ebx, eax
cmp ebx, edi
je 0x10012eac
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call esi
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x10012ea4
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x10012eb3
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x10012eb3
push ebx
call fcn.100012ff
jmp 0x10012eb3
mov dword [ebp - 8], 8
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
cmp eax, dword [ebp + 8]
je 0x10012ec5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret 0x10