joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001635e
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x1001636c
or eax, 0xffffffff
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x10016378
push 0xfffffffffffffffe
jmp 0x100163c3
push 4
push 0
push esi
call fcn.10014780
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x1001639a
xor eax, eax
inc eax
jmp 0x100163c4
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100163ab
push 0xfffffffffffffffd
jmp 0x100163c3
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100163c1
cmp dword [eax], 0
je 0x100163c1
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi], eax
xor eax, eax
jmp 0x100163c4
push 0xfffffffffffffffc
pop eax
pop esi
pop ebp
ret

Function at 0x10016e8a
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x10016ea5
xor eax, eax
jmp 0x10016ebd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10016ebb
push esi
call dword [0x1002a22c]
jmp 0x10016ea1
mov eax, esi
pop esi
pop ebp
ret

Function at 0x10016ef9
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x10016f37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10016f35
push dword [ebp + 0xc]
push esi
call fcn.10016ec0
pop ecx
pop ecx
test eax, eax
jns 0x10016f35
push esi
call dword [0x1002a22c]
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x1001775f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
push edi
mov dword [ebp - 0xc], 0xa
mov dword [ebp - 8], 3
xor esi, esi
push 0x32
push 0x1e
push 0x10029240
call fcn.100157fe
imul eax, dword [0x10029138]
add eax, dword [ebp + esi*4 - 0xc]
add esp, 0xc
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100177c1
inc esi
cmp esi, 2
jb 0x1001777b
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x100177ba
or dword [eax], 0xffffffff
xor eax, eax
jmp 0x10017869
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100177ea
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x100177ba
mov dword [eax], 0xfffffffe
jmp 0x100177ba
mov ecx, dword [ebp + 0x14]
test cl, 1
je 0x1001786d
and ecx, 2
add ecx, ecx
push ecx
push dword [ebp + 0x18]
push esi
push eax
call fcn.10017508
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001781b
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x100177ba
mov dword [eax], 0xfffffffd
jmp 0x100177ba
mov esi, dword [eax + 0x228]
lea eax, [esi + 1]
push eax
call fcn.10014580
mov edi, eax
pop ecx
test edi, edi
jne 0x10017840
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10017889
mov dword [eax], 0xfffffffc
jmp 0x10017889
mov eax, dword [ebp - 4]
push esi
push dword [eax + 0x224]
push edi
call fcn.10014290
lea eax, [ebp - 4]
push 0
push eax
call fcn.100176b0
add esp, 0x14
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10017867
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
leave
ret
push esi
push eax
call fcn.10014620
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x1001785e
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10017889
mov dword [eax], 0xfffffffb
cmp dword [ebp - 4], 0
je 0x100177ba
lea eax, [ebp - 4]
push 0
push eax
call fcn.100176b0
pop ecx
pop ecx
jmp 0x100177ba
Function at 0x10018b34
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10018b7f
add eax, dword [eax + 0x3c]
mov ecx, 0x4550
cmp dword [eax], ecx
jne 0x10018b7f
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
cmp dword [eax], ecx
jne 0x10018b7f
mov ecx, dword [ebp + 0x10]
add eax, 4
mov dword [edx], eax
add eax, 0x14
mov dword [ecx], eax
mov ecx, 0x10b
cmp word [eax], cx
jne 0x10018b7f
mov ecx, dword [ebp + 0x14]
add eax, 0xe0
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x10018b81
xor eax, eax
pop ebp
ret 0x10

Function at 0x1001926d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
xor edi, edi
mov dword [ebp - 4], esi
call fcn.1001918b
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x10019293
xor eax, eax
jmp 0x100192e2
push esi
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100192d3
cmp dword [ebp - 4], esi
je 0x100192d9
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
call fcn.10019b2b
add esp, 0xc
mov edi, eax
cmp dword [ebp - 4], esi
ja 0x10019293
jmp 0x100192d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [0x1002a22c]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100192e7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.1001918b
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10019341
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x1001933a
lea eax, [esi + 1]
push eax
call fcn.10014580
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1001933a
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push edi
call fcn.1001921a
add esp, 0x10
test eax, eax
je 0x1001933a
cmp dword [ebp - 8], esi
je 0x10019356
push edi
call dword [0x1002a22c]
cmp dword [ebp - 4], ebx
je 0x10019352
lea eax, [ebp - 4]
push ebx
push eax
call fcn.100145b0
pop ecx
pop ecx
xor eax, eax
jmp 0x1001936f
mov eax, dword [ebp - 4]
mov byte [esi + eax], bl
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x10019365
mov dword [eax], esi
push edi
call dword [0x1002a22c]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10019374
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.100191b2
mov edi, eax
pop ecx
cmp edi, ebx
je 0x100193ce
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x100193c7
lea eax, [esi + 1]
push eax
call fcn.10014580
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100193c7
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push edi
call fcn.1001921a
add esp, 0x10
test eax, eax
je 0x100193c7
cmp dword [ebp - 8], esi
je 0x100193e3
push edi
call dword [0x1002a22c]
cmp dword [ebp - 4], ebx
je 0x100193df
lea eax, [ebp - 4]
push ebx
push eax
call fcn.100145b0
pop ecx
pop ecx
xor eax, eax
jmp 0x100193fc
mov eax, dword [ebp - 4]
mov byte [esi + eax], bl
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x100193f2
mov dword [eax], esi
push edi
call dword [0x1002a22c]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10019713
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10019799
push edi
mov edi, 0x103
push edi
push eax
mov byte [ebp - 0x104], al
lea eax, [ebp - 0x103]
push eax
call fcn.10014780
push 0xf4240
push 1
push 0x10029240
call fcn.100157fe
push eax
push ebx
push str._s._06d
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.100147fe
add esp, 0x2c
lea eax, [ebp - 0x104]
push eax
push ebx
call dword [0x1002a214]
pop edi
test eax, eax
je 0x100197a2
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10019799
or eax, 0xffffffff
jmp 0x100197a4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x100197a8
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
push 0x100235d4
push dword [ebp + 8]
call fcn.10019401
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
Function at 0x10019b2b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
xor ecx, ecx
not eax
cmp dword [ebp + 0xc], ecx
jne 0x10019b3e
xor eax, eax
pop ebp
ret
jbe 0x10019b6d
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor eax, edx
mov edx, eax
and edx, 0xf
shr eax, 4
xor eax, dword [edx*4 + 0x100235e0]
mov edx, eax
and edx, 0xf
shr eax, 4
xor eax, dword [edx*4 + 0x100235e0]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x10019b40
not eax
pop ebp
ret

Function at 0x10019ed0
Capabilities:
Schedule task via itaskscheduler
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10028d44], 5
jbe 0x10019ee2
pop ebp
jmp fcn.10019c8c
pop ebp
jmp fcn.10019b71

Function at 0x1001a1a6
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
push 8
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 0x500
call fcn.1001a08d
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x1001a1d4
xor eax, eax
jmp 0x1001a25f
lea eax, [ebp - 0x10]
push eax
push 2
push edi
call fcn.1001a0d9
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1001a244
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [0x1002a2d0]
test eax, eax
je 0x1001a244
mov eax, dword [ebp - 4]
push esi
xor esi, esi
mov dword [ebp - 8], ebx
cmp dword [eax], ebx
jbe 0x1001a23a
push dword [ebp - 0xc]
push dword [eax + esi*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1001a233
mov eax, dword [ebp - 4]
inc esi
cmp esi, dword [eax]
jb 0x1001a218
jmp 0x1001a23a
mov dword [ebp - 8], 1
push dword [ebp - 0xc]
call dword [0x1002a270]
pop esi
push edi
call dword [0x1002a22c]
cmp dword [ebp - 4], ebx
je 0x1001a25c
lea eax, [ebp - 4]
push ebx
push eax
call fcn.100145b0
pop ecx
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret

Function at 0x1001a263
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x12
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 8], 0x500
call dword [0x1002a2d0]
test eax, eax
jne 0x1001a293
leave
ret
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 4]
mov esi, eax
call dword [0x1002a270]
mov eax, esi
pop esi
leave
ret
Function at 0x1001a5cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.1001a593
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x1001a625
push 0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [eax + 4]
add ecx, 8
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001a616
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [ebp - 4]
push edi
push eax
call fcn.100145b0
pop ecx
xor eax, eax
pop ecx
inc eax
pop edi
leave
ret

Function at 0x1001a628
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5a4d
xor ebx, ebx
mov dword [ebp - 8], ecx
cmp word [edi], ax
je 0x1001a648
xor eax, eax
jmp 0x1001a6a6
push esi
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x1001a6a3
movzx eax, word [esi + 4]
mov edx, 0x14c
cmp ax, dx
jne 0x1001a670
movzx eax, word [esi + 6]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x50]
jmp 0x1001a688
mov edx, 0x8664
cmp ax, dx
jne 0x1001a6a3
mov ebx, esi
movzx eax, word [ebx + 6]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x50]
xor esi, esi
cmp dword [ebp + 0x10], ecx
je 0x1001a6aa
push 0x40
push 0x1000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp + 8], eax
test eax, eax
jne 0x1001a6b3
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
push eax
call fcn.10014580
pop ecx
jmp 0x1001a69c
mov eax, dword [edi + 0x3c]
test ebx, ebx
je 0x1001a6cf
push dword [ebx + 0x54]
lea esi, [edi + eax + 0x108]
push edi
push dword [ebp + 8]
call fcn.10014290
jmp 0x1001a6e8
push dword [esi + 0x54]
lea eax, [edi + eax + 0xf8]
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.10014290
mov esi, dword [ebp - 0xc]
movzx eax, word [ebp - 4]
add esp, 0xc
test eax, eax
je 0x1001a740
add esi, 0x14
mov ebx, eax
push 9
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.10014780
push 8
lea eax, [esi - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10014290
push dword [esi - 4]
mov eax, dword [esi]
add eax, edi
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp + 8]
push eax
call fcn.10014290
mov eax, dword [esi]
add eax, dword [esi - 4]
add esp, 0x24
add eax, edi
cmp eax, dword [ebp - 8]
jbe 0x1001a73a
mov dword [ebp - 8], eax
add esi, 0x28
dec ebx
jne 0x1001a6f8
mov eax, dword [ebp + 8]
jmp 0x1001a6a5

Function at 0x1001aba6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x10028de0], 0
je 0x1001abba
push 9
pop eax
leave
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
leave
ret
Function at 0x1001b3c8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push dword [eax + 4]
xor esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x1001b3e1
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x1001bd07
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push 0x1001bcec
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1001bd40
push 2
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
inc eax
jmp 0x1001bd42
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1001c1fd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
and dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
jle 0x1001c2a1
push ebx
push esi
push edi
movzx ecx, cl
movzx edi, dl
inc ecx
and ecx, 0x800000ff
jns 0x1001c239
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 1], cl
movzx ecx, cl
mov dl, byte [ecx + eax]
movzx ebx, dl
add ebx, edi
and ebx, 0x800000ff
jns 0x1001c257
dec ebx
or ebx, 0xffffff00
inc ebx
mov esi, dword [ebp + 8]
add esi, dword [ebp - 8]
movzx edi, bl
mov byte [ebp + 0x13], bl
mov bl, byte [edi + eax]
mov byte [ecx + eax], bl
mov byte [edi + eax], dl
movzx ebx, byte [ecx + eax]
movzx edx, dl
add ebx, edx
and ebx, 0x800000ff
jns 0x1001c285
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edx, bl
mov dl, byte [edx + eax]
xor byte [esi], dl
inc dword [ebp - 8]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jl 0x1001c228
mov dl, byte [ebp + 0x13]
mov cl, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
leave
ret

Function at 0x1001c2af
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
pop ebp
ret
Function at 0x1001c2ea
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14c
push ebx
push esi
xor edx, edx
lea ecx, [eax + 0x1d]
push edi
movzx esi, byte [ecx - 1]
movzx edi, byte [ecx]
shl esi, 8
or esi, edi
movzx edi, byte [ecx + 1]
shl esi, 8
or esi, edi
movzx edi, byte [ecx + 2]
shl esi, 8
or esi, edi
mov dword [ebp + edx*4 - 0x14c], esi
inc edx
add ecx, 4
cmp edx, 0x10
jl 0x1001c2fe
push 0x40
lea ecx, [ebp - 0x144]
pop edx
mov esi, dword [ecx + 0x2c]
xor esi, dword [ecx + 0x18]
xor esi, dword [ecx - 8]
xor esi, dword [ecx]
add ecx, 4
dec edx
rol esi, 1
mov dword [ecx + 0x34], esi
jne 0x1001c335
mov esi, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
and dword [ebp + 8], 0
mov dword [ebp - 4], esi
mov esi, dword [eax + 0x10]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 8]
mov edi, ecx
not edi
and edi, dword [ebp - 4]
mov ebx, edx
and ebx, ecx
or edi, ebx
rol esi, 5
add esi, edi
mov edi, dword [ebp + 8]
add esi, dword [ebp + edi*4 - 0x14c]
mov edi, dword [ebp - 0xc]
inc dword [ebp + 8]
lea esi, [esi + edi + 0x5a827999]
mov edi, dword [ebp - 4]
ror ecx, 2
cmp dword [ebp + 8], 0x14
mov dword [ebp - 4], edx
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
jl 0x1001c366
mov dword [ebp + 8], 0x14
mov ebx, dword [ebp - 4]
xor ebx, edx
xor ebx, ecx
rol esi, 5
add esi, ebx
mov ebx, dword [ebp + 8]
add esi, dword [ebp + ebx*4 - 0x14c]
inc dword [ebp + 8]
lea esi, [esi + edi + 0x6ed9eba1]
mov edi, dword [ebp - 4]
ror ecx, 2
cmp dword [ebp + 8], 0x28
mov dword [ebp - 4], edx
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], esi
jl 0x1001c3b3
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], 0x28
mov edi, edx
or edi, ecx
and edi, dword [ebp - 4]
mov ebx, edx
and ebx, ecx
or edi, ebx
mov ebx, dword [ebp + 8]
add edi, dword [ebp + ebx*4 - 0x14c]
rol esi, 5
add esi, dword [ebp - 0xc]
inc dword [ebp + 8]
lea esi, [edi + esi - 0x70e44324]
mov edi, dword [ebp - 4]
ror ecx, 2
push 0x3c
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edx
pop edi
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], esi
cmp dword [ebp + 8], edi
jl 0x1001c3f4
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 8]
xor edi, edx
xor edi, ecx
add edi, dword [ebp + ebx*4 - 0x14c]
mov ebx, dword [ebp - 4]
rol esi, 5
add esi, dword [ebp - 0xc]
inc dword [ebp + 8]
ror ecx, 2
cmp dword [ebp + 8], 0x50
mov dword [ebp - 4], edx
lea esi, [edi + esi - 0x359d3e2a]
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
jl 0x1001c43a
mov edi, dword [eax]
add edi, esi
mov esi, dword [eax + 4]
add esi, ecx
mov ecx, dword [eax + 8]
add ecx, edx
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 4]
mov dword [eax], edi
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x10]
pop edi
add ecx, ebx
and dword [eax + 0x5c], 0
mov dword [eax + 4], esi
pop esi
mov dword [eax + 0x10], ecx
pop ebx
leave
ret
Function at 0x1001c62c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
mov edi, 0x100
push edi
push esi
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.10014780
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0x20019
push esi
push dword [0x1002a560]
mov dword [ebp - 0xc], edi
push reloc.WS2_32.dll_bind
call dword [0x1002a2c0]
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x1001c694
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push esi
push dword [0x1002a384]
push dword [ebp + 0xc]
call dword [0x1002a244]
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
call dword [0x1002a290]
cmp dword [ebp - 0x10], esi
je 0x1001c6a7
mov word [ebx], 0x30
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], ecx
call esi
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push edi
lea eax, [ebp - 0x110]
push eax
push 0
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
push 0x10023700
call dword [0x1002a208]
test eax, eax
jne 0x1001c6f1
and dword [ebp - 4], eax
push dword [ebp - 4]
push 0x1001d2d4
push ebx
call esi
sub edi, eax
push edi
push ebx
call esi
add eax, ebx
push eax
call fcn.100147fe
add esp, 0x10
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
call esi
push eax
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push 0
push ebx
call esi
push eax
push ebx
call fcn.10019b2b
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret