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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b6b0
cmp edx, dword [eax]
je 0x411724
add eax, 8
inc ecx
cmp eax, 0x40b740
jl 0x411715
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b6b0]
jne 0x411852
mov eax, dword [0x40ba6c]
cmp eax, 1
je 0x41182c
test eax, eax
jne 0x411755
cmp dword [0x4095d4], 1
je 0x41182c
cmp edx, 0xfc
je 0x411852
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41178c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040f3ad
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f49d
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4117cf
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f49d
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407608
push edi
call fcn.0041241d
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040f3ad
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f3bd
lea eax, [ebp - 0xa0]
push 0x4075e8
push eax
call fcn.0040f3bd
push dword [esi + 0x40b6b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f3bd
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00412394
add esp, 0x2c
pop edi
jmp 0x411852
lea eax, [ebp + 8]
lea esi, [esi + 0x40b6b4]
push 0
push eax
push dword [esi]
call fcn.0040f49d
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x7b2819
Capabilities:
Resolve function by parsing pe exports

Disassembly:
adc ah, ah
cmp cx, sp
sbb eax, 0x836e1941
push ebp
rcl al, 7
push esi
daa
cwde
lea eax, [esi*8 - 0x313e7ea0]
xadd eax, ebp
push edi
test ah, 0xae
sub bp, si
push ebx
aad 0xaf
ror ah, 6
push edx
pushal
and ah, 0x27
ror ax, cl
rol bp, cl
mov dword [esp + 0x1c], edx
stc
movzx ax, cl
shld eax, ecx, cl
test dh, bl
lea ebp, [esp + 0x38]
aam 0x5e
cwde
bt bp, dx

Function at 0x7b2896
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 0x24]
je 0x7b1e64
sar si, 0xf
mov esi, dword [eax + 0x3c]
rcr edx, cl
add esi, eax
cmc
shl dl, cl
sub dl, cl
mov edx, dword [esi + 0x78]
clc
bt sp, 0xe
test edx, edx
push 0xd3f87bb1
pushal
lea esp, [esp + 0x24]
je 0x7b1e64
bts cx, di
bt cx, 5
bsf cx, sp
add edx, eax
pushfd
btr cx, 0xa
xor cl, 1
mov ecx, dword [esi + 0x7c]
stc
push dword [esp]
cmp ax, di
add ecx, edx
jmp 0x7b571b
lea esp, [esp + 0x24]
je 0x7b1e64
pushfd
mov byte [esp], 0xf9
test ebx, ebp
add eax, edi
pushfd
push dword [esp]
jmp 0x7afa55
btr ax, ax
mov eax, dword [ebp]
cmc
push dword [esp + 4]
mov byte [esp], cl
bt di, bp
test eax, eax
jmp 0x7b207e
call fcn.007b4f54
rcr bx, cl
movsx bx, al
bt ax, 1
lea ebx, [ecx + 0xf852c98]
mov ebx, eax
pushfd
cmp byte [edi], 0x23
mov byte [esp], bl
push dword [esp]
call fcn.00678567
inc ebx
or dword [edi - 0x5f4a59c6], ebx
mov ah, 0xe7
sbb al, 0x67
loope 0x7b28ef
adc dword [edx + 0xff2a74d], edi
je 0x7b2865
adc dword [edx - 0x118e1733], edi
cmp dword [0xf4694ed4], esp
invalid
out 7, eax
rol byte [edi - 5], 1
invalid
cmp ah, ch
push dword [esp]
sub ecx, ecx
add esp, 8
mov dword [esp + 8], ecx
lea esp, [esp + 8]
jno 0x811a1d
bswap cx
mov ecx, dword [ebp + 4]
stc
cmp ecx, 0xffff
pushfd
push ebp
lea esp, [esp + 8]
jbe 0x7afd2b
not di
shld edi, eax, 0x1b
mov edi, dword [edx + 0x24]
bt ax, 1
xor esi, ebx
add edi, eax
shld si, bp, 4
adc si, 0xd79c
inc si
mov esi, dword [edx + 0x20]
push ecx
cmc
add esi, eax
bt ebx, 8
jmp 0x7b4171
jbe 0x7afd2b
shrd edi, esp, cl
rcr si, 3
btr esi, esp
mov edi, dword [edx + 0x24]
sub si, bp
add edi, eax
adc si, sp
rol esi, 0x1e
sal si, cl
mov esi, dword [edx + 0x20]
pushfd
stc
mov byte [esp], ch
add esi, eax
call fcn.007b0a37
ja 0x810390
inc ebp
pop esi
aad 0x9f
invalid
mov edi, dword [edi + ecx*4]
test bp, si
test dl, ah
test edi, edi
jmp 0x7b04e3
bsr cx, dx
shld ecx, edi, cl
mov ecx, dword [ebp + 4]
cmp ch, 0xc1
bt sp, sp
cmp ecx, 0xffff
jmp 0x8102f2
Function at 0x406fc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x406ffe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x406ff6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407000
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x406fe6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4070d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407101
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407101
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407101
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4cb050
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x40eaa0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.0040dfca
pop ecx
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40eace
test al, 0x10
jne 0x40ead2
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x128]
push eax
jne 0x40eaee
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
jmp 0x40eb30
call fcn.00451750
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x40ebe4
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
lea eax, [ebp - 0x29c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40ec6e
push 0x100
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40ec6e
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40ec37
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40ec2e
cmp esi, edx
jle 0x40ec42
push 0x46bb50
jmp 0x40ec5d
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.0044f8e0
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [ebp + 8]
call fcn.0044f360
pop ecx
pop ecx
call sub.WSOCK32.dll_WSACleanup
leave
ret
push 0x46ad3e
push dword [ebp + 8]
call fcn.0044f360
pop ecx
pop ecx
leave
ret

Function at 0x40ed88
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x47e0dc], 0
push ebx
push esi
mov ebx, eax
je 0x40edf3
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40edb6
xor eax, eax
jmp 0x40ee35
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40edf5
jmp 0x40edb2
xor esi, esi
cmp byte [0x47e0dd], 0
je 0x40ee12
test bl, 4
je 0x40ee12
push esi
push 0x40ee39
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40ee26
cmp ebx, 0x40
je 0x40ee26
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40ee35
xor eax, eax
cmp ebx, 0x20
sete al
push esi
push eax
call sub.KERNEL32.dll_SetSystemPowerState
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40288e
pop dword [ebp - 0x48]
mov eax, 0x56109dfa
add eax, 0xaa2f8a94
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xb7629485
add dword [ebp - 0x58], 0x96efb0c6
mov dword [ebp - 0x54], 0xedc9c156
add dword [ebp - 0x54], 0x44698aef
mov dword [ebp - 0x50], 0xa0b568e4
add dword [ebp - 0x50], 0xab96db4a
mov dword [ebp - 0x4c], 0x43b5d65c
sub dword [ebp - 0x4c], 0x43b5d65c
lea eax, [ebp - 0x58]
push eax
mov eax, 0xa1f2b22e
add eax, 0x5e4dbe36
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x72fa1d7
add dword [ebp - 0x58], 0x6d42c77f
mov dword [ebp - 0x54], 0x48655470
add dword [ebp - 0x54], 0xf9070d05
mov dword [ebp - 0x50], 0x1f605242
add dword [ebp - 0x50], 0x440f1a2a
mov dword [ebp - 0x4c], 0xf6c5abed
sub dword [ebp - 0x4c], 0xf6c5abed
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3851a
push 0
call eax
mov ecx, 0x9c3703b4
sub ecx, 0x9c36b4d0
mov edi, eax
mov ebx, 0xe038985d
add ebx, 0x200867a3
add ebx, dword [ebp - 0x48]
mov edx, 0x6c0fa867
add edx, 0x9ae98197
add dword [ebp - 8], 0xb87557c4
mov esi, dword [ebx]
xor dword [ebp - 0x30], edi
add esi, edx
sub dword [ebp - 0x30], 0x3bad81cd
mov dword [edi], esi
add edi, 0x1ac43725
sub edi, 0x1ac43721
add ebx, 0x95fdcb9e
sub ebx, 0x95fdcb9a
loop 0x4029ab
add eax, 0x387b9731
sub eax, 0x387a68ce
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xbace9393
sub ecx, 0xba8e9393
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x415354
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41541f
jmp 0x415413
cmp dword [esi + 0x10], 0x1000
jne 0x4153ff
test byte [esi + 0x15], 1
jne 0x4153ff
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4153b0
cmp ebp, 2
je 0x4153b0
cmp ebp, 0x10
je 0x4153b0
cmp ebp, 0x20
jne 0x4153cc
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4153cc
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4153dd
mov eax, dword [esi]
add eax, ebx
call fcn.0041534c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4153d0
cmp byte [esp + 4], 0
je 0x4153ff
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41541f
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x415385
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.004014fb
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x404d80
Capabilities:
Delete registry key
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x404dc8
push 1
push 0x41fe10
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x404dc1
push eax
mov edi, 1
call ebx
push esi
call ebx
test edi, edi
jne 0x404de3
push 0x41fe10
push str.The__s_service_is_not_installed_n
call fcn.004139f4
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x404e16
push 0x41fe10
push str.Could_not_open_service_manager._Failed_to_uninstall_the__s_service_n
call fcn.004139f4
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10020
push 0x41fe10
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x404e4e
push edi
call ebx
push 0x41fe10
push str.Could_not_close_service._Failed_to_uninstall_the__s_service_n
call fcn.004139f4
add esp, 8
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov dword [ebp - 4], eax
call ebx
push edi
call ebx
push 0x41fe10
push str.SYSTEMCurrentControlSetServicesEventLogApplication_s
lea ecx, [ebp - 0x124]
push 0x104
push ecx
call fcn.00417b50
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 4]
test eax, eax
push 0x41fe10
je 0x404ebd
push str.Successfully_uninstalled_the__s_service_n
call fcn.004139f4
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Service_could_not_be_deleted._Failed_to_uninstall_the__s_service_n
call fcn.004139f4
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404f40
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call fcn.00417a30
lea eax, [ebp - 0x204]
mov dword [ebp - 4], eax
mov eax, dword [0x41ff3c]
add esp, 0x10
test eax, eax
je 0x404fb5
push esi
push 0x41fe10
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x404fb0
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 1
push 0
push 0x3e8
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 8]
dec eax
je 0x40500c
dec eax
je 0x404ff4
sub eax, 2
je 0x404fdc
lea eax, [ebp - 0x204]
push eax
push str.___t_s_n
call fcn.004139f4
add esp, 8
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x204]
push ecx
push 0x41b004
call fcn.004139f4
add esp, 8
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x204]
push edx
push str.___t_s_n
call fcn.004139f4
add esp, 8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
push eax
push str._t_s_n
call fcn.004139f4
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x405680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x40]
push edi
mov edi, dword [esi + 0x44]
add edi, 0xfffffff2
mov eax, edi
add edx, 0xe
cmp eax, ecx
mov dword [esi + 0x44], edi
mov dword [esi + 0x2c], edx
jae 0x4056cb
push str.SkBuff_Push_under
push 0x84
push str.c:ob_bora_18463_bora_apps_vmnat_skbuff.h
push str.BUG__s:_d:__s_n
push 0x41f3d0
call fcn.00413a68
add esp, 0x14
mov byte [0], 0
mov edi, dword [esi + 0x44]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, edi
mov dword [ecx], edx
mov ax, word [eax + 4]
mov word [ecx + 4], ax
mov edx, dword [0x420c90]
lea ecx, [edi + 6]
mov dword [ecx], edx
mov ax, word [0x420c94]
mov word [ecx + 4], ax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0xc], ax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x44]
lea edx, [ebp + 8]
push edx
mov edx, dword [0x41f2ac]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
ret
Function at 0x405ab0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push eax
push str.host
xor edi, edi
call fcn.0040a5a0
mov esi, eax
add esp, 8
test esi, esi
je 0x405b52
push 0x2f
push esi
call fcn.00413e20
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x405af3
lea ecx, [ebx + 1]
push ecx
call fcn.00417bcf
add esp, 4
mov edi, eax
mov byte [ebx], 0
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
cmp ebx, 0xffffffff
push esi
jne 0x405b41
push str._s_is_not_valid_IP_address_n
push 0x41f3d0
call fcn.00413a68
mov eax, dword [0x41ff50]
add esp, 0xc
test eax, eax
je 0x405b30
push eax
call fcn.00417bca
add esp, 4
mov dword [0x41ff50], 0
call fcn.004077a0
call fcn.00408ce0
push 0x72
call fcn.0040135c
call fcn.00402836
mov edx, dword [ebp + 8]
add esp, 4
test edi, edi
mov dword [edx], ebx
jne 0x405b7a
push str.netmask
push str.host
call fcn.0040a5a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x405b7a
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2e
push edi
call fcn.00413d60
add esp, 8
test eax, eax
je 0x405bff
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x405bb4
push edi
push str._s_is_not_valid_netmask__not_a.b.c.d__n
push 0x41f3d0
call fcn.00413a68
add esp, 0xc
call fcn.00405a30
push 0x71
call fcn.0040135c
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
lea ecx, [eax - 1]
or ecx, eax
not ecx
test ecx, ecx
je 0x405be5
push edi
push str._s_is_not_valid_netmask__invalid_value__n
push 0x41f3d0
call fcn.00413a68
add esp, 0xc
call fcn.00405a30
push 0x70
call fcn.0040135c
test eax, eax
mov esi, dword [ebp + 0xc]
mov dword [esi], 0
je 0x405c22
xor ecx, ecx
shl eax, 1
inc ecx
test eax, eax
jne 0x405bf4
mov dword [esi], ecx
jmp 0x405c22
push 0xa
lea edx, [ebp - 4]
push edx
push edi
call fcn.00413d2e
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x405c7a
cmp byte [eax], 0
jne 0x405c7a
mov esi, dword [ebp + 0xc]
push edi
call fcn.00402836
mov eax, dword [esi]
add esp, 4
cmp eax, 1
jb 0x405c3b
cmp eax, 0x1e
jbe 0x405b73
push str.Netmask_must_be_in_range_128.0.0.0_to_255.255.255.252_n
push 0x41f3d0
call fcn.00413a68
mov eax, dword [0x41ff50]
add esp, 8
test eax, eax
je 0x405c69
push eax
call fcn.00417bca
add esp, 4
mov dword [0x41ff50], 0
call fcn.004077a0
call fcn.00408ce0
push 0x6e
call fcn.0040135c
push edi
push str._s_is_not_valid_netmask__not_a_number__n
push 0x41f3d0
call fcn.00413a68
mov eax, dword [0x41ff50]
add esp, 0xc
test eax, eax
je 0x405ca9
push eax
call fcn.00417bca
add esp, 4
mov dword [0x41ff50], 0
call fcn.004077a0
call fcn.00408ce0
push 0x6f
call fcn.0040135c
int3
Function at 0x405cc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push str.IncomingUDP
mov dword [ebp - 4], 0
call fcn.00409ef0
add esp, 4
test eax, eax
mov dword [ebp - 0x10], eax
je 0x405e0a
push ebx
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00409fe0
add esp, 8
test eax, eax
mov dword [ebp - 8], eax
je 0x405dfc
push esi
mov esi, dword [ebp - 8]
push 0xa
lea edx, [ebp - 0xc]
push edx
push esi
call fcn.00413d2e
mov ebx, eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
je 0x405e9e
cmp byte [eax], 0
jne 0x405e9e
cmp ebx, 1
jb 0x405e9e
cmp ebx, 0xffff
ja 0x405e9e
mov eax, dword [ebp - 4]
push 0x3a
push eax
call fcn.00413d60
mov esi, eax
add esp, 8
test esi, esi
je 0x405e0e
push 0xa
lea ecx, [ebp - 0xc]
push ecx
lea edx, [esi + 1]
push edx
call fcn.00413d2e
mov edi, eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
je 0x405e84
cmp byte [eax], 0
jne 0x405e84
cmp edi, 1
jb 0x405e84
cmp edi, 0xffff
ja 0x405e84
mov byte [esi], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
je 0x405e2b
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [0x41ff58]
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_htons]
push eax
push esi
call fcn.0040b050
add esp, 0x10
test eax, eax
jne 0x405e45
mov edx, dword [ebp - 8]
push edx
call fcn.00402836
mov eax, dword [ebp - 4]
push eax
call fcn.00402836
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push edx
call fcn.00409fe0
add esp, 0x10
test eax, eax
mov dword [ebp - 8], eax
jne 0x405d00
pop esi
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00409fb0
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
push str._s_is_not_valid_UDP_destination_address_in_form_a.b.c.d:port_n
push 0x41f3d0
call fcn.00413a68
mov esi, 0x6c
jmp 0x405eb3
mov ecx, dword [ebp - 4]
push ecx
push str._s_is_not_valid_UDP_destination_address_n
push 0x41f3d0
call fcn.00413a68
mov esi, 0x6a
jmp 0x405eb3
push esi
call dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edx, eax
and edx, 0xff
push edx
mov edx, eax
movzx ecx, ah
push ecx
shr edx, 0x10
movzx edx, dl
push edx
mov dword [ebp - 0x14], eax
shr eax, 0x18
push eax
push ebx
push str.Cannot_create_UDP_forwarding_entry_for__lu____u._u._u._u:_lu_n
push 0x41f3d0
call fcn.00413a68
add esp, 0x20
mov esi, 0x69
jmp 0x405eb6
mov eax, dword [ebp - 4]
push eax
push str._s_does_not_contain_valid_UDP_port_number_n
push 0x41f3d0
call fcn.00413a68
mov esi, 0x6b
jmp 0x405eb3
push esi
push str._s_is_not_valid_UDP_port_number_n
push 0x41f3d0
call fcn.00413a68
mov esi, 0x6d
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00409fb0
mov eax, dword [0x41ff50]
add esp, 4
test eax, eax
je 0x405ede
push eax
call fcn.00417bca
add esp, 4
mov dword [0x41ff50], 0
call fcn.004077a0
call fcn.00408ce0
mov edx, dword [ebp - 8]
push edx
call fcn.00402836
mov eax, dword [ebp - 4]
push eax
call fcn.00402836
add esp, 8
push esi
call fcn.0040135c
int3