joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10192370
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0xffffffff
je 0x101923f8
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
je 0x101923d2
mov ecx, dword [esi + 0x18]
xor eax, eax
mov dword [esp + 9], eax
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov word [esp + 0x11], ax
push ecx
mov byte [esp + 0x10], bl
mov byte [esp + 0x17], al
call edi
push ebx
mov dword [esp + 0x10], eax
call edi
lea edx, [esp + 0xc]
push 8
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
push edx
push 0xd
push ebx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
pop edi
jge 0x101923d2
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 0xc]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
pop esi
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x10192c30
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10192c7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10192c7b
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.1024cbd1
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.1024cbd1
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x10192cc0
test esi, esi
je 0x10192cd1
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x10192ccd
push esi
call fcn.1024cbfa
add esp, 4
test ebx, ebx
jne 0x10192ce0
mov edi, dword [edi]
test edi, edi
je 0x10192ce0
push edi
call fcn.1024cbfa
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10195900
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x664
push ebx
mov ebx, dword [esp + 0x670]
push ebp
mov ebp, dword [esp + 0x670]
push esi
push edi
push ebx
push 4
push ebp
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov esi, eax
test esi, esi
je 0x10195a44
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
lea eax, [esp + 0x470]
push 0x102ba7b4
push eax
call fcn.10079fd1
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], 0
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x46c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x10195a44
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x40]
push 0x102bd3b0
push eax
call edi
test eax, eax
je 0x10195a1d
lea ecx, [esp + 0x40]
push 0x102bd3b8
push ecx
call edi
test eax, eax
je 0x10195a1d
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x266]
mov word [esp + 0x264], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x40]
stosw word es:[edi], ax
push edx
push ebp
lea eax, [esp + 0x26c]
push 0x102ba7a8
push eax
call fcn.10079fd1
mov al, byte [esp + 0x24]
add esp, 0x10
test al, 0x10
push ebx
je 0x10195a0b
lea ecx, [esp + 0x268]
push ecx
call fcn.10195900
add esp, 8
jmp 0x10195a1b
lea edx, [esp + 0x268]
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov esi, eax
test esi, esi
je 0x10195a39
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10195993
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x664
ret
Function at 0x1019ef20
Capabilities:
Access peb ldr_data
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10269100
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
mov ecx, esi
xor edi, edi
call fcn.100a4fb0
cmp eax, 0x1c
jb 0x1019f0a8
mov ecx, esi
call fcn.100a56b0
mov ebx, eax
mov al, byte [ebx + 6]
cmp al, 2
ja 0x1019f0c6
cmp al, 1
je 0x1019ef74
test al, al
je 0x1019ef74
xor eax, eax
mov ah, byte [ebx + 5]
jmp 0x1019ef76
xor eax, eax
xor ecx, ecx
mov cl, byte [ebx + 4]
add ecx, eax
je 0x1019f0e0
push ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x34], edi
lea edi, [ebx + 0x1a]
mov al, byte [ebx + 6]
cmp al, 1
je 0x1019efa1
test al, al
je 0x1019efa1
xor eax, eax
mov ah, byte [ebx + 5]
jmp 0x1019efa3
xor eax, eax
xor edx, edx
mov dl, byte [ebx + 4]
add edx, eax
mov eax, dword [esp + 0x34]
cmp eax, edx
jge 0x1019f090
mov eax, dword [esp + 0x38]
lea esi, [edi - 0x12]
push eax
push 1
push esi
call fcn.101a0630
mov eax, dword [0x1026e87c]
add esp, 0xc
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
xor ecx, ecx
xor edx, edx
mov cl, byte [edi - 0x10]
mov dx, word [edi]
shl ecx, 0x10
mov dword [esp + 0x24], 0
lea eax, [ecx + edx]
test eax, eax
je 0x1019f024
lea esi, [eax + ebx]
push 0xfde9
lea ecx, [esp + 0x18]
lea eax, [esi + 8]
push eax
call fcn.10094ff0
xor ecx, ecx
push 0xfde9
mov cx, word [esi + 4]
lea edx, [ecx + esi + 9]
lea ecx, [esp + 0x1c]
push edx
call fcn.10094ff0
mov esi, dword [ebp + 4]
push 0xffffffffffffffff
mov ecx, ebp
lea eax, [esi + 1]
push eax
call fcn.101a0c30
mov edx, dword [ebp]
mov eax, dword [esp + 0x10]
lea ecx, [esi + esi*2]
lea esi, [edx + ecx*4]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.10090d80
lea edx, [esp + 0x18]
lea ecx, [esi + 8]
push edx
call fcn.10090d80
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 1
call fcn.10090bf0
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.10090bf0
mov ecx, dword [esp + 0x34]
inc ecx
add edi, 0x14
mov dword [esp + 0x34], ecx
jmp 0x1019ef8f
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp + 0x30]
mov dword [eax], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x30]
mov eax, edi
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
mov dword [edx], 1
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x101a0630
Capabilities:
Print debug messages

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x838
test edx, edx
push ebx
je 0x101a07a4
mov ebx, dword [esp + 0x848]
test ebx, ebx
je 0x101a07a4
mov eax, dword [esp + 0x844]
push ebp
mov ebp, dword [edx + 4]
push esi
test eax, eax
push edi
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0x20
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x34], 0x400
mov dword [esp + 0x38], 0x800
mov dword [esp + 0x3c], 0x1000
mov dword [esp + 0x40], 0x100000
mov dword [esp + 0x44], 0x200000
je 0x101a071b
lea esi, [esp + 0x10]
mov edi, 7
cmp ebx, 1
jne 0x101a06fd
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
je 0x101a06f3
not eax
and eax, ecx
mov dword [edx + 4], eax
jmp 0x101a0713
mov eax, dword [esi + 4]
or eax, ecx
mov dword [edx + 4], eax
jmp 0x101a0713
cmp ebx, 2
jne 0x101a0713
mov eax, dword [edx + 4]
mov ecx, dword [esi]
test eax, ecx
jne 0x101a0713
mov ecx, dword [esi + 4]
or ecx, eax
mov dword [edx + 4], ecx
add esi, 8
dec edi
jne 0x101a06dc
jmp 0x101a0754
lea esi, [esp + 0x14]
mov edi, 7
cmp ebx, 1
jne 0x101a0739
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
jne 0x101a0747
mov eax, dword [esi - 4]
or eax, ecx
jmp 0x101a074b
cmp ebx, 2
jne 0x101a074e
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
je 0x101a074e
not eax
and eax, ecx
mov dword [edx + 4], eax
add esi, 8
dec edi
jne 0x101a0724
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x4a]
mov word [esp + 0x48], 0
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x850]
push ecx
push ebp
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x54]
push str.CFilePolicyMgr::ChangeTwoState_bSet__d__dwOldPolicy_0x_x__dwPolicy_0x_x_
push eax
call fcn.10079fd1
add esp, 0x14
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x838
ret
xor eax, eax
pop ebx
add esp, 0x838
ret
Function at 0x101a0f90
Capabilities:
Get user security identifier

Disassembly:
mov eax, dword [0x1030fde4]
sub esp, 0x120
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
push edi
jne 0x101a0fdc
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, 2
jne 0x101a0fd7
mov dword [0x1030fde8], eax
mov dword [0x1030fde4], eax
cmp dword [0x1030fde8], ebx
jne 0x101a0ff0
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x130]
mov edi, dword [esp + 0x134]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebp
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x101a103c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x101a103c
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov ecx, dword [esp + 0xc]
push esi
push ecx
call fcn.1024cbd1
mov edx, dword [esp + 0x18]
mov dword [edi], eax
lea eax, [edx + edx]
push eax
call fcn.1024cbd1
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x101a1081
test esi, esi
je 0x101a1092
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x101a108e
push esi
call fcn.1024cbfa
add esp, 4
test ebx, ebx
jne 0x101a10a1
mov edi, dword [edi]
test edi, edi
je 0x101a10a1
push edi
call fcn.1024cbfa
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x120
ret
Function at 0x101a17b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102692f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x1030fd8c]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
jne 0x101a199b
push 1
push 0x1030fd98
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
push 0x1030fd98
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [ebp - 0x34]
mov dword [0x1030fdb0], 0xc
mov dword [0x1030fdb8], esi
mov dword [0x1030fdb4], 0x1030fd98
call fcn.101c32c0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.1024be90
mov eax, dword [0x1030fdec]
mov byte [ebp - 4], 1
cmp eax, esi
mov dword [ebp - 0x24], str.S_1_1_0
mov dword [ebp - 0x20], str.S_1_15_2_1
mov dword [ebp - 0x1c], str.S_1_15_2_2
mov ebx, 3
jne 0x101a18b1
mov ecx, 0x44
xor eax, eax
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x14c]
mov ecx, 2
cmp eax, ecx
jne 0x101a18a7
mov eax, dword [ebp - 0x158]
cmp eax, 6
ja 0x101a189d
jne 0x101a18a7
cmp dword [ebp - 0x154], ecx
jb 0x101a18a7
mov dword [0x1030fdf0], 1
mov dword [0x1030fdec], 1
cmp dword [0x1030fdf0], esi
jne 0x101a18be
mov ebx, 1
cmp ebx, esi
jle 0x101a1905
lea esi, [ebp - 0x24]
mov edi, ebx
mov ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x14]
call fcn.101bbd40
mov edx, dword [ebp - 0x30]
push eax
push edx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.101c3a20
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.101bc5b0
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.1024c0b4
add esi, 4
dec edi
jne 0x101a18c7
xor esi, esi
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x34]
push ecx
push edx
push 0x1030fdd0
mov byte [ebp - 4], 3
call fcn.101a1370
add esp, 0xc
cmp eax, esi
jne 0x101a1959
lea eax, [ebp - 0x18]
push 0x102a5218
push eax
mov dword [ebp - 0x18], esi
call fcn.10079291
push 1
push 0x1030fdd0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push 0x1030fdd0
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, 0x101a1957
ret
mov eax, 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], eax
mov dword [0x1030fdc0], 0xc
mov dword [0x1030fdc8], esi
mov dword [0x1030fdc4], 0x1030fdd0
mov dword [0x1030fd8c], eax
mov byte [ebp - 4], 0
call fcn.1024bec3
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.101c32d0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101a2ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1026939f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov ecx, dword [0x1026e87c]
push ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov ecx, 9
lea edi, [esp + 0x16]
mov ebx, dword [esp + 0x50]
mov word [esp + 0x14], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ebx
lea edx, [esp + 0x14]
push 0xa
push edx
shr eax, 0x18
push eax
mov dword [esp + 0x50], 1
call fcn.1007ac2d
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.10091840
push 0x102bd3b8
lea ecx, [esp + 0x10]
call fcn.10091840
xor edx, edx
lea ecx, [esp + 0x14]
mov dl, byte [esp + 0x52]
push 0xa
push ecx
push edx
call fcn.1007ac2d
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.10091840
push 0x102bd3b8
lea ecx, [esp + 0x10]
call fcn.10091840
xor ecx, ecx
lea eax, [esp + 0x14]
push 0xa
mov cl, bh
push eax
push ecx
call fcn.1007ac2d
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.10091840
push 0x102bd3b8
lea ecx, [esp + 0x10]
call fcn.10091840
lea edx, [esp + 0x14]
push 0xa
and ebx, 0xff
push edx
push ebx
call fcn.1007ac2d
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.10091840
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.100901f0
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
call fcn.10090bf0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x101a2f50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x102693ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov ecx, dword [0x1026e87c]
push ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov ecx, 9
lea edi, [esp + 0x16]
mov ebx, dword [esp + 0x50]
mov word [esp + 0x14], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ebx
lea edx, [esp + 0x14]
push 0xa
push edx
shr eax, 0x18
push eax
mov dword [esp + 0x50], 1
call fcn.1007ac2d
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.10091840
push 0x102bd3b8
lea ecx, [esp + 0x10]
call fcn.10091840
xor edx, edx
lea ecx, [esp + 0x14]
mov dl, byte [esp + 0x52]
push 0xa
push ecx
push edx
call fcn.1007ac2d
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.10091840
push 0x102bd3b8
lea ecx, [esp + 0x10]
call fcn.10091840
xor ecx, ecx
lea eax, [esp + 0x14]
push 0xa
mov cl, bh
push eax
push ecx
call fcn.1007ac2d
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.10091840
push 0x102bd3b8
lea ecx, [esp + 0x10]
call fcn.10091840
lea edx, [esp + 0x14]
push 0xa
and ebx, 0xff
push edx
push ebx
call fcn.1007ac2d
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.10091840
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.100901f0
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
call fcn.10090bf0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x101a4c50
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x102696eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push ebx
push ebp
mov ebp, dword [esp + 0x1bc]
push esi
push edi
xor esi, esi
push 0xffffffffffffffff
push esi
mov ecx, ebp
call fcn.1009e050
lea ecx, [esp + 0x10]
call fcn.1009e030
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c0], esi
call fcn.1009e050
mov ebx, dword [esp + 0x1c0]
cmp ebx, esi
jne 0x101a4cb0
xor edi, edi
jmp 0x101a4d7f
cmp dword [0x1030fdf8], esi
jne 0x101a4cea
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x20]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, esi
jne 0x101a4cea
mov dword [0x1030fdf8], 1
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x101a4d25
mov ecx, dword [ebx + 0xc]
mov esi, 1
mov eax, dword [ecx]
test eax, eax
je 0x101a4d25
xor edi, edi
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.1009e270
mov eax, dword [ebx + 0xc]
add edi, 4
mov eax, dword [eax + edi]
test eax, eax
jne 0x101a4d07
test esi, esi
mov edi, esi
je 0x101a4d7f
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.1009e050
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jle 0x101a4d7f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + esi*4]
mov ecx, eax
mov edx, eax
and ecx, 0xff0000
shr edx, 0x10
or ecx, edx
mov edx, eax
shl edx, 0x10
and eax, 0xff00
or edx, eax
mov eax, dword [ebp + 4]
shr ecx, 8
shl edx, 8
or ecx, edx
push ecx
push eax
mov ecx, ebp
call fcn.1009e270
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x101a4d40
lea ecx, [esp + 0x10]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.1009e040
mov ecx, dword [esp + 0x1b0]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1ac
ret
Function at 0x101ad5b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, 0x8000
push edi
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x101ad5ce
mov dword [esp + 0x14], eax
mov esi, eax
push esi
call fcn.1024cbd1
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
mov ebp, dword [esp + 0x24]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], ebx
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jne 0x101ad60d
xor ebx, ebx
jmp 0x101ad62a
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101ad626
or ebx, 0xffffffff
jmp 0x101ad62a
mov ebx, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x101ad67d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101ad662
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x101ad679
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1024cbfa
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
cmp ebx, esi
jae 0x101ad6a2
test ebx, ebx
je 0x101ad776
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push 0
push edx
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x101ad776
lea ecx, [ebx + edi]
add edi, eax
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edi
call fcn.1024cbd1
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x24], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x101ad6d6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jg 0x101ad715
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
je 0x101ad715
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101ad70f
or esi, 0xffffffff
jmp 0x101ad717
mov esi, dword [esp + 0x28]
jmp 0x101ad717
xor esi, esi
mov edx, dword [esp + 0x2c]
push 0
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
je 0x101ad73f
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
add edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x10], edx
test esi, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ebx, esi
jg 0x101ad6d2
push eax
call fcn.1024cbfa
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.1024cbfa
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x101ad790
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
jne 0x101ad7b3
or ebx, eax
jmp 0x101ad7b5
mov ebx, eax
push 2
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
je 0x101ad7cf
mov dword [esp + 0x1c], eax
push 0
push ebx
push esi
call fcn.101adad0
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, ebp
sub ecx, ebp
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x101ad7f7
mov dword [esp + 0x20], eax
push 0x8000
call fcn.1024cbd1
mov ebx, eax
add esp, 4
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push 0
push 0
lea ecx, [eax + ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x24]
push 0
push edx
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101ad841
or eax, 0xffffffff
jmp 0x101ad87d
mov edi, dword [esp + 0x24]
mov eax, edi
test edi, edi
mov dword [esp + 0x14], eax
jle 0x101ad87d
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x101ad879
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101ad888
cmp dword [esp + 0x10], edi
jne 0x101ad888
mov eax, dword [esp + 0x14]
add ebp, eax
cmp eax, 0x8000
jne 0x101ad89b
jmp 0x101ad811
push ebx
call fcn.1024cbfa
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
sub eax, ecx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call fcn.1024cbfa
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret