joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a7750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1c], 0
je 0x5a7764
push 0x5b781c
jmp 0x5a7769
push 0x5b5f5c
push dword [ebp + 0xc]
call fcn.00582816
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x5a7780
or eax, 0xffffffff
pop esi
pop ebp
ret
push ebx
push edi
push 2
push 0
push 0
push eax
call fcn.00582a9c
add esp, 0x10
test eax, eax
js 0x5a781d
push dword [esi]
call fcn.00582bd3
mov ebx, edx
add esp, 4
mov edi, eax
test ebx, ebx
jl 0x5a781d
jg 0x5a77b1
test edi, edi
jb 0x5a781d
push 0
push 0
push 0
push dword [esi]
call fcn.00582a9c
add esp, 0x10
test eax, eax
js 0x5a781d
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
test ebx, ebx
jl 0x5a781d
jg 0x5a77e5
cmp edi, 1
jb 0x5a781d
lea eax, [edi + 2]
push eax
call fcn.0058023c
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x5a781d
push dword [esi]
push 1
push edi
push eax
call fcn.005829f0
add esp, 0x10
cmp eax, 1
je 0x5a7835
push dword [esi + 0x14]
call fcn.00580204
add esp, 4
mov dword [esi + 0x14], 0
push dword [esi]
call fcn.005826db
add esp, 4
mov dword [esi], 0
or eax, 0xffffffff
pop edi
pop ebx
pop esi
pop ebp
ret
push dword [esi]
call fcn.005826db
mov eax, dword [esi + 0x14]
mov dword [esi], 0
mov byte [edi + eax], 0xa
mov eax, dword [esi + 0x14]
mov byte [eax + edi + 1], 0
push dword [esi + 0x14]
push esi
call fcn.005a7890
add esp, 0xc
mov eax, 1
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x5a8020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [esi + 0x28], 0
je 0x5a803f
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea edi, [esi + 0x44]
xorps xmm0, xmm0
movdqu xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov eax, dword [esi + 0x10]
push eax
mov dword [esi + 0x54], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [esi + 0x3c], 0
push edi
je 0x5a80e1
mov eax, dword [esi + 0x58]
xorps xmm0, xmm0
movq qword [eax], xmm0
lea eax, [ebp - 4]
push eax
push 8
push dword [esi + 0x58]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
je 0x5a8124
push 4
push str.com.winpr.wtsapi
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x5a80d9
push dword [ebp - 4]
push edi
push str.Unexpected_ReadFile_status:__I32d_numBytes:__I32u
push str.Win32_WTSVirtualChannelReadAsync
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPwinprlibwinprwtsapiwtsapi_win32.c
push 0x9b
push 4
push 0
push str.com.winpr.wtsapi
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x24
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0x640
push dword [esi + 0x1c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a8124
mov ecx, dword [esi + 0x58]
mov eax, dword [ebp - 4]
mov dword [esi + 0x34], 0
mov dword [ecx], eax
push dword [esi + 0x10]
mov dword [esi + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x5a8188
push 4
push str.com.winpr.wtsapi
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x5a8180
call edi
push eax
push str.ReadFile:_GetLastError_____I32u
push str.Win32_WTSVirtualChannelReadAsync
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPwinprlibwinprwtsapiwtsapi_win32.c
push 0xa1
push 4
push 0
push str.com.winpr.wtsapi
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x20
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x28], 1
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5a81a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x24], 0
je 0x5a8267
mov edi, dword [ebp + 0x18]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0xc], 0
movdqu xmmword [ebp - 0x14], xmm0
mov dword [edi], 0
mov eax, dword [esi + 0x58]
mov dword [ebp - 4], 0
mov eax, dword [eax]
sub eax, dword [esi + 0x34]
cmp ecx, eax
cmova ecx, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 0x10]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a8241
mov eax, dword [ebp + 0xc]
add dword [edi], eax
add dword [esi + 0x34], eax
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x34]
cmp ecx, dword [eax]
je 0x5a8224
push 0xea
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
push esi
mov dword [esi + 0x24], 0
call fcn.005a8020
add esp, 4
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x5a821a
push 1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x5a821a
jmp 0x5a81fd
cmp dword [esi + 0x28], 0
je 0x5a821a
mov edi, dword [ebp + 0x18]
push dword [ebp + 0xc]
mov dword [ebp + 8], 0
mov dword [edi], 0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x5a8362
push ebx
push 1
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x44]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp dword [esi + 0x3c], 0
je 0x5a82ea
mov edi, dword [ebp + 8]
cmp edi, 8
jne 0x5a8333
test eax, eax
jne 0x5a82ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x5a8333
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push edi
push dword [esi + 0x58]
push ebx
call fcn.00580540
mov eax, dword [ebp + 0x18]
add ebx, edi
mov ecx, dword [ebp + 0x14]
add esp, 0xc
add dword [eax], edi
sub ecx, edi
mov edi, eax
jmp 0x5a82f0
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov eax, dword [esi + 0x58]
mov dword [esi + 0x28], 0
cmp dword [eax], 0
jne 0x5a8316
push esi
call fcn.005a8020
add esp, 4
mov eax, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov dword [esi + 0x24], 1
mov dword [esi + 0x34], 0
test ecx, ecx
jne 0x5a833e
push 0xea
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push ecx
push ebx
push dword [ebp + 0xc]
push esi
call fcn.005a81a0
mov ecx, dword [ebp + 8]
add dword [edi], ecx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 0x3e4
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5abde0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
lea eax, [ebp - 4]
push eax
push 0
push 0
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x5abeb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x5abeb5
push esi
push 1
push dword [ebp - 4]
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
je 0x5abe3f
lea eax, [ebp - 4]
push eax
push esi
push 0
call edi
test eax, eax
jne 0x5abe48
push esi
call fcn.00580204
add esp, 4
pop esi
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0xf
jbe 0x5abe52
mov byte [esi + 0xf], 0
cmp dword [ebp + 0xc], 0
jne 0x5abe5f
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
push ebx
mov ebx, dword [ebp + 8]
push 0
lea eax, [ebx + 4]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call fcn.00430810
add esp, 0x18
mov edi, eax
push esi
test edi, edi
jg 0x5abe93
call fcn.00580204
add esp, 4
mov eax, edi
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [edi*2 - 2]
mov word [ebx], ax
mov word [ebx + 2], ax
call fcn.00580204
add esp, 4
mov eax, 1
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x5af1e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0x38
push 1
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
je 0x5af239
call sym.wfreerdp.exe_primitives_get
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, 1
cmp eax, dword [ebp - 0x10]
sbb eax, eax
neg eax
mov dword [esi + 8], eax
je 0x5af259
mov eax, dword [ebp - 0x10]
push 0
mov dword [esi + 0xc], eax
call fcn.0059de40
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
jne 0x5af240
push esi
call fcn.00580204
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x18]
push eax
call fcn.00450ab0
mov eax, dword [esi + 0x14]
add esp, 4
mov dword [esi + 0x1c], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], 1
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401426
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.0040175b
test eax, eax
je 0x401445
mov eax, 1
jmp 0x4014e8
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 1
push 0x800
call fcn.004c03fb
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
cmp dword [ebp - 8], 0
jne 0x40147b
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.00401800
push eax
push 0x800
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 8
call fcn.00401800
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4014d3
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004ab230
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov byte [eax - 1], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004c0424
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4014ee
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.0040175b
test eax, eax
je 0x401508
mov eax, dword [ebp + 0xc]
jmp 0x401534
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.00401800
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.00401800
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x40153a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0040175b
test eax, eax
je 0x401554
fld qword [ebp + 0xc]
jmp 0x4015bd
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4f8128
lea edx, [ebp - 0x28]
push edx
call fcn.004ab385
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
add ecx, 4
call fcn.00401800
push eax
push 0x20
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 8
call fcn.00401800
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4015ba
lea eax, [ebp - 0x28]
push eax
call fcn.004ab32e
add esp, 4
fstp qword [ebp - 8]
fld qword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4015c3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
call fcn.0040175b
test eax, eax
je 0x4015e2
mov eax, 1
jmp 0x4016b5
cmp dword [ebp + 0x10], 1
jb 0x4015ee
cmp dword [ebp + 0xc], 0
jne 0x4015f5
xor eax, eax
jmp 0x4016b5
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push 0x1000
call fcn.004c03fb
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00401800
push eax
push 0x1000
mov edx, dword [ebp - 4]
push edx
push 0x506f30
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 8
call fcn.00401800
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4016a0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x401665
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004ab410
add esp, 4
shr eax, 1
cmp dword [ebp - 0x14], eax
jae 0x4016a0
lea eax, [ebp - 8]
push eax
push str._02x
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*2]
push eax
call fcn.004ab3d7
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ecx], dl
jmp 0x40165c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004c0424
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x431623
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd7cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push 0x100000
call fcn.004c03fb
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
call fcn.004017e0
mov dword [ebp - 4], 0
push str.TempFile.txt
push 0x50c700
lea ecx, [ebp - 0x28]
push ecx
call fcn.004c00c5
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
call fcn.004bff69
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004bfe7c
push 0x4fbd64
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ac955
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4317d5
push 2
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.004acb8f
add esp, 0xc
mov eax, dword [ebp - 0x20]
push eax
call fcn.004acc48
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x100000
jle 0x4317bc
push 0x4fbd68
lea ecx, [ebp - 0x18]
call fcn.00401800
push eax
call fcn.004ac955
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4317bc
cmp dword [ebp - 0x14], 0
je 0x4317bc
mov eax, dword [ebp - 0x10]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 1
test ecx, ecx
je 0x431730
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004acb8f
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x431780
mov edx, dword [ebp - 0x20]
push edx
push 0x100000
push 1
mov eax, dword [ebp - 0x14]
push eax
call fcn.004ab9ed
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43177e
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0x14]
push eax
call fcn.004ab8b4
add esp, 0x10
jmp 0x431742
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004ac8a7
add esp, 4
mov edx, dword [ebp - 0x20]
push edx
call fcn.004ac8a7
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00401800
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp dword [ebp - 0x20], 0
je 0x4317ce
mov edx, dword [ebp - 0x20]
push edx
call fcn.004ac8a7
add esp, 4
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4317ed
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004c0424
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004bfe7c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x45e176
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
fild qword [ebp - 0x18]
fdiv qword [0x507df8]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 1
je 0x45e1f2
call fcn.0047db32
call fcn.0046238f
push 0
push 2
call fcn.00461370
add esp, 8
test eax, eax
je 0x45e1db
mov dword [0x50a718], 3
cmp dword [0x50a718], 0
je 0x45e1e6
jmp 0x45e1f2
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x45e192
mov eax, dword [0x50a718]
mov esp, ebp
pop ebp
ret
Function at 0x473dd0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret

Function at 0x47a970
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 1
jne 0x47a9b0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fild qword [ebp - 8]
fstp qword [0x50c4b8]
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [ebp - 8]
fdiv qword [0x50c4b8]
fstp qword [0x50c4b0]
fld qword [0x4e2d78]
jmp 0x47a9c9
lea edx, [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [ebp - 8]
fdiv qword [0x50c4b8]
fsub qword [0x50c4b0]
mov esp, ebp
pop ebp
ret
Function at 0x48140b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + 0x100]
mov byte [ebp - 0xc], cl
mov edx, dword [ebp + 0x10]
mov al, byte [edx + 0x101]
mov byte [ebp - 0x10], al
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov word [ebp - 0x14], 0
jmp 0x481445
mov dx, word [ebp - 0x14]
add dx, 1
mov word [ebp - 0x14], dx
movsx eax, word [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jge 0x48153d
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
add ecx, 1
and ecx, 0x800000ff
jns 0x48146e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 0xc], cl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + edx]
mov edx, dword [ebp - 0x10]
and edx, 0xff
add ecx, edx
and ecx, 0x800000ff
jns 0x48149d
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 0x10], cl
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + eax]
mov byte [ebp - 4], dl
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 8]
mov al, byte [ebp - 4]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
mov edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx + ecx]
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 8]
xor ebx, ebx
mov bl, byte [edx + ecx]
add eax, ebx
and eax, 0x800000ff
jns 0x481512
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x18], al
movsx eax, word [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov al, byte [edx + eax]
xor al, byte [esi + ecx]
movsx ecx, word [ebp - 0x14]
mov edx, dword [ebp + 8]
mov byte [edx + ecx], al
jmp 0x481439
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 0xc]
mov byte [eax + 0x100], cl
mov edx, dword [ebp + 0x10]
mov al, byte [ebp - 0x10]
mov byte [edx + 0x101], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48378c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0xffffffff
jne 0x4837a9
xor eax, eax
jmp 0x483817
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x483815
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3e5
jne 0x483815
push 1
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x1c
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x48380c
mov eax, dword [ebp - 4]
jmp 0x483817
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x486c72
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov dword [ebp - 0x194], ecx
mov ecx, dword [ebp - 0x194]
add ecx, 0xc
call fcn.00487150
mov eax, dword [ebp - 0x194]
mov dword [eax], 0x4e5c88
lea ecx, [ebp - 0x190]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, dword [ebp - 0x194]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x194]
mov dword [eax + 8], 0xffffffff
mov ecx, dword [ebp - 0x194]
mov dword [ecx + 0x430], 0
mov edx, dword [ebp - 0x194]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 0x194]
mov esp, ebp
pop ebp
ret

Function at 0x486d44
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 0x128], ecx
mov eax, dword [ebp - 0x128]
cmp dword [eax + 4], 0
jne 0x486f24
mov ecx, dword [ebp - 0x128]
call fcn.00486f2f
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x128]
mov dword [ecx + 8], eax
mov dword [ebp - 0x108], 1
lea edx, [ebp - 0x108]
push edx
push 0x8004667e
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x114], edx
mov word [ebp - 0x118], 2
mov ax, word [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x116], ax
push 0x10
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x124], 0
jmp 0x486e0b
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x124]
cmp edx, dword [ebp - 0x104]
jae 0x486e35
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp + eax*4 - 0x100]
cmp edx, dword [ecx + 8]
jne 0x486e33
jmp 0x486e35
jmp 0x486dfc
mov eax, dword [ebp - 0x124]
cmp eax, dword [ebp - 0x104]
jne 0x486e71
cmp dword [ebp - 0x104], 0x40
jae 0x486e71
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 8]
mov dword [ebp + ecx*4 - 0x100], eax
mov ecx, dword [ebp - 0x104]
add ecx, 1
mov dword [ebp - 0x104], ecx
xor edx, edx
test edx, edx
jne 0x486df0
mov dword [ebp - 0x120], 2
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x120]
push eax
push 0
lea ecx, [ebp - 0x104]
push ecx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x486ed1
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x128]
mov dword [ecx + 8], 0xffffffff
mov eax, 1
jmp 0x486f29
mov dword [ebp - 0x108], 0
lea edx, [ebp - 0x108]
push edx
push 0x8004667e
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [ebp - 0x128]
mov dword [edx + 0x430], 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x128]
push eax
push 0x486b30
call fcn.004c4b6c
xor eax, eax
jmp 0x486f29
mov eax, 1
mov esp, ebp
pop ebp
ret 8