joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000368d
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], bl
push 0xb
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.10017bc0
add esp, 0xc
mov byte [ebp - 0xc], 5
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
push ebx
push 1
push 2
mov byte [ebp - 9], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x10003711
push 0x33
push 0x402
push dword [0x1005b218]
push eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
je 0x10003711
lea eax, [esi + 0x38]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10003729
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10003729
lea eax, [ebp - 0xc]
push 0xa
push eax
mov byte [ebp - 0xb], 1
push dword [esi]
call fcn.10003264
add esp, 0xc
xor eax, eax
jmp 0x1000378a
push ebx
push 0x1f40
push dword [esi + 4]
push dword [0x1005b218]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x1000375f
mov edi, 0x1005b1e8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0xb8], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x14]
push ebx
push dword [esi + 0x10]
call fcn.10017bc0
push 0xa
lea eax, [ebp - 0xc]
pop edi
push edi
push eax
push dword [esi + 0x10]
call fcn.10018130
mov eax, dword [esi + 0x10]
add esp, 0x18
push 1
mov byte [eax + 0xa], bl
mov dword [esi + 0x18], edi
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003aec
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0xf]
mov byte [ebp - 0x10], bl
push 0xb
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.10017bc0
add esp, 0xc
mov byte [ebp - 0x10], 5
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
push ebx
push ebx
push ebx
push ebx
push 1
push 2
mov byte [ebp - 0xd], 1
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, dword [ebp + 8]
or edi, 0xffffffff
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x10003bce
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.10017bc0
add esp, 0xc
mov word [ebp - 0x20], 2
push ebx
call dword [sym.imp.WS2_32.dll_htonl]
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, edi
je 0x10003bce
push 8
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, edi
je 0x10003bce
push 8
push 0x406
push dword [0x1005b218]
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, edi
je 0x10003bce
lea edi, [esi + 0x38]
push 0x10
push ebx
push edi
call fcn.10017bc0
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
push edi
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x10003be6
lea eax, [ebp - 0x10]
push 0xa
push eax
mov byte [ebp - 0xf], 1
push dword [esi]
call fcn.10003264
add esp, 0xc
xor eax, eax
jmp 0x10003c3e
mov eax, dword [esi + 0x3c]
push 0x12c
mov dword [ebp - 0xc], eax
mov ax, word [esi + 0x3a]
push esi
mov byte [ebp - 0x10], 5
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], 1
mov word [ebp - 8], ax
mov dword [esi + 0x24], 3
call fcn.100037a3
push dword [esi + 0x14]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
push ebx
push dword [esi + 0x10]
call fcn.10017bc0
lea eax, [ebp - 0x10]
push 0xa
push eax
push dword [esi]
call fcn.10003264
sub eax, 0xa
add esp, 0x20
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003cc0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1005b270], 0
je 0x10003cd6
xor eax, eax
jmp 0x10003ef2
cmp dword [0x1005b26c], 0
je 0x10003ce9
mov eax, dword [0x1005b26c]
jmp 0x10003ef2
push 0x24
push 0
push 0x1005b248
call fcn.10017bc0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1005b248], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x1005b24c], eax
cmp dword [0x1005b24c], 0
jne 0x10003d8e
mov dword [0x1005b270], 1
cmp dword [0x1005b24c], 0
je 0x10003d41
mov eax, dword [0x1005b24c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1005b250], 0
mov dword [0x1005b254], 0
mov dword [0x1005b258], 0
mov dword [0x1005b25c], 0
mov dword [0x1005b260], 0
mov dword [0x1005b264], 0
mov dword [0x1005b268], 0
xor eax, eax
jmp 0x10003ef2
push str.ImagehlpApiVersionEx
mov ecx, dword [0x1005b24c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005b250], eax
push str.SymInitialize
mov edx, dword [0x1005b24c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005b254], eax
push str.SymSetOptions
mov eax, dword [0x1005b24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005b258], eax
push str.SymGetOptions
mov ecx, dword [0x1005b24c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005b25c], eax
push str.SymLoadModule64
mov edx, dword [0x1005b24c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005b260], eax
push str.SymGetModuleInfo64
mov eax, dword [0x1005b24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005b264], eax
push str.SymFromName
mov ecx, dword [0x1005b24c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005b268], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.10017bc0
add esp, 0xc
mov eax, 0xb
mov word [ebp - 8], ax
cmp dword [0x1005b250], 0
je 0x10003e73
cmp dword [0x1005b254], 0
je 0x10003e73
cmp dword [0x1005b260], 0
je 0x10003e73
cmp dword [0x1005b264], 0
je 0x10003e73
cmp dword [0x1005b268], 0
jne 0x10003e78
jmp 0x10003d22
lea ecx, [ebp - 8]
push ecx
call dword [0x1005b250]
movzx edx, word [ebp - 8]
cmp edx, 0xb
jge 0x10003e90
jmp 0x10003d22
push 0
push 0
mov eax, dword [0x1005b248]
push eax
call dword [0x1005b254]
test eax, eax
jne 0x10003ea9
jmp 0x10003d22
cmp dword [0x1005b25c], 0
je 0x10003ee3
cmp dword [0x1005b258], 0
je 0x10003ee3
call dword [0x1005b25c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xfffffff8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
or edx, 0x2704
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [0x1005b258]
mov dword [0x1005b26c], 0x1005b248
mov eax, dword [0x1005b26c]
mov esp, ebp
pop ebp
ret
Function at 0x10004ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10004d70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10004d65
mov edx, dword [ebp - 4]
cmp edx, dword [0x100590b0]
jb 0x10004ce5
mov eax, dword [ebp - 4]
cmp eax, dword [0x100590b4]
ja 0x10004ce5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10004cb5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10017bc0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10004d0b
jmp 0x10004d65
cmp dword [ebp - 0x10], 0x10000
jne 0x10004d4e
cmp dword [ebp - 0x14], 0x10000
jb 0x10004d4e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10004d41
mov eax, dword [ebp - 0x24]
jmp 0x10004d67
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10004d60
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.10004d70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10004cb5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10004da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10004e80
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10004e6d
mov edx, dword [ebp - 4]
cmp edx, dword [0x100590b0]
jb 0x10004dea
mov eax, dword [ebp - 4]
cmp eax, dword [0x100590b4]
ja 0x10004dea
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10004dba
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10017bc0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10004e10
jmp 0x10004e6d
cmp dword [ebp - 0x10], 0x10000
jne 0x10004e53
cmp dword [ebp - 0x14], 0x10000
jb 0x10004e53
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10004e46
mov eax, dword [ebp - 0x24]
jmp 0x10004e6f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10004e68
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.10004e80
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10004dba
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100051e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1005b284], eax
je 0x100051fe
mov eax, 0x10dd
jmp 0x100052df
mov eax, dword [0x1005b294]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000527c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000525a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000525a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10005350
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.1001397b
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10005206
mov dword [0x1005b294], 0
call fcn.100052f0
mov ecx, dword [0x1005b290]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x100052c9
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1001397b
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x10005294
mov dword [0x1005b290], 0
mov dword [0x1005b284], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10005820
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10005835
xor eax, eax
jmp 0x100058aa
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x10005862
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x100058a5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x100058a3
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x1000589f
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x100058a3
xor eax, eax
jmp 0x100058aa
jmp 0x10005859
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10005950
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1005b288], 0
je 0x10005969
mov eax, dword [0x1005b288]
jmp 0x10005a09
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000597b
xor eax, eax
jmp 0x10005a09
push 8
call fcn.10013718
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100059d1
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x100059ba
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1001397b
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x1005b288], eax
mov dword [0x1005b28c], 0
mov eax, dword [ebp - 4]
jmp 0x10005a09
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100059eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1000599b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x1005b290]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x1005b290], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10006300
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10004b70
add esp, 0xc
mov dword [ebp - 0x10], 0
cmp dword [0x1005b278], 0
jne 0x1000633d
cmp dword [0x1005b274], 0
je 0x1000633d
mov eax, dword [0x1005b274]
mov dword [0x1005b278], eax
cmp dword [0x1005b278], 0
je 0x100063ba
mov ecx, dword [0x1005b278]
cmp dword [ecx + 8], 0
je 0x100063ba
mov edx, dword [0x1005b278]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 8]
jb 0x100063ba
mov ecx, dword [0x1005b278]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100063ba
mov eax, dword [0x1005b278]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jb 0x10006389
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jbe 0x10006390
xor eax, eax
jmp 0x100064dd
mov ecx, dword [0x1005b278]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10017bc0
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x100064dd
mov edx, dword [0x1005b274]
mov dword [0x1005b278], edx
jmp 0x100063d6
mov eax, dword [0x1005b278]
mov ecx, dword [eax + 4]
mov dword [0x1005b278], ecx
cmp dword [0x1005b278], 0
je 0x10006416
cmp dword [0x1005b278], 0
je 0x10006414
mov edx, dword [0x1005b278]
cmp dword [edx + 8], 0
je 0x10006414
mov eax, dword [0x1005b278]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jb 0x10006414
mov edx, dword [0x1005b278]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10006414
jmp 0x1000636e
jmp 0x100063c8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10004c50
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100064db
mov eax, dword [ebp - 4]
mov dword [0x1005b278], eax
mov ecx, dword [0x1005b278]
mov dword [ecx], 0x52727464
mov edx, dword [0x1005b278]
mov dword [edx + 8], 0
mov eax, dword [0x1005b278]
mov ecx, dword [0x1005b274]
mov dword [eax + 4], ecx
mov edx, dword [0x1005b278]
mov dword [0x1005b274], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1005b278]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x38c
jmp 0x100064a7
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 1
jle 0x100064cb
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x48
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
jmp 0x1000649e
mov eax, dword [0x1005b278]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000636e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100064f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1005b284], eax
je 0x10006515
mov eax, 0x10dd
jmp 0x100066bd
cmp dword [0x1005b288], 0
je 0x10006528
mov eax, dword [0x1005b288]
jmp 0x100066bd
cmp dword [ebp + 0xc], 0
jne 0x10006538
mov eax, 0x57
jmp 0x100066bd
cmp dword [ebp + 8], 0
jne 0x10006548
mov eax, 6
jmp 0x100066bd
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10006571
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x1005b288], ecx
mov edx, dword [ebp + 8]
mov dword [0x1005b28c], edx
mov eax, dword [ebp - 0xc]
jmp 0x100066bd
push 0x18
call fcn.10013718
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x100065ca
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x1005b288], ecx
cmp dword [ebp - 0x18], 0
je 0x100065b9
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.1001397b
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x1005b28c], ecx
mov eax, dword [ebp - 0xc]
jmp 0x100066bd
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10004eb0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10004eb0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x1000660a
cmp dword [ebp - 8], 0x1e
jbe 0x10006626
mov dword [ebp - 0xc], 9
cmp dword [0x1005b27c], 0
je 0x10006621
jmp 0x1000659a
jmp 0x10006591
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1000664d
mov dword [ebp - 0xc], 9
cmp dword [0x1005b27c], 0
je 0x10006648
jmp 0x1000659a
jmp 0x10006591
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000667a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x10006591
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x1005b294]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x1005b294], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x100074f0
Capabilities:
Add user account
Add user account to group

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x10059004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x204]
push esi
push edi
push 0x200
push 0
push eax
mov edi, edx
mov dword [ebp - 0x608], 0
mov esi, ecx
call fcn.10017bc0
push 0x200
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.10017bc0
push 0x200
lea eax, [ebp - 0x604]
push 0
push eax
call fcn.10017bc0
push 0x100
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.10019163
push 0x100
lea eax, [ebp - 0x404]
push edi
push eax
call fcn.10019163
add esp, 0x3c
test ebx, ebx
je 0x10007590
push 0x100
lea eax, [ebp - 0x604]
push ebx
push eax
call fcn.10019163
add esp, 0xc
lea eax, [ebp - 0x204]
mov dword [ebp - 0x620], 1
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x608]
push eax
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x61c], 0
push eax
push 1
push 0
mov dword [ebp - 0x618], 0
mov dword [ebp - 0x614], 1
mov dword [ebp - 0x610], 0
call dword [sym.imp.NETAPI32.dll_NetUserAdd]
test eax, eax
je 0x10007609
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100136f9
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
mov dword [ebp - 0x60c], eax
lea eax, [ebp - 0x60c]
push 1
push eax
push 3
test ebx, ebx
jne 0x1000762b
push 0x1004f030
jmp 0x10007632
lea eax, [ebp - 0x604]
push eax
push 0
call dword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.100136f9
mov esp, ebp
pop ebp
ret
Function at 0x10008020
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10059004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.10017bc0
push 0x80
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10017bc0
add esp, 0x18
mov dword [ebp - 0x124], str.qemu
mov dword [ebp - 0x120], str.virtual
mov dword [ebp - 0x11c], str.vmware
mov dword [ebp - 0x118], str.vbox
push 0
push 0
push 3
push 0
push 3
push 0
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100081a7
push 0x80
xorps xmm0, xmm0
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x104]
movq qword [ebp - 0x114], xmm0
push 0
push eax
mov byte [ebp - 0x10c], 0
mov dword [ebp - 0x114], 0
call fcn.10017bc0
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.10017bc0
add esp, 0x18
lea eax, [ebp - 0x108]
push 0
push eax
push 0x80
lea eax, [ebp - 0x104]
push eax
push 9
lea eax, [ebp - 0x114]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100081a0
mov eax, dword [ebp - 0xf4]
mov cl, byte [ebp + eax - 0x104]
lea eax, [ebp + eax - 0x104]
test cl, cl
je 0x10008151
lea edx, [ebp - 0x84]
mov byte [edx], cl
lea eax, [eax + 1]
mov cl, byte [eax]
lea edx, [edx + 1]
test cl, cl
jne 0x10008143
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008160
sub ecx, edx
lea eax, [ebp - 0x84]
push ecx
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
xor esi, esi
nop dword [eax]
push dword [ebp + esi*4 - 0x124]
lea eax, [ebp - 0x84]
push eax
call fcn.10017070
add esp, 8
test eax, eax
jne 0x100081b9
inc esi
cmp esi, 4
jb 0x10008180
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100136f9
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esi, 1
je 0x10008209
sub esi, 1
je 0x100081ec
sub esi, 1
jne 0x10008214
mov eax, 3
pop edi
mov word [0x100599f0], ax
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100136f9
mov esp, ebp
pop ebp
ret
mov eax, 2
pop edi
mov word [0x100599f0], ax
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100136f9
mov esp, ebp
pop ebp
ret
mov eax, 1
mov word [0x100599f0], ax
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.100136f9
mov esp, ebp
pop ebp
ret