joyce8/EMBER2024-capa huggingface dataset:
Function at 0x562e30
Capabilities:
Encode data using xor
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x144
push ebp
push esi
mov ebp, ecx
push edi
push 0
lea eax, [esp + 0x14]
mov ecx, dword [ebp + 0x88]
push 0xff
push eax
push ecx
mov dword [esp + 0x1c], edx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x562fd1
lea edx, [esp + 0x10]
push str._secure_
push edx
mov byte [esp + eax + 0x18], 0
call fcn.00587c20
mov esi, eax
add esp, 8
test esi, esi
jne 0x562e8c
pop edi
pop esi
mov eax, 5
pop ebp
add esp, 0x144
ret
add esi, 8
lea edi, [ebp + 0x2c]
push 6
push esi
mov edx, 6
mov ecx, edi
call fcn.00564c70
xor eax, eax
mov cl, byte [edi + eax]
mov dl, byte [esi + eax]
xor dl, cl
mov byte [esi + eax], dl
inc eax
cmp eax, 6
jl 0x562ea3
lea edx, [esp + 0x110]
mov ecx, esi
push edx
mov edx, 6
call fcn.00564b80
lea eax, [esp + 0x110]
lea ecx, [ebp + 0x4c]
push eax
push 0x5e5038
push ecx
lea edx, [esp + 0x1c]
push str.gamename_sgamever_slocation0_validate_senctype2_finalqueryid1.1_
push edx
call fcn.0058815f
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
mov ecx, dword [ebp + 0x88]
lea eax, [esp + 0x18]
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x562fd1
test eax, eax
je 0x562fd1
mov eax, dword [ebp + 0x90]
cmp eax, 6
jne 0x562f3a
mov eax, str.groups
mov dword [ebp + 0x5b4], 0
jmp 0x562f55
cmp eax, 7
jne 0x562f50
mov eax, str.info2
mov dword [ebp + 0x5b4], 0
jmp 0x562f55
mov eax, 0x5e4fd4
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x562f77
lea edx, [ebp + 0xc]
push ecx
push edx
push eax
lea eax, [esp + 0x1c]
push str.list_sgamename_swhere_s_final_
push eax
call fcn.0058815f
add esp, 0x14
jmp 0x562f8e
lea ecx, [ebp + 0xc]
lea edx, [esp + 0x10]
push ecx
push eax
push str.list_sgamename_s_final_
push edx
call fcn.0058815f
add esp, 0x10
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0x88]
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x562fd1
test eax, eax
je 0x562fd1
mov edx, 1
mov ecx, ebp
call fcn.00562fe0
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x144
ret
pop edi
pop esi
mov eax, 3
pop ebp
add esp, 0x144
ret

Function at 0x563080
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
push 0x11
push 2
push 2
mov esi, ecx
mov dword [esp + 0x10], 1
call sub.WSOCK32.dll_socket
mov dword [esi + 0x88], eax
cmp eax, 0xffffffff
pop esi
jne 0x5630aa
mov eax, 1
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x20
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
neg eax
sbb eax, eax
neg eax
pop ecx
ret
Function at 0x5630d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, edx
and edx, 0xffff
push edi
cmp edx, ebx
mov edi, ecx
mov word [esp + 0xc], 2
mov dword [esp + 0x10], 0xffffffff
jg 0x563132
push ebp
mov ebp, dword [esp + 0x28]
push esi
call sub.WSOCK32.dll_htons
mov ecx, dword [edi + 0x88]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push 0
push 8
push str._status_
push ecx
call sub.WSOCK32.dll_sendto
add esi, ebp
mov edx, esi
and edx, 0xffff
cmp edx, ebx
jle 0x5630fc
pop ebp
mov edx, 2
mov ecx, edi
call fcn.00562fe0
call sub.KERNEL32.dll_GetTickCount
mov dword [edi + 0x8c], eax
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x5642b0
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
mov edi, edx
push 0x3a
push edi
mov ebx, ecx
call fcn.00589db0
mov esi, eax
add esp, 8
test esi, esi
je 0x5642e1
push edi
mov byte [esi], 0
call sub.WSOCK32.dll_inet_addr
inc esi
mov dword [ebx], eax
push esi
call fcn.00587f59
add esp, 4
mov word [ebx + 4], ax
pop edi
pop esi
pop ebx
ret

Function at 0x564660
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
add esp, 0x190
ret

Function at 0x564c70
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
mov ebx, edx
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x564c86
mov byte [esp + 0x14], 0
xor esi, esi
lea edi, [esp + 0x20]
mov ebp, 0x100
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
and eax, 0xff
xor ecx, ecx
mov cl, byte [eax + edx]
xor edx, edx
mov dl, byte [edi]
add esi, ecx
add edx, esi
and edx, 0x800000ff
jns 0x564cca
dec edx
or edx, 0xffffff00
inc edx
inc eax
mov byte [esp + 0x18], dl
cdq
idiv ebx
mov esi, dword [esp + 0x18]
mov ecx, edi
and esi, 0xff
mov byte [esp + 0x14], dl
lea edx, [esp + esi + 0x20]
call fcn.005622b0
inc edi
dec ebp
jne 0x564ca0
mov eax, dword [esp + 0x128]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x10], esi
jle 0x564dc0
xor edi, edi
xor ebx, ebx
mov ecx, dword [esp + 0x124]
xor eax, eax
mov al, byte [esi + ecx]
lea edx, [eax + edi + 1]
and edx, 0x800000ff
jns 0x564d28
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
xor eax, eax
mov edi, dword [esp + 0x14]
and edi, 0xff
mov al, byte [esp + edi + 0x20]
lea ebp, [esp + edi + 0x20]
add eax, ebx
and eax, 0x800000ff
jns 0x564d50
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x18], al
mov ecx, ebp
mov ebx, dword [esp + 0x18]
and ebx, 0xff
lea edx, [esp + ebx + 0x20]
mov dword [esp + 0x1c], edx
call fcn.005622b0
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov cl, byte [ebp]
xor edx, edx
mov dl, byte [eax]
add ecx, edx
and ecx, 0x800000ff
jns 0x564d8c
dec ecx
or ecx, 0xffffff00
inc ecx
mov eax, dword [esp + 0x124]
and ecx, 0xff
mov cl, byte [esp + ecx + 0x20]
mov dl, byte [esi + eax]
xor dl, cl
mov byte [esi + eax], dl
mov eax, dword [esp + 0x10]
inc eax
movsx esi, ax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x128]
cmp esi, eax
jl 0x564d08
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 8
Function at 0x564f10
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x4cc]
push ebp
mov ebp, edx
mov edx, dword [ecx + 0x4c0]
push esi
mov esi, dword [ecx + 0x4c8]
push edi
lea edi, [ebp + eax*4]
mov eax, dword [ecx + 0x4c4]
cmp ebp, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], edi
jae 0x56505e
cmp ebx, 0x10000
jae 0x564fc5
lea ebp, [ecx + edx*4 + 0x440]
add eax, ebx
mov dword [ebp + 0x40], ebx
add esi, eax
add ebx, ebx
mov edi, esi
add eax, esi
mov dword [ebp], esi
mov dword [ebp - 0x40], eax
shl edi, 0x18
shr esi, 8
or edi, esi
mov esi, eax
and esi, 0xff
inc edx
add ebp, 4
xor eax, dword [ecx + esi*4]
mov esi, edi
and esi, 0xff
xor edi, dword [ecx + esi*4]
mov esi, edi
shl esi, 0x18
shr edi, 8
or esi, edi
mov edi, eax
shr edi, 0x18
shl eax, 8
or edi, eax
mov eax, edi
and eax, 0xff
xor edi, dword [ecx + eax*4]
mov eax, esi
and eax, 0xff
xor esi, dword [ecx + eax*4]
mov eax, edi
shr eax, 0x18
shl edi, 8
or eax, edi
cmp ebx, 0x10000
jb 0x564f56
xor esi, eax
mov eax, dword [esp + 0x10]
mov dword [eax], esi
add eax, 4
dec edx
mov dword [esp + 0x10], eax
jns 0x564fd9
xor edx, edx
mov eax, dword [ecx + edx*4 + 0x400]
mov ebx, dword [ecx + edx*4 + 0x440]
not eax
mov esi, eax
shl esi, 0x18
shr eax, 8
or esi, eax
mov eax, esi
and eax, 0xff
mov ebp, dword [ecx + eax*4]
mov eax, ebx
and eax, 0xff
xor esi, ebp
mov ebp, dword [ecx + eax*4]
mov eax, esi
shl eax, 0x18
shr esi, 8
xor ebx, ebp
or eax, esi
mov edi, ebx
mov esi, eax
shr edi, 0x18
shl ebx, 8
and esi, 0xff
or edi, ebx
mov ebp, dword [ecx + esi*4]
mov esi, edi
and esi, 0xff
xor eax, ebp
mov ebp, dword [ecx + esi*4]
xor edi, ebp
mov ebp, dword [esp + 0x10]
mov esi, edi
shr esi, 0x18
shl edi, 8
or esi, edi
mov edi, dword [ecx + edx*4 + 0x480]
lea ebx, [edi + edi + 1]
mov edi, dword [esp + 0x18]
cmp ebp, edi
jb 0x564f47
mov dword [ecx + 0x4c8], esi
pop edi
pop esi
mov dword [ecx + 0x4cc], ebx
pop ebp
mov dword [ecx + 0x4c0], edx
mov dword [ecx + 0x4c4], eax
pop ebx
pop ecx
ret 4
Function at 0x565080
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], edx
push edi
mov ebp, ecx
xor edx, edx
mov ecx, 0x100
xor eax, eax
mov edi, esi
mov dword [esi + 0x514], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], edx
xor eax, eax
mov ecx, dword [esi + eax*4]
shl ecx, 8
add ecx, eax
mov dword [esi + eax*4], ecx
inc eax
cmp eax, 0x100
jl 0x5650aa
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], 2
xor ecx, ecx
mov eax, ecx
xor edx, edx
div dword [esp + 0x14]
mov ebx, dword [esi + ecx*4]
mov dl, byte [edx + ebp]
add edx, ebx
add edx, edi
and edx, 0xff
inc ecx
mov edi, edx
cmp ecx, 0x100
mov eax, dword [esi + edi*4]
mov dword [esi + ecx*4 - 4], eax
mov dword [esi + edi*4], ebx
jl 0x5650cb
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x5650c9
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 4
mov dword [esp + 0x1c], eax
jl 0x5650a8
xor eax, eax
mov edi, dword [esi + eax*4]
xor edi, eax
mov dword [esi + eax*4], edi
inc eax
cmp eax, 0x100
jl 0x565113
push 0
xor edx, edx
mov ecx, esi
call fcn.00564dd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x57a910
Capabilities:
Suspend thread

Disassembly:
mov ecx, dword [ecx]
jmp 0x5855e0
sub esp, 8
push esi
push edi
mov edi, ecx
xor esi, esi
mov al, 1
mov ecx, dword [edi + 4]
mov byte [esp + 0xb], al
cmp ecx, esi
je 0x585666
mov eax, dword [edi + 0x20]
push ebx
lea ebx, [edi + 0x1c]
cmp eax, esi
push ebp
je 0x58561e
mov ecx, dword [ebx + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
je 0x585618
cmp eax, 0x80
jne 0x58561e
mov dword [esp + 0x14], ebx
jmp 0x585622
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x14]
cmp byte [edx], 0
jne 0x585652
mov ebp, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [edi + 4]
inc esi
push eax
call ebp
cmp eax, 0xffffffff
je 0x585641
test eax, eax
ja 0x58566c
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x32
jl 0x585631
mov byte [esp + 0x13], 0
mov eax, dword [ebx + 4]
pop ebp
test eax, eax
pop ebx
je 0x585662
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, byte [esp + 0xb]
pop edi
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x14]
mov byte [ecx], 1
jmp 0x585652

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

Disassembly:
mov edx, dword [esp + 4]
mov eax, ecx
push ebx
add ecx, 0x10
mov dword [eax], edx
mov edx, dword [esp + 0xc]
mov bl, 1
mov dword [esp + 8], 0x10
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 0xc], edx
lea eax, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x57b996
xor al, al
pop ebx
ret 0x14
mov al, bl
pop ebx
ret 0x14

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

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
push eax
push esi
push edi
mov bl, 1
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WSOCK32.dll_getpeername]
test eax, eax
je 0x57b9c7
xor bl, bl
lea ecx, [esp + 0xc]
add esi, 0x10
push ecx
push esi
push edi
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x57b9e4
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 4
pop edi
mov al, bl
pop esi
pop ebx
pop ecx
ret 4

Function at 0x57bee0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov eax, dword [ecx]
call dword [eax + 0x74]
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
ret
Function at 0x57c860
Capabilities:
Set socket configuration

Disassembly:
mov al, byte [esp + 8]
push esi
mov esi, dword [esp + 8]
mov dword [esp + 0xc], 1
test al, al
je 0x57c8a6
push edi
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea eax, [esp + 0x10]
push 4
push eax
push 1
push 6
push esi
call edi
lea ecx, [esp + 0xc]
push 4
push ecx
push 8
push 0xffff
push esi
mov dword [esp + 0x20], 1
call edi
pop edi
jmp 0x57c8bb
lea edx, [esp + 0xc]
push 4
push edx
push 0x20
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov eax, dword [0x8d3e28]
push 0x3f
push 0x1a0a
push eax
push esi
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov al, 1
pop esi
ret 8

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

Disassembly:
sub esp, 0x100
push esi
mov esi, dword [esp + 0x108]
and al, 8
add dword [eax], eax
add byte [ebx - 0x77cfa], cl
je 0x57c942
mov cl, byte [esp + 0x10c]
push edi
test cl, cl
je 0x57c932
push 1
push eax
call dword [sym.imp.WSOCK32.dll_shutdown]
test eax, eax
jne 0x57c932
mov edi, dword [sym.imp.WSOCK32.dll_recv]
mov byte [esp + 8], al
mov ecx, dword [esi]
push 0
lea eax, [esp + 0xc]
push 0x100
push eax
push ecx
call edi
cmp eax, 0xffffffff
je 0x57c932
test eax, eax
jne 0x57c918
mov edx, dword [esi]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi], 0xffffffff
pop edi
pop esi
add esp, 0x100
ret 8
Function at 0x57d6c0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x62c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x640]
lea eax, [esp + 0x38]
mov byte [esp + 0x13], 0
push eax
push ecx
mov ecx, edi
call fcn.0057d5d0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3a]
mov esi, dword [esp + 0x644]
and edx, 0xffff
and eax, 0xffff
mov ecx, esi
lea ebp, [edx + eax + 4]
mov edx, dword [ecx]
Function at 0x585470
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
lea eax, [ebx + ebx*4]
lea edi, [ebp + eax*8]
mov eax, dword [ebp + eax*8 + 4]
test eax, eax
jne 0x585534
test ebx, ebx
jne 0x585534
mov ecx, 0x583d90
test ecx, ecx
je 0x585534
mov eax, dword [edi + 0x10]
lea esi, [edi + 0xc]
test eax, eax
je 0x5854c4
mov edx, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5854c0
cmp eax, 0x80
jne 0x5854c4
mov eax, esi
jmp 0x5854c6
xor eax, eax
mov byte [eax], 0
mov esi, dword [esi + 4]
test esi, esi
je 0x5854d7
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [edi + 0x20]
lea esi, [edi + 0x1c]
test eax, eax
je 0x5854fb
mov ecx, dword [esi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5854f7
cmp eax, 0x80
jne 0x5854fb
mov eax, esi
jmp 0x5854fd
xor eax, eax
mov byte [eax], 1
mov esi, dword [esi + 4]
test esi, esi
je 0x58550e
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea edx, [edi + 8]
push edx
push 4
push ebp
push 0x583d90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [edi + 4], eax
je 0x585534
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
cmp ebx, 1
jl 0x585478
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x585680
Capabilities:
Resume thread

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
push esi
mov bl, 1
push edi
mov eax, dword [ebp + 0xd4]
lea esi, [ebp + 0x84]
test eax, eax
mov byte [esp + 0x13], bl
je 0x5856b9
mov ecx, dword [esi + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5856b5
cmp eax, 0x80
jne 0x5856b9
mov edi, esi
jmp 0x5856bb
xor edi, edi
mov ecx, edi
call fcn.00583680
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
call fcn.00583660
mov esi, dword [esi + 0x50]
test esi, esi
je 0x5856e0
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 4]
test eax, eax
je 0x585766
mov eax, dword [ebp + 0x20]
lea ebx, [ebp + 0x1c]
xor esi, esi
cmp eax, esi
je 0x58570f
mov ecx, dword [ebx + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
je 0x585709
cmp eax, 0x80
jne 0x58570f
mov dword [esp + 0x14], ebx
jmp 0x585713
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x14]
cmp byte [edx], 0
je 0x585743
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp + 4]
inc esi
push eax
call edi
test eax, eax
je 0x58575d
cmp eax, 1
je 0x58575d
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x32
jl 0x585722
mov byte [esp + 0x13], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x585751
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0
jmp 0x585743
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 8
ret
Function at 0x58ba36
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x58ba61
test byte [esp + 8], 0x80
je 0x58ba50
and al, 0xfe
jmp 0x58ba52
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x58ba72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0058af5c
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x58ba75
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x58ba95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0058af5c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x58bab8
test byte [esp + 8], 2
je 0x58bab8
call fcn.0058afcf
mov dword [eax], 0xd
call fcn.0058afd8
mov dword [eax], 5
jmp 0x58ba91
xor eax, eax
ret

Function at 0x5932f3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5e78c0
cmp edx, dword [eax]
je 0x593315
add eax, 8
inc ecx
cmp eax, 0x5e7950
jl 0x593306
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5e78c0]
jne 0x593443
mov eax, dword [0x8d3ebc]
cmp eax, 1
je 0x59341d
test eax, eax
jne 0x593346
cmp dword [0x5e65b4], 1
je 0x59341d
cmp edx, 0xfc
je 0x593443
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x59337d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0058fca0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0058e1b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5933c0
lea eax, [ebp - 0x1a4]
push eax
call fcn.0058e1b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5c5c8c
push edi
call fcn.00587dd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0058fca0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0058fcb0
lea eax, [ebp - 0xa0]
push 0x5b9908
push eax
call fcn.0058fcb0
push dword [esi + 0x5e78c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0058fcb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00597234
add esp, 0x2c
pop edi
jmp 0x593443
lea eax, [ebp + 8]
lea esi, [esi + 0x5e78c4]
push 0
push eax
push dword [esi]
call fcn.0058e1b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x449e10
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call sub.MPR.dll_WNetCloseEnum
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 0xc]
mov edi, eax
push ecx
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetACP]
test edi, edi
mov dword [0xa4ee4c], eax
je 0x449e7b
test esi, esi
je 0x449e6a
mov edx, dword [0x64ed2c]
push 0x64ea48
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [0xa4ee4c]
pop edi
pop esi
add esp, 8
ret

Function at 0x5241f8
Capabilities:
Encode data using xor

Disassembly:
or al, 0x31
imul eax, dword [ebx + ecx], 0xcdd68f2b
idiv dword [edx + esi*4 + 0x55d0e2ff]
lodsd eax, dword [esi]
lodsd eax, dword [esi]
pop esp
sbb dh, byte [esp + esi*8 + 0x2c6d2883]
cmpsb byte [esi], byte es:[edi]
push edx
stosb byte es:[edi], al
jle 0x524274
ljmp 0x243e:0x4703a927
lodsd eax, dword [esi]
fnstenv [ecx + 0x73]
std
loopne 0x5242c3
outsd dx, dword [esi]
cmp dword [ebp - 0xb208a5b], esp
lodsb al, byte [esi]
cwde
in al, dx
invalid
add esp, edx
xchg edx, eax
lodsb al, byte [esi]
xor byte [esi + 0x7a], 0x3c
invalid
sbb edi, dword [ebx - 0x70]
adc byte [edx + 0x41ba0f49], cl
sbb dh, dh
dec eax
test al, bh
test byte [eax - 0x7c], 0xf8
push esp
cwde
sar byte [ebx], 1
scasb al, byte es:[edi]
mov bl, 0xa4
dec byte [ebx - 0x43]
lea edi, [eax + 0xe]
arpl word [esi - 0x8b44451], cx
push eax
cmp ax, 0x74b2
cmp ebx, esp
sbb bl, cl
cmc
cmp eax, dword [edi - 0x1365a186]
mov ch, byte [esi - 0x1b730dd5]
mov bl, 0xb7
js 0x524296
and esi, dword [ecx]
dec esp
sub dl, byte [esi + 0x24e6a68]
dec eax
outsd dx, dword [esi]
push 0xffffffffffffffd4
jnp 0x524323
and al, 0xff
xchg edi, eax
jecxz 0x5242b8
nop
out 0x5e, al
adc al, 0xdc
xchg dword [esi + eax - 0xa333751], edx
cmp dword [edx + 0x79], edx
pushal
xor byte ss:[esi], 0xf3
out dx, al
and ebx, dword [esi + 0x2b91be04]
xchg edx, eax
enter 0xffffffffffff8ae2, 0xffffffffffffffba
lcall 0x7a23, 0xb8aa5a0d
or edi, dword [ebx]
inc esp
jae 0x524378
mov word fs:[ebp + 0x34], fs
mov dword [0x182d0fea], eax
lodsb al, byte [esi]
sub eax, 0xe159e242
mov edx, 0xedaba556
in eax, dx
xor ah, ch
mov dl, 0x96
xor al, al
sbb eax, 0x7fab3cc5
test al, 0x72
jl 0x524347
adc byte [edi + esi*8], al
arpl sp, cx
retf
outsd dx, dword [esi]
mov ah, 6
sub cl, dh
sub eax, 0xa4793d0c
or byte [edi + 0x19], dh
aaa
lodsb al, byte [esi]
xlatb
hlt