joyce8/EMBER2024-capa huggingface dataset:
Function at 0x573b80
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.0057f200
test eax, eax
jne 0x573bb0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x573bc5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x573c09
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x573be9
cmp eax, 0x102
jne 0x573bf6
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x573c00
jmp 0x573bcf
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0x73
pop ebx
ret
push esi
call fcn.00573c80
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x573c20
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.0057f200
test eax, eax
jne 0x573c38
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x573c41
mov edx, dword [esp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x573c54
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x573c6b
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x577490
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x208
push ebx
mov bx, word [esp + 0x220]
neg bx
push ebp
mov ebp, dword [esp + 0x21c]
sbb ebx, ebx
push esi
mov al, byte [ebp]
and ebx, 0xfffffffe
add ebx, 4
push edi
test al, al
je 0x5774de
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x5692e8
mov byte [ebp], 0
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x577506
jbe 0x577506
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x57750e
mov dword [esp + 0x14], 0xa
mov ecx, dword [esp + 0x21c]
cmp word [ecx + 0x74], 4
jne 0x577521
mov ebx, 2
mov edx, dword [esp + 0x228]
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0xc4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0xc8]
push eax
push ecx
push edx
push ebx
call fcn.0057bcc0
test ax, ax
jne 0x577696
cmp word [esp + 0x14], ax
mov dword [esp + 0x10], 0x46
mov dword [esp + 0x1c], 0
jbe 0x5776ab
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea esi, [esp + 0xc4]
mov dword [esp + 0x18], esi
cmp word [esi + 0x20], 0
jbe 0x577670
mov ecx, 0x10
xor eax, eax
mov edi, ebp
push 0x5692c8
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push eax
call ebx
mov ecx, dword [esp + 0x224]
push esi
push ecx
call fcn.00576990
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0x5692c8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x74]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x78]
push 0x5692c8
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea edx, [esp + 0x40]
push 0x55dd78
push edx
call esi
add esp, 0x28
test eax, eax
je 0x57761c
lea eax, [esp + 0x20]
push 0x5684e8
push eax
call esi
add esp, 8
test eax, eax
jne 0x57762b
push 0x5684d8
push ebp
call esi
add esp, 8
test eax, eax
je 0x57766c
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x228]
mov eax, dword [esp + 0x220]
push ecx
mov ecx, dword [esp + 0x220]
push edx
push ebp
push eax
push ecx
call fcn.00576e10
add esp, 0x14
mov dword [esp + 0x10], eax
test ax, ax
je 0x577692
lea edx, [esp + 0x60]
push 0x5692c8
push edx
call ebx
add esp, 8
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
and ecx, 0xffff
add esi, 0x22
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
jl 0x577589
mov eax, dword [esp + 0x10]
cmp ax, 0x45
jne 0x5776af
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x5776c0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x4c8
push esi
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x14], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x577751
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.00580600
add esp, 0xc
cmp eax, 0xffffffff
jne 0x577747
mov eax, dword [0x5692c0]
mov cx, word [0x5692c4]
mov dl, byte [0x5692c6]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x577798
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
jmp 0x57777b
mov dx, word [0x5692c4]
mov ecx, dword [0x5692c0]
mov al, byte [0x5692c6]
mov word [esp + 0x14], dx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x16], al
lea edi, [esp + 0x10]
lea edx, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x90]
push ebx
push ecx
call fcn.0057f070
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2dc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xe0]
push ecx
call fcn.00580600
add esp, 0x10
cmp eax, 0xffffffff
pop ebx
jne 0x577830
mov edx, dword [0x56933c]
mov eax, dword [0x569340]
mov ecx, dword [0x569344]
mov dword [esp + 0xd0], edx
mov dx, word [0x569348]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ecx
mov word [esp + 0xdc], dx
jmp 0x57785b
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
lea edi, [esp + 0xd0]
push ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
push ecx
push edx
call fcn.0057ef90
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
mov dword [0x56aa58], eax
add esp, 0x4c8
ret
Function at 0x577c90
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x34]
push esi
push edi
test ebx, ebx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x577ea4
mov esi, dword [esp + 0x40]
test si, si
jbe 0x577ea4
cmp si, 0xffff
jne 0x577cd3
pop edi
pop esi
mov ax, 3
pop ebx
add esp, 0x2c
ret 0xc
push ebx
call fcn.00576690
mov edi, eax
add edi, 0x18
cmp word [edi], 0x7242
jne 0x577e97
test byte [edi + 0x12], 4
jne 0x577d01
mov eax, 2
mov word [edi + 6], ax
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0xc
push esi
push ebx
call fcn.00581bd0
test ax, ax
jne 0x577ea8
push ebx
call fcn.00577c40
add esp, 4
test ax, ax
je 0x577d38
push ebx
call fcn.00581db0
test ax, ax
jne 0x577cc6
push ebx
call fcn.00577c40
add esp, 4
test ax, ax
jne 0x577d1f
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x1000
call esi
test eax, eax
je 0x577d5b
mov eax, 0x46
mov word [edi + 6], ax
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0xc
cmp word [esp + 0x44], 1
jne 0x577e8b
cmp word [0x56aa6a], 0
jne 0x577de7
lea eax, [esp + 0x14]
push eax
call fcn.0057f220
add esp, 4
test eax, eax
je 0x577d94
mov eax, 0x4a
mov word [edi + 6], ax
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0xc
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [0x56aa70], eax
jne 0x577dbe
mov eax, 0x4a
mov word [edi + 6], ax
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0xc
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0x5749c0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [0x56aa74], eax
mov word [0x56aa6a], 1
push 0x1000
call esi
test eax, eax
je 0x577e04
mov eax, 0x46
mov word [edi + 6], ax
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push ebx
call fcn.00577a70
add esp, 0xc
test eax, eax
jne 0x577e2d
mov eax, 0x46
mov word [edi + 6], ax
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0xc
mov si, word [esp + 0xc]
mov ecx, dword [0x56aa58]
neg si
lea edx, [esp + 0x20]
sbb esi, esi
push edx
push ebx
and esi, ecx
call fcn.005817b0
mov ax, word [edi + 0x38]
mov cx, word [edi + 0x36]
push 0
push 0
push 0
push esi
push 1
push 1
push eax
push ecx
push edi
call fcn.005785b0
add esp, 0x24
test ax, ax
je 0x577e8b
push 0x404
push ebx
call fcn.00581930
push ebx
call fcn.00581a10
pop edi
pop esi
mov ax, 0x46
pop ebx
add esp, 0x2c
ret 0xc
pop edi
pop esi
xor ax, ax
pop ebx
add esp, 0x2c
ret 0xc
pop edi
pop esi
mov ax, 2
pop ebx
add esp, 0x2c
ret 0xc
mov ax, 0x10
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0xc
Function at 0x5785b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
push edi
push ebx
push ebp
push eax
mov eax, dword [esp + 0x28]
push 0
push esi
push ecx
push edx
push eax
call fcn.00574010
add esp, 0x24
test ax, ax
je 0x5785f8
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov word [ecx + 6], ax
pop ebx
ret
cmp word [0x56aa68], 0
jne 0x57868a
lea edx, [esp + 0x30]
lea eax, [esp + 0x34]
push edx
push 0
push eax
push 0x573f40
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [0x56aa64], eax
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x57868a
mov ax, word [esp + 0x34]
cmp ax, 2
jne 0x578692
cmp dword [esp + 0x20], 0xffffffff
jne 0x57865e
test esi, esi
jge 0x57865e
mov ecx, dword [esp + 0x28]
push edi
push ebx
push ebp
push ecx
push 2
push esi
push 0xffffffffffffffff
jmp 0x57866b
mov ecx, dword [esp + 0x28]
push edi
push ebx
push ebp
push ecx
push 2
push esi
push 1
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.00574010
mov ecx, dword [0x56aa64]
add esp, 0x24
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
ret
test ax, ax
jne 0x5786ac
mov edx, dword [0x56aa64]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
ret
cmp dword [esp + 0x20], 1
jne 0x5786c6
test esi, esi
jle 0x5786c6
mov eax, dword [esp + 0x28]
push edi
push ebx
push ebp
push eax
push 1
push esi
push 1
jmp 0x5786d3
mov eax, dword [esp + 0x28]
push edi
push ebx
push ebp
push eax
push 1
push esi
push 0xffffffffffffffff
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.00574010
mov eax, dword [esp + 0x38]
add esp, 0x24
mov word [eax + 6], 0x46
mov ecx, dword [0x56aa64]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
ret
Function at 0x57ef90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x56b3e8]
push esi
mov esi, dword [esp + 8]
test eax, eax
jne 0x57efb6
call fcn.0057f000
test eax, eax
je 0x57efac
or eax, 0xffffffff
pop esi
ret
mov dword [0x569554], 0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
je 0x57eff0
push ebx
push edi
lea edi, [eax + 1]
mov eax, dword [edx]
xor ebx, ebx
mov bl, byte [esi]
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
mov ebx, dword [0x56b3e8]
shr eax, 8
mov ecx, dword [ebx + ecx*4]
inc esi
xor eax, ecx
dec edi
mov dword [edx], eax
jne 0x57efca
pop edi
pop ebx
mov eax, dword [edx]
pop esi
ret

Function at 0x57f000
Capabilities:
Hash data with crc32

Disassembly:
push 0x400
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [0x56b3e8], eax
test eax, eax
jne 0x57f037
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x569588
add eax, 0x40
push 0x569558
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
or eax, 0xffffffff
ret
push esi
xor edx, edx
jmp 0x57f041
mov eax, dword [0x56b3e8]
mov ecx, edx
mov esi, 8
test cl, 1
je 0x57f057
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x57f059
shr ecx, 1
dec esi
jne 0x57f048
mov dword [eax + edx*4], ecx
inc edx
cmp edx, 0xff
jle 0x57f03c
xor eax, eax
pop esi
ret

Function at 0x57f280
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov cl, 0x65
mov al, 0x72
push esi
xor esi, esi
mov byte [esp + 4], 0x54
mov byte [esp + 5], cl
mov byte [esp + 6], al
mov byte [esp + 7], 0x6d
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x61
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], 0x53
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], 0x76
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x57f309
cmp al, 4
jbe 0x57f2f7
lea eax, [esp + 4]
push eax
call fcn.0057f310
add esp, 4
pop esi
add esp, 0x10
ret
lea ecx, [esp + 4]
push ecx
call fcn.0057f310
add esp, 4
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x57f310
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor ebp, ebp
xor ebx, ebx
push 0x5695e8
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x57f3e5
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ebp
push edx
push ebp
push 0x5695d8
push eax
call esi
test eax, eax
jne 0x57f3e5
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x57f3e5
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
je 0x57f3e5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edi
push edx
push ebp
push 0x5695d8
push eax
call esi
test eax, eax
jne 0x57f3d8
cmp dword [esp + 0x18], 7
jne 0x57f3d8
mov al, byte [edi]
mov esi, edi
test al, al
je 0x57f3d8
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebp
push esi
call ebx
test eax, eax
je 0x57f3d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x57f3b6
jmp 0x57f3d8
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x57f3f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x57fb20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
push 0x4e8
push 5
push 6
mov dword [esp + 0x10], 0x10
call fcn.0057c6a0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x57fbb5
mov edx, dword [esp + 4]
push ebx
mov ecx, edx
push edi
mov ebx, ecx
xor eax, eax
lea edi, [esp + 0x10]
push edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov word [esp + 0x14], 6
push eax
push esi
call sub.WSOCK32.dll_bind
pop edi
cmp eax, 0xffffffff
pop ebx
je 0x57fbb5
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push esi
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
je 0x57fbb5
lea eax, [esp + 8]
push eax
call fcn.0057fa90
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push esi
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
push 0x569674
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x580cc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call fcn.00584ae0
add esp, 4
cmp eax, ebp
mov dword [0x56c924], eax
je 0x580d3c
push 0x5696bc
push 0x5696ac
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x580d2e
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebp
push esi
call edi
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fgetpos]
push ebp
push ebp
push esi
call edi
mov edx, dword [esp + 0x30]
inc edx
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 0x24
cmp edi, ebp
jne 0x580d46
mov eax, dword [0x56c924]
push eax
call fcn.00584ea0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov dword [edi], ebp
mov ecx, dword [esp + 0x10]
push esi
push ecx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov ebx, eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [0x56c924]
push 0x581200
push 0x580e30
push edx
call fcn.00584ff0
mov eax, dword [0x56c924]
push ebx
push ebx
push edi
push eax
call fcn.00585020
add esp, 0x30
test eax, eax
jne 0x580daf
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [0x56c924]
push ecx
call fcn.00584ea0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x24]
mov ecx, 0x10
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea ebx, [edx + 0x40]
mov ecx, 0x10
mov edi, ebx
lea ebp, [edx + 0x80]
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov esi, 0x56c8a0
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0x56c8e0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0x56c940
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x56c920]
mov dword [edx + 0xc0], eax
mov ecx, dword [0x56c924]
push ecx
call fcn.00584ea0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x581bd0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
push edi
call fcn.00576690
cmp word [0x56c49c], 0
mov ebp, eax
jne 0x581c56
lea eax, [esp + 0x10]
push eax
push 0
push 0x56c49c
push 0x582bd0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0x7530
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x581c30
cmp eax, 0x102
jne 0x581c39
mov word [0x56c49c], 1
jmp 0x581c39
mov word [0x56c49c], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [0x56c49c], 0
jne 0x581c56
pop edi
pop esi
pop ebp
mov ax, 0x68
pop ebx
pop ecx
ret 8
test edi, edi
jne 0x581c66
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
pop ecx
ret 8
cmp word [ebp + 0x18], 0x7242
lea esi, [ebp + 0x18]
je 0x581c7d
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
pop ecx
ret 8
test byte [esi + 0x12], 4
jne 0x581c95
mov word [esi + 6], 0xb39
pop edi
pop esi
pop ebp
mov ax, 0x39
pop ebx
pop ecx
ret 8
push 0
call fcn.005836f0
mov edi, eax
test edi, 0x100
jne 0x581ca8
xor edi, edi
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x34]
push eax
push ecx
mov dword [esi + 0xc8], edi
mov word [esi + 0xd0], ax
mov word [esi + 0x30], 8
call fcn.00581d80
xor bl, bl
mov eax, 3
cmp ax, 3
je 0x581cdc
cmp ax, 7
jne 0x581cf2
push esi
mov byte [esi + 0xa], bl
call fcn.00575dc0
push eax
call fcn.00581790
inc bl
cmp bl, 3
jbe 0x581cd0
cmp ax, 9
jne 0x581d04
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
pop ecx
ret 8
test ax, ax
jne 0x581d6f
mov bl, byte [ebp]
mov byte [esp + 0x18], 0x91
and bl, 0xfc
mov byte [ebp], bl
mov cx, word [esi + 0x3c]
cmp cx, 5
mov al, bl
jne 0x581d2f
or al, 2
mov byte [esp + 0x18], 1
mov byte [ebp], al
jmp 0x581d3a
cmp cx, 7
jne 0x581d3a
or al, 1
mov byte [ebp], al
test edi, edi
je 0x581d6c
mov edx, dword [esp + 0x18]
mov esi, dword [esi + 0xc8]
push edi
push edx
call fcn.00582650
add esp, 8
cmp esi, eax
je 0x581d6c
push edi
call fcn.00583800
cmp esi, eax
je 0x581d6c
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
pop ecx
ret 8
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x582650
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc0
push ebx
mov ebx, dword [esp + 0xc8]
test bl, 0x80
je 0x5827c0
push esi
mov esi, dword [esp + 0xd0]
mov eax, esi
mov ecx, esi
and eax, 0xff00
xor edx, edx
shl ecx, 0x10
or eax, ecx
mov ecx, esi
and ecx, 0xff0000
push edi
shr esi, 0x10
or ecx, esi
mov esi, ebx
and esi, 0xf
shl eax, 8
shr ecx, 8
cmp esi, 3
ja case.default.0x5826a1
jmp dword [esi*4 + 0x5828c0]
mov edi, 0x20
mov esi, eax
shr esi, 0xd
and esi, 1
mov ebx, esi
xor esi, ecx
shl ebx, 0x1f
shr edx, 1
shl esi, 0x1f
shr eax, 1
or edx, ebx
or esi, eax
shr ecx, 1
dec edi
mov eax, esi
jne 0x5826ad
jmp case.default.0x5826a1
mov esi, 0x20
mov edi, eax
mov ebx, ecx
and edi, 0xffff0000
shl edi, 0xf
shr edx, 1
or edx, edi
mov edi, eax
and edi, 0xfffff000
shl ebx, 0xc
xor edi, ebx
mov ebx, eax
shl edi, 8
and ebx, 0xfff00000
xor edi, ebx
shl edi, 0xb
shr eax, 1
or eax, edi
shr ecx, 1
dec esi
jne 0x5826d8
jmp case.default.0x5826a1
push ebp
mov edi, 0x20
mov esi, ecx
mov ebp, eax
and esi, 1
and ebp, 0xfff80000
mov ebx, esi
shl ebx, 0x13
xor ebx, ebp
shl ebx, 0xc
shr edx, 1
or edx, ebx
mov ebx, eax
and bl, 0
shl esi, 8
xor ebx, esi
mov esi, eax
shl ebx, 0xf
and esi, 0xff800000
xor ebx, esi
shl ebx, 8
shr eax, 1
or eax, ebx
shr ecx, 1
dec edi
jne 0x58271a
pop ebp
jmp case.default.0x5826a1
mov esi, 0x20
mov edi, eax
mov ebx, ecx
and edi, 0xfffff800
shl ebx, 0xb
xor edi, ebx
mov ebx, eax
shl edi, 5
and ebx, 0xffff0000
xor edi, ebx
mov ebx, ecx
shl edi, 0xf
shr edx, 1
or edx, edi
mov edi, eax
and edi, 0xffffff80
shl ebx, 7
xor edi, ebx
mov ebx, eax
shl edi, 0x12
and ebx, 0xfe000000
xor edi, ebx
shl edi, 6
shr eax, 1
or eax, edi
shr ecx, 1
dec esi
jne 0x582760
xor eax, eax
pop edi
mov al, dh
pop esi
mov ah, dl
and edx, 0xffff0000
or eax, edx
pop ebx
add esp, 0xc0
ret
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0xc], 0x29
mov byte [esp + 0xd], 0x56
mov byte [esp + 0xe], 0xb2
mov byte [esp + 0xf], 0x39
mov byte [esp + 0x10], 0xa0
mov byte [esp + 0x11], 0xce
mov byte [esp + 0x12], 0xeb
mov byte [esp + 0x13], 0x87
mov byte [esp + 0x14], 0x52
mov byte [esp + 0x15], 0xb4
mov byte [esp + 0x16], 0x76
mov byte [esp + 0x17], 0xfb
mov byte [esp + 0x18], 0xc
mov byte [esp + 0x19], 0x94
mov byte [esp + 0x1a], 0x37
mov byte [esp + 0x1b], 0x71
call fcn.0058ada0
mov eax, dword [esp + 0xd4]
and ebx, 0xff
mov byte [esp + 0xc], al
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esp + 0xf], al
mov al, bl
mov ah, al
mov ebx, eax
shl ebx, 0x10
shr ecx, 8
shr edx, 0x10
mov bx, ax
mov byte [esp + 0xd], cl
mov byte [esp + 0xe], dl
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
mov dword [esp + 0x14], ebx
push ecx
push edx
mov dword [esp + 0x20], ebx
call fcn.0058ae90
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0058ada0
mov eax, dword [esp + 0x1f]
mov edx, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1d]
and eax, 0xff
shl eax, 8
and edx, 0xff
and ecx, 0xff
or eax, edx
mov edx, dword [esp + 0x1c]
shl eax, 8
or eax, ecx
add esp, 0x18
shl eax, 8
and edx, 0xff
pop ebx
or eax, edx
add esp, 0xc0
ret