joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4160e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [0x43f9d0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4161d4
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x4161c5
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x4161a0
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x14]
push ebx
push ebx
push eax
push edi
call sym.__Unwind_ForcedUnwind_Phase2
add esp, 0x10
cmp eax, 7
je 0x416140
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x43f9d0]
mov ebx, dword [ebp - 0x14]
test eax, eax
jne 0x416156
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43f9d0]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x41618f
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x41617d
push edi
push edi
push ebx
mov esi, dword [eax + 0x28]
push esi
call sub.KERNEL32.dll_TlsSetValue
pop ecx
test eax, eax
pop ebx
jne 0x416180
call fcn.00419800
jmp 0x416180
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp dword [edx + 4]
call sym._fc_key_init_once
mov eax, dword [0x43f9d0]
jmp 0x41615d
mov ebx, dword [eax + 0x28]
call fcn.00419800
sub esp, 0xc
mov esi, eax
push ebx
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
push esi
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
add esp, 0xc
jmp 0x416112
call sym._fc_key_init_once
mov eax, dword [0x43f9d0]
jmp 0x416104
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43f9d0]
jmp 0x4160f9
Function at 0x4161f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [0x43f9d0]
mov edi, dword [ebp + 8]
test eax, eax
jne 0x41620f
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43f9d0]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x4162e8
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x4162e0
mov ebx, dword [eax + 0x28]
call fcn.00419800
sub esp, 0xc
mov esi, eax
push ebx
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
push esi
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4162d0
lea eax, [ebp - 0x14]
push esi
push esi
push eax
push edi
call sym.__Unwind_RaiseException_Phase2
add esp, 0x10
cmp eax, 7
je 0x416270
call sym._abort
nop
lea esi, [esi]
mov eax, dword [0x43f9d0]
mov ebx, dword [ebp - 0x14]
test eax, eax
jne 0x416286
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43f9d0]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x4162c2
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x4162b0
push edi
push edi
push ebx
mov esi, dword [eax + 0x28]
push esi
call sub.KERNEL32.dll_TlsSetValue
pop ecx
test eax, eax
pop ebx
jne 0x4162b3
call fcn.00419800
jmp 0x4162b3
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp dword [edx + 4]
call sym._fc_key_init_once
mov eax, dword [0x43f9d0]
jmp 0x41628d
lea eax, [ebp - 0x14]
push ebx
push ebx
push eax
push edi
call sym.__Unwind_ForcedUnwind_Phase2
jmp 0x41625e
mov eax, dword [eax + 0x24]
jmp 0x416245
call sym._fc_key_init_once
mov eax, dword [0x43f9d0]
jmp 0x41621a

Function at 0x4163c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push eax
push eax
call sub.KERNEL32.dll_TlsAlloc
mov edx, eax
cmp eax, 0xffffffff
je 0x4163f0
mov eax, dword [ebp + 8]
mov dword [eax], edx
push eax
push eax
mov eax, dword [ebp + 0xc]
push eax
push edx
call sym.___mingwthr_key_dtor
add esp, 0x10
mov esp, ebp
pop ebp
ret
call fcn.00419800
jmp 0x4163e5
Function at 0x416610
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x120
mov ebx, dword [esp + 0x130]
call sym.__errno
mov dword [eax], 0
test ebx, ebx
je 0x41681a
cmp byte [ebx], 0
je 0x416651
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
je 0x41680a
and eax, 0x10
jne 0x416668
call sym.__errno
mov dword [eax], 0x14
xor eax, eax
add esp, 0x120
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], ebx
lea edi, [esp + 0x10]
mov ebx, edi
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sym.__fullpath
mov ecx, edi
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x416690
test edx, 0x8080
jne 0x4166b5
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, ebx
lea eax, [ecx + 0x232]
mov dword [esp], eax
call sym._malloc
test eax, eax
mov ebx, eax
je 0x4167fa
mov dword [esp + 4], edi
lea edi, [eax + 0x22c]
mov dword [esp], edi
call sym._strcpy
cmp byte [ebx + 0x22c], 0
je 0x416786
mov ecx, edi
mov esi, edi
mov esi, esi
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x416700
test edx, 0x8080
jne 0x416725
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, esi
cmp byte [ecx + ebx + 0x22b], 0x2f
je 0x416786
mov ecx, edi
mov esi, edi
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x416740
test edx, 0x8080
jne 0x416765
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, esi
cmp byte [ecx + ebx + 0x22b], 0x5c
je 0x416786
mov dword [esp + 4], 0x416600
mov dword [esp], edi
call sym._strcat
mov dword [esp], edi
xor esi, esi
xor edi, edi
mov dword [esp + 4], 0x416602
call sym._strcat
xor edx, edx
mov eax, 0xffffffff
xor ecx, ecx
mov dword [ebx + 0x228], edi
lea edi, [ebx + 0x120]
test edi, 4
mov dword [ebx + 0x224], eax
mov eax, 0x104
mov dword [ebx + 0x118], esi
mov word [ebx + 0x11c], cx
mov word [ebx + 0x11e], dx
je 0x4167e9
xor eax, eax
lea edi, [ebx + 0x124]
mov dword [ebx + 0x120], eax
mov eax, 0x100
cld
mov ecx, eax
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov eax, ebx
jmp 0x41665e
call sym.__errno
mov dword [eax], 0xc
jmp 0x41665c
call sym.__errno
mov dword [eax], 2
jmp 0x41665c
call sym.__errno
mov dword [eax], 0xe
jmp 0x41665c

Function at 0x419d40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x401053
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push 4
push esi
push 0x40103f
push eax
push eax
mov dword [esi], 0x4143bc
mov word [esi + 8], ax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov eax, esi
ret

Function at 0x401076
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esi + 4]
test eax, eax
je 0x401093
cmp eax, 0xffffffff
je 0x401093
cmp byte [esi + 9], 0
jne 0x401093
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [esi + 9], 1
ret

Function at 0x401118
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.0040b810
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov byte [edi], bl
mov byte [eax], bl
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
lea eax, [ebp - 0x1040]
push eax
call fcn.00405bb0
lea eax, [ebp - 0x1040]
push eax
call fcn.0040cc8a
lea eax, [ebp - 0x1040]
push str.host:
push eax
call fcn.00405b20
add esp, 0x14
cmp eax, ebx
je 0x4011d9
add eax, 5
jmp 0x401177
cmp cl, 0x20
jne 0x40117d
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x401171
mov cl, byte [eax]
push esi
xor esi, esi
cmp cl, bl
je 0x4011a5
lea edx, [ebp - 0x40]
sub edx, eax
cmp cl, 0xd
je 0x4011a5
cmp cl, 0xa
je 0x4011a5
cmp esi, 0x3c
jge 0x4011a5
mov byte [edx + eax], cl
inc esi
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x40118b
lea eax, [ebp - 0x40]
push eax
mov byte [ebp + esi - 0x40], bl
call dword [sym.imp.WS2_32.dll_gethostbyname]
pop esi
cmp eax, ebx
je 0x4011d9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov cl, byte [eax]
mov edx, dword [ebp + 0xc]
mov byte [edx], cl
mov cl, byte [eax + 1]
mov edx, dword [ebp + 0x10]
mov byte [edx], cl
mov cl, byte [eax + 2]
mov edx, dword [ebp + 0x14]
mov byte [edx], cl
mov al, byte [eax + 3]
mov byte [edi], al
pop ebx
leave
ret 0x10
Function at 0x401a22
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push 0xc2
push 0
push edi
call fcn.00405e10
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x401b84
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call fcn.00405bb0
pop ecx
pop ecx
xor edx, edx
lea ecx, [ebp + edx - 0x100]
mov al, byte [ecx]
test al, al
je 0x401a77
cmp al, 0x61
jge 0x401a71
cmp al, 0x7a
jle 0x401a71
add al, 0x20
mov byte [ecx], al
inc edx
cmp edx, 7
jl 0x401a58
lea eax, [ebp - 0x100]
push str.rtmp:__
push eax
call fcn.00405b20
pop ecx
pop ecx
test eax, eax
je 0x401b84
push ebx
push esi
push 0x2f
push 0x3a
lea esi, [ebp - 0xf9]
mov ebx, edi
call fcn.004019e6
mov esi, eax
cmp byte [esi], 0x3a
pop ecx
pop ecx
je 0x401ab5
mov eax, 0x78f
jmp 0x401ad2
push 0
push 0x2f
inc esi
lea ebx, [ebp - 0x200]
call fcn.004019e6
mov esi, eax
mov eax, ebx
push eax
call fcn.00405cbe
add esp, 0xc
mov word [edi + 0x40], ax
test esi, esi
je 0x401b82
cmp byte [esi], 0
je 0x401b82
lea eax, [esi + 1]
mov dword [ebp + 8], eax
mov ebx, 0x414208
jmp 0x401af7
mov esi, eax
inc eax
push ebx
push eax
call fcn.00405b20
pop ecx
pop ecx
test eax, eax
jne 0x401af4
cmp dword [ebp + 8], esi
jae 0x401b1c
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x82]
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
cmp ecx, esi
jb 0x401b12
mov eax, esi
sub eax, dword [ebp + 8]
mov byte [eax + edi + 0x82], 0
test esi, esi
je 0x401b82
cmp byte [esi], 0
je 0x401b82
push 0
push 0x2f
inc esi
lea ebx, [ebp - 0x200]
call fcn.004019e6
mov eax, ebx
push eax
lea eax, [edi + 0x42]
push eax
call fcn.00405bb0
add esp, 0x10
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x401b82
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
push str._d._d._d._d
push edi
call fcn.00404371
add esp, 0x18
pop esi
pop ebx
mov eax, edi
leave
ret

Function at 0x401bbf
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
mov esi, dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
push edi
inc eax
push eax
push dword [ebp + 0xc]
jmp 0x401c1c
jle 0x401be8
add edi, eax
cmp edi, dword [ebp + 0x10]
jne 0x401bf1
test eax, eax
js 0x401c25
call ebx
cmp eax, dword [ebp - 4]
jae 0x401bfe
sub eax, dword [ebp - 4]
dec eax
jmp 0x401c01
sub eax, dword [ebp - 4]
cmp eax, 0x1388
jae 0x401c25
cmp edi, dword [ebp + 0x10]
jg 0x401c25
mov eax, dword [ebp + 0x10]
sub eax, edi
inc eax
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401be4
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401c2e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040b810
push ebx
xor ebx, ebx
push edi
mov byte [ebp - 0x1000], 3
inc ebx
mov edi, 0x601
call fcn.00405e9c
and eax, 0x8000007f
jns 0x401c5d
dec eax
or eax, 0xffffff80
inc eax
mov byte [ebp + ebx - 0x1000], al
inc ebx
cmp ebx, edi
jl 0x401c4c
push 0
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call edi
mov ebx, 0xc01
push ebx
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.00401bbf
cmp eax, ebx
je 0x401c9f
or eax, 0xffffffff
jmp 0x401d62
xor ebx, ebx
push ebx
push 0x600
lea eax, [ebp - 0x1fff]
push eax
push dword [ebp + 8]
call edi
lea eax, [esi + 0x420]
push eax
lea eax, [esi + 0x320]
push eax
lea eax, [esi + 0x220]
push eax
lea eax, [esi + 0x15b6]
push eax
lea eax, [ebp - 0x1000]
lea ecx, [esi + 0x120]
push eax
call fcn.0040150a
add esp, 0x14
push ebx
push eax
lea eax, [ebp - 0x1000]
push eax
push dword [esi + 0x1520]
call edi
push 0x12f
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.00401bbf
cmp eax, 0x12c
jge 0x401d14
push 0xfffffffffffffffe
jmp 0x401d61
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 8]
lea ebx, [ebp + ebx - 0x2000]
cmp byte [ebx], 0x53
jne 0x401d3a
push 6
push str.Success
push ebx
call fcn.00404530
add esp, 0xc
test eax, eax
je 0x401d68
cmp byte [ebx], 0x73
jne 0x401d53
push 6
push str.success
push ebx
call fcn.00404530
add esp, 0xc
test eax, eax
je 0x401d68
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x122
jl 0x401d17
push 0xfffffffffffffffd
pop eax
pop edi
pop ebx
leave
ret 4
lea eax, [ebp - 0x1000]
call fcn.004018c8
push 0
push eax
lea eax, [ebp - 0x1000]
push eax
push dword [esi + 0x1520]
call edi
lea eax, [esi + 0x1576]
push eax
lea eax, [ebp - 0x1000]
call fcn.00401943
pop ecx
push 0
push eax
lea eax, [ebp - 0x1000]
push eax
push dword [esi + 0x1520]
call edi
xor eax, eax
jmp 0x401d62

Function at 0x40276c
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x411403
call fcn.0040d164
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00401053
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], 0x4143ec
mov dword [esi + 0x24], ebx
call fcn.00403d9a
mov dword [esi + 0x20], eax
mov dword [eax], eax
mov eax, dword [esi + 0x20]
mov dword [eax + 4], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x30], ebx
call fcn.00403d9a
mov dword [esi + 0x2c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x2c]
mov dword [eax + 4], eax
lea eax, [esi + 0x38]
push eax
mov dword [eax + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10
lea edi, [esi + 0x10]
push ebx
push edi
call fcn.00405e10
add esp, 0xc
push dword [ebp + 0x1c]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x12], ax
push 2
pop eax
mov word [edi], ax
mov al, byte [ebp + 0xc]
mov byte [esi + 0x14], al
mov al, byte [ebp + 0x10]
mov byte [esi + 0x15], al
mov al, byte [ebp + 0x14]
mov byte [esi + 0x16], al
mov al, byte [ebp + 0x18]
mov byte [esi + 0x17], al
mov dword [esi + 0x54], 1
call fcn.00401076
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x403999
Capabilities:
Check for time delay via gettickcount
Check mutex on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push eax
call fcn.00405e8a
mov dword [esp], str.FmsActtact
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4039e6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
call esi
push eax
call fcn.00405e8a
pop ecx
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x850
call fcn.00405fce
pop ecx
test eax, eax
je 0x403a19
mov esi, eax
call fcn.00403906
mov esi, eax
jmp 0x403a1b
xor esi, esi
mov edi, esi
call fcn.004030cc
call fcn.0040325f
push esi
call fcn.00403370
push esi
call fcn.00403623
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403a1b

Function at 0x40a71d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416c4c]
jne 0x40a727
repz ret
jmp fcn.0040c2a5
Function at 0x40b0f2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416c4c]
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.00407eb9
and dword [ebp - 0x14], 0
cmp dword [0x417bc4], 0
mov dword [ebp - 0x18], eax
jne 0x40b1a5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b24d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b24d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x417bc4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x417bc8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x417bcc], eax
call edi
push eax
call esi
mov dword [0x417bd4], eax
test eax, eax
je 0x40b1a5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x417bd0], eax
mov eax, dword [0x417bd0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b1fe
cmp dword [0x417bd4], ecx
je 0x40b1fe
push eax
call esi
push dword [0x417bd4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b1fe
test ebx, ebx
je 0x40b1fe
call edi
test eax, eax
je 0x40b1f5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b1f5
test byte [ebp - 8], 1
jne 0x40b1fe
or dword [ebp + 0x10], 0x200000
jmp 0x40b231
mov eax, dword [0x417bc8]
cmp eax, dword [ebp - 0x18]
je 0x40b231
push eax
call esi
test eax, eax
je 0x40b231
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b231
mov eax, dword [0x417bcc]
cmp eax, dword [ebp - 0x18]
je 0x40b231
push eax
call esi
test eax, eax
je 0x40b231
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x417bc4]
call esi
test eax, eax
je 0x40b24d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b24f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a71d
leave
ret
Function at 0x11bea
Capabilities:
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x11ced
cmp dword [ebp + 0xc], esi
je 0x11ced
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
je 0x11ced
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x11ced
push dword [ebp + 8]
lea eax, [ebp - 8]
mov dword [ebx], esi
push eax
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], esi
mov dword [edi], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x60
lea eax, [ebp - 8]
mov dword [ebp - 0x20], eax
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x100020
lea eax, [ebp + 0x14]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 0x240
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x11ccb
push dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push 0x1000000
push 0x10
push esi
push eax
push 0xf001f
lea eax, [ebp + 0x10]
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x11ccb
push 4
push 0x100000
push 1
push edi
push esi
push esi
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp + 0x10]
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x11ccb
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], esi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp + 0x10], esi
je 0x11cde
push dword [ebp + 0x10]
call edi
mov dword [ebp + 0x10], esi
cmp dword [ebp + 0x14], esi
je 0x11ce8
push dword [ebp + 0x14]
call edi
mov eax, dword [ebp + 8]
jmp 0x11cf2
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x11d3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x11e10
cmp dword [ebp + 0xc], edi
je 0x11e10
cmp dword [ebp + 0x10], edi
je 0x11e10
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 4]
push eax
push edi
push edi
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x11da1
cmp ebx, 0x80000005
jne 0x11e25
mov ebx, dword [ebp - 4]
push 0x6b76715a
push ebx
push 1
mov dword [ebp + 0xc], ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
test edi, edi
jne 0x11dc2
mov ebx, 0xc000009a
jmp 0x11e15
push ebx
push 0
push edi
call fcn.00034d7e
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
jl 0x11e15
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jne 0x11e15
mov eax, dword [edi + 8]
cmp dword [ebp + 0x14], eax
jb 0x11e09
push eax
lea eax, [edi + 0xc]
push eax
push dword [ebp + 0x10]
call fcn.00034d96
add esp, 0xc
xor ebx, ebx
jmp 0x11e15
mov ebx, 0xc0000023
jmp 0x11e15
mov ebx, 0xc000000d
test edi, edi
je 0x11e25
push 0x6b76715a
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x12250
Capabilities:
Attach user process memory

Disassembly:
push 0x38
push 0x3b738
call fcn.00034e04
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x19], bl
mov edi, 0xc0000001
mov dword [ebp - 0x24], edi
cmp dword [ebp + 8], ebx
je 0x123e2
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x123e2
cmp dword [esi + 4], ebx
je 0x123e2
push 2
pop eax
cmp ax, word [esi + 2]
ja 0x123e2
cmp dword [ebp + 0xc], ebx
je 0x123e2
call dword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
mov byte [ebp - 0x28], al
xor eax, eax
mov word [esi], ax
movzx eax, word [esi + 2]
push eax
push ebx
push dword [esi + 4]
call fcn.00034d7e
add esp, 0xc
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
mov eax, dword [sym.imp.ntoskrnl.exe_PsProcessType]
push dword [eax]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
cmp eax, ebx
jl 0x12402
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp dword [ebp - 0x20], eax
je 0x122fb
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [ebp - 0x19], 1
mov dword [ebp - 0x24], edi
push dword [ebp - 0x20]
call fcn.00034da2
cmp eax, ebx
je 0x123e2
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0xc]
push 4
push 0x24
push esi
mov edi, dword [sym.imp.ntoskrnl.exe_ProbeForRead]
call edi
lea ebx, [esi + 0xc]
mov esi, dword [ebx]
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x123d9
cmp esi, ebx
je 0x123d9
push 4
push 0x48
push esi
call edi
mov eax, dword [esi + 0x18]
cmp dword [ebp + 0xc], eax
jb 0x123bb
mov ecx, dword [esi + 0x20]
add ecx, eax
cmp dword [ebp + 0xc], ecx
jae 0x123bb
push 1
push 8
cmp dword [ebp + 0x14], 1
jne 0x1236d
lea ebx, [esi + 0x24]
push ebx
call edi
push 2
movzx eax, word [ebx]
push eax
push dword [esi + 0x28]
jmp 0x1237c
lea ebx, [esi + 0x2c]
push ebx
call edi
push 2
movzx eax, word [ebx]
push eax
push dword [esi + 0x30]
call edi
movzx edi, word [ebx]
mov ebx, dword [ebp + 0x10]
movzx eax, word [ebx + 2]
add eax, 0xfffffffe
movzx ecx, di
cmp ecx, eax
jbe 0x12395
movzx edi, ax
movzx eax, di
push eax
cmp dword [ebp + 0x14], 1
jne 0x123a4
push dword [esi + 0x28]
jmp 0x123a7
push dword [esi + 0x30]
push dword [ebx + 4]
call fcn.00034d96
add esp, 0xc
mov word [ebx], di
and dword [ebp - 0x24], 0
jmp 0x123d9
mov esi, dword [esi]
jmp 0x12326
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
cmp byte [ebp - 0x19], 1
jne 0x123f2
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x123ff
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0x24]
call fcn.00034e49
ret 0x10