joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53bbdd
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.0057f600
mov eax, dword [0x5bd344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.00583650
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00583650
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x401718
push eax
call fcn.00498670
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x53bc6c
mov al, 1
jmp 0x53bd75
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.00583650
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.00583650
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.00583650
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x53bcee
mov bl, 2
jmp 0x53bd6c
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.0053bd84
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.0053bd84
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53bd2f
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.0053b78e
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53bd52
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.0053b78e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e93d
leave
ret
Function at 0x53bf2b
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5bd344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x194]
push eax
xor edi, edi
push 0x101
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push edi
xor ebx, ebx
mov word [esi + 8], ax
inc ebx
push ebx
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x53bfa8
push ebx
push dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], ebx
call fcn.00594a1c
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x53bfa8
mov dword [esi + 0x10], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e93d
leave
ret

Function at 0x53c0a9
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x5bd344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x64
mov dword [ebp - 0x7c], eax
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.00583650
add esp, 0xc
test esi, esi
je 0x53c142
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x53c142
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
jmp 0x53c124
movsx eax, word [esi + 0xa]
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.00582b50
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x68]
push 0x401720
push eax
call fcn.0053bf10
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
mov ecx, dword [eax + edi*4]
test ecx, ecx
jne 0x53c0f0
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push dword [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov ecx, ebx
call fcn.0053c155
jmp 0x53c144
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e93d
leave
ret 0xc
Function at 0x53c155
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x5bd344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x53c30c
push 2
pop eax
mov word [ebp - 0x114], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x144], 0x10
call fcn.0053c025
mov cx, word [0x5e7b38]
inc cx
mov dword [ebp - 0x14c], eax
push 0x2c
mov word [0x5e7b38], cx
push 0
push dword [edi + 0xc]
movzx eax, cx
mov dword [ebp - 0x148], eax
call fcn.00583650
mov esi, dword [edi + 0xc]
add esp, 0xc
mov ecx, edi
mov word [esi], 8
mov ax, word [edi + 8]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x148]
mov word [esi + 6], ax
mov eax, dword [ebp - 0x14c]
push 0x2c
mov dword [esi + 8], eax
push dword [edi + 0xc]
call fcn.0053bfd7
mov word [esi + 2], ax
lea eax, [ebp - 0x114]
push dword [ebp - 0x144]
push eax
push 0
push 0x2c
push dword [edi + 0xc]
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x53c30c
test ebx, ebx
jne 0x53c22e
xor eax, eax
inc eax
jmp 0x53c30e
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00583650
add esp, 0xc
lea esi, [edi + 4]
push 0
push 0x64
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x53c2f6
lea eax, [ebp - 0x140]
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x140], 1
je 0x53c2f6
mov ecx, edi
call fcn.0053c025
mov esi, eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp edx, 0xffffffff
je 0x53c2f3
mov cl, byte [ebp - 0x104]
and cl, 0xf
movzx ecx, cl
shl cx, 2
movzx eax, cx
movzx ecx, ax
mov dword [ebp - 0x150], eax
mov ax, word [ebp + ecx - 0x100]
cmp ax, word [edi + 8]
jne 0x53c2f3
cmp byte [ebp + ecx - 0x104], 0
jne 0x53c2f3
mov eax, dword [ebp - 0x148]
cmp word [ebp + ecx - 0xfe], ax
je 0x53c31f
lea esi, [edi + 4]
mov ecx, edi
call fcn.0053c025
sub eax, dword [ebp - 0x14c]
cmp eax, dword [ebp + 0x10]
jb 0x53c247
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e93d
leave
ret 0xc
sub esi, dword [ebp + ecx - 0xfc]
mov ecx, dword [ebp - 0x150]
movzx ecx, cx
sub edx, ecx
mov word [ebx], ax
movzx ecx, byte [ebp - 0xfc]
sub edx, 0xc
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
jmp 0x53c226
Function at 0x5439a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.005436a1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x5439c8
push 2
pop eax
jmp 0x543a2c
push ebx
push edi
call fcn.005436a1
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x5439e1
push 0xd
pop esi
jmp 0x543a22
push edi
call fcn.005436a1
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
test ecx, ecx
je 0x5439dc
mov eax, dword [ebp + 0x14]
push 8
pop edx
cmp ecx, dword [eax]
mov dword [eax], ecx
cmova esi, edx
test esi, esi
jne 0x543a22
cmp dword [ebp + 0x10], esi
jne 0x543a0e
push 0x57
jmp 0x5439de
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [ebp + 0x10]
call fcn.00582b50
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x543a30
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x94
mov eax, 0x5b2aef
call fcn.0057f468
mov eax, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x9c], eax
call fcn.005436b0
push eax
lea ecx, [ebp - 0x94]
call fcn.00548c62
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], edi
call fcn.00548e35
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0048f4c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x543aa4
push 2
pop esi
jmp 0x543b07
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x543ab7
push 0xd
pop esi
jmp 0x543b00
mov eax, dword [ebp - 0x9c]
xor esi, esi
push 8
pop ecx
cmp edi, dword [eax]
mov dword [eax], edi
cmova esi, ecx
test esi, esi
jne 0x543b00
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x543adb
push 0x57
jmp 0x543ab4
and dword [ebp - 0x98], 0
lea ecx, [ebp - 0x98]
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x98], edi
push 0xc
pop eax
cmovne esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x94]
call fcn.00537eb5
mov eax, esi
call fcn.0057f423
ret

Function at 0x543c2c
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x543c4f
or esi, 1
push 1
call edi
test ax, ax
jns 0x543c5b
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x543c67
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x543c73
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x545396
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0xec]
call fcn.004a1ff0
mov edi, dword [ebp + 8]
test eax, eax
jle 0x5453ec
push ebx
lea ecx, [esi + 0xec]
mov byte [ebp + 0xb], 0
call fcn.00548df9
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x545447
lea ecx, [esi + 0xec]
inc ebx
call fcn.004a1ff0
cmp ebx, eax
jl 0x5453b5
sub edi, 0x100
je 0x5454ae
sub edi, 4
je 0x54544b
dec edi
sub edi, 1
jne 0x5454a5
push dword [ebp + 0xc]
and dword [ebp + 8], edi
call fcn.005953f5
pop ecx
mov ecx, dword [esi + 0x6c]
lea edx, [ebp + 8]
push inet_ntoa
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x54681e
call dword [eax + 0x100]
mov esi, eax
test esi, esi
je 0x5454a5
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf4]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x5454a7
cmp dword [esi + 0x70], 0
je 0x5454a5
xor eax, eax
mov dword [ebp - 0x20], 6
mov word [ebp - 2], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x84]
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0xa], xmm0
mov dword [ebp - 0x10], eax
call fcn.00543c2c
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x70]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x5454a5
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x5454fb
mov eax, dword [ecx]
call dword [eax + 0xcc]
test al, al
je 0x5454fb
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
call dword [eax + 0xd8]
test al, al
je 0x5454fb
mov ecx, dword [esi + 0x70]
push 0x401de0
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.005826c0
pop ecx
pop ecx
test eax, eax
je 0x5454fb
mov ecx, dword [esi + 0x70]
call fcn.0055abf2
test al, al
jne 0x5454a5
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.005462e2
jmp 0x5454a7
Function at 0x54c0e9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5bd344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
and dword [ebx + 0x34c], 0
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], ebx
mov dword [ebx + 0x348], ecx
mov dword [ebx + 0x350], eax
test ecx, ecx
jne 0x54c154
call fcn.0054bed6
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x54c154
call fcn.0054bed6
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.0054bed6
mov edx, ebx
lea ecx, [ebx + 0x10]
neg edx
mov esi, dword [eax]
sbb edx, edx
and edx, ecx
mov ecx, eax
push edx
call dword [esi]
mov ecx, dword [ebx + 0x348]
test ecx, ecx
je 0x54c17c
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edi, eax
mov ecx, edi
call fcn.0053a3d3
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.00548c52
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
push 0x88
movsd dword es:[edi], dword [esi]
push SysReAllocString
push 0
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
mov ecx, esi
call fcn.0055276d
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
jmp 0x54c1c1
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x54c1bc
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e93d
leave
ret 0x1c

Function at 0x5528ff
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x552931
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x5534f2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5bd344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x55355f
cmp dword [esi + 0x10], 0
je 0x55355f
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0057f6f0
mov ebx, esp
test ebx, ebx
je 0x55355f
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1c4
call fcn.00548dc0
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push 0x41df44
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00545c86
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e93d
leave
ret 0x10
Function at 0x55c3e7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5bd344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x55c4a1
movzx eax, word [esi]
test ax, ax
je 0x55c4a1
push edi
mov edi, esi
mov ecx, esi
mov edx, eax
cmp dx, 0x2f
je 0x55c429
cmp dx, 0x5c
jne 0x55c42b
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x55c41d
cmp edi, esi
je 0x55c474
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.00595b60
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x55c4af
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0055c3e7
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00595d48
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00595d17
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e93d
leave
ret
call fcn.0057ea74
int3

Function at 0x55caa7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x55cb23
cmp dword [edi + 4], 0xffffffff
jne 0x55cb23
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x416964
push esi
call fcn.00595d17
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x55caf5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x55caf5
mov eax, 0x2000000
jmp 0x55cb28
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0055f042
add esp, 0x10
test eax, eax
jne 0x55cb13
mov eax, dword [ebp - 4]
jmp 0x55cb28
push eax
call fcn.0055f807
mov dword [edi], eax
mov eax, dword [0x5e7dd4]
pop ecx
jmp 0x55cb28
mov eax, 0x1000000
pop edi
leave
ret 0xc
Function at 0x55f042
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
cmp eax, 1
je 0x55f067
cmp eax, 2
je 0x55f067
cmp eax, 3
je 0x55f067
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x10000
xor eax, eax
leave
ret
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
mov byte [ebp - 8], dl
mov ecx, edx
mov dword [ebp - 4], ecx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [edi], edx
cmp eax, 1
jne 0x55f0c6
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 4]
push 2
push edx
push edx
push eax
call esi
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x55f0ab
mov dword [edi], 0x100
jmp 0x55f189
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov ecx, dword [ebp - 4]
dec eax
neg eax
sbb al, al
inc al
xor edx, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x55f175
push edx
push 0x80
push 3
push edx
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x55f0f9
mov dword [edi], 0x200
jmp 0x55f189
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
dec eax
neg eax
push 0
push dword [ebp - 4]
sbb al, al
inc al
mov byte [ebp - 8], al
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0xc], esi
test esi, esi
je 0x55f165
push esi
call fcn.00594a1c
mov ebx, eax
pop ecx
test ebx, ebx
je 0x55f165
push 0
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 0x800
test eax, eax
jne 0x55f14d
mov dword [edi], ecx
mov eax, ecx
jmp 0x55f14f
mov eax, dword [edi]
cmp dword [ebp - 0x10], esi
je 0x55f158
mov dword [edi], ecx
mov eax, ecx
test eax, eax
je 0x55f165
push ebx
call fcn.0058a352
pop ecx
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x55f17b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test ecx, ecx
jne 0x55f18d
test ebx, ebx
jne 0x55f18d
mov dword [edi], 0x300
xor eax, eax
jmp 0x55f1ed
push 0x24
call fcn.0057eb4e
mov esi, eax
xor edx, edx
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [esi + 4], eax
cmp dword [ebp - 4], edx
je 0x55f1d1
mov ecx, dword [ebp - 8]
mov byte [esi], 1
mov byte [esi + 8], cl
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], dl
mov dword [esi + 0x14], edx
test cl, cl
je 0x55f1e9
push 1
push edx
push edx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x14], eax
xor edx, edx
jmp 0x55f1e9
mov eax, dword [ebp - 0xc]
mov byte [esi], dl
mov byte [esi + 8], 1
mov dword [esi + 0xc], edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x14], edx
mov dword [edi], edx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x55f1f2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x55f225
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x55f220
mov byte [edi + 0x10], 1
mov eax, dword [ebp + 0x10]
jmp 0x55f24f
mov edx, dword [edi + 0x20]
push esi
mov esi, dword [edi + 0x1c]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x1c]
cmovbe esi, ecx
mov ecx, dword [edi + 0x18]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.00582b50
add esp, 0xc
mov eax, esi
add dword [edi + 0x20], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x55f3dd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x55f3eb
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x55f4aa
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x405090]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x405090]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x405090]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x405090]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x405090]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x405090]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x405090]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x405090]
sub edi, 1
jne 0x55f403
pop edi
test esi, esi
je 0x55f4c6
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x405090]
inc edx
sub esi, 1
jne 0x55f4ae
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x56fc74
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x5b3fd0
call fcn.0057f468
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x5b8], ebx
cmp dword [edi + 4], ebx
jne 0x56fd06
lea eax, [ebp - 0xa8]
push eax
call fcn.0056f94e
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0053a3d3
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.0055276d
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.00550da4
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00543260
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00549393
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.00537eb5
mov esi, 0x5a8
test bl, bl
je 0x56fd41
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.0057f423
ret 4