Function at 0x10012150
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dd1ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
push edi
mov dword [ebp - 0x1c], 0
push 0
push 0xd
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0
call fcn.10015600
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x1c], 1
test ecx, ecx
je 0x100121dd
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push ecx
cmovae eax, dword [ebp - 0x60]
push eax
push 0xd
push str.jx2client.log
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x50]
cmp eax, ecx
ja 0x100121d0
cmp dword [ebp - 0x4c], 8
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], eax
cmovae ecx, dword [ebp - 0x60]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x100121dd
sub eax, ecx
lea ecx, [ebp - 0x60]
push 0
push eax
call fcn.10015cd0
cmp dword [ebp - 0x4c], 8
lea edx, [ebp - 0x60]
cmovae edx, dword [ebp - 0x60]
sub esp, 8
call fcn.10016970
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x10012234
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001222a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012879
push edx
push ecx
call fcn.100ab029
add esp, 8
push ecx
mov edx, 0x10026ac0
mov ecx, 0x5ef695
call fcn.10027210
add esp, 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10026ac0
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017020
push ecx
mov edx, 0x10026b00
mov ecx, 0x5eabfa
call fcn.10027210
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x10026b00
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017020
push ecx
mov edx, 0x10026ae0
mov ecx, 0x5ea603
call fcn.10027210
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x10026ae0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017020
push ecx
mov edx, 0x10026b20
mov ecx, 0x5eacbe
call fcn.10027210
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x10026b20
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017020
push ecx
mov edx, 0x10026b40
mov ecx, 0x5f85cb
call fcn.10027210
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x10026b40
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017020
push ecx
mov edx, 0x10026b50
mov ecx, 0x65c57c
call fcn.10027210
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x10026b50
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017020
push ecx
mov edx, 0x1001fbb0
mov ecx, 0x6470e0
call fcn.10027210
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x1001fbb0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017020
push ecx
mov edx, 0x1001fd60
mov ecx, 0x6474b0
call fcn.10027210
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x1001fd60
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017020
push ecx
mov edx, 0x1001fc50
mov ecx, 0x6aab70
call fcn.10027210
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x1001fc50
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017020
push ecx
mov edx, 0x1001fef0
mov ecx, 0x427e00
call fcn.10027210
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x427e00
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017020
push ecx
mov edx, 0x10026b60
mov ecx, 0x443c0d
call fcn.10027210
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x10026b60
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017020
push ecx
mov ecx, dword [0x100e2080]
mov edx, 0x10020800
call fcn.10027210
mov dword [ebp - 0x20], eax
add esp, 4
mov dword [ebp - 0x1c], 0x10020800
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017020
push ecx
mov edx, 0x1001fe20
mov ecx, 0x64a400
call fcn.10027210
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x1001fe20
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10017020
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.LoadLibraryExA
push str.Kernel32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.LoadLibraryA
push str.Kernel32.dll
mov dword [ebp - 0x20], eax
call edi
push eax
call esi
push str.LoadLibraryW
push str.Kernel32.dll
mov dword [ebp - 0x24], eax
call edi
push eax
call esi
push str.LoadLibraryA
push str.KERNELBASE.dll
mov dword [ebp - 0x28], eax
call edi
push eax
call esi
push str.LoadLibraryW
push str.KERNELBASE.dll
mov dword [ebp - 0x2c], eax
call edi
push eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10012522
push ecx
mov edx, 0x10020be0
mov ecx, eax
call fcn.10027210
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x10020be0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10017020
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10012554
push ecx
mov edx, 0x10020cc0
mov ecx, eax
call fcn.10027210
add esp, 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0x10020cc0
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10017020
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10012586
push ecx
mov edx, 0x10020da0
mov ecx, eax
call fcn.10027210
add esp, 4
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0x10020da0
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10017020
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100125b8
push ecx
mov edx, 0x10020cc0
mov ecx, eax
call fcn.10027210
add esp, 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0x10020cc0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10017020
test esi, esi
je 0x100125e7
push ecx
mov edx, 0x10020da0
mov ecx, esi
call fcn.10027210
add esp, 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0x10020da0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10017020
mov edi, dword [0x1011bc9c]
mov eax, dword [edi]
cmp eax, edi
je 0x10012660
mov esi, dword [eax + 0x14]
test esi, esi
je 0x1001261c
cmp dword [esi], 0
jne 0x1001261c
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
sub edx, ecx
sub edx, 5
mov byte [ecx], 0xe9
mov dword [ecx + 1], edx
mov dword [esi], 1
mov edi, dword [0x1011bc9c]
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x10012644
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x10012640
nop
cmp eax, dword [ecx + 8]
jne 0x10012640
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x10012630
mov eax, ecx
jmp 0x1001265c
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x1001265c
nop
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x10012650
cmp eax, edi
jne 0x100125f3
mov byte [0x1011bc74], 1
call fcn.100129e0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 1
push 0x64beb9
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 1
push 0x64bed7
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 1
push 0x64bef5
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 1
push 0x64bf13
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 1
push 0x64b899
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 1
push 0x64b8b7
call esi
mov byte [0x64beb9], 0xb7
lea eax, [ebp - 0x2c]
push eax
mov byte [0x64bed7], 0xb7
push 0x40
mov byte [0x64bef5], 0xb7
mov byte [0x64bf13], 0xb7
push 1
mov byte [0x64b899], 0xb7
push 0x67b3d5
mov byte [0x64b8b7], 0xb7
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 1
push 0x67b430
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 1
push 0x67b470
call esi
mov byte [0x67b3d5], 5
lea ecx, [ebp - 0x2c]
mov byte [0x67b430], 5
mov byte [0x67b470], 5
mov dword [ebp - 0x2c], 0x10010c80
call fcn.10016550
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10012752
lock inc dword [eax + 4]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.10042e60
test al, al
je 0x1001287e
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 3
call fcn.10042250
sub esp, 0x18
mov byte [ebp - 0xd], 0
mov ecx, esp
push 0x10
push str.SeDebugPrivilege
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.10015bc0
mov cl, byte [ebp - 0xd]
call fcn.10012910
add esp, 0x18
call fcn.1001dbf0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100127bc
lock inc dword [eax + 4]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.10042e60
test al, al
je 0x10012890
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.10042250
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x48], xmm0
call fcn.100bb8c9
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
adc byte [ebx + 0x4374e8c8], cl
add dword [eax], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.10042250
mov esi, dword [ebp - 0x14]
or edi, 0xffffffff
test esi, esi
je 0x10012833
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10012833
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 8
call fcn.10042250
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x10012869
lock xadd dword [esi + 4], edi
dec edi
jne 0x10012869
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.100ba0f9
lea ecx, [ebp - 0x78]
call fcn.1000ffb0
push eax
mov byte [ebp - 4], 2
call fcn.10016500
lea ecx, [ebp - 0x78]
call fcn.1000ffb0
push eax
mov byte [ebp - 4], 5
call fcn.10016500
int3