joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5230
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5716a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x6c291c]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.0055daf6
mov edx, dword [0x6c291c]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4c528a
mov dword [esp + 0x1c], ebx
jmp 0x4c5291
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.0055fcc0
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.0055b70c
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x4c52e2
mov dword [esp + 0x14], ebx
jmp 0x4c52e9
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x4c5304
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4c52fe
cmp eax, 2
jne 0x4c5304
mov dword [esp + 0x18], edi
jmp 0x4c5308
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4c5316
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0055d12c
mov edi, eax
cmp edi, ebx
jne 0x4c5326
xor eax, eax
jmp 0x4c5329
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4c5351
mov ecx, esi
call fcn.0055fcc0
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x4c536d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c538c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4c538c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.0055b5d3
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.0055b5d3
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4c7190
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4c71f6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4c71f6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4c71d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x4c7d30
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004c7e80
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4c7d50
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x4c7d31
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004c7e80
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4c7d50
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x4c7d80
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4c7dd7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4c7ded
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.004c7e10
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x4c7e10
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x4c7ea0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4c7ee9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x4c8360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x571ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004c7f10
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004c7f90
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004c7f90
lea ecx, [esi + 0xc]
call fcn.0055b55e
lea ecx, [esi + 0x10]
call fcn.0055b55e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004ca7c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004ca7c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004ca7c0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0055b5d3
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0055b5d3
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4c9008
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x571dc8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4c9018
call fcn.004c9530
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x4c90fb
cmp byte [edi], 0
je 0x4c90fb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x4c903d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004c7d30
test eax, eax
jne 0x4c905d
push 0x60d01c
lea ecx, [esi + 0x38]
call fcn.0055b75c
jmp 0x4c90fb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.004c7d80
test eax, eax
jne 0x4c908c
mov ecx, esi
call fcn.004c7e80
push edi
add esi, 0x38
push 0x60cff8
push esi
call fcn.00558a91
add esp, 0xc
jmp 0x4c90fb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004c9db0
test eax, eax
je 0x4c90f4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004c91d0
test eax, eax
jne 0x4c9110
push edi
lea eax, [esi + 0x38]
push 0x60cfd4
push eax
call fcn.00558a91
add esp, 0xc
mov ecx, esi
call fcn.004c9530
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4c91b8
mov ecx, dword [0x6c291c]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00558a91
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.004c7e30
test eax, eax
jne 0x4c917a
push 0x60cfb8
lea ecx, [esi + 0x38]
call fcn.0055b75c
jmp 0x4c918a
push 0xfa
mov ecx, esi
call fcn.004c9db0
test eax, eax
jne 0x4c91a7
mov ecx, esi
call fcn.004c9530
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0055b5d3
jmp 0x4c90fb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0055b5d3
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x4d0d90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x57214b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea eax, [esp + 0x14]
push esi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jae 0x4d0e70
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push esi
push 0x60faa4
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, esi
je 0x4d0e70
lea eax, [esp + 0x18]
push 0x1001
push eax
lea ecx, [esp + 0xc]
call fcn.0055bcb3
mov dword [esp + 0x128], esi
mov esi, dword [esp + 0x134]
push str.lt_
push 0x60fa98
mov ecx, esi
call fcn.005583fb
push str.gt_
push 0x60fa8c
mov ecx, esi
call fcn.005583fb
mov esi, dword [esi]
lea ecx, [esp + 4]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0055bf67
lea ecx, [esp + 4]
call fcn.0055c02b
mov esi, dword [esp + 0x130]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0055b641
lea ecx, [esp + 4]
mov dword [esp + 0x128], 0xffffffff
call fcn.0055bd53
jmp 0x4d0e83
mov esi, dword [esp + 0x130]
push 0x6ecf00
mov ecx, esi
call fcn.0055b641
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x4d6c30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x572610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.004d7000
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.004d7000
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x3c], 1
call fcn.004d7070
lea ecx, [esp + 0x10]
call fcn.004d77a0
cmp eax, 1
jae 0x4d6cd8
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x4d6d43
lea ecx, [edi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4d6d43
push esi
push edi
call ebx
push esi
lea ecx, [esp + 0x14]
call fcn.004d7070
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x10]
call fcn.004d77a0
cmp eax, 1
jb 0x4d6d43
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.004d6ad0
test eax, eax
je 0x4d6d43
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.004d6db0
mov edi, dword [esp + 0x44]
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.004d70d0
push edi
lea ecx, [esp + 0x24]
call fcn.004d70f0
push esi
lea ecx, [esp + 0x24]
call fcn.004d7190
push str..tmp
lea ecx, [esp + 0x24]
call fcn.004d70f0
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.004d6ab0
test eax, eax
je 0x4d6d79
inc esi
cmp esi, 0x7a0a1f00
jb 0x4d6cfa
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.004d7020
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.004d7020
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
call fcn.004d70d0
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.004d7020
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.004d7020
mov eax, 1
jmp 0x4d6d64
Function at 0x4d7520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5726c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.004d7000
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call fcn.004d7070
push 0
mov ecx, esi
call fcn.004d74a0
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jb 0x4d7658
lea ecx, [esp + 0xc]
call fcn.004d77a0
cmp eax, 1
jae 0x4d75a7
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004d7020
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x34]
lea edi, [esi + 0xc]
test eax, eax
jne 0x4d75f4
push 0
lea ecx, [esp + 0x10]
call fcn.004d7420
push eax
push edi
mov ecx, 0x6ecf1c
call fcn.004d6c30
test eax, eax
jne 0x4d75fc
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004d7020
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push eax
mov ecx, edi
call fcn.004d7070
push edi
mov ecx, 0x6ecf1c
call fcn.004d6b90
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
mov ecx, edi
call fcn.004d7410
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4d7658
push 0
push ebx
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x4d7658
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x4d7688
push 1
mov ecx, esi
call fcn.004d74a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004d7020
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.004d7020
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x4d7fd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.004d7070
pop edi
add esp, 0x104
ret 4
Function at 0x4d9f00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x572778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.0053ef43
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.0055b641
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.00558617
mov eax, dword [eax]
push 0x60ff8c
push eax
call fcn.005460d4
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.0055b5d3
test bl, bl
je 0x4d9f80
push 0x60ff8c
lea ecx, [esp + 0xc]
call fcn.0055b9af
push 0x60ff88
lea ecx, [esp + 0xc]
call fcn.0055b9af
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.0053f006
test eax, eax
je 0x4da044
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.0053f226
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x4da000
lea ecx, [esp + 0x18]
call fcn.0053f1ed
test eax, eax
jne 0x4da000
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0053f2f5
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.004d9f00
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x4da035
lea ecx, [esp + 0x18]
call fcn.0053f1ed
test eax, eax
jne 0x4da03a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x4da03a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.0053f2f5
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.0055b5d3
test edi, edi
jne 0x4d9fb0
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.0053efbc
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.0055b5d3
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.0053ef80
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x4da140
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5727a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x6c291c]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.0055b75c
push 0x60ffb0
lea ecx, [esp + 0x10]
call fcn.0055b9af
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4da1e3
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.0055b5d3
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.0055b5d3
xor eax, eax
jmp 0x4da328
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x60ffac
push edx
call fcn.005460d4
add esp, 8
test eax, eax
je 0x4da2d9
lea eax, [esp + 0x48]
push 0x60ffa8
push eax
call fcn.005460d4
add esp, 8
test eax, eax
je 0x4da2d9
test ebp, ebp
jne 0x4da245
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.00546183
add esp, 8
test eax, eax
je 0x4da2d9
push esi
lea ecx, [esp + 0x14]
call fcn.0055b75c
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0055b9d6
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.0055b9af
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4da285
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x4da2a7
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.004da140
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4da2d9
test edi, edi
je 0x4da2ce
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.00546183
add esp, 8
test eax, eax
jne 0x4da2ce
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.004da350
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4da1f3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.0055b5d3
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.0055b5d3
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x4da350
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5727bb
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.005469c0
mov eax, dword [0x6c291c]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.0055b75c
push 0x5c
lea ecx, [esp + 8]
call fcn.0055b9d6
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.0055b9af
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4da3f6
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.0055b5d3
xor eax, eax
jmp 0x4da473
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x4da451
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x4da443
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x4da41d
jmp 0x4da451
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.0055b5d3
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x4dadf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4dae23
push esi
call fcn.004dfd00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4dae1c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4daea9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4dae92
mov eax, dword [esi + 8]
test eax, eax
je 0x4dae47
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4dae8e
cmp eax, 2
je 0x4dae92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4dae3a
cmp eax, 3
je 0x4dae6d
cmp eax, 1
jne 0x4dae3a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4dae3a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4dae3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004daee0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4daec9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004daee0
add esp, 4
pop esi
ret
Function at 0x50beb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x50bebb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x50bfbe
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x5d3290]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5d3290]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5d3290]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5d3290]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5d3290]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5d3290]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5d3290]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5d3290]
xor eax, edx
inc ecx
dec edi
jne 0x50bed6
pop edi
test esi, esi
je 0x50bfe0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5d3290]
xor eax, edx
inc ecx
dec esi
jne 0x50bfc2
pop esi
pop ebx
not eax
ret