joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100027d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xbe
xor eax, eax
mov dl, byte [edi + eax + 0x6e0053c7]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x11
jb 0x100027e1
pop edi
mov byte [esi + 0x11], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10002810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xdd
xor eax, eax
mov dl, byte [edi + eax - 0x6db8ad5e]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x16
jb 0x10002821
pop edi
mov byte [esi + 0x16], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10002850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xe8
xor eax, eax
mov dl, byte [edi + eax + 0x3566316e]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x2a
jb 0x10002861
pop edi
mov byte [esi + 0x2a], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10002890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xeb
xor eax, eax
mov dl, byte [edi + eax - 0x7b6b46e5]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x20
jb 0x100028a1
pop edi
mov byte [esi + 0x20], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10002980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xf0
xor eax, eax
mov dl, byte [edi + eax + 0xab77782]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x17
jb 0x10002991
pop edi
mov byte [esi + 0x17], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x10004240
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002bf38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x1013b994]
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 [0x1013b430]
cmp eax, 0x927c0
jb 0x10004285
call esi
mov dword [0x1013b430], eax
cmp dword [edi + 4], 0
je 0x10004319
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 dword [edi + 8]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.1000aeb0
mov esi, dword [ebp - 0x1c]
test al, al
je 0x100042fe
cmp esi, dword [ebp - 0x18]
je 0x100042fe
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.10008030
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdiplusShutdown
test esi, esi
je 0x10004319
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
sub eax, esi
push eax
push esi
call fcn.1000a360
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004610
Capabilities:
Create process on windows
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
mov eax, dword [0x1013b994]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test bl, 0xe
jne 0x10004644
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100101d0
mov esp, ebp
pop ebp
ret 8
push esi
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.10012fd0
push 0x208
lea eax, [ebp - 0x558]
push 0
push eax
call fcn.10012fd0
push 0x208
lea eax, [ebp - 0x350]
push 0
push eax
call fcn.10012fd0
add esp, 0x24
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10004833
push 0x104
lea eax, [ebp - 0x558]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1000482c
push 0x104
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x558]
push eax
call fcn.10005430
add esp, 0xc
test al, al
je 0x1000482c
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.10012fd0
lea eax, [ebp - 0x558]
mov word [ebp - 0x574], 0x5325
push eax
mov byte [ebp - 0x572], 0
call fcn.100053d0
push eax
lea eax, [ebp - 0x574]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
test bl, 2
je 0x1000479a
lea eax, [ebp - 0x44]
mov ecx, 0x1013b480
push eax
lea eax, [ebp - 0x350]
push eax
call fcn.10004520
test al, al
jne 0x1000479a
push 0x7dbb98e2
lea ecx, [ebp - 0x570]
call fcn.10002810
push edi
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.1000d0d0
add esp, 0xc
lea eax, [ebp - 0x148]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x104
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.10012fd0
add esp, 0xc
push 0
push esi
call 0x100089c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100101d0
mov esp, ebp
pop ebp
ret 8
test bl, 4
je 0x100047e3
lea eax, [ebp - 0x44]
mov ecx, 0x1013b484
push eax
lea eax, [ebp - 0x350]
push eax
call fcn.10004330
test al, al
jne 0x100047e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [ebp - 0x44]
push eax
push 2
call fcn.100040a0
add esp, 0xc
xor al, al
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100101d0
mov esp, ebp
pop ebp
ret 8
test bl, 8
je 0x1000482c
lea eax, [ebp - 0x44]
mov ecx, 0x1013b434
push eax
lea eax, [ebp - 0x350]
push eax
call fcn.100043f0
test al, al
jne 0x1000482c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [ebp - 0x44]
push eax
push 5
call fcn.100040a0
add esp, 0xc
xor al, al
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100101d0
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.100101d0
mov esp, ebp
pop ebp
ret 8
Function at 0x10004850
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.100101f0
mov eax, dword [0x1013b994]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x100c], ecx
push eax
push 0x1000
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1008], 0
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x100048a5
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100101d0
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [ebp - 0x1008]
push esi
shr ebx, 2
xor esi, esi
push edi
test ebx, ebx
jle 0x1000492b
nop word [eax + eax]
mov edi, dword [ebp + esi*4 - 0x1004]
test edi, edi
je 0x10004926
mov ecx, dword [ebp - 0x100c]
lea eax, [ebp - 0x1014]
push edi
push eax
call fcn.10006120
test al, al
jne 0x10004926
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x100c]
push eax
push edi
call fcn.10006ed0
push dword [ebp + 8]
mov ecx, dword [ebp - 0x100c]
push dword [ebp + esi*4 - 0x1004]
call fcn.10004960
test al, al
je 0x10004940
push dword [ebp + 8]
mov ecx, 0x1013b488
push dword [ebp + esi*4 - 0x1004]
call fcn.10004610
test al, al
je 0x10004940
inc esi
cmp esi, ebx
jl 0x100048c0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100101d0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100101d0
mov esp, ebp
pop ebp
ret 4

Function at 0x10004a10
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.100101f0
mov eax, dword [0x1013b994]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x110c]
push eax
push 0x1000
lea eax, [ebp - 0x1108]
mov dword [ebp - 0x110c], 0
push eax
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x10004a65
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100101d0
mov esp, ebp
pop ebp
ret 8
push esi
push edi
mov edi, dword [ebp - 0x110c]
xor esi, esi
shr edi, 2
test edi, edi
jle 0x10004ad4
nop word [eax + eax]
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp + esi*4 - 0x1108]
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x10004acf
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x108]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10004ac6
test dl, dl
je 0x10004ac2
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10004ac6
add ecx, 2
add eax, 2
test dl, dl
jne 0x10004aa6
xor eax, eax
jmp 0x10004acb
sbb eax, eax
or eax, 1
test eax, eax
je 0x10004ae9
inc esi
cmp esi, edi
jl 0x10004a80
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100101d0
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100101d0
mov esp, ebp
pop ebp
ret 8
Function at 0x10004d00
Capabilities:
Connect socket
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1013b994]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 4], 0xffffffff
je 0x10004d8b
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x10004d63
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10004d63
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.10012a50
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10004d9f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10004d9f
mov ecx, esi
call fcn.10005c50
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100101d0
mov esp, ebp
pop ebp
ret 8
push 0x23
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10004df8
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10004dc8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10004ddd
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
pop edi
mov byte [esi + 0x100038], 0
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100101d0
mov esp, ebp
pop ebp
ret 8
push 0x80000
lea eax, [esi + 0xc]
push 0
push eax
call fcn.10012fd0
push 0x80000
lea eax, [esi + 0x80010]
mov dword [esi + 0x8000c], 0
push 0
push eax
call fcn.10012fd0
add esp, 0x18
mov dword [esi + 0x100010], 0
push 0
push 0
push esi
push 0x10004bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
mov byte [esi + 0x100038], 1
xor ecx, ebp
pop esi
call fcn.100101d0
mov esp, ebp
pop ebp
ret 8
Function at 0x10005430
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002bf06
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x1013b994]
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 [0x1002e8cc]
mov dword [ebp - 0x18], eax
mov ax, word [0x1002e8d0]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x620]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10005594
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 0x10005580
xor eax, eax
mov dword [ebp - 0x624], 7
mov dword [ebp - 0x628], 0
mov word [ebp - 0x638], ax
cmp word [ebx], ax
je 0x100054ff
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100054f0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x638]
call fcn.1000a020
cmp word [ebp - 0x220], 0
mov dword [ebp - 4], 0
jne 0x10005521
xor ecx, ecx
jmp 0x1000553f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005530
sub ecx, edx
sar ecx, 1
push ecx
push 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x638]
call fcn.1000aca0
mov edi, eax
cmp edi, 0xffffffff
jne 0x100055b2
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x624]
cmp eax, 8
jb 0x10005580
inc eax
lea ecx, [ebp - 0x638]
push eax
push dword [ebp - 0x638]
call fcn.1000a3c0
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10005580
cmp word [esi], ax
jne 0x100054a0
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.100101d0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x650]
call fcn.10002c70
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x638]
push esi
inc eax
mov byte [ebp - 4], 1
push eax
push edi
call fcn.1000c0f0
mov eax, dword [ebp - 0x63c]
cmp eax, 8
jb 0x100055f8
inc eax
lea ecx, [ebp - 0x650]
push eax
push dword [ebp - 0x650]
call fcn.1000a3c0
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.1001580d
mov eax, dword [ebp - 0x624]
add esp, 0xc
cmp eax, 8
jb 0x1000563c
inc eax
lea ecx, [ebp - 0x638]
push eax
push dword [ebp - 0x638]
call fcn.1000a3c0
mov al, 1
jmp 0x10005596
Function at 0x100058a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.100101f0
mov eax, dword [0x1013b994]
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 0x10005a63
cmp byte [edi + 0x100038], 0
je 0x10005a63
push esi
push 0x80000
lea eax, [ebp - 0x80004]
push 0
push eax
call fcn.10012fd0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x80004]
push esi
push dword [ebp - 0x80008]
push eax
call fcn.10012a50
add esp, 0x18
cmp byte [ebp - 0x80004], 0xc1
jne 0x10005936
push dword [ebp - 0x80002]
lea eax, [esi - 3]
push eax
lea eax, [ebp - 0x80001]
jmp 0x10005946
push dword [ebp - 0x80001]
lea eax, [esi - 4]
push eax
lea eax, [ebp - 0x80000]
push eax
call fcn.100078c0
mov ecx, dword [edi + 0x100010]
add esp, 0xc
test ecx, ecx
jle 0x100059a8
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10005986
mov ecx, edi
call fcn.10005c50
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.100101d0
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.10012a50
add esp, 0xc
add dword [edi + 0x100010], esi
push ebx
jmp 0x100059d9
xor ebx, ebx
test esi, esi
jle 0x100059d2
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 0x100059f4
sub esi, eax
add ebx, eax
test esi, esi
jg 0x100059b0
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.100101d0
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10005a3a
mov ecx, dword [edi + 0x100010]
lea eax, [ecx + esi]
cmp eax, 0x80000
jg 0x10005a3a
lea eax, [ebp - 0x80004]
add eax, ebx
push esi
push eax
lea eax, [edi + 0x80010]
add eax, ecx
push eax
call fcn.10012a50
add esp, 0xc
lea eax, [edi + 0x10001c]
add dword [edi + 0x100010], esi
jmp 0x100059d8
mov ecx, edi
call fcn.10005c50
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.100101d0
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.100101d0
mov esp, ebp
pop ebp
ret 8
Function at 0x10005a80
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 0x10005ad2
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 0x10005adf
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
lea eax, [esi + 0x80010]
jg 0x10005aa2
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 0x10005b17
push dword [esi + 0x100010]
lea eax, [esi + 0x80010]
add eax, edi
push eax
lea eax, [esi + 0x80010]
push eax
call fcn.10011980
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 0x10005b2d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10005b42
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 0x10005b60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002bf38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x1013b994]
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 [0x1013b430]
cmp eax, 0x927c0
jb 0x10005ba5
call esi
mov dword [0x1013b430], 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, 0x1003b18c
call fcn.1000aeb0
test al, al
jne 0x10005c08
mov esi, dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x18]
jne 0x10005c16
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.10008170
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdiplusShutdown
test esi, esi
je 0x10005c31
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
sub eax, esi
push eax
push esi
call fcn.1000a360
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005cf0
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 0x1002e8dc
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.10015f22
add esp, 0xc
test eax, eax
je 0x10005d29
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.100159f9
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10005d56
call fcn.1001777f
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.10017e78
add esp, 0x10
test eax, eax
je 0x10005da6
mov esi, ebx
test eax, eax
je 0x10005d91
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 0x10005d70
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push ebx
call fcn.10017e78
add esp, 0x10
test eax, eax
jne 0x10005d66
push ebx
call fcn.100159f4
push dword [ebp + 0xc]
call fcn.1001777f
not dword [edi]
add esp, 8
mov al, 1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10005dd0
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 0x1002e8d4
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.10015edb
add esp, 0xc
test eax, eax
je 0x10005e09
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.100159f9
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10005e36
call fcn.1001777f
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.10017e78
add esp, 0x10
test eax, eax
je 0x10005e86
mov esi, ebx
test eax, eax
je 0x10005e71
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 0x10005e50
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push ebx
call fcn.10017e78
add esp, 0x10
test eax, eax
jne 0x10005e46
push ebx
call fcn.100159f4
push dword [ebp + 0xc]
call fcn.1001777f
not dword [edi]
add esp, 8
mov al, 1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc