joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101222d0
Capabilities:
Encode data using xor
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x8000c]
xor edi, edi
push edi
mov ecx, 0x80000
sub ecx, eax
push ecx
lea edx, [eax + esi + 0xc]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10122320
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x1012244a
call edi
push eax
push 0x1014bfb8
jmp 0x10122492
add dword [esi + 0x8000c], eax
mov eax, dword [esi + 0x8000c]
cmp eax, 4
jl 0x1012244a
mov al, byte [esi + edi + 0xc]
lea edx, [esi + 0xc]
cmp al, 0xc1
jne 0x1012234b
movzx ebx, byte [edi + esi + 0xd]
mov cl, byte [edi + esi + 0xf]
jmp 0x1012236a
cmp al, 0xc2
jne 0x10122487
movzx ecx, byte [edi + esi + 0xd]
shl cx, 8
movzx ebx, cx
movzx ecx, byte [edi + esi + 0xe]
or ebx, ecx
mov cl, byte [edi + esi + 0x10]
cmp ebx, 4
jl 0x10122453
cmp ebx, 0x80000
jg 0x10122453
cmp ebx, dword [esi + 0x8000c]
jg 0x10122421
cmp al, 0xc1
jne 0x101223bd
mov dl, byte [edi + esi + 0xe]
mov byte [ebp - 4], dl
lea edx, [ebx - 3]
xor eax, eax
lea ecx, [edi + esi + 0xf]
test edx, edx
jle 0x101223e9
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0xf]
xor dl, 0xc7
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 3]
cmp eax, edx
jl 0x101223a3
jmp 0x101223e9
mov cl, byte [edi + esi + 0xf]
lea edx, [ebx - 4]
xor eax, eax
mov byte [ebp - 4], cl
lea ecx, [edi + esi + 0x10]
test edx, edx
jle 0x101223e9
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0x10]
xor dl, 0xc7
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 4]
cmp eax, edx
jl 0x101223d1
mov al, byte [ecx]
mov edx, dword [esi + 0x100014]
mov byte [ebp - 8], al
mov ecx, dword [ebp - 8]
push ebx
lea eax, [esi + edi + 0xc]
push eax
push ecx
call edx
sub dword [esi + 0x8000c], ebx
add esp, 0xc
add edi, ebx
cmp dword [esi + 0x8000c], 0
jg 0x10122335
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x1012244a
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x1012244a
mov ecx, 0x80000
sub ecx, edi
cmp eax, ecx
jg 0x1012244a
push eax
lea eax, [edi + esi + 0xc]
push eax
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, cl
push ecx
movzx edx, al
push ebx
push edx
push 0x1014c1b8
call fcn.1011f4d0
add esp, 4
push eax
push 0
mov ecx, 0x108c17c8
call fcn.10127bf0
add esp, 0x14
call fcn.10122240
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + esi + 0xc]
push eax
push 0x1014c0b8
call fcn.1011f4d0
add esp, 4
push eax
push 0
mov ecx, 0x108c17c8
call fcn.10127bf0
add esp, 0xc
call fcn.10122240
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101224c0
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.1012e580
mov eax, dword [0x1014a018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x108b7704
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x107b76ec], 0xffffffff
je 0x101225b8
cmp byte [0x108b7720], 0
je 0x101225b8
push esi
lea eax, [ebp - 0x80008]
push edi
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x80008], 0xc1
jne 0x1012254a
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
test edi, edi
jle 0x10122578
lea esp, [esp]
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xc7
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x10122530
jmp 0x10122578
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
test edi, edi
jle 0x10122578
jmp 0x10122560
mov dl, byte [ebp + eax - 0x80004]
xor dl, 0xc7
sub dl, cl
mov byte [ebp + eax - 0x80004], dl
inc eax
cmp eax, edi
jl 0x10122560
mov eax, dword [0x108b76f8]
test eax, eax
jle 0x10122611
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x101225d6
push ecx
push 0x1014c2b8
call fcn.1011f4d0
add esp, 4
push eax
push 0
mov ecx, 0x108c17c8
call fcn.10127bf0
add esp, 0xc
mov esi, 0x107b76e8
call fcn.10122240
push 0x108b7704
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012db16
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x80008]
push ecx
lea edx, [eax + 0x108376f8]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [0x108b76f8], esi
push 0x108b7704
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1012db16
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x101225f3
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [0x107b76ec]
push 0
push esi
lea eax, [ebp + edi - 0x80008]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x10122640
sub esi, eax
add edi, eax
test esi, esi
jg 0x1012261d
jmp 0x101225f3
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x1012267f
mov eax, dword [0x108b76f8]
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x1012266a
push ecx
push 0x1014c3b8
jmp 0x10122596
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [eax + 0x108376f8]
push eax
jmp 0x101225e5
call ebx
push eax
push 0x1014c4b8
jmp 0x10122596
Function at 0x10122690
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x10001c]
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x100010], edi
jle 0x101226e9
lea ebx, [esi + 0x80010]
mov eax, dword [esi + 0x100010]
mov edx, dword [esi + 4]
push 0
push eax
lea ecx, [ebx + edi]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x101226f9
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
jg 0x101226b9
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10122732
mov eax, dword [esi + 0x100010]
push eax
lea ecx, [edi + esi + 0x80010]
push ecx
push ebx
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1014c5b8
call fcn.1011f4d0
add esp, 4
push eax
push 0
mov ecx, 0x108c17c8
call fcn.10127bf0
add esp, 0xc
call fcn.10122240
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101228d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10122943
lea ecx, [ebp - 8]
push ecx
push 0x108b772c
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push str.LangSelection
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10122939
push 0x10136018
push 0x10
push 0x108b772c
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x101230b0
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x1014a018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea esi, [ebp - 0x408]
call section..text
lea eax, [ebp - 0x408]
push eax
lea esi, [ebx + 0x4ef4]
mov eax, str..DataLocalLicense.json
call fcn.10001140
test al, al
je 0x10123123
push 0
push 0x20
push 3
push 0
push 1
push connect
push str..DataLocalLicense.json
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10123123
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x4e48
je 0x10123135
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012db16
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x40c]
push ecx
push 0x4e48
lea esi, [ebx + 4]
push esi
push edi
mov dword [ebp - 0x40c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1012311c
mov eax, esi
mov ecx, 0x4e48
mov dl, byte [eax]
sub dl, 0xb
xor dl, 0x7d
mov byte [eax], dl
inc eax
dec ecx
jne 0x10123163
call fcn.101228d0
lea eax, [ebx + 0xf4]
call fcn.10122950
lea eax, [ebx + 0x1abc]
call fcn.101229b0
lea eax, [ebx + 0x3484]
call fcn.10122a10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.1012db16
mov esp, ebp
pop ebp
ret

Function at 0x101233f0
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x1014a018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x4e4c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10123413
sub eax, edx
cmp eax, 3
jb 0x101234eb
cmp dword [edi + 0x4e6c], 0
je 0x101234b8
lea esi, [ebp - 0x408]
call section..text
mov eax, esi
push eax
lea esi, [ebp - 0x40c]
mov eax, ebx
call fcn.10001140
test al, al
jne 0x10123474
mov esi, 0x108bc518
call fcn.10122ff0
mov esi, 0x108bc640
call fcn.10122ff0
mov esi, 0x108bc768
call fcn.10122ff0
call fcn.1011ef10
mov ecx, dword [edi + 0x4e6c]
cmp ecx, dword [ebp - 0x40c]
je 0x101234b8
mov esi, 0x108bc518
call fcn.10122ff0
mov esi, 0x108bc640
call fcn.10122ff0
mov esi, 0x108bc768
call fcn.10122ff0
push 0x10
add edi, 0x46
push edi
push str.Launcher_not_found_or_invalid_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.1011ef10
push str.32770
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x101234e4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WinExec]
call fcn.1011ef10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012db16
mov esp, ebp
pop ebp
ret
Function at 0x10123cc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1014a018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x108c17ac]
cmp eax, 0x64
jle 0x10123ce1
mov eax, 1
jmp 0x10123ce2
inc eax
push eax
mov dword [0x108c17ac], eax
lea eax, [ebp - 0x28]
push 0x10135fd4
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10123d3b
push 0x24
lea edx, [ebp - 0x28]
push edx
push 1
push eax
mov eax, dword [ebp - 0x2c]
push str.VolumeEffect
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.1012db16
mov esp, ebp
pop ebp
ret

Function at 0x10123d50
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x1014a018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x94
lea eax, [ebp - 0xe0]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xe0]
push ecx
mov dword [ebp - 0xe0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
mov edx, eax
shrd edx, esi, 0x14
shr esi, 0x14
sub eax, dword [ebp - 0x38]
push edx
sbb ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xdc]
shrd eax, ecx, 0x14
push eax
mov eax, dword [ebp - 0xd4]
push eax
shr ecx, 0x14
mov ecx, dword [ebp - 0xd8]
push ecx
push edx
push str.PREMIUM
push 0x1014afb8
call fcn.1011f4d0
add esp, 4
push eax
push 0
mov ecx, 0x108c17c8
call fcn.10127bf0
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop esi
call fcn.1012db16
mov esp, ebp
pop ebp
ret
Function at 0x10123e10
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101443c8
push 0x1012e15a
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x1014a018]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14c], eax
push ecx
push str..PhysicalDrive_d
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x148], edi
cmp edi, 0xffffffff
je 0x10123fc2
xor eax, eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x134], esi
push esi
lea ecx, [ebp - 0x150]
push ecx
push 8
lea edx, [ebp - 0x140]
push edx
push 0xc
lea eax, [ebp - 0x138]
push eax
push 0x2d1400
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
call ebx
test eax, eax
jne 0x10123ef4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10123fc2
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.1012baac
mov esi, eax
mov dword [ebp - 0x144], esi
mov edx, dword [ebp - 0x13c]
push edx
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0x10
push 0
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
push esi
push 0xc
lea edx, [ebp - 0x138]
push edx
push 0x2d1400
push edi
call ebx
test eax, eax
jne 0x10123f53
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x10123fc2
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10123f40
mov dword [ebp - 4], 0
add eax, esi
push eax
push 0x100
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10123fc4
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1012db16
mov esp, ebp
pop ebp
ret
Function at 0x10124380
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012e838
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x1014a018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword fs:[0x30]
movzx ecx, byte ds:[eax + 2]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], ebx
je 0x101243de
push ebx
push ebx
push 0xa
call fcn.10121370
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], vtable.CProcessQuery.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push 2
push 0x23
lea esi, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.1012ae70
test al, al
mov eax, dword [ebp - 0x1c]
je 0x10124437
cmp eax, ebx
je 0x1012444a
cmp byte [eax], bl
je 0x10124437
cmp byte [eax + 1], bl
jne 0x10124437
push ebx
push ebx
push 0xa
call fcn.10121370
add esp, 0xc
mov ecx, esi
call fcn.1012ae30
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, ebx
je 0x1012444a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push str.LdrLoadDll
push str.Ntdll.dll
mov dword [ebp - 0xc], 0x304e25ff
mov word [ebp - 8], 0x501a
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x101249f8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 6
push 0x10a76ac0
call edi
mov ecx, dword [esi]
mov dword [0x10a76ac0], ecx
mov ecx, dword [ebp - 4]
mov dx, word [esi + 4]
lea eax, [ebp - 4]
push eax
push ecx
push 6
push 0x10a76ac0
mov word [0x10a76ac4], dx
call edi
lea edx, [ebp - 4]
push edx
push 0x40
push 6
push esi
call edi
mov eax, dword [ebp - 0xc]
mov cx, word [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push 6
push esi
mov word [esi + 4], cx
call edi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10124a60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.LdrLoadDll
push str.Ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x10124a89
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 6
push esi
call edi
mov ecx, dword [0x10a76ac0]
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
mov dx, word [0x10a76ac4]
lea eax, [ebp - 4]
push eax
push ecx
push 6
push esi
mov word [esi + 4], dx
call edi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10125e80
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x11920e5c]
push edi
cmp esi, dword [0x11920e60]
je 0x10125f4e
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
cmp byte [esi], 2
jne 0x10125ebe
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 1]
push ecx
xor ebx, ebx
push connect
mov dword [ebp - 4], ebx
call edi
cmp dword [ebp - 4], ebx
jne 0x10125ed3
add esi, 0x105
cmp esi, dword [0x11920e60]
jne 0x10125ea0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x11920e60]
mov esi, dword [0x11920e5c]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10125f36
xor edi, edi
cmp byte [edi + esi], 2
jne 0x10125f12
lea ecx, [edi + esi + 1]
push ecx
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [0x11920e5c]
mov ecx, dword [0x11920e60]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add edi, 0x105
cmp ebx, eax
jb 0x10125ef6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 6
call fcn.10121370
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101262a0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.1012e580
mov eax, dword [0x1014a018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea ecx, [ebp - 0x1008]
xor ebx, ebx
push ecx
mov dword [ebp - 0x100c], ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x101262f2
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012db16
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x100c]
shr edi, 2
mov dword [ebp - 0x1010], edi
cmp edi, ebx
jle 0x10126344
mov esi, dword [ebp + ebx*4 - 0x1008]
test esi, esi
je 0x1012633f
call fcn.101266e0
test al, al
je 0x1012633f
mov ecx, dword [ebp + ebx*4 - 0x1008]
call fcn.10126360
test al, al
je 0x101262df
mov edi, dword [ebp + ebx*4 - 0x1008]
call fcn.1012af50
test al, al
je 0x101262df
mov edi, dword [ebp - 0x1010]
inc ebx
cmp ebx, edi
jl 0x10126305
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1012db16
mov esp, ebp
pop ebp
ret
Function at 0x10126430
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.1012e580
mov eax, dword [0x1014a018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x1000
lea ecx, [ebp - 0x110c]
push ecx
xor esi, esi
push ebx
mov dword [ebp - 0x10c], esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x10126481
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012db16
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [ebp - 0x10c]
shr edi, 2
test edi, edi
jle 0x101264e6
nop
mov eax, dword [ebp + esi*4 - 0x110c]
push 0x104
lea edx, [ebp - 0x108]
push edx
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x101264e1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x101264d8
test dl, dl
je 0x101264d4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x101264d8
add eax, 2
add ecx, 2
test dl, dl
jne 0x101264b8
xor eax, eax
jmp 0x101264dd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x101264fa
inc esi
cmp esi, edi
jl 0x10126490
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012db16
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.1012db16
mov esp, ebp
pop ebp
ret 4

Function at 0x10126510
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 4
push 0x1000
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x1012654c
mov eax, dword [ebp + 8]
push 0
push ebx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10126553
push 0x8000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
pop esi
pop ebp
ret 4
push 0x1013f1dc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1012653e
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x1012653e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push ebx
push esi
push edi
test eax, eax
jne 0x10126546
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
pop esi
pop ebp
ret 4