joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ea90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x46eaad.4
jmp dword [eax*4 + 0x46ecac]
lea eax, [edi + 0x15c]
push eax
call fcn.0046e180
movzx ecx, ax
add esp, 4
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
je 0x46eae9
push eax
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.004550e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
mov word [edi + 0x40], cx
push 4
push esi
mov dword [edi + 0x18], 0
call fcn.0046e1e0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.0046e1c0
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x46ec1f
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
lea eax, [edi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [edi], ecx
call fcn.004cf739
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
lea esi, [edi + 0x160]
push 4
push esi
mov word [edi + 0x40], ax
mov dword [edi + 0x18], eax
call fcn.0046e1e0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.0046e1c0
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x46ec1f
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.004cf739
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
inc eax
push dword [edi + 0x18]
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.004550e0
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x46ebfb
mov dword [edi + 8], 0xffffff9d
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x46ec85
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.004598c0
push eax
push 0x578788
push ebx
call fcn.00455040
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
push 5
push esi
call fcn.0046e1e0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.0046e1c0
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push str.tftp_rx:_internal_error
push 0x578788
push ebx
call fcn.00455040
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x46f170
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x46f182
jmp dword [edx*4 + 0x46f1d8]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0046ecc0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0046ea90
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0046f380
push str.TFTP_finished
push 0x579e74
push eax
call fcn.004550e0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x578788
push eax
call fcn.00455040
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x46f630
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004d5176
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x46f694
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x46f694
lea eax, [ebp - 0x108]
push eax
call dword [0x5da364]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437c42
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00437c42
mov esp, ebp
pop ebp
ret

Function at 0x46f6b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046f630
Function at 0x472c50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x5da358]
mov edi, eax
add esp, 4
test edi, edi
jne 0x472c7d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x472cc4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x472cca
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x472d2b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x472cf0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x472d57
mov eax, dword [esi + 4]
push 1
push 0x580efc
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x580efd
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x472d30
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x472d80
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x472db3
push 0x2e
push edi
call fcn.004bfe10
add esp, 8
test eax, eax
je 0x472db1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x476498
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 0x4764ca
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 0x47b0c9
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x56d4d1
call fcn.004e718f
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.0047b458
call fcn.0047e6f2
push eax
lea ecx, [ebp - 0x94]
call fcn.0047506a
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0047e6f8
mov ecx, eax
call fcn.0047584b
test al, al
je 0x47b1df
push ebx
lea ecx, [ebp - 0x94]
call fcn.004752a9
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0043f83f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x47b150
push str.Error_opening_file
jmp 0x47b2c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x47b259
cmp edi, 0x400000
ja 0x47b26a
and dword [ebp - 0x2c8], 0
push edi
call fcn.00437c34
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x47b1c8
push ebx
call fcn.00437c3d
pop ecx
mov ecx, esi
call fcn.0047b458
push 0
push str.Could_not_read_file
jmp 0x47b2c0
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.0047b30b
push dword [ebp - 0x2cc]
jmp 0x47b2ee
call fcn.0047e6f8
push eax
lea ecx, [ebp - 0x94]
call fcn.0047528c
call fcn.0047e824
test al, al
je 0x47b200
call fcn.0047e6fe
jmp 0x47b217
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0043f83f
push eax
call fcn.00491b0f
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x47b228
push eax
push str.Error_opening_zip_file
jmp 0x47b2c0
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.00491550
add esp, 0x14
test eax, eax
je 0x47b24f
push 0
push str.Could_not_find_ziped_file
jmp 0x47b2c0
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x47b262
push 0
push str.File_is_empty
jmp 0x47b2c0
cmp ebx, 0x400000
jbe 0x47b273
push 0
push 0x5819f0
jmp 0x47b2c0
push ebx
call fcn.00437c34
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.00491ecf
add esp, 0x18
test eax, eax
je 0x47b2cb
cmp eax, 0x600
je 0x47b2cb
push dword [ebp - 0x2c8]
call fcn.00437c3d
pop ecx
call fcn.0047e824
test al, al
jne 0x47b2b9
push edi
call fcn.004913aa
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.0047b480
mov bl, al
jmp 0x47b2f6
call fcn.0047e824
test al, al
jne 0x47b2db
push edi
call fcn.004913aa
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.0047b30b
push edi
mov bl, al
call fcn.00437c3d
pop ecx
lea ecx, [ebp - 0x94]
call fcn.004751a5
mov al, bl
call fcn.004e7139
ret 8
Function at 0x47e93d
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 0x47e960
or esi, 1
push 1
call edi
test ax, ax
jns 0x47e96c
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x47e978
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x47e984
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [ebx + 4]
je 0x480e69
cmp esi, dword [ebx + 0x60]
je 0x480f2b
cmp byte [ebx + 0xc4], 0
jne 0x480e69
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, dword [ebx + 0x60]
je 0x480f2b
cmp dword [ebx + 0x60], 0
push edi
je 0x480ebc
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x60]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x60]
call fcn.00480bee
mov dword [ebx + 0x60], edi
test esi, esi
je 0x480f2a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
cmp eax, ebx
jne 0x480f2a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd8]
test al, al
je 0x480f2a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe8]
test al, al
je 0x480f2a
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x60], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x60]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x60]
call fcn.00480bee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x484686
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x48469a
xor eax, eax
pop ebp
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4846ac
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x484696
push esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4846c7
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4846fe
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.004bec40
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x484702
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x484705
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x486629
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x88
mov eax, 0x56d42b
call fcn.004e718f
mov esi, ecx
cmp dword [esi + 0x4f0], 0
mov ebx, dword [ebp + 0x14]
je 0x48671d
cmp dword [ebp + 8], 0x100
jne 0x486703
cmp word [ebp + 0xc], 0xd
jne 0x48669c
cmp byte [esi + 0x4f6], 0
je 0x48667d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x48669c
cmp byte [esi + 0x4f7], 0
jne 0x48669c
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x486695
push 0
push 0
push 0
push str.return
push esi
call fcn.00480bee
xor eax, eax
jmp 0x486720
cmp dword [ebp + 0xc], 0x43
jne 0x486703
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x486703
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.00484e61
and dword [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.004756e9
lea ecx, [ebp - 0x94]
lea eax, [eax*2 + 2]
push eax
call fcn.0043f83f
mov ecx, dword [esi + 0x40]
push eax
push 0x2042
call fcn.00475df7
push eax
call fcn.00484686
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.004751a5
jmp 0x486695
mov eax, dword [esi + 0x4f0]
push ebx
push dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x486720
xor eax, eax
inc eax
call fcn.004e7139
ret 0x10
Function at 0x4913fc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5da2b4]
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 0x4914b2
movzx eax, word [esi]
test ax, ax
je 0x4914b2
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x49143c
cmp ax, 0x5c
jne 0x49143e
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x491430
cmp edi, esi
je 0x491485
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.004d2a96
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4914c2
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004913fc
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004d2a59
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004d2a28
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.00437c42
mov esp, ebp
pop ebp
ret
call fcn.00438141
int3

Function at 0x491a87
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x491b03
cmp dword [edi + 4], 0xffffffff
jne 0x491b03
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x57190c
push esi
call fcn.004d2a28
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x491ad5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x491ad5
mov eax, 0x2000000
jmp 0x491b08
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00493fa2
add esp, 0x10
test eax, eax
jne 0x491af3
mov eax, dword [ebp - 4]
jmp 0x491b08
push eax
call fcn.004946aa
mov dword [edi], eax
mov eax, dword [0x5e9974]
pop ecx
jmp 0x491b08
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4940af
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x4940e3
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4940de
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x49410a
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x4940f3
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004bec40
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x49428b
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x49434a
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 + 0x583cf8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x583cf8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x583cf8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x583cf8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x583cf8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x583cf8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x583cf8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x583cf8]
sub edi, 1
jne 0x4942a3
pop edi
test esi, esi
je 0x494366
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x583cf8]
inc edx
sub esi, 1
jne 0x49434e
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4a14ac
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x24], 0
je 0x4a1519
cmp dword [esi + 0x1c], 0
je 0x4a1519
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004e7870
mov ebx, esp
test ebx, ebx
je 0x4a1519
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x1c]
push ebx
add ecx, 0x1bc
call fcn.00475235
mov ecx, dword [esi + 0x1c]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00480bee
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437c42
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a2303
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x56e809
call fcn.004e718f
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.0047e6f2
push eax
lea ecx, [ebp - 0x94]
call fcn.0047506a
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0047e6f8
mov ecx, eax
call fcn.0047584b
test al, al
je 0x4a23f1
push ebx
lea ecx, [ebp - 0x94]
call fcn.004752a9
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0043f83f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a2394
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004751a5
jmp 0x4a24d2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4a2380
push esi
mov dword [ebp - 0x2c8], edi
call fcn.00437c34
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x4a24bd
push edi
call fcn.00437c3d
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004751a5
jmp 0x4a24d0
call fcn.0047e6f8
push eax
lea ecx, [ebp - 0x94]
call fcn.0047528c
call fcn.0047e824
test al, al
je 0x4a2412
call fcn.0047e6fe
jmp 0x4a2429
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0043f83f
push eax
call fcn.00491b0f
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x4a2380
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.00491550
add esp, 0x14
test eax, eax
jne 0x4a2380
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x4a2380
push esi
call fcn.00437c34
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.00491ecf
add esp, 0x18
test eax, eax
je 0x4a24ad
cmp eax, 0x600
je 0x4a24ad
push edi
call fcn.00437c3d
pop ecx
call fcn.0047e824
test al, al
jne 0x4a23dd
push ebx
call fcn.004913aa
jmp 0x4a23dc
call fcn.0047e824
test al, al
jne 0x4a24bd
push ebx
call fcn.004913aa
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004751a5
test edi, edi
jne 0x4a2544
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a2540
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4a2540
push esi
mov dword [ebp - 0x2d0], edi
call fcn.00437c34
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x4a253c
push edi
call fcn.00437c3d
pop ecx
xor edi, edi
test edi, edi
jne 0x4a2544
xor eax, eax
jmp 0x4a255f
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.004a2567
push 1
push edi
mov esi, eax
call fcn.00437c26
pop ecx
pop ecx
mov eax, esi
call fcn.004e7139
ret 4
Function at 0x4ac7ea
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x4ac80e
cmp dword [esi + 8], edi
jge 0x4ac806
push esi
call fcn.004aaa8b
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4ac837
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4ac81a
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4ac854
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x4ac842
xor eax, eax
jmp 0x4ac84a
mov al, byte [edx]
inc edx
mov dword [esi], edx
movzx eax, al
mov byte [ebp + ecx + 8], al
inc ecx
cmp ecx, 4
jl 0x4ac839
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4ac889
push str.zlib_corrupt
call fcn.004aa946
add esp, 4
jmp 0x4ac8c6
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4ac899
push str.read_past_buffer
jmp 0x4ac87f
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4ac8b0
push edi
push esi
call fcn.004aa955
pop ecx
pop ecx
test eax, eax
je 0x4ac8c6
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004bec40
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret