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

Disassembly:
lea edx, [ebp - 0x338]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000cd02
mov ecx, 0x83
xor eax, eax
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x324]
mov dword [ebp - 0x208], ecx
mov edx, dword [ebp - 0x31c]
mov dword [ebp - 0x20c], edx
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x210], eax
lea ecx, [ebp - 0x314]
push ecx
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push 0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
test eax, eax
jne 0x1000ccdb
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp - 0x210]
push edx
call fcn.1000a250
add esp, 8
push 0
lea eax, [ebp - 0x33c]
push eax
push 0x20c
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x340]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1000cc51
mov eax, dword [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push eax
nop
nop
sub eax, eax
je 0x1000cd3a
nop
nop
nop
nop
jae 0x1000ccd2
xor dword [eax - 0x75], ebx
inc ebp
invalid
pop eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov dword [ebp - 4], eax
call fcn.1000a2e0
mov eax, dword [ebp - 4]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000cd79
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0x1b6a
jmp 0x1000cda9
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1000cd9f
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b6a
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000cda9
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000cfd0
Capabilities:
Delete service

Disassembly:
inc ebp
clc
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push eax
nop
nop
sub eax, eax
je 0x1000cfea
nop
nop
nop
nop
jae 0x1000cf82
xor dword [eax - 0x75], ebx
inc ebp
in al, dx
pop eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
call fcn.1000a2e0
push 0xe00f003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000d01d
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], 0x1b5d
jmp 0x1000d080
push 0xf01ff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000d04f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0x1b5d
jmp 0x1000d080
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
Function at 0x1000d2d0
Capabilities:
Query service configuration

Disassembly:
jmp 0x1000d283
invalid
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push eax
nop
nop
sub eax, eax
je 0x1000d2ea
nop
nop
nop
nop
jae 0x1000d282
xor dword [eax + 0x68], ebx
inc dword [ecx]
str word [ebx - 0x3f7cf3bb]
adc byte [eax - 0x75], dl
dec ebp
or byte [ecx - 1], dl
adc eax, sym.imp.ADVAPI32.dll_OpenServiceA
pop eax
push 0xf01ff
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000d30f
jmp 0x1000d437
mov dword [ebp - 8], 0
push 0x2000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov ecx, 0x800
xor eax, eax
mov edi, dword [ebp - 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push 0x2000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x1000d41b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x448
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x848
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x648
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0xc48
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
push ecx
push str.SYSTEMControlSet001Services_s
mov edx, dword [ebp - 0x10]
Function at 0x1000d4d0
Capabilities:
Set registry value
Write file on windows

Disassembly:
dec ebp
cld
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000d4b7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], 0x1b69
jmp fcn.1000d4c1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push eax
nop
nop
sub eax, eax
je 0x1000d4ea
nop
nop
nop
nop
jae 0x1000d482
xor dword [eax - 0x75], ebx
inc ebp
invalid
pop eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1208]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d52f
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b68
jmp fcn.1000d58a
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1200]
push edx
mov eax, dword [ebp - 0xc]
add eax, 0xa00
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1204]
push edx
push 0
mov eax, dword [ebp - 0xc]
add eax, 0x800

Function at 0x1000d5a0
Capabilities:
Delete registry value
Set registry value

Disassembly:
add byte [eax], cl
add byte [eax], al
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d580
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b67
jmp fcn.1000d58a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push eax
nop
nop
sub eax, eax
je 0x1000d5ba
nop
nop
nop
nop
jae 0x1000d552
xor dword [eax - 0x75], ebx
inc ebp
invalid
pop eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1208]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d5ff
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b68
jmp 0x1000d63c
mov ecx, dword [ebp - 0xc]
add ecx, 0x800
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d632
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0x1b64
jmp 0x1000d63c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d650
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push eax
nop
nop
sub eax, eax
je 0x1000d66a
nop
nop
nop
nop
jae 0x1000d602
xor dword [eax - 0x75], ebx
inc ebp
invalid
pop eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1208]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d6af
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b68
jmp 0x1000d6e7
push 0x100146e0
Function at 0x1000dac0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push eax
nop
nop
sub eax, eax
je 0x1000dada
nop
nop
nop
nop
jae 0x1000da72
xor dword [eax - 0x75], ebx
inc ebp
clc
pop eax
mov eax, dword [ebp - 8]
add eax, 0x124
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp - 8]
add ecx, 0x124
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pop es
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push eax
nop
nop
sub eax, eax
je 0x1000db3a
nop
nop
nop
nop
jae 0x1000dad2
xor dword [eax - 0x75], ebx
inc ebp
in al, 0xc7
inc eax
or byte [eax], al
add byte [eax], al
add bh, al
inc ebp
cld
add dword [eax], eax
add byte [eax], al
pop eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 0
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
push 0
push 0x80
push 3
push 0
push 1
push bind
mov ecx, dword [ebp - 0x1c]
add ecx, 0x124
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x1000dbec
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 8], 0
je 0x1000dbd3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
add eax, 0x124
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
call fcn.100050c0
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x1000dc24
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 4]
Function at 0x1000e490
Capabilities:
Create thread

Disassembly:
add eax, 0x2750000
jmp 0x1000e458
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp - 4]
call fcn.1000e760
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2e0]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
nop
nop
sub eax, eax
je 0x1000e4aa
nop
nop
nop
nop
jae 0x1000e442
xor dword [eax - 0x75], ebx
inc ebp
or byte [eax + 0x68], dl
inc esi
pop ds
add byte [eax], al
pop eax
mov eax, dword [ebp + 8]
push eax
push 0x1f46
mov ecx, dword [ebp - 0xc]
add ecx, 0xb4
call fcn.10004ad0
test eax, eax
je 0x1000e4e1
mov ecx, dword [ebp + 8]
push ecx
push 0x1f53
mov ecx, dword [ebp - 0xc]
add ecx, 0x1c8
call fcn.10004ad0
test eax, eax
jne 0x1000e4e5
xor eax, eax
jmp 0x1000e54e
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0x1000df70
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x1000e230
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [ebp - 8], 0
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x2dc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x2e0]
mov dword [ebp - 4], edx
push 0xffffffffffffffff
push 1
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10010110
Capabilities:
Create thread

Disassembly:
pop es
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push eax
nop
nop
sub eax, eax
je 0x10010128
nop
nop
nop
nop
jae 0x100100c0
xor dword [eax - 0x75], ebx
inc ebp
cld
pop eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100102c0
Capabilities:
Read file on windows

Disassembly:
sar dword [ecx + eax], 0
add al, ch
hlt
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
push eax
nop
nop
sub eax, eax
je 0x100102da
nop
nop
nop
nop
jae 0x10010272
xor dword [eax - 0x39], ebx
inc ebp
cld
add byte [eax], al
add byte [eax], al
pop eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x7fff00
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
ja 0x100103c5
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001032a
cmp dword [ebp - 8], 0
jne 0x10010331
xor eax, eax
jmp 0x100103c8
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov al, byte [ebp - 0x14]
mov byte [edx], al
movsx ecx, byte [ebp - 0x14]
cmp ecx, 0x3e
jne 0x100103b7
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 5
jb 0x100103b5
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movsx ecx, byte [eax - 1]
cmp ecx, 0x3e
jne 0x100103b5
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movsx eax, byte [edx - 2]
cmp eax, 0x52
jne 0x100103b5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 3]
cmp edx, 0x49
jne 0x100103b5
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movsx ecx, byte [eax - 4]
cmp ecx, 0x44
jne 0x100103b5
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movsx eax, byte [edx - 5]
cmp eax, 0x3c
jne 0x100103b5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp ecx, 0x50
jge 0x100103b5
jmp 0x100102fb
jmp 0x100103c5
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x100102fb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100103e0
Capabilities:
Read file on windows

Disassembly:
or byte [ebx], al
push ebp
cld
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push eax
nop
nop
sub eax, eax
je 0x100103fa
nop
nop
nop
nop
jae 0x10010392
xor dword [eax - 0x39], ebx
inc ebp
cld
add byte [eax], al
add byte [eax], al
pop eax
mov dword [ebp - 4], 0
push 0x800000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, 1
test ecx, ecx
je 0x1001045c
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.100102c0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10010438
jmp 0x1001045c
push 1
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x13c
call fcn.10004cb0
test eax, eax
jne 0x1001045a
jmp 0x1001045c
jmp 0x10010418
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010480
Capabilities:
Write file on windows

Disassembly:
cld
add byte [ebp + 2], dh
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
push eax
nop
nop
sub eax, eax
je 0x1001049a
nop
nop
nop
nop
jae 0x10010432
xor dword [eax - 0x39], ebx
inc ebp
cld
add byte [eax], al
add byte [eax], al
pop eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0xffff
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, 1
test ecx, ecx
je 0x1001050a
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x28
call fcn.10004cb0
test eax, eax
jne 0x100104e7
jmp 0x1001050a
cmp dword [ebp - 4], 0
je 0x10010508
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x100104bf
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x18]
cmp dword [edx + 4], 0
jne 0x1001053c
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0
jne 0x1001055c
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0xc], 0
Function at 0x100108f0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Query environment variable

Disassembly:
add dword [eax], edx
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
push edi
mov dword [ebp - 0x15c], ecx
push eax
nop
nop
sub eax, eax
je 0x10010910
nop
nop
nop
nop
jae 0x100108a8
xor dword [eax - 0x47], ebx
adc dword [eax], eax
add byte [eax], al
pop eax
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x148]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x148], 0x44
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x114], 0
mov word [ebp - 0x116], 0
mov dword [ebp - 0x11c], 0x101
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x15c]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x108], edx
mov word [ebp - 0x118], 0
push 0x104
lea eax, [ebp - 0x104]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x100109a6
xor eax, eax
jmp 0x10010a22
mov edi, 0x1001465c
lea edx, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x148]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10010a0e
xor eax, eax
jmp 0x10010a22
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
mov dword [eax + 0x24], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406b00
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov ebx, 2
push 0x11
push ebx
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406b32
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov edi, dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x14], bx
call edi
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x406b74
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov ecx, dword [esp + 0x424]
push 0x89
mov word [esp + 0x14], bx
mov dword [esp + 0x18], ecx
call edi
mov word [esp + 0x12], ax
mov eax, dword [0x426a5c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esp + 0x10]
shl edx, 3
push edx
push 0x32
push 0x42604c
push eax
push esi
call fcn.0040eaa0
add esp, 0x14
test eax, eax
jg 0x406bcf
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov eax, dword [0x426a5c]
lea edx, [esp + 0x20]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [esp + 0x10]
shl ecx, 3
push ecx
push 0x400
push edx
push eax
push esi
call fcn.0040eb60
add esp, 0x14
mov edi, eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0x4b
jge 0x406c14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x58]
and eax, 0xff
lea ecx, [eax + eax*8]
lea edx, [ecx + ecx + 0x39]
cmp edi, edx
jge 0x406c35
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
test eax, eax
jle 0x406c7a
lea edi, [esp + 0x68]
mov ebx, eax
cmp byte [edi], 3
jne 0x406c71
mov eax, 0xe
lea esi, [edi - 0xf]
cmp byte [esi + eax], 0x20
jne 0x406c59
mov byte [esi + eax], 0
dec eax
jne 0x406c4c
test ebp, ebp
je 0x406c66
push ebp
call fcn.00414c58
add esp, 4
push esi
call fcn.0041f827
add esp, 4
mov ebp, eax
mov byte [edi], 0
add edi, 0x12
dec ebx
jne 0x406c3f
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x410
ret