joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101f9c45
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1434
call fcn.1026ac00
mov eax, dword [0x10285008]
xor eax, esp
mov dword [esp + 0x1430], eax
and dword [esp + 0xc], 0
xor eax, eax
and dword [esp], eax
push ebx
push esi
push edi
push 7
mov esi, ecx
mov dword [esp + 0x14], edx
pop ecx
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], esi
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x1cc]
xor ebx, ebx
push eax
inc ebx
push 0x100a5b24
mov dword [edx], ebx
call dword [0x102a9c88]
xor ecx, ecx
cmp ecx, eax
push 0x18e
sbb edi, edi
xor eax, eax
push eax
mov word [esp + 0x40], ax
neg edi
lea eax, [esp + 0x42]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x38]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x101f9cea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x100a5b4c
mov ecx, eax
call fcn.101f99db
and dword [esp + 0x1c], 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ebx
push eax
push 0
push esi
mov dword [esp + 0x34], 6
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov esi, eax
mov eax, dword [esp + 0xc]
test esi, esi
jne 0x101f9d1c
test eax, eax
jne 0x101f9d5c
mov ecx, dword [esp + 0x10]
mov dword [ecx], 2
test edi, edi
je 0x101f9d5a
push dword [esp + 0x14]
lea eax, [esp + 0x3d4]
push 0x100a5b70
push 0x832
push eax
call fcn.10139880
add esp, 0x10
lea edx, [esp + 0x3d0]
mov ecx, esi
call fcn.101f99db
mov eax, dword [esp + 0xc]
xor bl, bl
push eax
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x143c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10236010
mov esp, ebp
pop ebp
ret

Function at 0x101fa739
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, edx
mov dword [ebp - 4], eax
push edi
test esi, esi
je 0x101fa7af
test eax, eax
je 0x101fa7af
mov eax, dword [esi + 0x3c]
push 0
pop ebx
add eax, esi
je 0x101fa76f
cmp dword [eax + 0x74], ebx
jbe 0x101fa76f
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x101fa76f
mov ebx, dword [eax + 0x7c]
lea edi, [ecx + esi]
jmp 0x101fa771
mov edi, ebx
test edi, edi
je 0x101fa7af
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x18]
add eax, esi
mov ecx, dword [ebp - 4]
push eax
mov eax, dword [edi + 0x20]
add eax, esi
push eax
push esi
call fcn.101fa7bd
movzx ecx, ax
cmp ecx, dword [edi + 0x14]
jae 0x101fa7af
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + esi]
add ecx, esi
cmp ecx, edi
jbe 0x101fa7ab
lea eax, [ebx + edi]
cmp ecx, eax
jb 0x101fa7af
mov eax, ecx
jmp 0x101fa7b1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101fb6f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xc8]
push eax
mov dword [ebp - 0xc8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x101fb7af
push 0x9c
push eax
lea eax, [ebp - 0xc8]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x94
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x101fb7af
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x101fb7a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101fb88e
movzx eax, ax
or eax, 0x80070000
jmp 0x101fb88e
mov eax, 0x80004005
jmp 0x101fb88e
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xd8]
mov dword [edi], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc0]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xbc]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xd4]
movzx eax, byte [ebp - 0x2e]
mov word [ecx], ax
mov ecx, dword [ebp - 0xd0]
mov ax, word [ebp - 0x30]
mov word [ecx], ax
xor eax, eax
and dword [ebp - 0xcc], eax
mov word [esi], ax
lea eax, [ebp - 0xcc]
push eax
push 0x20019
push 0
push 0x100a60f8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101fb88c
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd0], 0x28
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xd4]
push eax
push 0
push 0x100a6128
push dword [ebp - 0xcc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101fb880
cmp byte [ebp - 0x2c], al
je 0x101fb880
lea eax, [ebp - 0x2c]
push eax
call sub.msvcrt.dll__strlwr
lea eax, [ebp - 0x2c]
mov dword [esp], 0x100a6134
push eax
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x101fb880
push 0xc
pop eax
mov word [esi], ax
push dword [ebp - 0xcc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10236010
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10207df0
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x10281260
call fcn.102385f0
xor ebx, ebx
test ecx, ecx
je 0x10207e6c
cmp ecx, 0xffffffff
je 0x10207e6c
and dword [ebp - 4], ebx
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10207e65
mov ebx, dword [ecx + 0x3c]
add ebx, ecx
mov dword [ebp - 0x1c], ebx
cmp dword [ebx], 0x4550
jne 0x10207e60
movzx eax, word [ebx + 0x18]
mov esi, 0x10b
cmp ax, si
je 0x10207e3c
mov ecx, 0x20b
cmp ax, cx
jne 0x10207e60
test edx, edx
je 0x10207e65
cmp ax, si
jne 0x10207e4e
mov ecx, ebx
call fcn.10207ccd
jmp 0x10207e65
push 0x42
pop ecx
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
jmp 0x10207e65
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, ebx
call fcn.10238635
ret

Function at 0x10207e79
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
movzx eax, word [ecx + 0x14]
push ebx
push esi
mov ebx, edx
lea esi, [ecx + 0x18]
movzx edx, word [ecx + 6]
add esi, eax
push edi
xor edi, edi
test edx, edx
je 0x10207eb0
mov ecx, dword [esi + 0xc]
cmp dword [ebp + 8], ecx
jb 0x10207ea8
mov eax, dword [esi + 0x10]
add eax, ecx
cmp dword [ebp + 8], eax
jb 0x10207eb2
add esi, 0x28
inc edi
cmp edi, edx
jb 0x10207e96
xor esi, esi
test esi, esi
je 0x10207ec3
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0xc]
add eax, ebx
add eax, dword [ebp + 8]
jmp 0x10207ec5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1020ac19
Capabilities:
Create thread
Resume thread
Suspend thread
Terminate thread

Disassembly:
push 0x5b8
push 0x102812a0
call fcn.1023751c
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x5c0], esi
lea eax, [ebp - 0x5c4]
push eax
push esi
push esi
push 0x1020ac10
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x5bc], ebx
test ebx, ebx
je 0x1020ad4f
push dword [ebp - 0x5c4]
push ecx
mov edx, 0x1f03ff
mov ecx, edi
call fcn.1020ab8f
mov edi, eax
mov dword [ebp - 0x5c8], edi
test edi, edi
je 0x1020ad19
mov dword [ebp - 4], esi
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 0x5c0], eax
cmp eax, 0xffffffff
je 0x1020acee
mov ebx, 0x10007
mov dword [ebp - 0x5b4], ebx
lea eax, [ebp - 0x5b4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov esi, eax
mov dword [ebp - 0x5b8], esi
test esi, esi
je 0x1020acf4
mov dword [ebp - 0x2e8], ebx
lea eax, [ebp - 0x2e8]
push eax
push dword [ebp - 0x5bc]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov esi, eax
mov dword [ebp - 0x5b8], esi
test esi, esi
je 0x1020acf4
mov eax, dword [ebp - 0x4fc]
sub eax, dword [ebp - 0x230]
neg eax
sbb eax, eax
not eax
and esi, eax
mov dword [ebp - 0x5b8], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x1020ad19
cmp dword [ebp - 0x5c0], 0
jle 0x1020ad29
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xdead
mov ebx, dword [ebp - 0x5bc]
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1020ad4d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.10237564
ret
Function at 0x1020d17d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
push edx
mov dword [edi], eax
mov ax, word [ebx + 4]
mov word [edi + 4], ax
mov ax, word [ebx + 6]
mov word [edi + 6], ax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
cdq
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov eax, dword [ebx + 0x10]
cdq
mov dword [edi + 0x18], eax
lea eax, [ebx + 0x68]
push eax
lea eax, [edi + 0xc0]
mov dword [edi + 0x1c], edx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebx], 0x3031
jne 0x1020d202
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x20], eax
mov eax, dword [ebx + 0x1c]
and dword [edi + 0x34], 0
mov dword [edi + 0x30], eax
mov eax, dword [ebx + 0x18]
cdq
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
mov eax, dword [ebx + 0x20]
mov dword [edi + 0x38], eax
mov eax, dword [ebx + 0x24]
mov dword [edi + 0x3c], eax
mov al, byte [ebx + 0x28]
mov byte [edi + 0x40], al
jmp 0x1020d216
lea edx, [edi + 0x20]
lea ecx, [ebx + 0x14]
call fcn.100f3d2f
mov eax, dword [ebx + 0x64]
mov dword [edi + 0xb8], eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1020fa30
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x20], 0
je 0x1020fa4a
mov eax, 0x80070057
jmp 0x1020fb7a
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1020fa6c
mov eax, ebx
or eax, dword [ebp + 0x10]
jne 0x1020fa67
mov eax, 0x80070057
jmp 0x1020fb78
mov edi, 0x10060874
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0xc]
call fcn.100b5c1c
neg eax
sbb eax, eax
not eax
and dword [ebp - 4], eax
jne 0x1020fa90
mov eax, 0x8007000e
jmp 0x1020fb78
mov eax, ebx
or eax, dword [ebp + 0x10]
je 0x1020fa9e
mov dword [esi + 0x20], ebx
xor ebx, ebx
jmp 0x1020facb
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push edi
call dword [0x102a9c60]
mov dword [esi + 0x20], eax
test eax, eax
je 0x1020fb65
cmp eax, 0xffffffff
je 0x1020fb65
lea eax, [ebp - 8]
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1020fae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1020fb68
mov ecx, dword [ebp - 8]
xor eax, eax
or eax, edi
or ecx, ebx
mov dword [esi + 0x28], eax
or eax, ecx
mov dword [esi + 0x2c], ecx
jne 0x1020fb03
mov edi, 0xd000011e
jmp 0x1020fb6f
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov dword [esi + 0x38], ebx
test ebx, ebx
je 0x1020fb68
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x28]
mov edi, dword [ebp + 0x14]
mov edx, dword [esi + 0x2c]
dec edi
mov dword [esi + 0x30], eax
add edi, ecx
lea eax, [ecx - 1]
mov dword [esi + 0x34], edx
not eax
and edi, eax
test edx, edx
ja 0x1020fb45
jb 0x1020fb42
cmp dword [esi + 0x28], edi
jae 0x1020fb45
mov edi, dword [esi + 0x28]
test edi, edi
je 0x1020fb5e
push edi
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x3c], eax
test eax, eax
je 0x1020fb68
mov dword [esi + 0x40], edi
xor eax, eax
jmp 0x1020fb78
mov dword [esi + 0x20], ebx
call fcn.100b5cee
mov edi, eax
mov ecx, esi
call fcn.1020fb86
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1020fc51
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
push 0
pop esi
mov ecx, dword [edi + 4]
mov edx, ecx
mov ebx, dword [edi + 0x30]
add edx, 0xffffffff
mov eax, dword [edi + 0x34]
not edx
adc esi, 0xffffffff
and edx, dword [ebp + 0xc]
not esi
and esi, dword [ebp + 0x10]
sub ebx, edx
sbb eax, esi
test eax, eax
ja 0x1020fc8c
jb 0x1020fc87
cmp ebx, ecx
jae 0x1020fc8c
mov ecx, dword [edi + 0x30]
sub ecx, edx
push ecx
push edx
push esi
push 4
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x1020fcaa
call fcn.100b5cee
jmp 0x1020fd8b
cmp byte [ebp + 0x18], 0
mov esi, dword [ebp + 8]
je 0x1020fcef
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
je 0x1020fcc0
mov dword [ecx], eax
jmp 0x1020fcc3
mov dword [edi + 0x48], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
test ecx, ecx
je 0x1020fcd1
mov dword [ecx + 4], eax
jmp 0x1020fcd4
mov dword [edi + 0x4c], eax
push esi
lea ecx, [edi + 0x50]
call fcn.102102a0
dec dword [edi + 0x44]
cmp dword [esi + 0x10], 0
je 0x1020fcef
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0
push dword [edi + 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1026acf0
mov dword [esi + 0x18], eax
mov al, byte [ebp + 0x14]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x20], al
test al, al
jne 0x1020fd31
mov eax, dword [edi + 0x54]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x54]
test eax, eax
je 0x1020fd24
mov dword [eax + 8], esi
jmp 0x1020fd27
mov dword [edi + 0x50], esi
and dword [esi + 8], 0
mov dword [edi + 0x54], esi
inc dword [edi + 0x44]
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x1020fd54
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
cmp eax, dword [ecx + 0x1c]
jb 0x1020fd50
ja 0x1020fd4a
cmp edx, dword [ecx + 0x18]
jb 0x1020fd50
mov ecx, dword [ecx]
test ecx, ecx
jne 0x1020fd3e
test ecx, ecx
jne 0x1020fd70
mov eax, dword [edi + 0x4c]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x1020fd65
mov dword [eax], esi
jmp 0x1020fd68
mov dword [edi + 0x48], esi
and dword [esi], 0
mov dword [edi + 0x4c], esi
jmp 0x1020fd89
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x1020fd81
mov dword [eax], esi
jmp 0x1020fd84
mov dword [edi + 0x48], esi
mov dword [esi], ecx
mov dword [ecx + 4], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x10210128
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x102d2a78], 0
jne 0x1021013d
mov eax, 0x80070006
jmp 0x102101aa
mov ecx, dword [0x102d2a5c]
push esi
mov esi, dword [ebp + 8]
dec esi
lea eax, [ecx - 1]
add esi, ecx
push edi
not eax
xor edi, edi
and esi, eax
cmp edi, dword [0x102d2a8c]
jb 0x10210169
mov eax, dword [0x102d2a88]
ja 0x10210167
cmp esi, eax
jbe 0x10210169
mov esi, eax
push dword [0x102d2a94]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test esi, esi
je 0x102101a0
push esi
push edi
push edi
push 4
push dword [0x102d2a90]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x102d2a94], eax
test eax, eax
jne 0x102101a0
mov dword [0x102d2a98], edi
call fcn.100b5cee
jmp 0x102101a8
mov dword [0x102d2a98], esi
xor eax, eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x10210cf2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100a8658
call dword [sym.imp.msvcrt.dll_getenv]
pop ecx
test eax, eax
je 0x10210d1e
xor eax, eax
jmp 0x10210e60
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10210d68
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10210d4d
mov eax, 0x80004005
jmp 0x10210e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10210e60
movzx eax, ax
or eax, 0x80070000
jmp 0x10210e60
cmp dword [ebp - 0x88], 2
jne 0x10210d17
push esi
xor esi, esi
cmp dword [0x102d32a0], esi
je 0x10210d83
xor eax, eax
jmp 0x10210e5f
lea eax, [ebp - 0x9c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10210dcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10210db1
mov esi, 0x80004005
jmp 0x10210e5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10210e51
movzx esi, si
or esi, 0x80070000
jmp 0x10210e4f
push edi
push 0x10
push 1
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10210de9
mov esi, 0x8007000e
jmp 0x10210e42
push esi
push esi
push esi
mov dword [edi], 1
push edi
push esi
mov dword [edi + 4], 0x14
mov dword [edi + 8], esi
mov dword [edi + 0xc], 2
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10210e3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10210e26
mov esi, 0x80004005
jmp 0x10210e3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10210e3b
movzx esi, si
or esi, 0x80070000
push edi
call sub.msvcrt.dll_free
pop ecx
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
jne 0x10210e5d
mov dword [0x102d32a0], 1
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10236010
mov esp, ebp
pop ebp
ret
Function at 0x102116a8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov esi, edx
push eax
push 0x104
call dword [0x102a9ca8]
test eax, eax
je 0x10211723
lea eax, [ebp - 0x414]
push eax
push 0
push 0x1006aac0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10211723
push 0
push 0x4000100
push 2
push 0
push 4
push 0xc0000000
lea eax, [ebp - 0x414]
push eax
call dword [0x102a9c60]
test eax, eax
je 0x10211723
cmp eax, 0xffffffff
je 0x10211723
mov dword [esi], eax
xor eax, eax
jmp 0x10211746
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10211734
mov eax, 0x80004005
jmp 0x10211746
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10211746
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10236010
mov esp, ebp
pop ebp
ret

Function at 0x102122c6
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x14b]
mov esi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10212328
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10212314
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10236010
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10212305
movzx eax, ax
or eax, 0x80070000
jmp 0x10212305
lea ecx, [ebp - 0x14c]
mov byte [ebp - 0x14c], 0x22
call fcn.1021120b
lea ecx, [ebp - 0x14c]
cmp eax, ecx
jbe 0x10212359
lea ecx, [ebp - 0x46]
sub ecx, eax
je 0x10212359
push ecx
lea ecx, [eax - 1]
mov edx, 0x100a8828
call fcn.10210488
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x100a882c
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.10210597
push 0
lea eax, [ebp - 0x44]
push eax
push 0x100a8830
push 0x100a8808
push 0x100a8834
lea eax, [ebp - 0x14c]
push eax
push 0x100a8844
push 0x100a8850
push 0x100a8854
push 1
call dword [sym.imp.msvcrt.dll__spawnlp]
add esp, 0x38
test eax, eax
jns 0x102123b4
mov eax, 0x8007000e
jmp 0x10212305
test esi, esi
jne 0x102123bf
xor eax, eax
jmp 0x10212305
push edi
push 0x10
pop edi
lea eax, [ebp - 0x150]
mov dword [ebp - 0x150], edi
push eax
lea eax, [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x102123fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100a885c
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.1021072f
add esp, 0x10
jmp 0x10212425
mov eax, dword [ebp - 0x150]
test eax, eax
jne 0x10212417
push edi
push 0xffffffffffffffff
mov edx, 0x10079c74
lea ecx, [ebp - 0x24]
call fcn.102105bd
jmp 0x10212425
add eax, eax
cmp eax, 0x20
jae 0x10212449
xor ecx, ecx
mov word [ebp + eax - 0x24], cx
lea eax, [ebp - 0x24]
push eax
push 0x100a8808
push 0x100a8874
push 0x50
push esi
call fcn.1021072f
add esp, 0x14
neg eax
sbb eax, eax
inc eax
pop edi
jmp 0x10212305
call fcn.10236265
int3
Function at 0x102154a7
Capabilities:
Initialize winsock library

Disassembly:
push 0x240
push 0x102819b0
call fcn.1023751c
xor esi, esi
inc esi
mov edi, 0x102d32ac
mov edx, 0x102d32b0
mov ecx, esi
mov eax, esi
lock cmpxchg dword [edx], ecx
cmp eax, esi
jne 0x102154d7
xor eax, eax
call fcn.10237564
ret
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
jne 0x102155fa
mov ebx, 0x94
push ebx
push eax
lea eax, [ebp - 0xbc]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xbc], ebx
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10215546
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10215528
mov ecx, 0x80004005
jmp 0x102155ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x102155ed
movzx ecx, cx
or ecx, 0x80070000
jmp 0x102155eb
xor eax, eax
cmp dword [ebp - 0xac], esi
sete al
mov dword [0x102cdb4c], eax
mov dword [0x102cdb48], 0xd00000bb
lea eax, [ebp - 0x24c]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1021557b
and dword [0x102cdb48], eax
jmp 0x1021558a
jle 0x10215585
movzx eax, ax
or eax, 0x80070000
mov dword [0x102cdb48], eax
call fcn.10211514
mov ecx, eax
test ecx, ecx
jne 0x102155ef
and dword [ebp - 4], eax
push 0x102cdb30
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
call fcn.102161b8
call fcn.10186166
mov eax, 0x102d32b0
xchg dword [eax], esi
xor ecx, ecx
jmp 0x102155eb
test ecx, ecx
je 0x102155f3
xor eax, eax
xchg dword [edi], eax
mov eax, ecx
jmp 0x102154d1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x102154be