joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4406a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f963
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046346a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x588360
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x586ee0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4710bc]
push eax
mov ecx, edi
call fcn.00468b02
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046a01e
test eax, eax
je 0x4407bc
mov ecx, dword [esp + 0x3c]
call fcn.00468b2f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4713bc]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x440780
push edi
mov ecx, esi
call fcn.0046619c
mov ecx, esi
call fcn.00440920
cmp dword [esp + 0x38], 1
jne 0x4407b5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004662d7
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x4431f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x443223
push esi
call fcn.004462e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44321c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4432a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x443292
mov eax, dword [esi + 8]
test eax, eax
je 0x443247
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44328e
cmp eax, 2
je 0x443292
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44323a
cmp eax, 3
je 0x44326d
cmp eax, 1
jne 0x44323a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44323a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44323a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004432d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4432b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004432d0
add esp, 4
pop esi
ret
Function at 0xed01d9e
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0xed3f1a8]
cmp eax, 1
jne 0xed0397b
mov eax, dword [0xed3f1ac]
cmp dword [eax], 0
jne 0xed0acce
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
inc eax
pop ebp
ret 4
cmp dword [0xed3f354], 1
jne 0xed0f14e
mov ecx, dword [0xed3f350]
test ecx, ecx
jne 0xed0f16b
test eax, eax
jne 0xed0f167
cmp dword [0xed3f340], 5
jb 0xed0f15d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xa0]
push 1
add eax, 0xc
push 0xed3f1a8
mov dword [0xed3f1ac], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0xed01db1
mov byte [ebp - 0x3f7], 0x83
mov byte [ebp - 0x3f6], 0x94
mov byte [ebp - 0x3f5], 0x90
mov byte [ebp - 0x3f4], 0x85
mov byte [ebp - 0x3f3], 0x94
mov byte [ebp - 0x3f2], 0xb7
mov byte [ebp - 0x3f1], 0x98
mov byte [ebp - 0x3f0], 0x9d
mov byte [ebp - 0x3ef], 0x94
mov byte [ebp - 0x3ee], 0xb0
mov byte [ebp - 0x3ed], 0xf1
call fcn.0ed09a97
lodsb al, byte [esi]
inc esp
jmp 0xed0acf1
push 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xed01dc8
mov dword [0xed3f1a8], 2
push 0x32
jmp 0xed0f150
pop ebp
jmp ecx
Function at 0xed0366e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0xed3e248]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0ed03741
mov eax, 0xed00000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0xed03710
cmp dword [ebp - 0x94], 5
jb 0xed036e3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0xed0372c
call fcn.0ed02055
test eax, eax
jl 0xed0e400
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0ed01b36
leave
ret
cmp dword [ebp - 0x88], 1
je 0xed0e3e8
jmp 0xed036e3
cmp dword [ebp - 0x90], 0
jbe 0xed036e3
jmp 0xed036df
cmp dword [ebp - 0x94], 4
ja 0xed036df
je 0xed0371f
jmp 0xed036e3
mov byte [0xed3fa1c], 1
jmp 0xed03701

Function at 0xed09e49
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0ed09a5c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0ed09aa7
push eax
push esi
push dword [ebp + 8]
call fcn.0ed09a5c
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
push edx

Function at 0xed09eef
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edx
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0ed09aa7
push eax
push esi
push dword [ebp + 8]
call fcn.0ed09a5c
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0ed09a97
pop edx
sal dword [ebx + 3], cl
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
invalid
invalid
invalid
Function at 0xed0b455
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
jne 0xed0b612
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
mov byte [ebp - 0x765], 0x96
mov byte [ebp - 0x764], 0x96
cmp dword [ebp - 0x6fc], 1
jne 0xed0b6c3
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
invalid
Function at 0xed32b6d
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
xor ecx, ecx
push esi
push edi
cmp dword [ebp + 0xc], ecx
jne 0xed32c9a
mov edi, dword [ebp + 0x14]
cmp edi, ecx
je 0xed32c9a
cmp dword [ebp + 0x10], 1
jne 0xed32c9a
mov eax, dword [edi + 4]
mov esi, dword [ebp + 8]
cmp eax, dword [esi + 0x90]
jne 0xed32bfe
mov edi, dword [edi + 0x10]
cmp dword [0xed3ff1c], edi
je 0xed32c9a
mov eax, dword [esi + 0x110]
mov dword [0xed3ff1c], edi
cmp eax, ecx
je 0xed32bdc
cmp dword [eax + 0x28], ecx
je 0xed32bdc
push 1
push ecx
mov ecx, esi
call fcn.0ed31f74
push 0
mov ecx, esi
call fcn.0ed32986
mov esi, dword [esi + 0x110]
test esi, esi
je 0xed32c9a
cmp dword [esi + 0x24], 0
je 0xed32c9a
call fcn.0ed33d35
jmp 0xed32c9a
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
cmp eax, 0x201
je 0xed32c13
cmp eax, 0x203
jne 0xed32c41
lea eax, [ebp - 0x10]
push eax
push dword [edi]
call ebx
movsx eax, word [edi + 0xc]
add eax, dword [ebp - 0x10]
mov dword [esi + 0xe4], eax
movsx eax, word [edi + 0xe]
add eax, dword [ebp - 0xc]
mov dword [esi + 0xe8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xf4], eax
mov eax, dword [edi + 4]
cmp eax, 0x202
je 0xed32c52
cmp eax, 0xa2
jne 0xed32c99
lea eax, [ebp - 0x10]
push eax
push dword [edi]
call ebx
movsx eax, word [edi + 0xc]
add eax, dword [ebp - 0x10]
mov dword [esi + 0xec], eax
movsx eax, word [edi + 0xe]
add eax, dword [ebp - 0xc]
mov dword [esi + 0xf0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xf8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0xed3ff18], eax
je 0xed32c99
push 1
push 0
mov ecx, esi
call fcn.0ed31f74
pop ebx
pop edi
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x405980
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
call dword [sym.imp.MSVCRT.dll_rand]
test al, 3
jne 0x405a00
mov eax, dword [esp + 8]
push 0x40870c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x405a00
push ebx
push esi
push edi
mov ecx, 0x40d
mov esi, 0x408820
mov edi, 0x42e058
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, 0x54321cba
mov bl, byte [eax + 0x42e058]
mov edx, ecx
sar edx, 0x17
xor bl, dl
add ecx, 0x1234567f
mov byte [eax + 0x42e058], bl
inc eax
cmp eax, 0x1034
jb 0x4059bf
push ebp
push 0x1034
push 1
push 0x42e058
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10001016
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0x10003010
push 0x65
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001061
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x10001065
xor eax, eax
jmp 0x100010a7
push ebx
mov ebx, dword [esi]
push 0
push 4
push 2
push 0
push 2
push 0x40000000
push 0x10003038
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010a3
lea eax, [esp + 0xc]
push 0
push eax
add esi, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x100010ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
xor edx, edx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], edx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push 0x8000000
push edx
push edx
push edx
push 0x10003038
push edx
mov word [ebp - 0x24], dx
mov dword [ebp - 0x28], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x10001110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
pop esi
xor eax, eax
leave
ret
Function at 0x40e49f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40e4a7
mov dword [ecx*4 + 0x42d300], eax
inc ecx
cmp ecx, 0x100
jb 0x40e4a2
pop esi
ret

Function at 0x411e30
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42631d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42a050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x1e8]
push dword [esi + 8]
mov eax, dword [esi]
xor ebx, ebx
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [esp + 0x10]
add edi, 0x168
push eax
call fcn.00411c76
push 0xe
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
call fcn.00411d9a
push 0xf
lea ecx, [esp + 0x14]
call fcn.00411d9a
push 0x11
push esi
lea edi, [esp + 0x18]
call fcn.00411d4e
push 0x10
push esi
call fcn.00411d4e
push 9
push esi
call fcn.00411d4e
push 6
push esi
call fcn.00411d4e
push 0x12
push esi
call fcn.00411d4e
push 0x14
push esi
call fcn.00411d4e
push 0x13
push esi
call fcn.00411d4e
push 0x15
push esi
call fcn.00411d4e
push 0xa
push esi
call fcn.00411d4e
push 0x16
push esi
call fcn.00411d4e
mov eax, esi
call fcn.00411d0d
push ebx
push 0x61
call fcn.0041192f
push ebx
push 0x62
call fcn.0041192f
push ebx
push 0x63
call fcn.0041192f
push 0x14
pop edi
mov eax, esi
call fcn.00411dda
push 6
pop edi
mov eax, esi
call fcn.00411dda
push 9
pop edi
mov eax, esi
call fcn.00411dda
push 0x11
pop edi
mov eax, esi
call fcn.00411dda
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00412bd6
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4141fa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 0x39bb0001], edi
test dword [ebp + 0x55fffffc], edi
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00413986
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0041393b
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
Function at 0x4164c7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jb 0x416619
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x416505
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41650a
inc edi
cmp edi, dword [ebp - 8]
jb 0x4164fc
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x4165f9
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x41658c
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x416536
cmp cl, 0xff
jne 0x4165bb
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x4165cc
movzx esi, byte [edx + 0x404eb0]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x41657c
cmp bl, 0xff
jne 0x4165c9
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x416554
dec ecx
shl edx, cl
and edx, 7
je 0x416523
movzx ecx, byte [edx + 0x404eb0]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x404ea8], 0
mov cl, byte [ebx + 4]
je 0x4165b8
test cl, cl
je 0x4165b8
cmp cl, 0xff
jne 0x416523
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4164f7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4164f7
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret 0xc

Function at 0x417fd7
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [esi + 4]
xor ebx, ebx
cmp dword [eax], ebx
jne 0x417ff3
push ebx
push ebx
push eax
call fcn.00417e46
cmp eax, ebx
jne 0x41804c
push edi
lea edi, [esi + 8]
cmp dword [edi], ebx
jne 0x418007
push ebx
push ebx
push edi
call fcn.00417e46
cmp eax, ebx
jne 0x41804b
lea eax, [esi + 4]
call fcn.00417f70
mov eax, edi
call fcn.00417f70
mov byte [esi + 0x10], bl
cmp dword [esi + 0xc], ebx
je 0x418022
xor eax, eax
jmp 0x41804b
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x417f90
push ebx
push ebx
call fcn.004237af
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x41801e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x41804b
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x4191d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a050]
jne 0x4191df
repz ret
jmp fcn.0041ad54
Function at 0x401c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push edi
mov eax, dword [0x459668]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
mov edi, dword [0x447570]
push eax
call edi
push eax
call fcn.00413197
push eax
lea ecx, [esp + 0x30]
call fcn.00416666
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [0x4475c4]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [0x4475a0]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push eax
call fcn.00413197
mov ecx, eax
call fcn.00416355
cmp dword [esi + 0x130], 0
mov ebx, dword [0x4470b8]
jne 0x401d91
mov ecx, dword [esp + 0x30]
push ecx
call dword [0x4470d4]
push eax
lea ecx, [esi + 0x12c]
call fcn.004165d3
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
lea edi, [esi + 0x13c]
call dword [0x4470bc]
push eax
mov ecx, edi
call fcn.0041689a
test edi, edi
je 0x401d4b
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x130]
push edi
push eax
call fcn.0041691f
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x144], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x130]
push ecx
push 0
push 0
push eax
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
lea edx, [esi + 0x12c]
test edx, edx
je 0x401dae
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004166ba
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x44
ret 4
Function at 0x40180d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
call dbg.debug_is_active
test eax, eax
je 0x401889
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x408056
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xf
mov dword [esp + 4], 1
mov dword [esp], 0x4080d4
call sym._fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, dword [0x40c020]
add eax, 1
mov dword [0x40c020], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Scanning_vsocket_ports_for_CID_u..._n
call sym._printf
mov dword [ebp - 0xc], 0
jmp 0x4018ef
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.try_connection
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4018eb
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.__host_port__d_open_n
call sym._printf
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dbg.socket_close
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x101cf
jle 0x4018b2
mov eax, dword [0x40c020]
sub eax, 1
mov dword [0x40c020], eax
call dbg.debug_is_active
test eax, eax
je 0x40197a
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x408056
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xf
mov dword [esp + 4], 1
mov dword [esp], str._host_port_scan
call sym._fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, 0
add esp, 0x24
pop ebx
pop ebp
ret