joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010940
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x100544c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1007fa04]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, dword [esp + 0x54]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebp
mov ebx, eax
xor edi, edi
cmp ebx, 0xffffffff
jne 0x100109bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
jne 0x100109bd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x100109b5
push esi
call fcn.10010660
add esp, 4
push esi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100109bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.10001490
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
xor ebp, ebp
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], bp
mov word [esp + 0x3e], 0x20
mov byte [esp + 0x18], 0
cmp ebx, 0xffffffff
mov dword [esp + 0x4c], ebp
jne 0x10010a2c
push edi
push esi
lea eax, [esp + 0x1c]
push str.Cant_create_directory___s_._OS_errno_is__d
push eax
call fcn.10045cb0
add esp, 0x10
cmp byte [0x1008383d], 0
jne 0x10010a1b
mov ecx, dword [esp + 0x38]
push ecx
mov byte [0x1008383d], 1
call sym.fbclient.dll_gds__log
add esp, 4
mov edx, dword [esp + 0x38]
push edx
call fcn.10044f80
mov eax, dword [esp + 0x3c]
add esp, 4
test bl, 0x10
jne 0x10010a72
push esi
lea eax, [esp + 0x18]
push str.Cant_create_directory___s_._File_with_same_name_already_exists
push eax
call fcn.10045cb0
add esp, 0xc
cmp byte [0x1008383d], 0
jne 0x10010a61
mov ecx, dword [esp + 0x38]
push ecx
mov byte [0x1008383d], 1
call sym.fbclient.dll_gds__log
add esp, 4
mov edx, dword [esp + 0x38]
push edx
call fcn.10044f80
mov eax, dword [esp + 0x3c]
add esp, 4
test bl, 1
je 0x10010ab8
push esi
lea eax, [esp + 0x18]
push str.Cant_create_directory___s_._Readonly_directory_with_same_name_already_exists
push eax
call fcn.10045cb0
add esp, 0xc
cmp byte [0x1008383d], 0
jne 0x10010aa7
mov ecx, dword [esp + 0x38]
push ecx
mov byte [0x1008383d], 1
call sym.fbclient.dll_gds__log
add esp, 4
mov edx, dword [esp + 0x38]
push edx
call fcn.10044f80
mov eax, dword [esp + 0x3c]
add esp, 4
lea ecx, [esp + 0x18]
cmp eax, ecx
mov dword [esp + 0x4c], 0xffffffff
je 0x10010ad5
cmp eax, ebp
je 0x10010ad5
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10052756
add esp, 0x3c
ret
Function at 0x100133d0
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword [esp + 0xc]
add eax, 0xffffffff
cmp eax, 5
push esi
push edi
ja case.0x100133de.4
jmp dword [eax*4 + 0x10013484]
mov edi, 0xf
jmp 0x10013408
mov edi, 2
jmp 0x10013408
mov edi, 1
jmp 0x10013408
xor edi, edi
jmp 0x10013408
or edi, 0xffffffff
jmp 0x10013408
mov edi, 0xfffffffe
mov ecx, dword [0x1007fa44]
push 8
call fcn.10001e90
test eax, eax
je 0x10013428
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x1001342a
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
push 4
push eax
push 0x10013350
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1001345e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1006e194
call fcn.10044e50
add esp, 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001347a
pop edi
mov dword [eax], esi
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret

Function at 0x10014050
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x164
mov eax, dword [0x1007fa04]
xor eax, esp
mov dword [esp + 0x160], eax
mov eax, dword [esp + 0x168]
push 0
push 0
push eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x1c], 0
call sym.fbclient.dll_isc_open_blob2
test eax, eax
je 0x100140be
lea ecx, [esp + 0x10]
push ecx
call sym.fbclient.dll_isc_print_status
xor eax, eax
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.10052756
add esp, 0x164
ret
push edi
mov edi, dword [sym.imp.MSVCR80.dll_fwrite]
lea edx, [esp + 0x64]
push edx
push 0x100
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x1c], 0
call sym.fbclient.dll_isc_get_segment
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100140fa
cmp eax, 0x1400002e
jne 0x10014116
mov eax, dword [esp + 8]
test ax, ax
je 0x100140c5
movzx eax, ax
push esi
push eax
lea ecx, [esp + 0x6c]
push 1
push ecx
call edi
add esp, 0x10
jmp 0x100140c5
cmp eax, 0x1400002f
pop edi
je 0x10014128
lea edx, [esp + 0x10]
push edx
call sym.fbclient.dll_isc_print_status
lea eax, [esp]
push eax
lea ecx, [esp + 0x14]
push ecx
call sym.fbclient.dll_isc_close_blob
mov ecx, dword [esp + 0x160]
xor ecx, esp
mov eax, 1
call fcn.10052756
add esp, 0x164
ret
Function at 0x10014ea0
Capabilities:
Execute command

Disassembly:
push 0xffffffffffffffff
push 0x1005479b
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x1007fa04]
xor eax, esp
mov dword [esp + 0x29c], eax
push esi
push edi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0x2ac]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2bc]
call fcn.10001490
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x90], eax
mov word [esp + 0x94], 0
mov word [esp + 0x96], 0x20
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x6c]
push ecx
push str.EDITOR
mov dword [esp + 0x2bc], 0
call fcn.10046a90
add esp, 8
test al, al
jne 0x10014f55
push 7
lea ecx, [esp + 0x70]
call fcn.10045a00
mov edx, dword [str.Notepad]
mov dword [eax], edx
mov cx, word [0x1006e818]
mov word [eax + 4], cx
mov dl, byte [0x1006e81a]
mov byte [eax + 6], dl
mov edi, dword [sym.imp.MSVCR80.dll__stat64i32]
lea eax, [esp + 0xc]
push eax
push esi
call edi
mov ecx, dword [esp + 0x98]
push esi
push ecx
push str._s___s_
lea edx, [esp + 0xac]
push 0x20d
push edx
call fcn.10046b10
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.MSVCR80.dll_system]
lea ecx, [esp + 0x5c]
push ecx
push esi
call edi
mov edx, dword [esp + 0x54]
add esp, 0x28
cmp edx, dword [esp + 0x5c]
jne 0x10014fbe
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x60]
jne 0x10014fbe
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x50]
jne 0x10014fbe
xor esi, esi
jmp 0x10014fc3
mov esi, 1
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x70]
cmp eax, edx
mov dword [esp + 0x2b4], 0xffffffff
je 0x10014fea
test eax, eax
je 0x10014fea
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
mov eax, esi
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.10052756
add esp, 0x2ac
ret 8

Function at 0x1001a030
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10054e68
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0xc]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
xor eax, eax
cmp edx, eax
mov dword [esp + 0x24], eax
jbe 0x1001a093
mov ecx, dword [esi + 0x14]
mov edi, edi
cmp dword [ecx], ebx
jne 0x1001a089
cmp dword [ecx + 4], edi
je 0x1001a0a7
add eax, 1
add ecx, 8
cmp eax, edx
jb 0x1001a080
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
call fcn.10019170
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.10001130
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
Function at 0x1001a0d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10054e98
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0xc]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
xor eax, eax
cmp edx, eax
mov dword [esp + 0x24], eax
jbe 0x1001a133
mov ecx, dword [esi + 0x14]
mov edi, edi
cmp dword [ecx], ebx
jne 0x1001a129
cmp dword [ecx + 4], edi
je 0x1001a147
add eax, 1
add ecx, 8
cmp eax, edx
jb 0x1001a120
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
call fcn.100191f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.10001130
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8

Function at 0x1001c440
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100553c9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
push ecx
mov ecx, dword [esp + 0x30]
mov eax, esp
mov dword [esp + 0x14], esp
push 1
push ecx
push eax
mov dword [esp + 0x30], 1
call fcn.1001b7d0
mov esi, dword [esp + 0x40]
add esp, 8
test esi, esi
mov eax, esp
mov byte [esp + 0x28], 2
mov dword [esp + 0x1c], esp
mov dword [eax], esi
je 0x1001c4a9
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov edi, dword [esp + 0x30]
push edi
mov byte [esp + 0x2c], 1
call fcn.10018620
add esp, 0xc
cmp dword [edi], 0
mov dword [esp + 0xc], 1
jne 0x1001c4d5
push 0x1400000c
call fcn.10017050
add esp, 4
test esi, esi
mov byte [esp + 0x20], 0
je 0x1001c4e7
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x100249d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x100568f8
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
lea edx, [esi + 4]
mov eax, 0x20
call fcn.10024210
mov ecx, dword [esp + 0x28]
lea edx, [esi + 0x24]
mov eax, 0x20
call fcn.10024210
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
xor ebx, ebx
mov word [esi + 0x46], bx
mov cx, word [eax]
mov word [esi + 0x44], cx
mov ax, word [edx]
mov ecx, dword [esp + 0x30]
mov word [esi + 2], ax
mov byte [esi + 1], bl
mov dx, word [ecx]
and dx, 0xfffe
movzx eax, dx
movsx eax, ax
add eax, 0xfffffe40
cmp eax, 0x84
ja case.0x10024a5d.449
movzx eax, byte [eax + 0x10024bec]
jmp dword [eax*4 + 0x10024bb8]
mov byte [esi], 0x25
jmp 0x10024a9e
mov byte [esi], 0xe
jmp 0x10024a9e
mov byte [esi], 0x1b
jmp 0x10024a9e
mov byte [esi], 0xa
jmp 0x10024a9e
mov byte [esi], 0xb
jmp 0x10024a9e
mov byte [esi], 0x23
jmp 0x10024a9e
mov byte [esi], 0xc
jmp 0x10024a9e
mov byte [esi], 0xd
jmp 0x10024a9e
mov byte [esi], 8
jmp 0x10024a9e
mov byte [esi], 7
jmp 0x10024a9e
mov byte [esi], 0x10
jmp 0x10024a9e
mov byte [esi], 9
push ebx
lea ecx, [esp + 0x40]
call fcn.10049a20
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x20], 4
call fcn.10024250
mov ecx, dword [esp + 0x40]
add esp, 4
mov esi, eax
cmp ecx, ebx
jmp 0x10024b8a
push str.data_type_not_understood
lea ecx, [esp + 0x38]
call fcn.10049600
mov edi, eax
push 0x1400003e
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebx
call fcn.10049a20
mov ebp, eax
push 0xfffffcdc
lea ecx, [esp + 0x2c]
call fcn.10049580
mov ebx, eax
push 0x14000074
lea ecx, [esp + 0x30]
call fcn.10049a20
mov esi, eax
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push ebx
mov byte [esp + 0x20], 3
call eax
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push ebp
call eax
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push edi
call eax
mov ecx, dword [esp + 0x24]
push ecx
mov eax, esi
call fcn.10024250
mov ecx, dword [esp + 0x30]
add esp, 4
test ecx, ecx
mov esi, eax
mov byte [esp + 0x1c], 2
je 0x10024b58
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
push 1
call eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov byte [esp + 0x1c], 1
je 0x10024b6e
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
push 1
call eax
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov byte [esp + 0x1c], 0
je 0x10024b84
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
push 1
call eax
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov dword [esp + 0x1c], 0xffffffff
je 0x10024b9d
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
push 1
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x1c
Function at 0x10025980
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x10056a08
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
lea edx, [esi + 6]
mov eax, 0x20
call fcn.10025300
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 0x26]
mov eax, 0x20
call fcn.10025300
mov cx, word [esp + 0x28]
mov ax, word [esp + 0x24]
mov dx, word [esp + 0x2c]
mov word [esi + 2], cx
push 0
lea ecx, [esp + 0x28]
mov word [esi], ax
mov word [esi + 4], dx
call fcn.10049a20
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
call fcn.10025340
mov ecx, dword [esp + 0x28]
add esp, 4
test ecx, ecx
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
je 0x10025a1e
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
push 1
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 0x1c

Function at 0x10025fe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10056a38
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1007fa04]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push edi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
call fcn.10001490
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], ecx
mov word [esp + 0x38], bx
mov word [esp + 0x3a], 0x20
mov byte [esp + 0x14], bl
movsx eax, word [esp + 0x50]
cmp eax, 0xfffffffc
mov dword [esp + 0x48], ebx
mov dword [esi], 1
mov dword [esi + 4], 0x14000074
mov dword [esi + 8], 4
mov dword [esi + 0xc], 0xffffff98
mov dword [esi + 0x10], 1
je 0x10026073
cmp eax, 0xfffffffd
je 0x100260c6
cmp eax, 0xfffffffe
jne 0x1002611d
mov ax, word [esp + 0x54]
cmp ax, bx
lea ecx, [esp + 0x10]
je 0x100260d2
movsx eax, al
push 1
mov dword [esp + 0x10], eax
mov bl, al
call fcn.10045a00
mov byte [eax], bl
movzx eax, word [edi + 0x28]
mov edi, dword [edi + 0x24]
push eax
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.10045a30
push eax
call sub.MSVCR80.dll_memcpy
mov bl, byte [esp + 0x18]
add esp, 0xc
push 1
lea ecx, [esp + 0x14]
call fcn.10045a30
mov bh, bl
mov byte [eax], bl
xor ebx, ebx
jmp 0x100260ea
mov dword [esi + 0x14], 0x14000120
mov dword [esi + 0x18], ebx
jmp 0x1002611d
movzx eax, word [edi + 0x28]
mov edi, dword [edi + 0x24]
push eax
push edi
push eax
call fcn.10045a00
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x34]
push esi
mov dword [esi + 0x14], 0x14000124
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0x1400003e
mov dword [esi + 0x20], 2
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
call fcn.100292d0
mov ecx, dword [esp + 0x38]
add esp, 4
lea edx, [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x48], 0xffffffff
je 0x1002613a
cmp ecx, ebx
je 0x1002613a
push ecx
mov ecx, dword [ecx - 4]
call fcn.10004590
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10052756
add esp, 0x40
ret
Function at 0x10029860
Capabilities:
Compare security identifiers

Disassembly:
push 0xffffffffffffffff
push 0x10056e48
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1007fa04]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x1c]
push edx
push 0x12
push eax
mov eax, dword [ecx + 0x54]
xor ebx, ebx
mov dword [esp + 0x28], ebx
call eax
test eax, eax
jne 0x10029946
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 2
push edx
mov dword [esp + 0x2c], ebx
call ebp
call fcn.10001490
mov ecx, eax
xor esi, esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x50], ebx
mov edi, eax
jbe 0x10029911
push eax
call fcn.10001e90
push ebx
mov esi, eax
push ebx
push esi
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x24]
push esi
push 2
mov ecx, edi
push eax
mov dword [esp + 0x40], ecx
call ebp
test eax, eax
setne al
cmp al, bl
jne 0x1002994d
cmp esi, ebx
mov dword [esp + 0x50], 0xffffffff
je 0x10029946
mov ecx, dword [esp + 0x28]
push esi
call fcn.10004590
xor al, al
jmp 0x10029a17
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x200
push 0x20
push 2
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x68], bl
mov byte [esp + 0x69], bl
mov byte [esp + 0x6a], bl
mov byte [esp + 0x6b], bl
mov byte [esp + 0x6c], bl
mov byte [esp + 0x6d], 5
call edi
test eax, eax
je 0x10029930
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x64]
push ecx
call edi
test eax, eax
je 0x10029930
cmp dword [esi], ebx
mov byte [esp + 0x17], bl
jbe 0x100299ed
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea edi, [esi + 4]
jmp 0x100299c0
mov edx, dword [esp + 0x20]
mov eax, dword [edi]
push edx
push eax
call ebp
test eax, eax
jne 0x100299e8
mov ecx, dword [esp + 0x24]
mov edx, dword [edi]
push ecx
push edx
call ebp
test eax, eax
jne 0x100299e8
add ebx, 1
add edi, 8
cmp ebx, dword [esi]
jb 0x100299c0
jmp 0x100299ed
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
push eax
call edi
mov ecx, dword [esp + 0x24]
push ecx
call edi
mov ecx, dword [esp + 0x28]
push esi
mov dword [esp + 0x54], 0xffffffff
call fcn.10004590
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10052756
add esp, 0x40
ret 4
Function at 0x1002a190
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
push edi
call fcn.1002a170
add esp, 8
test al, al
je 0x1002a1aa
mov eax, 1
pop ebx
ret
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_gethostbyname]
push esi
push edi
call ebp
test eax, eax
jne 0x1002a1f2
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor esi, esi
call ebx
cmp eax, 0x2734
jne 0x1002a1e8
lea ebx, [ebx]
cmp esi, 5
jge 0x1002a1e8
push edi
call ebp
test eax, eax
jne 0x1002a1ee
add esi, 1
call ebx
cmp eax, 0x2734
je 0x1002a1d0
xor eax, eax
pop esi
pop ebp
pop ebx
ret
mov ebx, dword [esp + 0x10]
cmp word [eax + 8], 2
jne 0x1002a1e8
mov esi, dword [eax + 0xc]
xor eax, eax
cmp dword [esi], eax
je 0x1002a1ea
mov edx, esi
xor ecx, ecx
cmp eax, dword [esp + 0x14]
jge 0x1002a213
mov edx, dword [edx]
mov edx, dword [edx]
mov dword [ecx + ebx], edx
add eax, 1
lea ecx, [eax*4]
cmp dword [ecx + esi], 0
lea edx, [ecx + esi]
jne 0x1002a206
pop esi
pop ebp
pop ebx
ret

Function at 0x1002ac70
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x10056f68
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
cmp word [edi + 0x74], 0
lea eax, [edi + 0x74]
je 0x1002acb7
push 4
push eax
mov eax, dword [edi + 0x6c]
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x6c]
cmp eax, 0xffffffff
lea esi, [edi + 0x6c]
je 0x1002accb
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [0x100839e0]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x48]
test eax, eax
mov dword [esp + 0x14], 0
mov dword [edi + 0x38], 2
je 0x1002ad01
push eax
call fcn.1002ac70
add esp, 4
mov dword [edi + 0x48], 0
mov ecx, edi
call fcn.1003bd50
mov ecx, dword [0x100839e4]
push edi
call fcn.1003c280
call fcn.10029f60
lea esi, [edi + 0x70]
call fcn.10029f60
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.10001130
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret
Function at 0x1002ad70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10056f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x1007fa04]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov bx, cx
push 0x104
lea eax, [esp + 0x9c]
push eax
xor ebp, ebp
push ebp
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push ebp
lea ecx, [esp + 0x20]
push ecx
call edi
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1002ae00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.INET_inet_error:_fork_DuplicateHandle_errno___d
call sym.fbclient.dll_gds__log
add esp, 8
jmp 0x1002af3b
call fcn.10001490
lea edx, [esp + 0x70]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x90], edx
mov word [esp + 0x94], bp
mov word [esp + 0x96], 0x20
mov byte [esp + 0x70], 0
mov dword [esp + 0x1a8], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x78]
push str._s__i__h__ld__lu
push edx
call fcn.10045cb0
mov edx, dword [esp + 0xa4]
add esp, 0x14
and bl, 0x80
neg bl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebp
push ebp
sbb ebx, ebx
and ebx, 0x60
add ebx, 0x28
push ebx
push ebp
push ebp
push ebp
push edx
push ebp
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x54], ebp
mov dword [esp + 0x84], ebp
mov word [esp + 0x82], bp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x7c], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1002aef5
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x70]
cmp eax, edx
mov dword [esp + 0x1a8], 0xffffffff
je 0x1002aeee
cmp eax, ebp
je 0x1002aeee
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
mov eax, 1
jmp 0x1002af3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.INET_inet_error:_fork_CreateProcess_errno___d
call sym.fbclient.dll_gds__log
mov eax, dword [esp + 0x1c]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x70]
cmp eax, ecx
mov dword [esp + 0x1a8], 0xffffffff
je 0x1002af3b
cmp eax, ebp
je 0x1002af3b
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
xor eax, eax
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.10052756
add esp, 0x198
ret