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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x646528]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x55edaa
cmp word [esi], dx
jne 0x55edaa
or byte [edi + eax + 0x28], 4
jmp 0x55edaf
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x55ef02
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x55eee2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x55edf1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x55ee27
cmp eax, edx
jae 0x55ee33
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x55edc9
jmp 0x55ef02
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x55eede
cmp dword [ebp - 0x14], 0
je 0x55eede
mov eax, dword [ebx*4 + 0x646528]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x55eeb6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x55ee7f
mov word [esi], cx
jmp 0x55eeb2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x646528]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x646528]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x646528]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x55ef02
pop ebx
cmp word [ebp - 4], bx
jne 0x55eec7
cmp esi, dword [ebp + 0xc]
jne 0x55eec7
mov word [esi], bx
jmp 0x55eeff
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0056d0a2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x55ef02
push 0xd
jmp 0x55eefb
mov ecx, dword [ebx*4 + 0x646528]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x55eef9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x55ef02
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x56ac74
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x632f90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5c8d00
push esi
call fcn.0057ea92
pop ecx
pop ecx
test eax, eax
jne 0x56aca2
xor al, al
jmp 0x56ad1f
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0056a8d7
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x56acdc
push dword [ebp - 0x210]
call fcn.00550c3b
xor al, al
jmp 0x56ad1d
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x56ace2
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x56ad02
push edx
call fcn.0056abaa
pop ecx
test al, al
je 0x56accd
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x56ad10
mov bl, 1
push dword [ebp - 0x210]
call fcn.00550c3b
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00526f37
leave
ret

Function at 0x57865d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00578244

Function at 0x578668
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005783d3
Function at 0x579e4b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ca8e4
push 0x5ca8dc
push str.FlsAlloc
push 0x1e
call fcn.00579b1b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x579e7f
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b53a0]
call esi
jmp 0x579e85
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x579ec9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ca8f4
push 0x5ca8ec
push str.FlsGetValue
push 0x20
call fcn.00579b1b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x579f00
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b53a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x57ab63
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005282d0
mov eax, dword [0x632f90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00575b11
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x57aba5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x57ad01
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005279b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x646528]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0056d084
mov ecx, dword [esi*4 + 0x646528]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x57acfa
cmp eax, dword [edi + ecx + 0x24]
jne 0x57acfa
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57acfa
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0056d084
add esp, 0x14
test edx, edx
jl 0x57acfa
jg 0x57ac70
test eax, eax
jb 0x57acfa
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x57acfa
jl 0x57ac8a
cmp dword [ebp - 0x1008], eax
ja 0x57acfa
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x57aca8
test ebx, ebx
je 0x57ace1
cmp ecx, edi
jae 0x57ace1
mov al, byte [ecx]
cmp al, 0xd
jne 0x57acc2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x57acce
cmp byte [ecx + 1], 0xa
jne 0x57acce
inc ecx
jmp 0x57acce
movzx eax, al
movsx eax, byte [eax + 0x633128]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x57aca8
cmp edx, ebx
jne 0x57aca8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x57acff
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00526f37
leave
ret
Function at 0x57d818
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0057d638
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x57d990
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x57d990
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x57d93f
jg 0x57d871
test eax, eax
je 0x57d935
push 1
push 0x1000
call fcn.005792c9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x57d897
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x57d92c
push 0x8000
push ebx
call fcn.0057249e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x57d8c3
jg 0x57d8be
cmp ecx, 0x1000
jb 0x57d8c3
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00578faf
add esp, 0x10
cmp eax, 0xffffffff
je 0x57d908
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x57d8be
jl 0x57d8ef
test ecx, ecx
jne 0x57d8b0
push dword [ebp - 0xc]
push ebx
call fcn.0057249e
push esi
call fcn.00576bd6
add esp, 0xc
xor edi, edi
jmp 0x57d9a1
cmp byte [edi + 0x24], 0
je 0x57d91f
cmp dword [edi + 0x20], 5
jne 0x57d91f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x57d92a
mov edi, dword [edi + 0x18]
jmp 0x57d92c
xor edi, edi
push esi
call fcn.00576bd6
pop ecx
jmp 0x57d9a1
test ecx, ecx
jg 0x57d901
jl 0x57d93f
test eax, eax
jae 0x57d901
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0056d0a2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x57d962
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x57d901
jmp 0x57d999
push ebx
call fcn.0056ca68
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x57d901
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x57d9a1
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x57d99e
mov edi, dword [edi + 0x18]
jmp 0x57d9a1
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0056d0a2
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x58129d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x632f90]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5812e8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00581641
test al, al
jne 0x5812e2
sub edx, 2
cmp edx, edi
jne 0x5812c8
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x58130a
lea eax, [edi + 2]
cmp edx, eax
je 0x58130a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00580f64
add esp, 0x10
jmp 0x581404
push esi
lea ecx, [ebp - 0x255]
call fcn.00581641
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x58134d
push dword [ebp - 0x25c]
jmp 0x5812fa
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x58138a
cmp word [ebp - 0x226], 0
je 0x5813ab
cmp word [ebp - 0x226], ax
jne 0x58138a
cmp word [ebp - 0x224], 0
je 0x5813ab
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00580f64
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5813f7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x581364
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5813df
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x581404
push 0x580a83
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0058c570
add esp, 0x10
jmp 0x5813d4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00526f37
leave
ret
Function at 0x5827bb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x582858
push ebx
push esi
call fcn.00582777
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005809b4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x582805
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x582857
push edi
push eax
call fcn.00576e37
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x582825
call fcn.00576bd6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x582856
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005809b4
add esp, 0x20
test eax, eax
jne 0x582844
push edi
call fcn.00576bd6
jmp 0x58284c
push ebx
call fcn.00576bd6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x58285b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x58286c
pop esi
ret
push ebx
push edi
push esi
call fcn.00582777
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00576e37
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x582894
push ebx
push esi
push edi
call fcn.00528790
add esp, 0xc
push 0
call fcn.00576bd6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x583162
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00582b07

Function at 0x583571
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00583445
Function at 0x5921a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
imul eax, dword [ebp + 8], 0x4c
mov ecx, dword [0x64a4ec]
cmp dword [ecx + eax + 0x2c], 0
je 0x5921e8
imul edx, dword [ebp + 8], 0x4c
mov eax, dword [0x64a4ec]
movzx ecx, byte [eax + edx + 0x30]
cmp ecx, 1
jle 0x5921e8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul edx, dword [ebp + 8], 0x4c
mov ecx, dword [0x64a4ec]
sub eax, dword [ecx + edx + 0x2c]
cmp eax, 0xbb8
jae 0x5921e8
jmp 0x592281
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul edx, dword [ebp + 8], 0x4c
mov ecx, dword [0x64a4ec]
mov dword [ecx + edx + 0x2c], eax
movzx edx, byte [0x646985]
cmp edx, 1
jne 0x59225b
imul eax, dword [ebp + 8], 0x4c
mov ecx, dword [0x64a4ec]
movzx edx, byte [ecx + eax + 0x3c]
test edx, edx
jne 0x59225b
mov byte [ebp - 4], 0
xor eax, eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
mov byte [ebp - 4], 0xc1
mov byte [ebp - 2], 0xf4
mov byte [ebp - 3], 4
mov byte [ebp - 1], 9
movzx ecx, byte [ebp - 3]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0059a640
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00592100
add esp, 4
jmp 0x592281
movzx edx, byte [0x6469a8]
cmp edx, 1
je 0x592275
mov eax, dword [ebp + 8]
push eax
call fcn.00593d30
add esp, 4
jmp 0x592281
mov ecx, dword [ebp + 8]
push ecx
call fcn.00592100
add esp, 4
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
jmp 0x593556
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xc8
jge 0x593631
mov ecx, dword [ebp - 4]
shl ecx, 6
movzx edx, byte [ecx + 0x646c94]
test edx, edx
jne 0x593576
jmp 0x59354d
mov eax, dword [ebp - 4]
shl eax, 6
movzx ecx, byte [eax + 0x646c9c]
cmp ecx, 1
jne 0x5935d9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 4]
shl edx, 6
sub eax, dword [edx + 0x646c90]
cmp eax, 0x1d4c0
jbe 0x5935d9
mov eax, dword [ebp - 4]
shl eax, 6
mov byte [eax + 0x646c94], 0
mov ecx, dword [ebp - 4]
shl ecx, 6
mov byte [ecx + 0x646c9c], 0
mov edx, dword [ebp - 4]
shl edx, 6
add edx, 0x646c62
push edx
push str._s_TIME_OUT_Link_Server_Delete
push 5
call fcn.0059bdc0
add esp, 0xc
jmp 0x59362c
mov eax, dword [ebp - 4]
shl eax, 6
movzx ecx, byte [eax + 0x646c9c]
test ecx, ecx
jne 0x59362c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 4]
shl edx, 6
sub eax, dword [edx + 0x646c90]
cmp eax, 0x1388
jbe 0x59362c
mov eax, dword [ebp - 4]
shl eax, 6
mov byte [eax + 0x646c94], 0
mov ecx, dword [ebp - 4]
shl ecx, 6
add ecx, 0x646c62
push ecx
push 0x5dd05c
push 5
call fcn.0059bdc0
add esp, 0xc
jmp 0x59354d
mov esp, ebp
pop ebp
ret
Function at 0x594bf0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x594c28
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [edx + ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 8], eax
jmp 0x594c2f
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x595450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x64a210
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x5950d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x594ee0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x646974], 0
jle 0x5954d6
lea ecx, [ebp - 8]
push ecx
push 0
push 2
push 0x594ee0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x646978], 0
jle 0x595503
lea eax, [ebp - 8]
push eax
push 0
push 3
push 0x594ee0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x596e60
Capabilities:
Create directory
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [0x64a22c], eax
mov dword [ebp - 0xc], 0x320
mov dword [ebp - 8], 0x258
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [ebp - 0x14], ecx
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [ebp - 8]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [ebp - 0x10], ecx
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0xb0000
push 0x64a298
push 0x64a230
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [0x64b2f0], ecx
mov edx, dword [ebp - 4]
mov dword [0x64a228], edx
cmp dword [ebp - 4], 0
jne 0x596f07
xor eax, eax
jmp 0x597000
call fcn.0059bd70
push 0x5e13c4
call fcn.0055a48a
add esp, 4
call fcn.0059ac80
push 0
mov ecx, 0x64b2f0
call fcn.0058f0a0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0x3e8
push 0x64
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x3e8
push 0x65
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x3e8
push 0x66
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x1f4
push 0x68
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x7d0
push 0x67
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.0059a2c0
push str.ME_eCS_Init_Done
push 2
call fcn.0059bdc0
add esp, 8
mov edx, dword [0x64a4f0]
push edx
push str.Whitelisted__d_IP_s_
push 2
call fcn.0059bdc0
add esp, 0xc
mov eax, dword [0x64a4f4]
push eax
push str.Blacklisted__d_IP_s_
push 2
call fcn.0059bdc0
add esp, 0xc
movzx ecx, byte [0x646985]
cmp ecx, 1
jne 0x596ffb
push str.WARNING:_eCS_is_in_maintenance_mode__only_whitelisted_IP_can_connect_
push 0
call fcn.0059bdc0
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x597470
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov dword [ebp - 8], ecx
mov eax, 0x202
mov word [ebp - 4], ax
lea ecx, [ebp - 0x19c]
push ecx
movzx edx, word [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5974b8
push 0
push 0x5e730c
push 0x5e72f8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x59751a
movzx eax, word [ebp - 0x19c]
and eax, 0xff
movzx ecx, al
cmp ecx, 2
jne 0x5974e4
movzx edx, word [ebp - 0x19c]
shr edx, 8
and edx, 0xff
movzx eax, dl
cmp eax, 2
je 0x597502
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
push str.Error
push str.WINSOCK
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x59751a
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 0xffffffff
movzx edx, word [ebp - 0x16]
mov eax, dword [ebp - 8]
mov dword [eax], edx
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x597ec0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0x10
mov eax, 1
test eax, eax
je 0x597f84
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 4]
mov ecx, 0x1000
sub ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x20]
push eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 8], eax
push 4
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00528790
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, 0x64b2f0
call fcn.0058f040
test eax, eax
jne 0x597f3d
jmp 0x597ed0
cmp dword [ebp - 8], 0xffffffff
jne 0x597f47
jmp 0x597ed0
cmp dword [ebp - 8], 0
jne 0x597f51
jmp 0x597ed0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], ecx
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
mov ecx, dword [ebp - 4]
call fcn.00597fd0
jmp 0x597ed0
mov esp, ebp
pop ebp
ret

Function at 0x5983b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x5983f5
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
mov esp, ebp
pop ebp
ret