joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60cde3
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
push edi
push 0
mov esi, ecx
lea ecx, [ebp - 0x28]
push 0
call fcn.004c6176
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, dword [ebp + 8]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x60ce1a
push 0xfffffffffffffffe
pop eax
jmp 0x60ceaf
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
push edi
call fcn.0060cdac
test eax, eax
je 0x60ce43
push 0xa
push 0x536
call fcn.00582370
push eax
mov ecx, esi
call fcn.0060d68c
or eax, 0xffffffff
jmp 0x60ceaf
lea ecx, [ebp - 0x14]
call fcn.004c61dc
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.0060d005
test eax, eax
jne 0x60ceaf
lea ecx, [ebp - 0x14]
call fcn.004640b5
test al, al
je 0x60ce75
push 0xa
push 0x54e
jmp 0x60ce31
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x14]
call fcn.004768a7
lea eax, [ebp - 0x14]
push eax
push 0x69997c
lea eax, [ebp - 0x38]
push 0x10
push eax
call fcn.00471605
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0x14]
push eax
push dword [edi]
call fcn.0060ceb7
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x60ceb7
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 0x68253b
call fcn.006313fc
sub esp, 0x8c
push ebx
push ebp
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
push 0x8004667e
push dword [esp + 0xb0]
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x60cef8
mov eax, ebp
jmp 0x60cff1
mov ecx, dword [esp + 0xac]
lea eax, [esp + 0x10]
push esi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004768a7
mov byte [esp + 0xf], 1
call fcn.00475044
push dword [esp + 0x14]
and dword [esp + 0xa4], 0
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0xb4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebp
jne 0x60cf74
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x60cf68
cmp esi, 0x2734
je 0x60cf68
push esi
push 0x472
call fcn.00582370
push eax
mov ecx, ebx
call fcn.0060d5bd
jmp 0x60cfe2
push dword [esp + 0xb0]
call fcn.00473143
mov dword [esp + 0xa0], ebp
call fcn.00475085
push dword [esp + 0xb4]
mov ecx, ebx
push dword [esp + 0xb0]
call fcn.0060d403
mov esi, eax
mov byte [esp + 0xf], 1
call fcn.00475044
mov dword [esp + 0xa0], 1
test esi, esi
je 0x60cfd6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x546
call fcn.00582370
push eax
mov ecx, ebx
call fcn.0060d5bd
push dword [esp + 0xac]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esp + 0xb0]
call fcn.00474c7c
mov dword [esp + 0xa0], ebp
call fcn.00475085
mov eax, esi
pop esi
mov ecx, dword [esp + 0x94]
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x60d005
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x679ba5
call fcn.006313fc
sub esp, 0x60
push ebx
push ebp
mov bp, word [esp + 0x84]
mov ebx, ecx
push esi
push edi
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
movzx eax, bp
xor esi, esi
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], esi
push 0x69cb34
push eax
mov dword [esp + 0x60], esi
call fcn.00472228
add esp, 0xc
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 0x78], esi
jae 0x60d05e
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x54]
push ecx
push eax
push dword [esp + 0x94]
call fcn.0060da9b
test eax, eax
je 0x60d096
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push 0x54d
call fcn.00582370
push eax
mov ecx, ebx
call fcn.0060d5bd
jmp 0x60d0d1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push dword [eax + 0x18]
call fcn.004c6122
mov ebx, dword [esp + 0x84]
mov esi, eax
push 5
pop ecx
push ebx
push 0x69997c
lea eax, [esp + 0x1c]
mov edi, ebx
push 0x10
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00471605
add esp, 0x10
mov word [ebx + 0x10], bp
xor esi, esi
push 0
push 1
lea ecx, [esp + 0x40]
call fcn.0040a0e9
mov ecx, dword [esp + 0x70]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
and dword [ebp + 0x10], 0
push edi
mov dword [ebp - 8], esi
xor edi, edi
mov dword [ebp - 4], eax
jmp 0x60d154
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.0060d37f
test eax, eax
jne 0x60d158
push eax
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x60d16d
mov eax, dword [ebp + 0xc]
sub esi, eax
add dword [ebp - 4], eax
add edi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x60d169
test eax, eax
je 0x60d169
test esi, esi
jg 0x60d111
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, edi
jmp 0x60d160
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x473
call fcn.00582370
push eax
mov ecx, ebx
call fcn.0060d5bd
neg esi
mov eax, esi
jmp 0x60d160
Function at 0x60d487
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov dword [ebp - 8], esi
xor edi, edi
mov dword [ebp - 4], eax
jmp 0x60d4dd
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.0060d403
test eax, eax
jne 0x60d4e1
push eax
push eax
push eax
lea eax, [ebp + 0x10]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x60d4f6
mov eax, dword [ebp + 0x10]
sub esi, eax
add dword [ebp - 4], eax
add edi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x60d4f2
test esi, esi
jg 0x60d4a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, edi
jmp 0x60d4e9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x474
call fcn.00582370
push eax
mov ecx, ebx
call fcn.0060d5bd
neg esi
mov eax, esi
jmp 0x60d4e9

Function at 0x60df91
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
cmp dword [0x7982a8], 0
mov dword [esp], 0x6f8438
mov dword [esp + 4], 0x60db0c
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x60ddb0
mov dword [esp + 0x10], 0x6f8450
mov dword [esp + 0x14], fcn.0060dad1
jne 0x60e0e8
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x60e0de
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.0063b771
push str.ws2_32
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.0063b7c6
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test esi, esi
je 0x60e051
push 0x6f8438
push esi
call ebx
test eax, eax
jne 0x60e04d
push esi
call ebp
mov esi, edi
test esi, esi
jne 0x60e0a2
lea eax, [esp + 0x134]
mov esi, 0x10c
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.0063b771
push str.wship6
lea eax, [esp + 0x38]
push esi
push eax
call fcn.0063b7c6
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x60e0da
push 0x6f8438
push esi
call ebx
test eax, eax
jne 0x60e09e
push esi
call ebp
mov esi, edi
test esi, esi
je 0x60e0da
mov ebx, edi
push dword [esp + ebx*8 + 0x10]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp + ebx*8 + 0x14], eax
test eax, eax
je 0x60e0bf
inc ebx
cmp ebx, 3
jl 0x60e0a4
jmp 0x60e0c4
push esi
call ebp
mov esi, edi
test esi, esi
je 0x60e0da
mov eax, dword [esp + edi + 0x14]
mov dword [edi + 0x7593c8], eax
add edi, 8
cmp edi, 0x18
jl 0x60e0c8
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x7982a8], 1
mov eax, dword [esp + 0x230]
movzx eax, ax
mov eax, dword [eax*8 + 0x7593c8]
add esp, 0x22c
ret 4
Function at 0x60e2f1
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
push dword [esp + 0x14]
and dword [ebp], 0
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x60e36d
cmp word [esi + 8], 2
jne 0x60e34f
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x60e34f
mov edi, dword [esi + 0xc]
jmp 0x60e349
push dword [eax]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0060e24b
mov dword [ebp], eax
test eax, eax
je 0x60e368
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x60e329
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.0063b829
add esp, 0x10
xor eax, eax
jmp 0x60e385
push 8
pop eax
jmp 0x60e385
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x60e383
dec eax
je 0x60e393
dec eax
je 0x60e38c
dec eax
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
mov eax, 0x2afb
jmp 0x60e385
mov eax, 0x2afa
jmp 0x60e385

Function at 0x60ea0d
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x60ea1b
push 8
pop eax
pop esi
ret
cmp dword [esi], 0
jne 0x60ea24
push 2
jmp 0x60ea18
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.OCPRD119GetOfferType
push dword [esi]
call edi
test eax, eax
je 0x60eaa2
call eax
push str.OCPRD119PrepareDownload
push dword [esi]
call edi
test eax, eax
je 0x60eaa2
call eax
push str.OCPRD119GetOfferState
push dword [esi]
call edi
test eax, eax
je 0x60eaa2
call eax
cmp eax, 1
jne 0x60ea77
cmp dword [esi + 8], 2
je 0x60ea77
cmp dword [esi + 8], eax
jne 0x60eaa7
push str.OCPRD119StartDLMgr2DownloadRunasAdmin
push dword [esi]
call edi
test eax, eax
je 0x60eaa2
call eax
push str.OCPRD119SignalProductInstalled
push dword [esi]
call edi
test eax, eax
je 0x60eaa2
call eax
push str.OCPRD119Detach
push dword [esi]
call edi
test eax, eax
je 0x60eaa2
call eax
push str.OCPRD119Shutdown
push dword [esi]
call edi
test eax, eax
jne 0x60eaae
push 5
pop eax
jmp 0x60eab2
push str.OCPRD119StartDLMgr2Download
jmp 0x60ea6d
call eax
xor eax, eax
pop edi
pop esi
ret

Function at 0x60fb4d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 8]
push esi
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 8]
mov ecx, esi
push eax
mov eax, dword [esi]
call dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x60fb9b
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x60fb9b
xor al, al
jmp 0x60fbc6
mov eax, dword [esi + 4]
test eax, eax
je 0x60fbc4
cmp dword [eax + 0xc], 1
je 0x60fbc4
mov ecx, dword [esi + 0x48]
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi + 0x98], 0
mov byte [esi + 0xa2], 0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x610b0a
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.006105fb
test al, al
je 0x610b21
push 0
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
Function at 0x61206e
Capabilities:
Check for unmoving mouse cursor
Hide graphical window

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp byte [esi + 0x6d], 0
je 0x612083
cmp byte [esi + 0x6c], 0
je 0x612083
mov byte [esi + 0x6c], 0
jmp 0x61208e
push 0
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0060fb1f
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x6121f2
mov eax, dword [0x7983ac]
inc eax
and eax, reloc.WS2_32.dll_accept
jns 0x6120b2
dec eax
or eax, 0xfffffffe
inc eax
mov dword [0x7983ac], eax
je 0x6120d1
cmp byte [ecx + 9], 0
jne 0x6120d1
call fcn.0060f504
mov ecx, dword [esi + 0x48]
push 0x6ac
call fcn.006126da
mov eax, dword [esi + 4]
cmp dword [eax + 0xc], 1
je 0x6121f2
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x14]
push edi
push eax
mov eax, dword [esi + 0x48]
push dword [eax + 4]
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x48]
lea ecx, [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
push ecx
push dword [eax + 4]
call ebx
mov edi, dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x612133
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x6121ef
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x48]
push dword [eax + 0x34]
call ebp
mov eax, dword [esi + 0x48]
push dword [eax + 0x34]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x61217f
mov eax, dword [esi + 0x48]
lea ecx, [esp + 0x10]
push ecx
push dword [eax + 0x34]
call ebx
test eax, eax
je 0x61217f
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x6121ef
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x14]
call ebp
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov eax, dword [esi]
call dword [eax + 0xc]
push eax
call ebx
test eax, eax
je 0x6121d8
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
je 0x6121d8
mov eax, dword [esi + 0x98]
test eax, eax
je 0x6121e8
dec eax
mov dword [esi + 0x98], eax
jne 0x6121e8
push 0
mov ecx, esi
call fcn.00612b34
jmp 0x6121e8
push 0
mov ecx, esi
call fcn.00612b34
and dword [esi + 0x98], 0
mov ecx, esi
call fcn.0060ff0e
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret 4
Function at 0x612b34
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x612ba0
cmp dword [eax + 0xc], 1
je 0x612ba0
push ebx
mov bl, byte [ebp + 8]
cmp byte [esi + 0xa2], bl
je 0x612b9f
movzx eax, bl
neg eax
sbb eax, eax
and eax, 4
push eax
mov eax, dword [esi + 0x48]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x48]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x48]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 0x48]
push 0
mov byte [esi + 0xa2], bl
call fcn.00612953
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x613365
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x682877
call fcn.006313fc
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.0060ec55
and dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov ecx, esi
call fcn.005e289e
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [edi], 0x6f8b20
mov dword [esi], 0x6f8b54
mov dword [edi + 0x78], eax
push dword [eax + 4]
mov byte [ebp - 4], 1
push 0x139
call fcn.0058422a
push dword [0x7705e0]
push 1
push 0x80
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x6000400
push dword [edi + 0x14]
call fcn.005841e5
push 5
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.006143b4
cmp byte [0x7983ec], 0
jne 0x6133fd
mov ecx, edi
call fcn.00613486
mov byte [0x7983ec], 1
and dword [edi + 0x8c], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x613486
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x682899
call fcn.006313fc
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
push 0xa
push 0x2b88
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
jne 0x6134b3
xor al, al
jmp 0x613606
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x6134ac
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x6134ac
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebp, eax
test ebp, ebp
je 0x6134ac
push str.tmp_
lea eax, [esp + 0x30]
push eax
call fcn.0046e883
and dword [esp + 0x64], 0
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x6134ff
lea eax, [esp + 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x613517
lea eax, [esp + 0x2c]
push str..zip
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0045ddbc
sub esp, 0x18
mov byte [esp + 0x7c], 1
lea esi, [esp + 0x2c]
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push str.Saving_freeplayer_to__s
call fcn.004790ad
mov eax, dword [esp + 0x30]
add esp, 0x1c
cmp dword [esp + 0x28], 8
jae 0x613556
lea eax, [esp + 0x14]
push ebx
push ebp
push eax
call fcn.0046111c
test al, al
je 0x6135e8
push 0
push 0
sub esp, 0x18
lea eax, [esp + 0x34]
mov ecx, esp
push eax
call fcn.00422efb
call fcn.0047e944
mov esi, eax
test esi, esi
je 0x6135e8
push str.freeplayer
lea eax, [esp + 0x48]
push eax
call fcn.0046e883
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
mov byte [esp + 0x64], 2
jae 0x6135a7
lea eax, [esp + 0x44]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea eax, [esp + 0x44]
push eax
push esi
call fcn.0047e712
push esi
mov bl, al
call fcn.0047e9aa
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x6135d2
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.0042341c
jmp 0x6135ea
xor bl, bl
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.0042341c
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.0042341c
mov al, bl
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x6155bd
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileInformationByHandle]
test eax, eax
jne 0x6155df
mov eax, 0x200
jmp 0x615768
mov eax, dword [esp + 0x10]
mov ecx, eax
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, ebp
and ecx, 1
je 0x6155f2
inc esi
test al, 2
je 0x6155f9
or esi, 2
test al, 4
je 0x615600
or esi, 4
mov edx, eax
and edx, 0x10
je 0x61560a
or esi, 0x10
test al, 0x20
je 0x615611
or esi, 0x20
test edx, edx
je 0x61561d
or esi, 0x40000000
jmp 0x615623
or esi, 0x80000000
or esi, 0x1000000
test ecx, ecx
jne 0x615633
or esi, 0x800000
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
cmp ebx, 0x28
jbe 0x6156df
push ebp
push ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push edi
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x60]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0
push 0
push 0x24
push edi
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, 0x54ad
cmp word [esp + 0x54], ax
jne 0x6156df
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x34]
cmp ebx, eax
jbe 0x6156df
push 0
push 0
push ecx
push edi
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 0x18]
cmp eax, 0x5a4d
je 0x6156d9
cmp eax, 0x454e
je 0x6156d9
cmp eax, 0x454c
je 0x6156d9
cmp eax, 0x4550
jne 0x6156df
or esi, 0x400000
mov eax, dword [esp + 0x58]
test eax, eax
je 0x6156e9
mov dword [eax], esi
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x6156f3
mov dword [eax], ebx
mov esi, dword [esp + 0x60]
test esi, esi
je 0x615733
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00616895
push dword [esp + 0x34]
mov dword [esi], eax
push dword [esp + 0x34]
mov dword [esi + 4], edx
call fcn.00616895
push dword [esp + 0x24]
mov dword [esi + 8], eax
push dword [esp + 0x24]
mov dword [esi + 0xc], edx
call fcn.00616895
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x64]
test esi, esi
je 0x615763
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.00616838
movzx ecx, word [esp + 0x54]
movzx eax, word [esp + 0x58]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
pop esi
pop ebp
xor eax, eax
pop ebx
pop edi
add esp, 0x40
ret 0x14
Function at 0x615e6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x615e7a
xor eax, eax
jmp 0x615f56
mov ecx, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x615f37
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x6f9138]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x6f9138]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x6f9138]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x6f9138]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x6f9138]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x6f9138]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x6f9138]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x6f9138]
dec edi
jne 0x615e9a
pop edi
test esi, esi
je 0x615f50
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x6f9138]
inc edx
dec esi
jne 0x615f3b
not ecx
pop esi
mov eax, ecx
pop ebx
ret 0xc