joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d70f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3f9c]
mov eax, 0x401c
call fcn.004105e0
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x3f98], eax
mov eax, dword [ebp + 0x3fa4]
push ebx
push esi
push edi
mov dword [ebp - 0x74], eax
xor esi, esi
xor eax, eax
mov ebx, 0xffe
mov dword [ebp - 0x78], esi
push ebx
mov word [ebp + 0x2f98], ax
lea eax, [ebp + 0x2f9a]
push esi
push eax
mov dword [ebp - 0x70], esi
call fcn.00410610
xor eax, eax
push ebx
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push esi
push eax
call fcn.00410610
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
push 0x20019
push esi
push 0x42fc30
mov edi, 0x800
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d878
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x2f98]
push eax
push esi
jmp 0x40d867
lea eax, [ebp + 0x2f98]
push eax
push 0x42fc88
push 0x42fc24
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.004101b0
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x68]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d84f
push ebx
mov word [ebp + 0xf98], ax
lea eax, [ebp + 0xf9a]
push esi
push eax
call fcn.00410610
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push 0x42fce0
push dword [ebp - 0x7c]
mov dword [ebp - 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d84f
cmp dword [ebp - 0x6c], esi
jbe 0x40d84f
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1f98]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push 0x42fcf8
push dword [ebp - 0x7c]
mov dword [ebp - 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc dword [ebp - 0x70]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x2f98]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], edi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40d7b1
mov ecx, dword [ebp - 0x74]
lea eax, [ebp + 0x1f98]
push eax
call fcn.0040d1d7
mov ecx, dword [ebp + 0x3f98]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffe6
add ebp, 0x3f9c
leave
ret
Function at 0x40e05b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2f9c]
mov eax, 0x301c
call fcn.004105e0
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x2f98], eax
mov eax, dword [ebp + 0x2fa4]
push ebx
push esi
push edi
mov dword [ebp - 0x74], eax
xor eax, eax
mov edi, 0xffe
xor esi, esi
push edi
mov word [ebp + 0x1f98], ax
lea eax, [ebp + 0x1f9a]
push esi
push eax
mov dword [ebp - 0x70], esi
call fcn.00410610
xor eax, eax
push edi
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push esi
push eax
call fcn.00410610
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push esi
push 0x4301c0
mov ebx, 0x800
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e1c3
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1f98]
push eax
push esi
jmp 0x40e1b2
lea eax, [ebp + 0x1f98]
push eax
push 0x430218
push 0x4301b4
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.004101b0
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x68]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e19a
push edi
mov word [ebp + 0xf98], ax
lea eax, [ebp + 0xf9a]
push esi
push eax
call fcn.00410610
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push str.RuntimeLib
push dword [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e19a
cmp dword [ebp - 0x6c], esi
jbe 0x40e19a
mov eax, dword [ebp + 0x2fa8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x80]
push eax
push esi
push 0x430288
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc dword [ebp - 0x70]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1f98]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], ebx
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40e0fa
mov eax, dword [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e1c9
sub eax, edx
sar eax, 1
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp + 0x2f98]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.0040ffe6
add ebp, 0x2f9c
leave
ret
Function at 0x40e1f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
xor esi, esi
inc esi
mov dword [ebp - 8], esi
call fcn.0041075f
pop ecx
test eax, eax
je 0x40e22b
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00414bfa
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x40e279
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [0x43cd38]
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e24f
xor eax, eax
jmp 0x40e279
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40e26e
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40e3bb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0040e27c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [ebp - 4]
push eax
push 0x20006
push edi
push dword [0x43cd38]
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e3fd
xor eax, eax
pop edi
pop esi
leave
ret
push esi
push dword [ebp + 0xc]
push 1
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e421
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40e3f9
xor edi, edi
inc edi
jmp 0x40e414
Function at 0x40e660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004105e0
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x400
push esi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x40e6cf
push str.DeploymentRuleSet.jar
lea eax, [ebp - 0x804]
push eax
push str._sSunJavaDeployment_s
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040ebba
add esp, 0x14
test eax, eax
jle 0x40e6cf
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e6cf
test al, 0x10
jne 0x40e6cf
xor eax, eax
inc eax
jmp 0x40e6d1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040ffe6
leave
ret
Function at 0x40e9b9
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x238]
sub esp, 0x2b8
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x234], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp + 0x2c]
push esi
push eax
call fcn.00410610
add esp, 0xc
lea eax, [ebp + 0x2c]
push eax
push esi
push esi
push 0x2c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40ea14
xor eax, eax
mov ecx, dword [ebp + 0x234]
xor ecx, ebp
pop esi
call fcn.0040ffe6
add ebp, 0x238
leave
ret
xor eax, eax
push ebx
mov word [ebp + 0x10], ax
push edi
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x24], 7
mov dword [ebp + 0x20], esi
call fcn.0040f362
push str.JavaJava_Updatejucheck.exe
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040f564
add esp, 0xc
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp + 0x10]
call fcn.0040ec7c
push 0x22
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x10]
push 0x22
push eax
call fcn.0040f585
add esp, 0xc
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040f5e1
add esp, 0xc
push esi
push ebx
lea ecx, [ebp + 0x10]
call fcn.0040ec7c
push 0x40
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00410610
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [ebp + 8], 8
stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0x44
mov eax, ecx
jae 0x40eaae
lea eax, [ebp - 0xc]
cmp dword [ebp + 8], 8
mov edx, dword [ebp + 4]
lea eax, [eax + edx*2]
jae 0x40eabd
lea ecx, [ebp - 0xc]
push dword [ebp - 0x2c]
mov dword [ebp + 0x1c], esi
push eax
push ecx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], esi
call fcn.0040f604
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x2c], esi
call fcn.0040f30c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40eaee
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push esi
push esi
push 0x8000000
push ebx
push esi
push esi
push dword [ebp + 0x1c]
push eax
call fcn.0040b3a3
add esp, 0x28
test eax, eax
jne 0x40eb37
xor edi, edi
lea ecx, [ebp + 0x1c]
call fcn.0040eea9
push esi
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040ec7c
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040ec7c
mov eax, edi
pop edi
pop ebx
jmp 0x40e9fe
mov edi, ebx
jmp 0x40eb12

Function at 0x40ffe6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43cddc]
jne 0x40fff0
repz ret
jmp fcn.00417613
Function at 0x4207f9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x420820
call fcn.004126f7
mov dword [eax], esi
call fcn.004126e4
push 0x16
pop esi
mov dword [eax], esi
call fcn.00417603
mov eax, esi
jmp 0x420875
test dword [ebp + 0xc], 0xfffffff9
jne 0x420806
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42084d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041270a
pop ecx
call fcn.004126e4
mov eax, dword [eax]
jmp 0x420875
test al, 0x10
jne 0x420873
test al, 1
je 0x420873
test byte [ebp + 0xc], 2
je 0x420873
call fcn.004126f7
mov dword [eax], 5
call fcn.004126e4
mov dword [eax], 0xd
jmp 0x420844
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4278d5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041c38e
and dword [ebp - 0x14], 0
cmp dword [0x453f2c], 0
mov dword [ebp - 0x18], eax
jne 0x427988
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x427a30
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x432d2c
push ebx
call edi
test eax, eax
je 0x427a30
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x453f2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x453f30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x453f34], eax
call edi
push eax
call esi
mov dword [0x453f3c], eax
test eax, eax
je 0x427988
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x453f38], eax
mov eax, dword [0x453f38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4279e1
cmp dword [0x453f3c], ecx
je 0x4279e1
push eax
call esi
push dword [0x453f3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4279e1
test ebx, ebx
je 0x4279e1
call edi
test eax, eax
je 0x4279d8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4279d8
test byte [ebp - 8], 1
jne 0x4279e1
or dword [ebp + 0x10], 0x200000
jmp 0x427a14
mov eax, dword [0x453f30]
cmp eax, dword [ebp - 0x18]
je 0x427a14
push eax
call esi
test eax, eax
je 0x427a14
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x427a14
mov eax, dword [0x453f34]
cmp eax, dword [ebp - 0x18]
je 0x427a14
push eax
call esi
test eax, eax
je 0x427a14
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x453f2c]
call esi
test eax, eax
je 0x427a30
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x427a32
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffe6
leave
ret
Function at 0x1000103f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x16], 1
jne 0x10001154
cmp byte [esi + 0xc], 0
push ebx
push edi
jne 0x100010f9
mov eax, dword [esi + 0x12]
lea ecx, [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ecx
movzx ecx, byte [esi + 0x11]
push 0x40
push ecx
push eax
mov dword [esi + 0xd], eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push eax
call ebx
movzx eax, byte [esi + 0x11]
push eax
lea eax, [esi + 0x17]
push dword [esi + 0x12]
push eax
call fcn.10011940
movzx eax, byte [esi + 0x11]
mov ecx, dword [esi + 0x23]
push 5
add ecx, eax
lea eax, [eax + esi + 0x17]
push ecx
push eax
call fcn.10011940
movzx eax, byte [esi + 0x11]
push eax
push dword [esi + 0x23]
push dword [esi + 0x12]
call fcn.10011940
add esp, 0x24
lea eax, [ebp + 8]
push eax
movzx eax, byte [esi + 0x11]
push dword [ebp + 8]
push eax
push dword [esi + 0x12]
call edi
push eax
call ebx
lea eax, [ebp + 8]
push eax
push 0x40
push 0xb
push dword [esi + 0x23]
call edi
push eax
call ebx
push 0xb
push esi
push dword [esi + 0x23]
call fcn.10011940
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0xb
push dword [esi + 0x23]
jmp 0x10001149
lea eax, [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push 0x40
movzx eax, byte [esi + 0x11]
push eax
push dword [esi + 0x12]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push eax
call ebx
movzx eax, byte [esi + 0x11]
push eax
lea eax, [esi + 0x17]
push dword [esi + 0x12]
push eax
call fcn.10011940
movzx eax, byte [esi + 0x11]
push eax
push esi
push dword [esi + 0x12]
call fcn.10011940
add esp, 0x18
lea eax, [ebp + 8]
push eax
movzx eax, byte [esi + 0x11]
push dword [ebp + 8]
push eax
push dword [esi + 0x12]
call edi
push eax
call ebx
and byte [esi + 0x16], 0
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x10001157
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x16], 0
jne 0x10001228
cmp byte [esi + 0xc], 0
push ebx
push edi
jne 0x100011db
mov eax, dword [esi + 0x23]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp + 8]
mov dword [esi + 0xd], eax
push ecx
push 0x40
push 0xb
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push eax
call ebx
movzx eax, byte [esi + 0x11]
push eax
push dword [esi + 0x12]
push dword [esi + 0x23]
call fcn.10011940
movzx eax, byte [esi + 0x11]
push 5
lea ecx, [eax + esi + 0x17]
add eax, dword [esi + 0x23]
push ecx
push eax
call fcn.10011940
add esp, 0x18
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0xb
push dword [esi + 0x23]
call edi
push eax
call ebx
lea eax, [ebp + 8]
push eax
push 0x40
movzx eax, byte [esi + 0x11]
push eax
push dword [esi + 0x12]
call edi
push eax
jmp 0x100011f8
lea eax, [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push 0x40
movzx eax, byte [esi + 0x11]
push eax
push dword [esi + 0x12]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push eax
call ebx
movzx eax, byte [esi + 0x11]
push eax
lea eax, [esi + 0x17]
push eax
push dword [esi + 0x12]
call fcn.10011940
add esp, 0xc
lea eax, [ebp + 8]
push eax
movzx eax, byte [esi + 0x11]
push dword [ebp + 8]
push eax
push dword [esi + 0x12]
call edi
push eax
call ebx
pop edi
mov byte [esi + 0x16], 1
pop ebx
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1000123d
xor al, al
jmp 0x100012fc
push ebx
push esi
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x16], 1
jne 0x1000124f
push esi
call fcn.1000103f
pop ecx
push esi
call fcn.10001000
pop ecx
xor ebx, ebx
mov dword [ebp + 8], 0x1001c1ea
mov eax, dword [ebp + 8]
movzx ecx, byte [eax - 1]
push ecx
push eax
push edi
call fcn.10011c80
add esp, 0xc
test eax, eax
je 0x10001285
add dword [ebp + 8], 0xe
inc ebx
cmp dword [ebp + 8], 0x1001c23e
jl 0x1000125f
jmp 0x100012f8
imul ebx, ebx, 0xe
mov dword [esi + 0x12], edi
lea eax, [ebp + 8]
mov bl, byte [ebx + 0x1001c1e8]
push eax
movzx eax, bl
push 0x40
mov byte [esi + 0x11], bl
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
movzx eax, byte [esi + 0x11]
push eax
push edi
push esi
call fcn.10011940
push esi
call fcn.10001025
movzx eax, byte [esi + 0x11]
sub eax, esi
add esp, 0x10
lea eax, [eax + edi - 0x11]
mov dword [esi + 0xd], eax
mov eax, dword [ebp + 0xc]
mov byte [edi], 0xe9
inc edi
sub eax, edi
sub eax, 4
mov dword [edi], eax
lea eax, [ebp + 8]
push eax
mov byte [esi + 0x16], 1
movzx eax, byte [esi + 0x11]
push dword [ebp + 8]
push eax
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
pop esi
mov al, 1
pop ebx
pop edi
pop ebp
ret
Function at 0x100012ff
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10001311
xor al, al
jmp 0x100013f3
push ebx
push esi
mov esi, dword [ebp + 0x14]
cmp byte [esi + 0x16], 1
jne 0x10001323
push esi
call fcn.1000103f
pop ecx
push esi
call fcn.10001000
pop ecx
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp + 0x18]
and byte [esi + 0xc], 0
mov byte [esi + 0x11], cl
lea ecx, [ebp + 0x14]
push ecx
push 0x40
mov dword [esi + 0x12], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xb
push eax
mov dword [esi + 0x23], eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push eax
call ebx
push 0xb
push dword [ebp + 0xc]
push esi
call fcn.10011940
push 0xb
push 0x90
push dword [ebp + 0xc]
call fcn.100118e0
movzx eax, byte [ebp + 0x18]
push eax
mov dword [ebp + 0x18], eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.10011940
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add eax, ecx
sub edx, ecx
add esp, 0x24
sub edx, 5
mov byte [eax], 0xe9
mov dword [eax + 1], edx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x14]
push 0xb
push ecx
call edi
push eax
call ebx
lea eax, [ebp + 0x14]
push eax
push 0x40
push dword [ebp + 0x18]
push dword [ebp + 8]
call edi
push eax
call ebx
push esi
call fcn.10001025
mov eax, dword [esi + 0x23]
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0xd], eax
mov eax, dword [ebp + 8]
mov byte [eax], 0xe9
inc eax
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
lea ecx, [ebp + 0x14]
push ecx
mov byte [esi + 0x16], 1
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push eax
call edi
push eax
call ebx
mov al, 1
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x10002327
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push edi
xor edi, edi
push 0x12c
lea eax, [ebp - 0x148]
push edi
push eax
call fcn.100118e0
add esp, 0xc
lea eax, [ebp - 0x148]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x148]
push eax
call fcn.10011ee0
cmp byte [ebp + eax - 0x149], 0x5c
pop ecx
jne 0x10002386
lea eax, [ebp - 0x148]
push eax
call fcn.10011ee0
and byte [ebp + eax - 0x149], 0
pop ecx
lea eax, [ebp - 0x148]
push str.iphlpapi.dll
push eax
mov dword [ebp - 4], edi
call fcn.10011e00
pop ecx
lea eax, [ebp - 0x148]
pop ecx
push eax
call dword [0x10026970]
cmp eax, 0xffffffff
je 0x10002547
push ebx
lea eax, [ebp - 0x148]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.GetTcpTable
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 4]
push 1
push eax
push edi
call esi
push dword [ebp - 4]
call fcn.1001262a
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push 1
push eax
push ebx
call esi
test eax, eax
jne 0x1000253c
cmp dword [ebx], edi
mov dword [ebp - 8], edi
jle 0x1000253c
lea esi, [ebx + 0xc]
mov edi, 0x1002697c
cmp dword [esi - 8], 2
jne 0x1000252b
mov ax, word [esi]
push eax
call dword [0x10027600]
cmp ax, 0x15
je 0x10002494
mov ax, word [esi]
push eax
call dword [0x10027600]
cmp ax, 0x50
je 0x10002494
mov ax, word [esi]
push eax
call dword [0x10027600]
cmp ax, 0x51
je 0x10002494
mov ax, word [esi]
push eax
call dword [0x10027600]
cmp ax, 0x52
je 0x10002494
mov ax, word [esi]
push eax
call dword [0x10027600]
cmp ax, 0xcea
je 0x10002494
mov ax, word [esi]
push eax
call dword [0x10027600]
cmp ax, 0x1f90
je 0x10002494
mov ax, word [esi]
push eax
call dword [0x10027600]
cmp ax, 0x599
je 0x10002494
mov ax, word [esi]
push eax
call dword [0x10027600]
cmp ax, 0x15ff
jne 0x100024dd
push 0xa
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.100118e0
mov ax, word [esi]
add esp, 0xc
push eax
call dword [0x10027600]
movzx eax, ax
push eax
lea eax, [ebp - 0x1c]
push 0x10021590
push eax
call fcn.10011f5b
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.10012290
add esp, 0x14
test eax, eax
jne 0x100024dd
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.10011e00
pop ecx
pop ecx
push 0x1002613c
call fcn.10011ee0
cmp eax, 2
pop ecx
jbe 0x1000252b
push 0x1002613e
call fcn.10012be6
mov dword [ebp - 0xc], eax
mov ax, word [esi]
pop ecx
push eax
call dword [0x10027600]
movzx eax, ax
cmp eax, dword [ebp - 0xc]
jne 0x1000252b
push 0x1002613c
push edi
call fcn.10012290
pop ecx
test eax, eax
pop ecx
jne 0x1000252b
push 0x1002613c
push edi
call fcn.10011e00
pop ecx
pop ecx
inc dword [ebp - 8]
add esi, 0x14
mov eax, dword [ebp - 8]
cmp eax, dword [ebx]
jl 0x1000240a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
pop edi
leave
ret