joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102692d
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10a64dc]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x410], eax
mov eax, dword [0x10a6184]
mov edi, 0x10a6184
cmp eax, edi
mov ebx, 0x1004db0
je 0x1026982
test byte [eax + 0x1c], 1
je 0x1026982
cmp byte [eax + 0x19], 5
jb 0x1026982
push esi
push ebx
push 0x71
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov eax, dword [0x10a6184]
mov cx, word [esi]
xor edx, edx
cmp cx, 2
mov dword [ebp - 0x40c], edx
je 0x10269a5
cmp cx, 0x17
je 0x10269a5
mov dword [ebp - 0x40c], 0x80070057
jmp 0x1026a24
push 2
push edx
push edx
push 0x401
lea eax, [ebp - 0x408]
push eax
push 0x80
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x1026a0d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.01009676
test eax, eax
mov dword [ebp - 0x40c], eax
jl 0x10269e7
mov dword [ebp - 0x40c], 0x80004005
mov eax, dword [0x10a6184]
cmp eax, edi
je 0x1026a63
test byte [eax + 0x1c], 8
je 0x1026a24
cmp byte [eax + 0x19], 2
jb 0x1026a24
push esi
push ebx
push 0x72
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
jmp 0x1026a1f
mov ecx, dword [ebp - 0x410]
lea eax, [ebp - 0x408]
push eax
call fcn.0101ad5a
mov eax, dword [0x10a6184]
cmp eax, edi
je 0x1026a63
test byte [eax + 0x1c], 1
je 0x1026a63
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x40c], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x1026a63
mov ecx, dword [ebp - 0x410]
push dword [ecx]
push dword [ebp - 0x40c]
push ebx
push 0x73
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102b959
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
pop edi
pop esi
pop ebx
call fcn.01076f63
leave
ret 8
Function at 0x102903b
Capabilities:
Compare security identifiers
Get token membership

Disassembly:
mov edi, edi
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xffffffe0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x10a64dc]
mov dword [ebp - 4], eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
push esi
push edi
je 0x1029086
test byte [eax + 0x1c], 1
je 0x1029086
push 0x1005104
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov edi, 0x200
mov dword [ebp - 0x23c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x234]
push eax
push 1
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, eax
test esi, esi
jne 0x1029204
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x102924e
lea eax, [ebp - 0x234]
push eax
push 8
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
test esi, esi
je 0x1029210
lea eax, [ebp - 0x23c]
push eax
push edi
lea eax, [ebp - 0x220]
push eax
push 1
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x1029204
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea ecx, [ebp - 0x230]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x14
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x228], al
mov byte [ebp - 0x227], al
mov byte [ebp - 0x226], al
mov byte [ebp - 0x225], al
mov byte [ebp - 0x224], al
push 1
lea eax, [ebp - 0x228]
push eax
xor esi, esi
mov byte [ebp - 0x223], 5
call edi
test eax, eax
je 0x1029204
cmp dword [ebp - 0x230], esi
je 0x1029204
push dword [ebp - 0x230]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1029191
inc esi
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp esi, eax
je 0x1029204
lea ecx, [ebp - 0x238]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 6
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x22c], eax
push 1
lea eax, [ebp - 0x228]
push eax
xor esi, esi
call edi
test eax, eax
je 0x1029204
cmp dword [ebp - 0x238], esi
je 0x1029204
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x238]
push esi
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
je 0x10291f8
cmp dword [ebp - 0x22c], esi
je 0x10291f8
inc esi
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x102923b
test byte [eax + 0x1c], 1
je 0x102923b
cmp byte [eax + 0x19], 5
jb 0x102923b
push esi
push 0x1005104
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov ecx, dword [ebp - 4]
mov eax, esi
call fcn.01076f63
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1029210
Function at 0x105fe9f
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea esi, [edi + 0x4c]
cmp dword [esi], 0
je 0x105fedb
mov ecx, dword [edi + 0x50]
cmp eax, ecx
mov edx, 0x493e0
jb 0x105fed4
mov ebx, eax
sub ebx, ecx
cmp ebx, edx
jae 0x105fedb
cmp eax, ecx
jae 0x105ff24
sub eax, ecx
dec eax
cmp eax, edx
jb 0x105ff24
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
je 0x105feeb
push eax
call fcn.01024194
mov dword [esi], ebx
push esi
push dword [edi + 0x48]
call fcn.01024269
cmp eax, ebx
je 0x105ff05
push eax
mov dword [esi], ebx
call fcn.01009676
mov dword [ebp - 4], eax
jmp 0x105ff24
mov eax, dword [esi]
cmp eax, ebx
je 0x105ff1b
cmp eax, 0xffffffff
je 0x105ff1b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x50], eax
jmp 0x105ff24
mov dword [ebp - 4], 0x80004005
mov dword [esi], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10676b1
Capabilities:
Create thread

Disassembly:
mov eax, 0x1099db1
call fcn.01077478
push ecx
mov eax, dword [0x10a6184]
push ebx
push esi
mov ebx, 0x10a6184
cmp eax, ebx
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
je 0x10676f4
test byte [eax + 0x1c], 1
je 0x10676f4
cmp byte [eax + 0x19], 5
jb 0x10676f4
push edi
push 0x1007490
push 0xbe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
and dword [ebp + 8], 0
push 0x1b0
mov dword [esi + 0x24], edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor edi, edi
cmp ecx, edi
mov dword [ebp - 4], edi
je 0x106771b
call fcn.01045648
jmp 0x106771d
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, edi
mov dword [esi + 0x78], eax
je 0x1067753
push 0x1ec
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, edi
mov dword [ebp - 4], 1
je 0x106774a
call fcn.010560e7
jmp 0x106774c
xor eax, eax
cmp eax, edi
mov dword [esi + 0x7c], eax
jne 0x106775c
mov dword [ebp + 8], 0x8007000e
jmp 0x10677b9
mov ecx, dword [esi + 0x78]
push edi
push edi
push esi
push 0x1067694
push edi
push edi
mov dword [eax + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0xd4], eax
jne 0x10677b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01009676
mov dword [ebp + 8], eax
mov eax, dword [0x10a6184]
cmp eax, ebx
je 0x10677f6
test byte [eax + 0x1c], 2
je 0x10677be
cmp byte [eax + 0x19], 2
jb 0x10677be
push dword [ebp + 8]
push esi
push 0x1007490
push 0xbf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100ef6e
mov eax, dword [0x10a6184]
cmp eax, ebx
je 0x10677f6
test byte [eax + 0x1c], 1
je 0x10677f6
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp + 8], edi
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x10677f6
push dword [ebp + 8]
push 0x1007490
push 0xc0
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x106b404
Capabilities:
Send http response

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10a6184]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, 0x10a6184
cmp eax, edi
mov dword [ebp - 4], ecx
je 0x106b448
test byte [eax + 0x1c], 1
je 0x106b448
cmp byte [eax + 0x19], 5
jb 0x106b448
push dword [ebp + 0x10]
push ebx
push 0x1007888
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100ef6e
mov eax, dword [0x10a6184]
mov esi, dword [ebp + 8]
and dword [ebp + 0xc], 0
test esi, esi
jne 0x106b45f
mov dword [ebp + 0xc], 0x80070057
jmp 0x106b597
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x106b494
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01009676
mov dword [ebp + 0xc], eax
test eax, eax
mov eax, dword [0x10a6184]
jl 0x106b597
mov dword [ebp + 0xc], 0x8000ffff
jmp 0x106b597
mov eax, dword [0x10a6184]
cmp eax, edi
je 0x106b4c7
test byte [eax + 0x1d], 4
je 0x106b4c7
cmp byte [eax + 0x19], 5
jb 0x106b4c7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [0x10a6184]
push 0x1007888
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
test bl, 2
jne 0x106b4cf
or ebx, 1
xor ecx, ecx
push ecx
push esi
push ecx
push ecx
push ecx
lea ecx, [esi + 0x1b8]
push ecx
push 1
mov eax, ebx
push eax
push dword [esi + 0x34]
mov eax, dword [ebp - 4]
push dword [esi + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.HTTPAPI.dll_HttpSendResponseEntityBody]
mov ebx, eax
mov eax, dword [0x10a6184]
cmp eax, edi
je 0x106b55f
test byte [eax + 0x1d], 4
je 0x106b531
movzx ecx, byte [eax + 0x19]
mov edx, ebx
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x106b531
push ebx
push 0x1007888
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov eax, dword [0x10a6184]
cmp eax, edi
je 0x106b55f
test byte [eax + 0x1d], 4
je 0x106b55f
cmp byte [eax + 0x19], 5
jb 0x106b55f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [0x10a6184]
push 0x1007888
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
test ebx, ebx
jne 0x106b56b
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
jmp 0x106b592
cmp ebx, 0x3e5
jne 0x106b582
mov eax, dword [esi + 0x24]
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], 1
jmp 0x106b592
push ebx
mov dword [esi + 0x24], 0xf
call fcn.01009676
mov dword [ebp + 0xc], eax
mov eax, dword [0x10a6184]
cmp eax, edi
pop edi
pop esi
pop ebx
je 0x106b5cf
test byte [eax + 0x1c], 1
je 0x106b5cf
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp + 0xc], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x106b5cf
push dword [ebp + 0xc]
push 0x1007888
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov eax, dword [ebp + 0xc]
leave
ret 0xc
Function at 0x106caf5
Capabilities:
Send http response

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
push ebx
push esi
mov esi, ecx
je 0x106cb28
test byte [eax + 0x1c], 1
je 0x106cb28
push 0x1007888
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov eax, dword [esi + 0xd8]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xdc], 1
je 0x106cb6d
cmp eax, 0xffffffff
je 0x106cb6d
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x106cb6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01009676
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x106cb85
mov dword [ebp - 4], 0x8000ffff
jmp 0x106cb85
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x106cb85
cmp eax, 0xffffffff
je 0x106cb85
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x20], ebx
push edi
push 0x46
pop ecx
xor eax, eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
mov word [ebp - 0x114], 0x1f7
pop edi
jmp 0x106cbc0
mov ecx, esi
call fcn.0106ca07
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x11c]
push ecx
push 1
push edx
push eax
push dword [esi + 0x18]
call dword [sym.imp.HTTPAPI.dll_HttpSendHttpResponse]
cmp dword [esi + 8], ebx
jne 0x106cb9f
cmp dword [ebp - 4], ebx
jl 0x106cbe2
mov esi, dword [esi + 0x148]
jmp 0x106cbde
mov eax, esi
mov ecx, dword [eax + 8]
mov esi, dword [esi]
call fcn.0106a45c
cmp esi, ebx
jne 0x106cbd2
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x106cc1f
test byte [eax + 0x1c], 1
je 0x106cc1f
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 4], ebx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x106cc1f
push dword [ebp - 4]
push 0x1007888
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x106dcbc
Capabilities:
Start http server

Disassembly:
mov eax, 0x109a032
call fcn.01077478
push ecx
push ecx
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
push ebx
push esi
push edi
mov ebx, ecx
je 0x106dcf4
test byte [eax + 0x1c], 1
je 0x106dcf4
mov edi, 0x1007888
push edi
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
jmp 0x106dcf9
mov edi, 0x1007888
xor esi, esi
push esi
push 1
mov word [ebp - 0x10], 1
mov word [ebp - 0xe], si
push dword [ebp - 0x10]
call dword [sym.imp.HTTPAPI.dll_HttpInitialize]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x106dd5c
mov esi, dword [0x10a6184]
cmp esi, 0x10a6184
je 0x106dd47
test byte [esi + 0x1d], 4
je 0x106dd47
cmp byte [esi + 0x19], 2
jb 0x106dd47
push eax
push edi
push 0x15
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.01009b3f
mov esi, dword [0x10a6184]
push dword [ebp - 0x10]
call fcn.01009676
mov edi, eax
test edi, edi
jl 0x106ddd1
mov edi, 0x80004005
jmp 0x106ddd1
push esi
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.HTTPAPI.dll_HttpCreateHttpHandle]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x106dd8e
mov esi, dword [0x10a6184]
cmp esi, 0x10a6184
je 0x106dd47
test byte [esi + 0x1d], 4
je 0x106dd47
cmp byte [esi + 0x19], 2
jb 0x106dd47
push eax
push edi
push 0x16
jmp 0x106dd36
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [ebx + 0xd8], eax
jne 0x106ddb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01009676
mov edi, eax
test edi, edi
jl 0x106ddcb
mov eax, dword [ebp + 8]
push dword [ebx + 0xd8]
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x24], eax
call fcn.01069293
mov edi, eax
mov esi, dword [0x10a6184]
xor eax, eax
mov dword [ebp - 0x10], eax
cmp edi, eax
mov dword [ebp - 4], eax
jl 0x106de56
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0xe0]
jae 0x106de56
push 0x248
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x106de0b
push ebx
mov ecx, eax
call fcn.0106a64d
jmp 0x106de0d
xor eax, eax
test eax, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], eax
jne 0x106de1d
mov edi, 0x8007000e
test edi, edi
jl 0x106de49
push dword [ebx + 0x18]
mov ecx, eax
call fcn.01069862
mov edi, eax
test edi, edi
jl 0x106de49
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x148]
call fcn.010384cb
test eax, eax
jne 0x106de49
mov edi, 0x8007000e
inc dword [ebp + 8]
test edi, edi
mov esi, dword [0x10a6184]
jge 0x106dde0
cmp esi, 0x10a6184
je 0x106de8c
test byte [esi + 0x1c], 1
je 0x106de8c
movzx eax, byte [esi + 0x19]
xor ecx, ecx
test edi, edi
setl cl
dec ecx
and ecx, 3
inc ecx
inc ecx
cmp eax, ecx
jl 0x106de8c
push edi
push 0x1007888
push 0x17
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.01009b3f
lea ecx, [ebp - 0x10]
call fcn.0106c238
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x106deac
Capabilities:
Register http server url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x10a6184]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x10a6184
cmp eax, edi
mov ebx, ecx
je 0x106df10
test byte [eax + 0x1c], 1
je 0x106deec
cmp byte [eax + 0x19], 5
jb 0x106deec
push dword [esi]
push 0x1007888
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009add
mov eax, dword [0x10a6184]
cmp eax, edi
je 0x106df10
test byte [eax + 0x1d], 4
je 0x106df10
cmp byte [eax + 0x19], 4
jb 0x106df10
push dword [esi]
push 0x1007888
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009add
mov eax, dword [esi]
push 0
push eax
push dword [ebx + 0x18]
call dword [sym.imp.HTTPAPI.dll_HttpAddUrl]
test eax, eax
mov dword [ebp + 8], eax
je 0x106df50
mov esi, dword [0x10a6184]
cmp esi, edi
je 0x106df5f
test byte [esi + 0x1d], 4
je 0x106df5f
cmp byte [esi + 0x19], 2
jb 0x106df5f
push eax
push 0x1007888
push 0x1a
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.01009b3f
jmp 0x106df59
push esi
lea ecx, [ebx + 0x1c]
call fcn.0100a82a
mov esi, dword [0x10a6184]
push dword [ebp + 8]
call fcn.01009676
cmp esi, edi
mov ebx, eax
je 0x106df9b
test byte [esi + 0x1c], 1
je 0x106df9b
movzx eax, byte [esi + 0x19]
xor ecx, ecx
test ebx, ebx
setl cl
dec ecx
and ecx, 3
inc ecx
inc ecx
cmp eax, ecx
jl 0x106df9b
push ebx
push 0x1007888
push 0x1b
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.01009b3f
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x1072b84
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
push ebx
push esi
push edi
mov esi, ecx
je 0x1072bb2
test byte [eax + 0x1c], 1
je 0x1072bb2
push 0x1007888
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov eax, dword [0x10a6184]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
cmp dword [esi + 0xdc], 1
jne 0x1072bca
mov edi, 0x8007045b
jmp 0x1072bf2
push dword [esi + 0xd8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x1072bed
call ebx
push eax
call fcn.01009676
mov edi, eax
test edi, edi
jl 0x1072bed
mov edi, 0x8000ffff
mov eax, dword [0x10a6184]
cmp dword [esi + 0xdc], 1
jne 0x1072c00
mov edi, 0x8007045b
xor ecx, ecx
cmp edi, ecx
jl 0x1072c41
cmp dword [esi + 0x20], ecx
jne 0x1072c23
push ecx
push ecx
push esi
push 0x1072b24
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
mov eax, dword [0x10a6184]
cmp dword [esi + 0x20], 0
jne 0x1072c41
call ebx
push eax
call fcn.01009676
mov edi, eax
test edi, edi
mov eax, dword [0x10a6184]
jl 0x1072c41
mov edi, 0x80004005
cmp eax, 0x10a6184
je 0x1072c76
test byte [eax + 0x1c], 1
je 0x1072c76
movzx ecx, byte [eax + 0x19]
xor edx, edx
test edi, edi
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x1072c76
push edi
push 0x1007888
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x1077be0
Capabilities:
Get system information on windows

Disassembly:
push 0x50
push 0x10a2e10
call fcn.0107726c
mov esi, ecx
mov dword [ebp - 0x28], esi
xor edi, edi
push edi
call fcn.01077b9f
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x1077c3d
lea eax, [ebp - 0x1c]
push eax
push edi
push 6
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp dword [ebp - 0x1c], edi
je 0x1077c3d
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x1077c3d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], edi
jmp 0x1077d78
push dword [ebp + 8]
push dword [ebp + 0xc]
push edi
push 0x4000004
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x24], eax
cmp eax, edi
je 0x1077d78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push edi
push edi
push edi
push 0xf001f
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x2c], eax
cmp eax, edi
je 0x1077d78
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, 0x448
cmp dword [ebp - 0x20], 0xb7
jne 0x1077d20
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x1c], eax
push edi
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
call ebx
test eax, eax
jne 0x1077d76
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x438]
mov dword [ebp - 0x2c], eax
push edi
push eax
call ebx
test eax, eax
jne 0x1077d76
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x438]
mov dword [ebp - 0x30], ecx
push dword [eax + 0x414]
push ecx
push dword [esi + 0x2c]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1077d76
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x34], eax
inc dword [eax + 0x434]
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x438]
mov dword [ebp - 0x38], eax
mov dword [esi + 0x1c], eax
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x2c], eax
jmp 0x1077d6c
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x24], ebx
cmp ebx, edi
jae 0x1077d2f
add ebx, dword [ebp - 0x5c]
jmp 0x1077d23
push 4
push 0x1000
push ebx
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1077d76
mov ecx, dword [esi + 0x2c]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x1077d58
push dword [ebp + 0xc]
call fcn.01077fc2
jmp 0x1077d5a
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [eax + 0x414], ebx
mov eax, dword [esi + 0x1c]
mov dword [eax + 0x41c], edi
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x20], eax
mov byte [esi + 0x28], 1
xor edi, edi
or dword [ebp - 4], 0xffffffff
call fcn.01077d91
mov al, byte [esi + 0x28]
call fcn.010772a7
ret 8