joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007440
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038656
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x101499e4]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x654], eax
mov eax, dword [0x1003b934]
mov dword [ebp - 0x18], eax
mov ax, word [0x1003b938]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x620]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x100075a4
lea esi, [ebp - 0x620]
nop dword [eax]
mov ax, word [esi]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10007590
xor eax, eax
mov dword [ebp - 0x624], 7
mov dword [ebp - 0x628], 0
mov word [ebp - 0x638], ax
cmp word [ebx], ax
je 0x1000750f
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007500
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x638]
call fcn.10010f90
cmp word [ebp - 0x220], 0
mov dword [ebp - 4], 0
jne 0x10007531
xor ecx, ecx
jmp 0x1000754f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007540
sub ecx, edx
sar ecx, 1
push ecx
push 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x638]
call fcn.10011d70
mov edi, eax
cmp edi, 0xffffffff
jne 0x100075c2
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x624]
cmp eax, 8
jb 0x10007590
inc eax
lea ecx, [ebp - 0x638]
push eax
push dword [ebp - 0x638]
call fcn.10011390
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10007590
cmp word [esi], ax
jne 0x100074b0
xor al, al
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.1001a90f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x650]
call fcn.10003470
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x638]
push esi
inc eax
mov byte [ebp - 4], 1
push eax
push edi
call fcn.10013440
mov eax, dword [ebp - 0x63c]
cmp eax, 8
jb 0x10007608
inc eax
lea ecx, [ebp - 0x650]
push eax
push dword [ebp - 0x650]
call fcn.10011390
cmp dword [ebp - 0x624], 8
lea eax, [ebp - 0x638]
cmovae eax, dword [ebp - 0x638]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x654]
call fcn.1001ff9d
mov eax, dword [ebp - 0x624]
add esp, 0xc
cmp eax, 8
jb 0x1000764c
inc eax
lea ecx, [ebp - 0x638]
push eax
push dword [ebp - 0x638]
call fcn.10011390
mov al, 1
jmp 0x100075a6
Function at 0x10007660
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 0x1000772a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100076ac
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x100076c2
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov eax, dword [edi + 8]
test eax, eax
je 0x100076d7
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [edi + 8], 0
mov byte [edi + 0x100038], 0
cmp dword [0x100493ec], 0xffffffff
je 0x100076f0
cmp byte [0x10149420], 0
jne 0x10007723
push 0x1000b400
mov ecx, 0x100493e8
call fcn.1000bf30
test al, al
je 0x10007723
movzx eax, word [0x10049004]
mov ecx, 0x100493e8
push eax
push 0x10049027
call fcn.10006c60
test al, al
je 0x10007723
call fcn.10004c10
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
add dword [edi + 0x8000c], eax
cmp dword [edi + 0x8000c], 4
jl 0x100076a5
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 0x10007759
movzx ebx, byte [ecx + edi + 0xd]
mov dl, al
jmp 0x10007776
cmp al, 0xc2
jne 0x10007823
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 0x10007823
cmp ebx, 0x80000
jg 0x10007823
cmp ebx, dword [edi + 0x8000c]
jg 0x100077f1
cmp dl, 0xc1
jne 0x100077a6
movzx eax, byte [ecx + edi + 0xe]
lea esi, [edi + 0xf]
push eax
lea eax, [ebx - 3]
jmp 0x100077b2
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.1000d350
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 0x1000781a
jmp 0x10007741
test ecx, ecx
jle 0x1000781a
mov eax, dword [edi + 0x8000c]
test eax, eax
jle 0x1000781a
mov edx, 0x80000
sub edx, ecx
cmp eax, edx
jg 0x1000781a
push eax
lea eax, [edi + 0xc]
add eax, ecx
push eax
push esi
call fcn.1001c070
add esp, 0xc
pop ebx
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.10007c20
pop ebx
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10007840
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.1001a920
mov eax, dword [0x101499e4]
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 0x10007a03
cmp byte [edi + 0x100038], 0
je 0x10007a03
push esi
push 0x80000
lea eax, [ebp - 0x80004]
push 0
push eax
call fcn.1001d760
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x80004]
push esi
push dword [ebp - 0x80008]
push eax
call fcn.1001d1e0
add esp, 0x18
cmp byte [ebp - 0x80004], 0xc1
jne 0x100078d6
push dword [ebp - 0x80002]
lea eax, [esi - 3]
push eax
lea eax, [ebp - 0x80001]
jmp 0x100078e6
push dword [ebp - 0x80001]
lea eax, [esi - 4]
push eax
lea eax, [ebp - 0x80000]
push eax
call fcn.1000d3f0
mov ecx, dword [edi + 0x100010]
add esp, 0xc
test ecx, ecx
jle 0x10007948
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10007926
mov ecx, edi
call fcn.10007c20
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.1001a90f
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.1001d1e0
add esp, 0xc
add dword [edi + 0x100010], esi
push ebx
jmp 0x10007979
xor ebx, ebx
test esi, esi
jle 0x10007972
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 0x10007994
sub esi, eax
add ebx, eax
test esi, esi
jg 0x10007950
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.1001a90f
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100079da
mov ecx, dword [edi + 0x100010]
lea eax, [ecx + esi]
cmp eax, 0x80000
jg 0x100079da
lea eax, [ebp - 0x80004]
add eax, ebx
push esi
push eax
lea eax, [edi + 0x80010]
add eax, ecx
push eax
call fcn.1001d1e0
add esp, 0xc
lea eax, [edi + 0x10001c]
add dword [edi + 0x100010], esi
jmp 0x10007978
mov ecx, edi
call fcn.10007c20
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.1001a90f
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.1001a90f
mov esp, ebp
pop ebp
ret 8
Function at 0x10007a20
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 0x10007a72
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 0x10007a7f
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
lea eax, [esi + 0x80010]
jg 0x10007a42
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 0x10007ab7
push dword [esi + 0x100010]
lea eax, [esi + 0x80010]
add eax, edi
push eax
lea eax, [esi + 0x80010]
push eax
call fcn.1001c070
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 0x10007acd
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10007ae2
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 0x10007b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
test edx, edx
jle 0x10007b2e
push esi
mov esi, dword [ebp + 8]
mov cl, byte [0x1014ac3d]
add cl, 0xf
xor cl, byte [eax + esi]
sub cl, byte [0x1014ac3e]
add cl, 0xf
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x10007b10
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038928
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x101499e4]
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 [0x10149430]
cmp eax, 0x927c0
jb 0x10007b75
call esi
mov dword [0x10149430], 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, 0x1004918c
call fcn.10011f80
test al, al
jne 0x10007bd8
mov esi, dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x18]
jne 0x10007be6
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.1000e480
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdiplusShutdown
test esi, esi
je 0x10007c01
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
sub eax, esi
push eax
push esi
call fcn.100112d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007c60
Capabilities:
Check if file exists
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x101499e4]
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 0x10007c84
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 0x10007d4e
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 0x10007cc0
lea eax, [ebp - 0x14]
mov byte [ebp - 5], 0
push eax
call esi
test eax, eax
jne 0x10007d4e
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 0x10007cf0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x15], 0
push eax
call esi
test eax, eax
jne 0x10007d4e
mov eax, 0x1003bfd8
lea ecx, [ebp - 0x70]
sub eax, 0x32593faf
push eax
call fcn.10002880
push eax
call esi
test eax, eax
jne 0x10007d4e
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 0x10007d4e
xor al, al
jmp 0x10007d50
mov al, 1
test al, al
jne 0x10007e5a
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 0x10007d60
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 0x10007ddb
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 + 0x1003bdc8]
xor al, dl
mov byte [ebp + ecx - 0x50], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x2a
jb 0x10007de2
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 0x10007e5a
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x10]
mov eax, 0x1003bdf4
sub eax, 0x38d41ae2
push eax
call fcn.10002e80
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.1001a90f
mov esp, ebp
pop ebp
ret
Function at 0x10007e70
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 0x10007ea1
push edi
mov edi, dword [ebp + 8]
mov dl, byte [eax + edi]
mov cl, byte [0x1014ac3d]
sub dl, 0xf
add dl, byte [0x1014ac3e]
add cl, 0xf
xor dl, cl
mov byte [eax + edi], dl
inc eax
cmp eax, esi
jl 0x10007e81
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x101499e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x1003bb14
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], ecx
push eax
or ebx, 0xffffffff
mov dword [ebp - 0x408], 0
call fcn.10020776
add esp, 0xc
test eax, eax
je 0x10007f67
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a90f
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.100234db
mov edi, eax
lea esi, [ebp - 0x404]
add esp, 0x10
mov dword [ebp - 0x410], edi
mov edx, edi
test edi, edi
je 0x10007fc2
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 0x10007fa6
mov edi, dword [ebp - 0x410]
cmp edi, 0x400
je 0x10007f70
push dword [ebp - 0x408]
call fcn.10022de2
mov ecx, dword [ebp - 4]
add esp, 4
not ebx
xor ecx, ebp
mov eax, ebx
pop edi
pop esi
pop ebx
call fcn.1001a90f
mov esp, ebp
pop ebp
ret 4

Function at 0x10007ff0
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 0x1003bb1c
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.100207bd
add esp, 0xc
test eax, eax
je 0x10008029
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.10020189
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10008056
call fcn.10022de2
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.100234db
add esp, 0x10
test eax, eax
je 0x100080a6
mov esi, ebx
test eax, eax
je 0x10008091
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 0x10008070
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push ebx
call fcn.100234db
add esp, 0x10
test eax, eax
jne 0x10008066
push ebx
call fcn.10020184
push dword [ebp + 0xc]
call fcn.10022de2
not dword [edi]
add esp, 8
mov al, 1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100080d0
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 0x1003bb14
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.10020776
add esp, 0xc
test eax, eax
je 0x10008109
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.10020189
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10008136
call fcn.10022de2
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.100234db
add esp, 0x10
test eax, eax
je 0x10008186
mov esi, ebx
test eax, eax
je 0x10008171
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 0x10008150
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push ebx
call fcn.100234db
add esp, 0x10
test eax, eax
jne 0x10008146
push ebx
call fcn.10020184
push dword [ebp + 0xc]
call fcn.10022de2
not dword [edi]
add esp, 8
mov al, 1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100081b0
Capabilities:
Parse pe header
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x101499e4]
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 0x10008203
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10008216
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a90f
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 0x1000824b
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.1001a90f
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 0x100082cb
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x100082c4
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x100082c4
movzx ecx, word [eax + 4]
mov edx, 0x14c
cmp cx, dx
je 0x10008294
mov edx, 0x8664
cmp cx, dx
jne 0x100082c4
push dword [eax + 0x28]
push dword [eax + 0x34]
push eax
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
mov ecx, eax
test ecx, ecx
je 0x100082c4
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 0x100082ec
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.1001a90f
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 0x100082c5
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.1001a90f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100098a0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x101499e4]
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.1001a90f
mov esp, ebp
pop ebp
ret
Function at 0x1000a080
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100386eb
mov eax, dword fs:[0]
push eax
sub esp, 0xc28
mov eax, dword [0x101499e4]
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.10008340
add esp, 8
mov word [ebp - 0xc24], 0xac2
mov byte [ebp - 0xc22], 0xc
call fcn.10020194
and eax, 0x800000ff
jns 0x1000a108
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 0x1000a1e8
lea esi, [ebp - 0x718]
cmp edi, 0x14
jge 0x1000a1e8
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 0x1000a142
push 0xa0c
lea eax, [ebp - 0xc24]
mov ecx, 0x100493e8
push eax
call fcn.10007840
test ebx, ebx
je 0x1000a25a
mov eax, dword [ebp - 0xc28]
sub eax, ebx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x1000a219
call fcn.1001fec1
shl eax, 2
cmp eax, 0x1000
jb 0x1000a251
test bl, 0x1f
je 0x1000a22d
call fcn.1001fec1
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x1000a239
call fcn.1001fec1
sub ebx, eax
cmp ebx, 4
jae 0x1000a245
call fcn.1001fec1
cmp ebx, 0x23
jbe 0x1000a24f
call fcn.1001fec1
mov ebx, eax
push ebx
call fcn.1001a160
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.1001a90f
mov esp, ebp
pop ebp
ret 4