joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0x14], ebx
je 0x40291f
mov esi, 5
lea esp, [esp]
push ebx
push ebx
push 1
dec esi
push ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4028cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x40286b
mov edx, dword [ebp - 0xc]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40283e
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.ProcessOverlappedIoRequest:_WaitForSingleObject_failed
jmp 0x402860
mov edx, dword [ebp + 8]
push ebx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4028c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.ProcessOverlappedIoRequest:_GetOverlappedResult_failed
push ecx
mov esi, eax
call fcn.00403900
add esp, 4
cmp esi, ebx
je 0x4028c9
mov edi, dword [ebp + 8]
push edi
call fcn.00401000
push eax
push esi
push str.ProcessOverlappedIoRequest:_failed__error__d__usbd_status__.8x
call fcn.00403900
add esp, 0x10
cmp dword [ebp - 0x20], 0x103
jne 0x4028b3
push edi
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [ebp - 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4028b3
push str.ReadPipe__the_I_O_may_not_be_cancelled
call fcn.00403900
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
push str.ReadPipe__ProcessOverlappedIoRequest_failed__nAtt:__d
call fcn.00403900
add esp, 8
mov edi, 0xfffffff0
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
je 0x4028ee
push esi
push eax
push ecx
push str.ReadPipe:_failed_to_read__cbBuffer:__d__cbRead:__d__nAtt:__d
call fcn.00403900
mov eax, dword [ebp - 4]
add esp, 0x10
mov edi, 0xfffffff0
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x402914
cmp esi, ebx
jne 0x4027c0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.ReadPipe:_DFUERROR_INVALID_PARAM
call fcn.00403900
add esp, 4
pop edi
pop esi
mov eax, 0xffffffed
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0x14], esi
je 0x402ab9
mov dword [ebp - 4], 5
jmp 0x402960
dec dword [ebp - 4]
push esi
push esi
push 1
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp + 0x10]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
xor edi, edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402a65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x402a04
push 0x1388
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4029d6
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.ProcessOverlappedIoRequest:_WaitForSingleObject_failed
jmp 0x4029f9
mov ecx, dword [ebp + 8]
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x402a63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.ProcessOverlappedIoRequest:_GetOverlappedResult_failed
push ecx
mov esi, eax
call fcn.00403900
add esp, 4
test esi, esi
je 0x402a63
mov edi, dword [ebp + 8]
push edi
call fcn.00401000
push eax
push esi
push str.ProcessOverlappedIoRequest:_failed__error__d__usbd_status__.8x
call fcn.00403900
add esp, 0x10
cmp dword [ebp - 0x1c], 0x103
jne 0x402a4d
push edi
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov edx, dword [ebp - 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402a4d
push str.WritePipe__the_I_O_may_not_be_cancelled
call fcn.00403900
add esp, 4
mov eax, dword [ebp - 4]
push eax
push str.WritePipe:_ProcessOverlappedIoRequest_failed__nAtt:__d
call fcn.00403900
add esp, 8
mov edi, 0xffffffef
xor esi, esi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
je 0x402a8a
mov edx, dword [ebp - 4]
push edx
push eax
push ecx
push str.WritePipe:_failed_to_write__cbBuffer:__d__cbWritten:__d__nAtt:__d
call fcn.00403900
mov eax, dword [ebp - 8]
add esp, 0x10
mov edi, 0xffffffef
mov ecx, dword [ebp + 0x14]
push ebx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
je 0x402aae
cmp dword [ebp - 4], esi
jne 0x402960
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.WritePipe:_DFUERROR_INVALID_PARAM
call fcn.00403900
add esp, 4
pop edi
pop esi
mov eax, 0xffffffed
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403f30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
mov eax, dword [0x4132bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x3a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RegGetValueW
push str.advapi32
mov dword [ebp - 0x3a4], 0x208
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x403fac
push str.SHRegGetValueW
push str.Shlwapi
call ebx
push eax
call edi
mov esi, eax
test esi, esi
jne 0x403fac
push str.Your_OS_is_too_fucking_old__n
call fcn.004050ad
add esp, 4
push 6
call fcn.004056de
lea ecx, [ebp - 0x3a4]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0
push 0x20000002
push str.InstallDir
push str.SOFTWAREApple_Inc.Apple_Application_Support
push reloc.WS2_32.dll_bind
call esi
mov edi, eax
test edi, edi
je 0x403fff
push edi
call fcn.00405222
push eax
push edi
push edi
push str.Error_0x_X___i_:__s_n
call fcn.004050ad
push str.Could_not_locate_Apple_Application_Support_folder_path_in_registry:_ABORTING_n
call fcn.004050ad
add esp, 0x18
push 7
call fcn.004056de
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0x411bc0
call ebx
test eax, eax
jne 0x404046
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.00405222
push eax
push edi
push edi
push str.Error_0x_X___i_:__s_n
call fcn.004050ad
lea ecx, [ebp - 0x210]
push ecx
push str.WARNING:_Could_not_load_ASL_from__ws_n
call fcn.004050ad
add esp, 0x1c
push str.CoreFoundation
call ebx
test eax, eax
jne 0x404087
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.00405222
push eax
push esi
push esi
push str.Error_0x_X___i_:__s_n
call fcn.004050ad
lea edx, [ebp - 0x210]
push edx
push str.Could_not_load_CoreFoundation_from__ws:_ABORTING_n
call fcn.004050ad
add esp, 0x1c
push 8
call fcn.004056de
lea eax, [ebp - 0x3a4]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0x20000002
push str.InstallDir
push str.SOFTWAREApple_Inc.Apple_Mobile_Device_Support
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x3a4], 0x208
call esi
test eax, eax
je 0x4040d4
call fcn.00403930
push str.Could_not_locate_Apple_Mobile_Device_Support_folder_path_in_registry:_ABORTING_n
call fcn.004050ad
add esp, 4
push 7
call fcn.004056de
push str.iTunesMobileDevice.dll
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.00405297
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
jne 0x404130
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.00405222
push eax
push esi
push esi
push str.Error_0x_X___i_:__s_n
call fcn.004050ad
lea ecx, [ebp - 0x210]
push ecx
push str.Could_not_load__ws:_ABORTING_n
call fcn.004050ad
add esp, 0x1c
push 8
call fcn.004056de
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048d2
mov esp, ebp
pop ebp
ret
Function at 0x4041c0
Capabilities:
Create tcp socket
Create thread
Create udp socket
Resume thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4132bc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov dword [ebp - 0x14], eax
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push 0x7f000001
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
movzx ecx, word [0x413fc4]
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_socket]
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push 0xffff
push eax
mov dword [0x415108], eax
mov dword [ebp - 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x404261
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.00405222
push eax
push esi
push esi
push str.Error_0x_X___i_:__s_n
call fcn.004050ad
push str.setsockopt___failed___ignorable_n
call fcn.004050ad
add esp, 0x18
mov ecx, dword [0x415108]
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4042ab
call fcn.00404d12
add eax, 0x20
push eax
call fcn.00405051
push 0xffffffffffffffff
push str.bind_error__i___n
call fcn.004050ad
call fcn.00404d12
add eax, 0x20
push eax
call fcn.00405051
add esp, 0x10
push 4
call fcn.004056de
mov edx, dword [0x415108]
push 0
push edx
call dword [sym.imp.WS2_32.dll_listen]
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push 0x404450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push str.Waiting_for_device..._n
call fcn.004050ad
call fcn.00404d12
add eax, 0x20
push eax
call fcn.00405051
mov edi, dword [sym.imp.iTunesMobileDevice.dll_AMDeviceNotificationSubscribe]
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
push 0x404360
call edi
add esp, 0x1c
test eax, eax
jne 0x404344
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffffffffffffffff
call esi
push str.RUN_LOOP_EXIT_n
call fcn.004050ad
add esp, 4
push 0x3e8
call esi
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push 0x404360
call edi
add esp, 0x14
test eax, eax
je 0x404314
push eax
push str.AMDeviceNotificationSubscribe___i_n
call fcn.004050ad
add esp, 8
push 5
call fcn.004056de
int3

Function at 0x4048d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4132bc]
jne 0x4048dc
repz ret
jmp fcn.004059a9
Function at 0x406a87
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
je 0x406aa2
cmp dword [ebp - 0x398], 0
je 0x406c6c
cmp dword [ebp + 0xc], 1
je 0x406c6c
cmp dword [ebp + 0xc], 8
jne 0x406c34
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
test dword [ecx + edi*8 - 1], ecx
push dword [ebx]
call fcn.00405dae
and al, 0xf9
inc ecx
or al, byte [eax - 0x5435b]
inc dword [eax]
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.00405dae
outsd dx, dword cs:[esi]
push 0x32
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00405d8c
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
invalid
invalid
invalid
cld

Function at 0x407f5b
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cdq
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x407f72
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00405dae
push edi
or byte [esi - 0x52], dh
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00405dae
inc eax
ror dword [esi + 0x348b4956], cl
mov eax, dword [ebx]
idiv dword [eax + 0x50746547]
Function at 0x10015f60
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x6f0
mov eax, dword [0x10028108]
xor eax, esp
mov dword [esp + 0x6ec], eax
mov eax, dword [0x10028d38]
sub eax, dword [0x10028d3c]
mov ecx, dword [0x10028d28]
push ebp
push esi
push edi
lea eax, [ecx + eax + 0x20]
mov ebp, 0x6e2
push ebp
mov dword [0x10028d28], eax
call fcn.1001621e
pop ecx
mov ecx, dword [0x10028d28]
add ecx, 0x91bd
push 0x23
mov dword [0x10028d24], ecx
pop ecx
sub ecx, dword [0x10028d3c]
push ebp
push eax
mov dword [0x10028d38], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [0x10028d28], eax
call fcn.10015775
mov ecx, dword [0x10028d40]
movzx edi, word [0x10028d52]
mov esi, dword [0x10028d3c]
mov dword [0x10028d28], eax
imul eax, eax, 0x6a8a
sub eax, dword [0x10028d38]
cmp edi, esi
lea eax, [ecx + eax - 0x3d]
mov dword [0x10028d40], eax
ja 0x1001601a
mov word [0x10028d66], ax
lea eax, [eax + esi - 9]
mov dword [0x10028d24], eax
sub eax, esi
add eax, 0x21
mov dword [0x10028d40], eax
lea eax, [esi + 8]
mov dword [0x10028d38], eax
call fcn.10015775
push 0x23
pop edx
sub edx, esi
cmp edi, esi
mov dword [0x10028d28], eax
lea ecx, [esi + eax - 0x2a]
mov dword [0x10028d24], edx
ja 0x10016049
mov word [0x10028d66], cx
add ecx, 0x18
movzx edx, word [0x10028d4e]
add edx, edi
cmp edx, 0x363
push ebx
jne 0x1001606b
lea edx, [ecx + ecx + 0x91bb]
lea edi, [esi + edx]
xor ebx, ebx
add ecx, edi
jmp 0x1001607c
movzx edx, word [0x10028d56]
add edx, esi
add ecx, edx
lea edx, [ecx + ecx - 0x2a]
xor ebx, ebx
movzx edi, word [0x10028d5c]
cmp edi, eax
mov dword [esp + 0x14], ebx
mov dword [0x10028d38], ecx
jb 0x100160ac
lea ecx, [eax + ecx*2 - 0x3d]
add word [0x10028d5e], cx
mov dword [0x10028d38], ecx
mov dword [0x10028d28], 0x21
cmp edi, ecx
jb 0x100160c0
add word [0x10028d5e], si
lea eax, [ecx + edx - 0x1c]
mov dword [0x10028d38], eax
call fcn.10015ad4
movzx edx, word [0x10028d4e]
movzx esi, word [0x10028d52]
mov ecx, dword [0x10028d3c]
add edx, esi
cmp edx, 0x363
mov dword [esp + 0x14], ebx
lea eax, [ecx + eax*4]
jne 0x100160f3
lea esi, [eax + eax + 0x91bb]
jmp 0x10016102
movzx esi, word [0x10028d56]
add esi, eax
add esi, ecx
lea esi, [esi + esi - 0x2a]
mov edi, esi
push 0x6e1
sub edi, ecx
lea eax, [esp + 0x1d]
push ebx
add edi, 0x21
push eax
mov dword [0x10028d38], edi
mov byte [esp + 0x24], bl
call fcn.1001a470
add esp, 0xc
cmp word [str.sidesun_people], 0x269b
jne 0x10016143
add edi, 0x269b
imul edi, edi, 0x6a88
mov dword [0x10028d38], edi
call fcn.1000100f
mov ecx, dword [0x10028d40]
mov eax, dword [0x10028d38]
lea eax, [ecx + eax - 0x3d]
add esi, eax
adc ebx, 0
cmp dword [0x10028d3c], 0xaa114af
pop ebx
jne 0x1001616e
mov eax, 0xec63d846
mov eax, esi
sub eax, dword [0x10028d24]
push ebp
lea eax, [ecx + eax + 0x20]
mov dword [0x10028d40], eax
lea eax, [esp + 0x18]
push eax
push str.Both_l
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [0x10028d28]
or eax, 0x10028d28

Function at 0x10016223
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10028108]
jne 0x1001622d
repz ret
jmp fcn.10017b31
Function at 0x1001eb58
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100193aa
xor ebx, ebx
cmp dword [0x1002eaac], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1001ec2d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1001eb98
xor eax, eax
jmp 0x1001ecf1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001eb91
push eax
call fcn.10019347
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1002eaac], eax
call esi
push eax
call fcn.10019347
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1002eab0], eax
call esi
push eax
call fcn.10019347
mov dword [0x1002eab4], eax
lea eax, [ebp - 8]
push eax
call fcn.1001a651
test eax, eax
pop ecx
pop ecx
je 0x1001ebfb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10017c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1001ec2d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10019347
cmp eax, ebx
pop ecx
mov dword [0x1002eabc], eax
je 0x1001ec2d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10019347
pop ecx
mov dword [0x1002eab8], eax
mov eax, dword [0x1002eab8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1001eca6
cmp dword [0x1002eabc], esi
je 0x1001eca6
push eax
call fcn.100193b3
pop ecx
call eax
cmp eax, ebx
je 0x1001ec73
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1002eabc]
call fcn.100193b3
pop ecx
call eax
test eax, eax
je 0x1001ec73
test byte [ebp - 0x18], 1
jne 0x1001eca6
lea eax, [ebp - 0xc]
push eax
call fcn.1001a688
test eax, eax
pop ecx
je 0x1001ec8e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10017c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1001ec9d
or dword [ebp + 0x10], 0x200000
jmp 0x1001ecd7
or dword [ebp + 0x10], 0x40000
jmp 0x1001ecd7
mov eax, dword [0x1002eab0]
cmp eax, esi
je 0x1001ecd7
push eax
call fcn.100193b3
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001ecd7
mov eax, dword [0x1002eab4]
cmp eax, esi
je 0x1001ecd7
push dword [ebp - 4]
push eax
call fcn.100193b3
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1002eaac]
call fcn.100193b3
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001d96
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 8
call fcn.1000a81b
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.1000a81b
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x10], 0
push 1
push dword [ebp + 8]
call fcn.10001eef
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x10001ec7
lea eax, [ebp - 4]
push eax
push 0xf01ff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
nop
nop
nop
push dword [ebp - 8]
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 1
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 2
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
push 0
push 0
push 0
push dword [ebp - 0xc]
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
nop
nop
nop
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
mov eax, dword [ebp - 0x10]
jmp 0x10001ecf
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.1000a815
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.1000a815
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8

Function at 0x100039f5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x14], 0
je 0x10003a3d
mov eax, 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
jmp 0x10003a6d
mov eax, 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
jmp 0x10003a6d
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10004aad
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push dword [0x1000fb4a]
call fcn.10004b4a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
nop
nop
nop
nop
mov dword [ebp - 4], eax
push dword [0x1000fb4a]
call fcn.10004cf7
cmp dword [ebp - 4], 1
jge 0x10004b05
mov eax, dword [ebp - 4]
jmp 0x10004b44
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004a7b
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10004b2a
mov eax, 0xffffffff
jmp 0x10004b44
cmp dword [ebp - 8], 0
jne 0x10004b3c
mov eax, dword [ebp - 4]
jmp 0x10004b44
mov eax, dword [ebp - 8]
jmp 0x10004b44
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10008083
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0xa
jle 0x100080d4
push 1
push dword [ebp + 8]
call fcn.10001eef
mov dword [ebp + 8], eax
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
mov eax, dword [ebp - 4]
jmp 0x100080de
mov eax, 0
jmp 0x100080de
mov esp, ebp
pop ebp
ret 4