joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001805
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 4]
jmp 0x100019c5
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
mov ecx, edi
call fcn.100028f8
test eax, eax
jne 0x100019e6
and dword [esi + 0x2b8], eax
mov ecx, edi
pop edi
pop esi
jmp 0x10001c56
pop edi
pop esi
ret
push ecx
push esi
mov esi, ecx
call fcn.100028f8
test eax, eax
jne 0x10001caf
lea ecx, [esi + 0xa0]
call fcn.10005db0
test eax, eax
jne 0x10001caf
mov ecx, esi
call fcn.10003553
test eax, eax
jne 0x10001caf
lea eax, [esp + 4]
inc dword [esi + 0x28]
push eax
xor eax, eax
push eax
push esi
push 0x10001d57
push eax
push eax
mov dword [esi + 0x4c], 4
mov dword [esi + 0x50], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10001cb2
xor eax, eax
inc eax
pop esi
pop ecx
ret

Function at 0x10001a42
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x10012053
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x10]
call fcn.100071d1
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 1
call fcn.100071d1
lea ebx, [esi + 0xa0]
mov byte [ebp - 4], 2
mov ecx, ebx
call fcn.100038d9
mov eax, dword [ebp + 8]
push esi
push 0x1000200b
mov ecx, ebx
mov byte [ebp - 4], 3
mov dword [esi], 0x1001320c
mov dword [esi + 0x28], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], 1
mov dword [esi + 0x2a8], eax
call fcn.10005cfd
lea ebx, [esi + 0x54]
push 0x48
push edi
push ebx
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x14]
push 1
push eax
push ebx
mov word [ebx], 0x48
call fcn.1000740e
add esp, 0x18
lea ecx, [esi + 0xa0]
push 0x48
push edi
push 0xffffffffffffffff
call fcn.10003b9e
push eax
call sub.MSVCRT.dll_memset
or dword [esi + 0x44], 0xffffffff
add esp, 0xc
lea ecx, [esi + 0x10]
mov dword [esi + 0x4c], edi
mov dword [esi + 0x2a0], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], 0x3c
call fcn.10007201
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10002c8a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x44], 0xffffffff
jne 0x10002d60
xor edi, edi
cmp dword [ebp + 8], edi
je 0x10002d15
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10002d15
lea ebx, [esi + 0xa0]
mov ecx, ebx
call fcn.10005684
test eax, eax
je 0x10002d15
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x50]
push eax
push edi
mov ecx, ebx
mov dword [ebp - 0x34], edi
call fcn.1000564d
mov ecx, ebx
call fcn.10005684
cmp eax, 1
jne 0x10002cf4
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x50]
jne 0x10002cf4
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x4c]
je 0x10002d15
push 2
push 0x10016270
mov ecx, esi
call fcn.1000282e
or dword [esi + 0x4c], 8
push edi
push 0x15
mov ecx, esi
call fcn.10002e28
or eax, 0xffffffff
jmp 0x10002d63
mov al, byte [esi + 0x94]
push edi
and al, 4
neg al
sbb eax, eax
and al, 0x82
add eax, 0x10000080
push eax
push 4
push edi
push 1
push 0x40000000
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x44], eax
jne 0x10002d49
xor eax, eax
jmp 0x10002d63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10002d60
push dword [esi + 0x44]
mov ecx, esi
call fcn.1000389d
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10002d6a
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov esi, ecx
inc edi
mov eax, dword [esp + 0x10]
sub eax, ebx
jne 0x10002d82
mov dword [esp + 0x10], edi
jmp 0x10002d74
dec eax
je 0x10002ded
dec eax
je 0x10002d91
dec eax
je 0x10002dbd
dec eax
je 0x10002d9e
dec eax
jne 0x10002df9
push edi
mov ecx, esi
call fcn.10002a13
jmp 0x10002e20
push 2
push 0x10016270
mov ecx, esi
call fcn.1000282e
or dword [esi + 0x4c], 8
push 4
push 0x15
mov ecx, esi
call fcn.10002e28
jmp 0x10002de8
push edi
mov ecx, esi
call fcn.10002c8a
test eax, eax
je 0x10002df9
push ebx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x10016270
mov ecx, esi
mov dword [esi + 0x30], eax
call fcn.1000282e
or dword [esi + 0x4c], 0x40
or eax, 0xffffffff
jmp 0x10002e22
push edi
mov ecx, esi
call fcn.10002c8a
test eax, eax
jne 0x10002dfd
xor eax, eax
jmp 0x10002e22
push 4
push 0x10016270
mov ecx, esi
call fcn.1000282e
push ebx
push ebx
push ebx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x1000302e
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x78], 0
je 0x100030a6
lea edi, [esi + 0xa0]
mov ecx, edi
call fcn.10006e48
and eax, edx
cmp eax, 0xffffffff
je 0x100030a6
mov ecx, edi
call fcn.10006e48
or eax, edx
je 0x10003095
push 0
mov ecx, edi
call fcn.10006e48
add eax, 0xffffffff
adc edx, 0xffffffff
push edx
push eax
push dword [esi + 0x44]
call fcn.100081bc
add esp, 0x10
lea eax, [ebp - 8]
and byte [ebp - 1], 0
push 0
push eax
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100030a2
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100030a6
xor eax, eax
jmp 0x100030a9
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x100031d6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov edi, 0x10016270
je 0x1000322a
push 1
call fcn.10002c8a
test eax, eax
mov ecx, esi
jne 0x10003222
call fcn.10003455
push 2
push edi
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.1000282e
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.100032b7
or dword [esi + 0x4c], 8
push 3
pop eax
jmp 0x100032b0
push 4
push edi
call fcn.1000282e
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x1000328e
dec eax
je 0x1000328e
dec eax
je 0x1000324b
dec eax
jne 0x100032ad
or dword [esi + 0x4c], 8
push 4
push 0x15
mov ecx, esi
call fcn.10002e28
jmp 0x100032ad
push 4
push edi
mov ecx, esi
call fcn.1000282e
lea ecx, [esi + 0xa0]
call fcn.10005e45
push ebx
mov dword [ebp - 8], eax
push dword [esi + 0x44]
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
cmp ecx, edi
jb 0x100032ad
ja 0x1000327c
cmp eax, dword [ebp - 8]
jbe 0x100032ad
push ebx
push edi
push dword [ebp - 8]
push dword [esi + 0x44]
call fcn.100081bc
add esp, 0x10
jmp 0x100032a4
push 4
push edi
mov ecx, esi
call fcn.1000282e
push ebx
push ebx
push ebx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100032ef
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.10011d20
push ebx
push esi
push edi
mov esi, ecx
call fcn.10003430
mov ecx, esi
call fcn.10003647
push dword [esi + 0x74]
call sub.MSVCRT.dll_strlen
push dword [esi + 0x90]
mov edi, eax
call sub.MSVCRT.dll_strlen
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x100033c1
lea eax, [edi - 1]
cmp ebx, eax
jge 0x100033c1
mov eax, edi
push ebx
push dword [esi + 0x90]
sub eax, ebx
add eax, dword [esi + 0x74]
push eax
call fcn.1000818d
add esp, 0xc
test eax, eax
jne 0x100033c1
push dword [esi + 0x74]
lea eax, [ebp - 0x2714]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [esi + 0x74]
sub edi, ebx
pop ecx
and byte [edi + eax - 1], 0
pop ecx
test byte [esi + 0x94], 8
je 0x10003381
push 0
mov ecx, esi
call fcn.100036ed
mov ecx, esi
call fcn.1000366a
push dword [esi + 0x74]
lea eax, [ebp - 0x2714]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x100033d3
mov ecx, esi
call fcn.10003455
push 2
push 0x10016270
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.1000282e
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.100032b7
jmp 0x100033d3
test byte [esi + 0x94], 8
je 0x100033d3
mov ecx, esi
push 1
call fcn.100036ed
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push dword [esp + 0x14]
call fcn.10002e4e
test eax, eax
mov ecx, esi
jne 0x1000347b
push 2
push 0x10016270
call fcn.1000282e
jmp 0x100034e8
call fcn.100030ad
push dword [esi + 0x74]
call fcn.10007c3c
xor ebx, ebx
pop ecx
test eax, eax
je 0x100034d9
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100034b3
push dword [esi + 0x88]
mov ecx, esi
call fcn.10002d6a
cmp eax, ebx
je 0x100034d9
cmp eax, 0xffffffff
je 0x100034ec
cmp dword [esp + 0x10], ebx
je 0x100034ff
push ebx
push 0x80
push 4
push ebx
push 1
push accept
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100034f0
push ebx
mov ecx, esi
call fcn.100032b7
mov dword [esi + 0x20], 1
or dword [esi + 0x4c], 8
xor eax, eax
jmp 0x10003505
push edi
mov ecx, esi
call fcn.1000389d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 0x24], ebx
inc eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x1000355c
Capabilities:
Create thread

Disassembly:
mov eax, 0x10012124
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
je 0x100035cf
push edi
lea ecx, [ebp - 0x18]
call fcn.100071d1
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.10007201
lea edi, [esi + 0x10]
lea ecx, [ebp - 0x18]
push edi
call fcn.1000720f
mov ecx, dword [esi + 0x18]
imul ecx, ecx, 0xea60
cmp eax, ecx
jbe 0x100035c2
mov ecx, edi
call fcn.10007201
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push 0x100035dd
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.100071fa
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x10003647
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
test byte [esi + 0x94], 4
je 0x10003668
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfd
push eax
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x1000366a
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
push dword [edi + 0x74]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100036e9
mov eax, dword [edi + 0x88]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x1000368f
mov eax, ecx
cmp eax, ecx
je 0x1000369d
jle 0x100036e9
cmp eax, 5
jg 0x100036e9
push ecx
jmp 0x100036e2
mov esi, 0x10016270
push 4
push esi
mov ecx, edi
call fcn.1000282e
push dword [edi + 0x74]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x100036e9
mov ecx, edi
call fcn.10003455
push 2
push esi
mov dword [ebp - 4], eax
call fcn.1000282e
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.100032b7
push 4
push esi
mov ecx, edi
call fcn.1000282e
push 0
mov ecx, edi
call fcn.10002a13
pop edi
pop esi
leave
ret
Function at 0x100036ed
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2710
call fcn.10011d20
push esi
mov esi, ecx
mov eax, dword [esi + 0x2a8]
test eax, eax
je 0x10003821
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1000371b
push eax
call sub.MSVCRT.dll_strlen
pop ecx
jmp 0x1000371d
xor eax, eax
test eax, eax
je 0x10003821
push ebx
push edi
push dword [esi + 0x74]
lea eax, [ebp - 0x2710]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x2710]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
push dword [esi + 0x74]
mov ebx, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0x2a8]
add esp, 0x14
add eax, 0x10
mov eax, dword [eax]
test eax, eax
je 0x1000376c
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov edi, eax
jmp 0x1000376e
xor edi, edi
lea eax, [ebp - 0x2710]
push eax
call sub.MSVCRT.dll_strlen
lea eax, [eax + edi + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
lea ecx, [ebp - 0x2710]
mov dword [esi + 0x74], eax
push ecx
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
test ebx, ebx
je 0x100037dd
mov eax, dword [esi + 0x74]
lea ecx, [ebp - 0x2710]
sub eax, ecx
push 0x100160f0
add eax, ebx
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [esi + 0x2a8]
push dword [eax + 0x10]
push dword [esi + 0x74]
call sub.MSVCRT.dll_strcat
push 0x100160ec
push dword [esi + 0x74]
call sub.MSVCRT.dll_strcat
push ebx
push dword [esi + 0x74]
call sub.MSVCRT.dll_strcat
add esp, 0x20
cmp dword [ebp + 8], 0
pop edi
pop ebx
je 0x10003821
mov ecx, esi
call fcn.1000366a
push dword [esi + 0x74]
lea eax, [ebp - 0x2710]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x10003821
mov ecx, esi
call fcn.10003455
push 2
push 0x10016270
mov dword [ebp + 8], eax
call fcn.1000282e
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.100032b7
pop esi
leave
ret 4
Function at 0x100041db
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
neg eax
sbb eax, eax
mov ebx, ecx
add eax, 6
mov dword [esi + 0x18], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], eax
mov eax, dword [ebx + 0x1b0]
mov dword [esi + 0x2c], eax
call fcn.100069f0
test eax, eax
je 0x10004217
mov dword [ebp + 0xc], edi
cmp dword [esi + 0x2c], edi
jne 0x10004233
cmp dword [ebp + 0xc], edi
je 0x10004233
push edi
push 0xc
mov ecx, ebx
call fcn.10005d14
test eax, eax
je 0x100042d2
sub esp, 0x50
lea eax, [ebx + 0x1a0]
push 0x14
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.10006ee0
mov eax, dword [ebx + 0x1b0]
lea ecx, [ebx + 0x1a0]
dec eax
push eax
call fcn.10007105
xor edi, edi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x100042cf
mov esi, dword [ebp + 8]
mov ecx, ebx
push dword [esi + 0x2c]
push 5
call fcn.10005d14
cmp dword [ebp + 0x10], edi
je 0x10004299
mov eax, dword [esi + 0x34]
cmp eax, 0xffffffff
jne 0x10004288
dec dword [ebx + 0x78]
jmp 0x10004299
push eax
lea ecx, [ebx + 0x1d0]
call fcn.1000716b
add eax, 0x50
dec dword [eax]
add dword [ebx + 0x124], 1
add dword [ebx + 0x128], 1
push dword [esi + 0x2c]
mov ecx, ebx
push 6
call fcn.10005d14
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp - 4]
push 0x100042d9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100062c9
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
xor edi, edi
cmp dword [esi + 0x1b0], ebp
jle 0x100062f9
lea ebx, [esi + 0x1a0]
push edi
mov ecx, ebx
call fcn.10007105
cmp dword [eax + 0x20], 6
je 0x10006302
inc edi
cmp edi, dword [esi + 0x1b0]
jl 0x100062e2
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
mov ecx, ebx
call fcn.10007105
mov dword [eax + 0x1c], ebp
add dword [esi + 0x124], 1
add dword [esi + 0x128], 1
push edi
push 6
mov ecx, esi
call fcn.10005d14
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
push ebp
push edi
call fcn.10007105
push eax
push 0x100042d9
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100062fc

Function at 0x10007c3c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4e20
call fcn.10011d20
push esi
lea eax, [ebp - 0x2710]
push edi
push eax
push dword [ebp + 8]
call fcn.10007bd2
lea eax, [ebp - 0x2710]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0xc
xor esi, esi
cmp byte [ebp - 0x270f], 0x3a
mov edi, eax
jne 0x10007cca
push 3
pop esi
jmp 0x10007cca
mov al, byte [ebp + esi - 0x2710]
cmp al, 0x5c
je 0x10007c8a
cmp al, 0x2f
jne 0x10007cc9
lea eax, [ebp - 0x2710]
push esi
push eax
lea eax, [ebp - 0x4e20]
push eax
call sub.MSVCRT.dll_memcpy
and byte [ebp + esi - 0x4e20], 0
add esp, 0xc
lea eax, [ebp - 0x4e20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10007cc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10007cd5
inc esi
cmp esi, edi
jl 0x10007c7b
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
xor eax, eax
jmp 0x10007cd1

Function at 0x10008112
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x10008120
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x100091ec
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push esi
lea eax, [ebp - 0x200]
push edi
push eax
push 0x101
mov esi, ecx
call sub.WS2_32.dll_WSAStartup
mov ecx, esi
call fcn.1000927d
test eax, eax
je 0x10009237
call dword [esi + 4]
mov edi, eax
test edi, edi
je 0x10009237
cmp edi, 0xffffffff
je 0x10009237
push dword [ebp + 8]
call fcn.10008112
test eax, eax
pop ecx
mov dword [ebp + 8], eax
jne 0x10009240
push edi
call dword [esi + 8]
or eax, 0xffffffff
pop edi
pop esi
leave
ret 4
or dword [ebp - 0x68], 0xffffffff
push 0x20
lea eax, [ebp - 0x20]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x70]
push 0x1388
push 0x4e
push eax
push 0
lea eax, [ebp - 0x20]
push 0x20
push eax
push dword [ebp + 8]
push edi
call dword [esi + 0xc]
push edi
call dword [esi + 8]
cmp dword [ebp - 0x6c], 0
jne 0x10009237
mov eax, dword [ebp - 0x68]
jmp 0x1000923a
Function at 0x1000ac80
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.1000aef0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x1000acae
cmp dword [ebp - 0x50], 1
je 0x1000acb7
cmp dword [ebp - 0x50], 2
je 0x1000acc0
jmp 0x1000ace0
mov dword [ebp - 8], 1
jmp 0x1000ace7
mov dword [ebp - 8], 0
jmp 0x1000ace7
mov dword [ebp - 8], 3
cmp dword [ebp + 0x10], 0
je 0x1000acd7
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x1000acde
mov eax, 8
jmp 0x1000ad3f
jmp 0x1000ace7
mov eax, 8
jmp 0x1000ad3f
push 0
xor eax, eax
cmp dword [ebp - 8], 3
setne al
dec eax
and eax, str._local_
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x1000ad21
call fcn.1000e210
jmp 0x1000ad3f
mov dword [ebp - 0xc], 1
push 4
lea eax, [ebp - 0xc]
push eax
push 0x46
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000af70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100127e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.10011020
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.10010e70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.1000fe00
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.1000ec10
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x138
call fcn.1000e840
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x10013308
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x10]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f5a0
Capabilities:
Create tcp socket
Create udp socket
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x27d4
call fcn.10011d20
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
movsx eax, word [0x1001626c]
cmp eax, 0x2b10
jl 0x1000f5ca
mov word [0x1001626c], 0x40a
push 0x2710
lea eax, [ebp - 0x272c]
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x272c]
push eax
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1000f5f8
xor ax, ax
jmp 0x1000f74d
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x18]
movsx ecx, word [eax + 0xa]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov cx, word [eax + 8]
mov word [ebp - 0x14], cx
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x54], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x54], 0xffffffff
jne 0x1000f652
xor ax, ax
jmp 0x1000f74d
mov ax, word [0x1001626c]
mov word [ebp - 0x1a], ax
mov cx, word [0x1001626c]
add cx, 1
mov word [0x1001626c], cx
mov ax, word [ebp - 0x1a]
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
mov ax, word [0x1001626c]
add ax, 1
mov word [0x1001626c], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x54]
push edx
call sub.WS2_32.dll_bind
mov dword [ebp - 0x2730], eax
cmp dword [ebp - 0x2730], 0
je 0x1000f6ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2740
je 0x1000f652
cmp dword [ebp - 0x2730], 0
je 0x1000f6cb
xor ax, ax
jmp 0x1000f74d
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
push ecx
call sub.WS2_32.dll_listen
movsx eax, word [ebp - 0x1a]
and eax, 0xff
push eax
movsx ecx, word [ebp - 0x1a]
shr ecx, 8
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
xor edx, edx
mov dl, byte [ecx + 3]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
xor eax, eax
mov al, byte [edx + 2]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
xor ecx, ecx
mov cl, byte [eax + 1]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
xor edx, edx
mov dl, byte [ecx]
push edx
push str._d__d__d__d__d__d
lea eax, [ebp - 0x2794]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
lea eax, [ebp - 0x2794]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x4c
call fcn.10002598
mov ax, word [ebp - 0x1a]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret