joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503ff0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b4913
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call 0x5528d1
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x4c2bf0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x4c0568
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [fcn.004b80c8]
push eax
mov ecx, edi
call 0x558043
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call 0x559701
test eax, eax
je 0x50410c
mov ecx, dword [esp + 0x3c]
call 0x558070
mov ecx, dword [esi + 0x1c]
mov ebp, dword [fcn.004b8730]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x5040d0
push edi
mov ecx, esi
call 0x555631
mov ecx, esi
call fcn.00504270
cmp dword [esp + 0x38], 1
jne 0x504105
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call 0x55579b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x506b20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x506b53
push esi
call fcn.00509c30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x506b4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x506bd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x506bc2
mov eax, dword [esi + 8]
test eax, eax
je 0x506b77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x506bbe
cmp eax, 2
je 0x506bc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x506b6a
cmp eax, 3
je 0x506b9d
cmp eax, 1
jne 0x506b6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x506b6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x506b6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00506c00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x506be8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00506c00
add esp, 4
pop esi
ret
Function at 0x10003b30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
jbe 0x10003b67
push ebx
push edi
mov edi, dword [esp + 0x14]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + edi]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10017040]
xor eax, edx
inc ecx
cmp ecx, esi
jb 0x10003b45
pop edi
pop ebx
not eax
pop esi
ret

Function at 0x10003cb0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
test ebx, ebx
jbe 0x10003d57
mov edi, dword [esp + 0x120]
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x10003d2b
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [edi + 1]
push ecx
push edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 1
call sub.WS2_32.dll_select
mov esi, eax
test esi, esi
je 0x10003d7b
lea eax, [esp + 0x18]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10003d7b
cmp esi, 0xffffffff
je 0x10003d6b
mov ecx, dword [esp + 0x130]
push ecx
push ebx
push ebp
push edi
call sub.WS2_32.dll_recv
test eax, eax
jge 0x10003d4d
call fcn.10009d87
cmp dword [eax], 4
jne 0x10003d8b
xor eax, eax
jmp 0x10003d4f
je 0x10003d57
sub ebx, eax
add ebp, eax
test ebx, ebx
ja 0x10003cd7
mov eax, dword [esp + 0x128]
pop edi
pop esi
sub eax, ebx
pop ebp
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffae2
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffae4
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffae6
pop ebx
add esp, 0x10c
ret

Function at 0x10003da0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10c
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
mov ebx, eax
jbe 0x10003e79
mov edi, dword [esp + 0x120]
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x10003e1a
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [edi + 1]
push 0
push edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 1
call sub.WS2_32.dll_select
mov esi, eax
test esi, esi
je 0x10003e64
lea eax, [esp + 0x18]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10003e64
cmp esi, 0xffffffff
je 0x10003e54
mov ecx, dword [esp + 0x130]
push ecx
push ebx
push ebp
push edi
call sub.WS2_32.dll_send
test eax, eax
jg 0x10003e3a
call fcn.10009d87
cmp dword [eax], 4
jne 0x10003e74
xor eax, eax
sub ebx, eax
add ebp, eax
test ebx, ebx
ja 0x10003dc6
mov eax, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffae2
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffae3
pop ebx
add esp, 0x10c
ret
mov eax, 0xfffffae5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x10004f10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x24
push esi
push edi
push 0x10017518
mov dword [esp + 0xc], 1
call fcn.100040a0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x18], ecx
mov cx, word [esp + 0x48]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x2c], eax
mov al, byte [esp + 0x54]
add esp, 4
mov word [esi + 0x26], cx
mov cl, byte [esp + 0x54]
mov dword [esi + 0x28], edx
mov dl, byte [esp + 0x58]
mov byte [esi + 0xc], al
mov byte [esi + 0xd], al
mov al, byte [esp + 0x5c]
mov byte [esi + 0x30], cl
mov ecx, dword [esp + 0x60]
mov byte [esi + 0x31], dl
mov edx, dword [esp + 0x64]
mov byte [esi + 0x32], al
mov eax, dword [esp + 0x68]
push 0
mov edi, 2
push 1
push edi
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edx
mov dword [esi + 0x8c], eax
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x10004fc7
push str.socket_error_n
call fcn.100040a0
add esp, 4
mov eax, 0xfffffaeb
pop edi
pop esi
add esp, 0x24
ret
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x10004ff9
push eax
push str.setsockopt_error__ret:_d_n
call fcn.100040a0
add esp, 8
mov eax, 0xfffffae7
pop edi
pop esi
add esp, 0x24
ret
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1000504b
xor edx, edx
mov eax, dword [esi + 0x18]
mov dword [esp + 0xc], edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], edx
push 0x10
mov dword [esp + 0x18], edx
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esi + 8]
push edx
mov word [esp + 0x18], di
mov dword [esp + 0x1c], eax
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
jne 0x1000504b
push str.bind_error_n
call fcn.100040a0
add esp, 4
mov eax, 0xfffffaea
pop edi
pop esi
add esp, 0x24
ret
mov cx, word [esi + 0x26]
mov eax, dword [esi + 0x20]
push ecx
mov word [esp + 0x20], di
mov dword [esp + 0x24], eax
call sub.WS2_32.dll_htons
mov word [esp + 0x1e], ax
mov eax, dword [esi + 8]
lea edx, [esp + 0x1c]
push 0x10
push edx
push eax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x10005093
push str.connect_error_n
call fcn.100040a0
add esp, 4
mov eax, 0xfffffae1
pop edi
pop esi
add esp, 0x24
ret
push esi
call fcn.10004cd0
mov edi, eax
add esp, 4
test edi, edi
je 0x100050b8
push edi
push str.AuthClient_error__ret:_d_n
call fcn.100040a0
add esp, 8
mov eax, edi
pop edi
pop esi
add esp, 0x24
ret
mov eax, dword [esi + 0x34]
test eax, eax
je 0x100050e5
mov ecx, dword [esi + 0x38]
push ecx
push esi
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x100050e5
push esi
push str.callback_error__ret:_d_n
call fcn.100040a0
add esp, 8
mov eax, esi
pop edi
pop esi
add esp, 0x24
ret
pop edi
xor eax, eax
pop esi
add esp, 0x24
ret
Function at 0x10005130
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push str.NetFilter.sys
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
lea edx, [esp + 8]
push 0
push edx
push 1
push 1
call fcn.100051d0
add esp, 0x14
lea eax, [esp + 4]
mov ecx, 0x10026840
push 1
push 0
push eax
push 0x100178fc
call fcn.100096a0
push 0
mov ecx, 0x10026840
call fcn.10009330
push 0
push 0
push 0x432220c0
mov ecx, 0x10026840
call fcn.100099f0
neg eax
sbb eax, eax
pop edi
inc eax
add esp, 0x104
ret

Function at 0x100051d0
Capabilities:
Modify service
Query service status
Stop service

Disassembly:
sub esp, 0x13c
push ebx
push ebp
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xf003f
push ebx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, ebx
je 0x1000530a
push esi
push 0xf01ff
push 0x100178fc
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
je 0x100052f1
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x158]
push 0x104
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.1000a0fd
add esp, 0xc
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesA]
lea eax, [esp + 0x48]
push eax
push esi
call fcn.10005320
add esp, 8
test eax, eax
jne 0x100052d6
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100052d6
cmp dword [esp + 0x14], 1
je 0x1000529b
lea edx, [esp + 0x2c]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1000529b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x160]
mov ecx, dword [esp + 0x15c]
push ebx
push ebx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x168]
lea edx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x168]
push edx
push 0xffffffffffffffff
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x100052d6
mov ebx, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x13c
ret
push ebp
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x13c
ret
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x13c
ret
Function at 0x10005320
Capabilities:
Query service configuration

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
xor ebp, ebp
push eax
push ebp
push ebp
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call ebx
mov ecx, dword [esp + 0x10]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebp
je 0x100053d5
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
push esi
push edi
call ebx
test eax, eax
je 0x100053c0
mov ecx, dword [esi + 0xc]
push 4
push str.___
push ecx
call fcn.1000a270
add esp, 0xc
test eax, eax
jne 0x10005388
mov ebp, 4
jmp 0x100053a4
mov edx, dword [esi + 0xc]
push 0xc
push str.SystemRoot_
push edx
call fcn.1000a270
add esp, 0xc
test eax, eax
jne 0x100053a4
mov ebp, 0xc
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x20]
add eax, ebp
push eax
push ecx
call fcn.1000a1a0
add esp, 8
mov edi, 1
test eax, eax
je 0x100053c4
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10006dd0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x10007910
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x70]
mov dword [esp], 0
test eax, eax
jne 0x10007927
add esp, 0x6c
ret
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0x12019f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x74], edi
je 0x10007a17
push ebp
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x10
jbe 0x10007a0e
push 0
push esi
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
je 0x10007a0e
push ebx
push esi
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x10007a06
xor eax, eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x15], eax
push ecx
mov dword [esp + 0x1d], eax
mov byte [esp + 0x18], 0
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
call fcn.10006dd0
add esi, 0xfffffff0
lea edx, [ebx + 0x10]
push esi
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.10006e00
lea ecx, [esp + 0x34]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.10006ec0
add esp, 0x18
mov ecx, 4
lea edi, [esp + 0x14]
mov esi, ebx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x100079f8
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [esp + 0x80]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov eax, dword [esp + 4]
pop edi
add esp, 0x6c
ret
Function at 0x10007a20
Capabilities:
Clear file content
Delete file
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
xor ebp, ebp
cmp esi, ebp
je 0x10007b51
cmp dword [esp + 0x7c], ebp
je 0x10007b51
mov ebx, dword [esp + 0x80]
cmp ebx, ebp
je 0x10007b51
push edi
push ebp
push 0x80
push 2
push ebp
push 3
push 0x12019f
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10007b47
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
push ebx
mov dword [esp + 0x15], eax
push 0x40
mov dword [esp + 0x1d], eax
mov byte [esp + 0x18], 0
mov dword [esp + 0x21], eax
mov dword [esp + 0x8c], ebp
mov word [esp + 0x25], ax
mov dword [esp + 0x84], ebp
mov byte [esp + 0x27], al
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10007b40
mov edx, dword [esp + 0x80]
push ebp
push 1
push 1
push 0x30
lea ecx, [esp + 0x94]
push 0x100142b0
push ecx
push esi
push ebx
push edx
push 1
call fcn.10003bb0
add esp, 0x28
test eax, eax
jne 0x10007b39
lea eax, [esp + 0x20]
push eax
call fcn.10006dd0
push ebx
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.10006e00
lea edx, [esp + 0x30]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.10006ec0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x18
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x10]
push ebp
push ecx
push 0x10
push edx
push edi
call ebx
mov ebp, eax
test ebp, ebp
je 0x10007b39
mov ecx, dword [esp + 0x84]
lea eax, [esp + 0x7c]
push 0
push eax
push ecx
push esi
push edi
call ebx
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret
Function at 0x10007b70
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0xc], ebx
je 0x10007c78
cmp dword [esp + 0x18], ebx
je 0x10007c78
cmp dword [esp + 0x1c], ebx
je 0x10007c78
push esi
call fcn.10007910
add esp, 4
test eax, eax
je 0x10007c78
push edi
push ebx
push 0x80
push 3
push ebx
push 3
push 0x12019f
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10007c6d
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [esp + 0x1c], ebx
sub esi, 0x10
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
push ebx
push 0x10
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x1c]
push ebx
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007c5e
cmp dword [esp + 0x1c], esi
jne 0x10007c5e
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
push 1
push 0
push 0x30
lea ecx, [esp + 0x20]
mov ebx, eax
push 0x100142b0
push ecx
push ebx
push esi
push ebp
push 1
mov dword [esp + 0x38], 0
call fcn.10003bb0
add esp, 0x28
test eax, eax
jne 0x10007c5e
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 1
mov dword [eax], edx
mov dword [ecx], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 8
ret
pop esi
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x10007c80
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x19c]
pop edi
sub eax, 0
je 0x10007d1c
dec eax
jne 0x10007d26
lea eax, [esp]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x10007ccb
xor eax, eax
add esp, 0x190
ret 0xc
push esi
call fcn.10003730
mov esi, dword [esp + 0x198]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x10029440
call fcn.10008660
add esp, 4
mov dword [0x1002943c], eax
test eax, eax
je 0x10007d07
push str._NET_AUTH_
push 0x10029440
call fcn.10008790
add esp, 8
mov dword [0x10026c28], esi
pop esi
mov eax, 1
add esp, 0x190
ret 0xc
call fcn.10003ae0
call sub.WS2_32.dll_WSACleanup
mov eax, 1
add esp, 0x190
ret 0xc
Function at 0x10008320
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x1002943c]
sub esp, 0x54
test eax, eax
push esi
mov esi, dword [esp + 0x5c]
je 0x10008344
push esi
push str.Enter_RealService_function.__s
push 0x10029440
call fcn.10008790
add esp, 0xc
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
test eax, eax
pop edi
je 0x1000837b
mov dword [esp + 0x1c], str.WinSta0Default
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x100083b2
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
mov eax, dword [0x1002943c]
pop esi
test eax, eax
je 0x100083ce
push str.Enter_RealService_function.
push 0x10029440
call fcn.10008790
add esp, 8
xor eax, eax
add esp, 0x54
ret
Function at 0x10008660
Capabilities:
Check if file exists
Create directory
Query or enumerate registry value

Disassembly:
sub esp, 0x30
push esi
lea eax, [esp + 4]
push edi
push eax
xor edi, edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [esp + 0x3c]
test eax, eax
jne 0x100086bf
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push esi
push edx
push edi
push str.InstallLocation
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], 0
je 0x10008782
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push ebx
push 0x10017e04
push esi
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push esi
call ebx
test eax, eax
jne 0x100086ec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.lognet.txt
push esi
call edi
push esi
call ebx
mov edi, eax
pop ebx
test edi, edi
je 0x10008782
lea edx, [esp + 0x14]
push edx
push esi
call fcn.1000ac62
add esp, 8
test eax, eax
jne 0x10008782
mov eax, dword [esp + 0x28]
cmp eax, 0xa00000
jl 0x10008750
push esi
call fcn.1000ab9f
push 0x10017df4
push esi
call fcn.10009ade
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10008782
push esi
call fcn.1000aa0f
push esi
call fcn.10009a30
add esp, 8
mov eax, edi
pop edi
pop esi
add esp, 0x30
ret
test eax, eax
je 0x10008782
push 0x10017df0
push esi
call fcn.10009ade
mov esi, eax
add esp, 8
test esi, esi
je 0x10008782
push 0x10017dec
push esi
call fcn.1000a9d3
push esi
call fcn.1000aa0f
push esi
call fcn.10009a30
add esp, 0x10
mov eax, edi
pop edi
pop esi
add esp, 0x30
ret

Function at 0x100089f0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
push eax
push ebx
push str.ALLUSERSPROFILE
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x10008a41
push edi
mov edi, str.Application_DataMicrosoftNetworkConnectionsPbk_rasphone.pbk
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
mov eax, esi
pop esi
pop ebx
ret