joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496970
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x3b4
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x3b0], eax
cmp byte [0x58a758], 0
push edi
mov edi, dword [esp + 0x3bc]
je 0x496bd1
lea eax, [esp + 4]
push eax
call fcn.00401210
lea ecx, [esp + 4]
push ecx
call fcn.00523df0
cmp dword [0x59812c], 0
jne 0x496ba3
lea edx, [esp + 0x224]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x496b89
push 0x1c
call fcn.004a49a0
mov dword [0x59812c], eax
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [0x59812c]
mov dword [eax + 4], ecx
mov edx, dword [0x59812c]
mov dword [edx + 8], ecx
mov eax, dword [0x59812c]
mov dword [eax + 0xc], ecx
mov edx, dword [0x59812c]
mov dword [edx + 0x10], ecx
mov eax, dword [0x59812c]
mov dword [eax + 0x14], ecx
mov edx, dword [0x59812c]
mov dword [edx + 0x18], ecx
mov eax, dword [0x59802c]
push eax
call fcn.0051c290
mov ecx, dword [0x59812c]
push 0
push 0
push 0
push 0x496590
mov dword [ecx + 0x18], eax
mov edx, dword [0x59812c]
mov eax, dword [0x58a74c]
push str.EVERYTHING_ETP_SERVER
push 0
mov dword [edx + 0x14], eax
call fcn.004aa1e0
push 0
push 0
call dword [0x597d38]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.EVERYTHING_ETP_SERVER
push str.EVERYTHING_ETP_SERVER
push 0
call fcn.004aa330
mov ecx, dword [0x59812c]
mov dword [ecx + 0x10], eax
mov cx, word [esp + 0x224]
cmp cl, 1
je 0x496ac3
mov ax, cx
shr ax, 8
cmp al, 1
je 0x496ac3
movzx edx, al
movzx eax, cl
mov ecx, dword [0x58deec]
push edx
mov edx, dword [ecx + 0x1184]
push eax
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00524170
add esp, 0x10
jmp 0x496b4a
mov ecx, dword [0x59802c]
cmp byte [ecx], 0
je 0x496b3e
push esi
lea edx, [esp + 0x118]
push edx
call fcn.00401210
mov eax, dword [0x59802c]
push eax
lea eax, [esp + 0x11c]
push eax
call fcn.00524f00
mov esi, eax
test esi, esi
je 0x496b2e
jmp 0x496b00
mov eax, dword [esp + 0x120]
cmp byte [eax], 0
je 0x496b1a
lea ecx, [esp + 8]
push ecx
call fcn.004929b0
test eax, eax
je 0x496b2e
push esi
lea edx, [esp + 0x11c]
push edx
call fcn.00524f00
mov esi, eax
test esi, esi
jne 0x496b00
lea eax, [esp + 0x118]
push eax
call fcn.00401230
pop esi
jmp 0x496b4a
lea ecx, [esp + 4]
push ecx
xor eax, eax
call fcn.004929b0
mov edx, dword [0x59812c]
cmp dword [edx], 0
je 0x496b82
mov eax, dword [esp + 0xc]
cmp byte [eax], 0
je 0x496b71
push eax
push str.ETP_server_started__but_with_errors:__s_n
push 0xffff0000
call fcn.0048f0f0
add esp, 0xc
push str.ETP_server_online._r_n
push 0
call fcn.00492b60
add esp, 8
jmp 0x496bc7
call fcn.004952c0
jmp 0x496ba3
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x1180]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00524170
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp byte [eax], 0
je 0x496bc7
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x1130]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push edi
call fcn.004a9ef0
add esp, 0x14
lea eax, [esp + 4]
push eax
call fcn.00401230
mov ecx, dword [esp + 0x3b4]
pop edi
xor ecx, esp
call fcn.00549750
add esp, 0x3b4
ret 4
Function at 0x497400
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
push 1
push eax
xor ebp, ebp
call fcn.004a9a10
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4974a4
push esi
lea ecx, [esp + 0xc]
push ecx
push ebx
call fcn.004ab7b0
test eax, eax
je 0x49749c
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x497487
push edi
call fcn.004a49e0
mov esi, eax
test esi, esi
je 0x49749b
push ebp
lea edx, [esp + 0x20]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49746e
cmp dword [esp + 0x1c], edi
jne 0x49746e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push edi
push esi
call dword [esp + 0x30]
mov ebp, eax
push esi
call fcn.004a4a00
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
push 0
push 0
call dword [esp + 0x30]
mov ebp, eax
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0x10

Function at 0x4974b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, dword [esp + 0x34]
push edi
push 1
push eax
xor edi, edi
call fcn.004a9a10
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49756c
push edi
lea eax, [esp + 0x10]
push eax
push 0x1a
lea ecx, [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497565
cmp dword [esp + 0xc], 0x1a
jne 0x497565
mov edx, dword [esp + 0x10]
and edx, 0xffffff00
cmp edx, 0x474e5000
jne 0x497565
cmp dword [esp + 0x1c], 0x52444849
jne 0x497565
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
bswap eax
bswap ecx
mov dword [esi], eax
movzx eax, byte [esp + 0x29]
sub eax, 2
mov dword [esi + 4], ecx
movzx ecx, byte [esp + 0x28]
mov dword [esi + 8], ecx
je 0x49755a
sub eax, 2
je 0x497552
sub eax, 2
jne 0x497560
lea edx, [ecx*4]
mov dword [esi + 8], edx
jmp 0x497560
lea eax, [ecx + ecx]
mov dword [esi + 8], eax
jmp 0x497560
lea ecx, [ecx + ecx*2]
mov dword [esi + 8], ecx
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00549750
add esp, 0x24
ret 8

Function at 0x497590
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push esi
push edi
push 1
push eax
xor edi, edi
call fcn.004a9a10
mov esi, eax
cmp esi, 0xffffffff
je 0x4975f7
push edi
lea ecx, [esp + 0x30]
push ecx
push 0x1e
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4975f0
cmp dword [esp + 0x2c], 0x1e
jne 0x4975f0
cmp word [esp + 8], 0x4d42
jne 0x4975f0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x1e]
mov dword [eax], ecx
movzx ecx, word [esp + 0x24]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x497830
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push edi
push 1
push eax
xor edi, edi
call fcn.004a9a10
mov esi, eax
cmp esi, 0xffffffff
je 0x4978aa
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0xa
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4978a3
cmp dword [esp + 0x18], 0xa
jne 0x4978a3
cmp dword [esp + 8], 0x38464947
jne 0x4978a3
mov ax, word [esp + 0xc]
cmp ax, 0x6139
je 0x497884
cmp ax, 0x6137
jne 0x4978a3
movzx ecx, word [esp + 0xe]
mov eax, dword [esp + 0x1c]
movzx edx, word [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], 8
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x4978c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xbc
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xc0]
push ebx
push ebp
mov ebp, dword [esp + 0xcc]
push esi
push 1
push eax
xor esi, esi
call fcn.004a9a10
mov ebx, eax
cmp ebx, 0xffffffff
je 0x497a2c
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je case.default.0x49797d
mov ecx, dword [esp + 0x34]
push esi
push esi
add ecx, 0xffffff80
push ecx
push ebx
call fcn.004af0b0
test eax, eax
je case.default.0x49797d
push esi
lea edx, [esp + 0x10]
push edx
push 0x80
lea eax, [esp + 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je case.default.0x49797d
cmp dword [esp + 0xc], 0x80
jne case.default.0x49797d
cmp byte [esp + 0x44], 0x54
jne case.default.0x49797d
cmp byte [esp + 0x45], 0x41
jne case.default.0x49797d
cmp byte [esp + 0x46], 0x47
jne case.default.0x49797d
cmp ebp, 6
ja case.default.0x49797d
jmp dword [ebp*4 + 0x497a48]
push 0x1e
lea ecx, [esp + 0x4b]
push ecx
push edi
call fcn.00525a50
jmp 0x497a20
push 0x1e
lea edx, [esp + 0x69]
push edx
push edi
call fcn.00525a50
jmp 0x497a20
push 0x1e
lea eax, [esp + 0x87]
push eax
push edi
call fcn.00525a50
jmp 0x497a20
push 4
lea ecx, [esp + 0xa5]
push ecx
push edi
call fcn.00525a50
jmp 0x497a20
push 0x1e
lea edx, [esp + 0xa9]
push edx
push edi
call fcn.00525a50
jmp 0x497a20
cmp byte [esp + 0xc1], 0
jne case.default.0x49797d
mov al, byte [esp + 0xc2]
test al, al
je case.default.0x49797d
movzx eax, al
push eax
push 0x550660
push edi
call fcn.00524170
add esp, 0xc
jmp 0x497a20
mov al, byte [esp + 0xc3]
cmp al, 0x7e
jae case.default.0x49797d
movzx ecx, al
mov edx, dword [ecx*4 + 0x58c068]
push edx
push edi
call fcn.00523cb0
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc4]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00549750
add esp, 0xbc
ret 8
Function at 0x49e330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x144
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
mov ebp, dword [esp + 0x150]
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x10], ebx
xor edi, edi
lea esp, [esp]
mov eax, dword [ebx + 0x58c4e8]
push eax
push ebp
call fcn.0051d3a0
test eax, eax
je 0x49e39b
add ebx, 0xc
add edi, 1
cmp ebx, 0x60
jb 0x49e360
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00549750
add esp, 0x144
ret 4
mov edx, dword [0x5981b0]
lea edi, [edi + edi*2]
add edi, edi
movzx ecx, word [edi + edi + 0x58c4f0]
add edi, edi
push 0xa
push ecx
push edx
call dword [0x597cfc]
mov ebp, eax
test ebp, ebp
je 0x49e37c
mov eax, dword [0x5981b0]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jle 0x49e37c
mov ecx, dword [0x5981b0]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x14], eax
je 0x49e37c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x49e49c
lea edx, [esp + 0x40]
push edx
call fcn.00401210
mov eax, dword [0x5981b0]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004ad3a0
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004adb80
lea ecx, [esp + 0x40]
push ecx
call fcn.00401230
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0x58c4ec]
push 0
push 0
push 0
push 0
push 0
push 1
push edx
push eax
mov eax, ebx
cdq
push edx
push eax
push ecx
mov edi, esi
call fcn.0049c9a0
push ebp
mov eax, ebx
mov ecx, esi
call fcn.0049b2b0
call fcn.0049ac10
mov edx, dword [esi]
mov eax, dword [0x598158]
push 0
push edx
mov dword [esi + 0x54], 1
mov ecx, dword [eax + 8]
push 0x401
push ecx
call dword [0x597e1c]
mov edx, dword [esp + 0x14]
push edx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x49e380
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x49e380
Function at 0x4a2170
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x20c
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x208], eax
cmp byte [0x58a6a5], 0
je 0x4a2218
mov eax, esi
call fcn.004a2080
test eax, eax
je 0x4a2218
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [0x597e10]
test eax, eax
je 0x4a2218
lea ecx, [esi - 0x10]
shl eax, 0x10
cmp ecx, 0x80
ja case.0x4a21cc.19
movzx ecx, byte [ecx + 0x4a223c]
jmp dword [ecx*4 + 0x4a2230]
or eax, 0x2000000
jmp case.0x4a21cc.19
or eax, 0x1000000
push 0x104
lea edx, [esp + 4]
push edx
push eax
call dword [0x597de0]
test eax, eax
je 0x4a2218
lea eax, [esp]
push eax
push edi
call fcn.00523d00
mov eax, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00549750
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.00549750
add esp, 0x20c
ret

Function at 0x4a25f0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x114
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
call fcn.00401210
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 4]
push ecx
call fcn.00523d00
mov edx, dword [esp + 8]
push 0
push 0
push edx
call fcn.00404f40
mov dword [0x598188], eax
lea eax, [esp]
push eax
call fcn.00401230
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00549750
add esp, 0x114
ret

Function at 0x4a27b0
Capabilities:
Terminate process

Disassembly:
push ecx
push edi
push str.EVERYTHING_TASKBAR_NOTIFICATION
call fcn.004abfe0
mov edi, eax
test edi, edi
je 0x4a2835
lea eax, [esp + 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4a2835
mov ecx, dword [esp + 4]
push esi
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 0
push 0x10
push edi
mov esi, eax
call dword [0x597e1c]
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a282d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4a282d
push str.Timed_out_while_waiting_for_Everything.exe_to_close
push str._main_close_existing_process
push 0x1bc
push str.._srcmain.c
call fcn.0048f280
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ecx
ret
Function at 0x4a3b10
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x34c
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x348], eax
mov eax, dword [0x598188]
push ebp
push esi
push edi
xor edi, edi
cmp dword [eax + 0xc], edi
mov dword [esp + 0x10], edi
je 0x4a3b43
mov eax, dword [eax + 0xc]
cmp byte [eax], 0
je 0x4a3b43
mov esi, eax
jmp 0x4a3b52
mov eax, dword [0x597ed4]
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
mov esi, ecx
lea edx, [esp + 0x24]
push edx
call fcn.00401210
lea eax, [esp + 0x24]
push str.EVERYTHING_TASKBAR_NOTIFICATION
push eax
call fcn.00524170
add esp, 8
test esi, esi
je 0x4a3b9b
push 0x56c714
lea ecx, [esp + 0x28]
push ecx
call fcn.005234f0
push esi
lea edx, [esp + 0x28]
push edx
call fcn.005234f0
push 0x55104c
lea eax, [esp + 0x28]
push eax
call fcn.005234f0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004abfe0
lea edx, [esp + 0x24]
push edx
mov ebp, eax
call fcn.00401230
test ebp, ebp
je 0x4a3d03
push ebx
lea eax, [esp + 0x138]
push eax
call fcn.00401210
lea ecx, [esp + 0x248]
push ecx
call fcn.00401210
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x13c]
push edx
call fcn.00523d00
lea eax, [esp + 0x248]
push eax
call fcn.004ad700
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x10]
push edx
call dword [0x58df40]
mov eax, dword [esp + 0x248]
mov ecx, dword [esp + 0x138]
lea edi, [eax + ecx + 6]
push edi
call fcn.004a49a0
mov edx, dword [esp + 0x360]
mov esi, eax
mov dword [esi], edx
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x140]
add eax, 1
push eax
push ecx
lea ebx, [esi + 4]
push ebx
call fcn.00549ad0
mov edx, dword [esp + 0x254]
mov eax, dword [esp + 0x25c]
mov ecx, dword [esp + 0x144]
add edx, 1
push edx
push eax
lea edx, [ebx + ecx + 1]
push edx
call fcn.00549ad0
push str.send_cl_n
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], esi
call fcn.0048f0d0
add esp, 0x1c
lea eax, [esp + 0x24]
push eax
push 0x7530
push 9
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x4a
push ebp
call dword [0x597e30]
test eax, eax
pop ebx
je 0x4a3cc6
push str.send_message_ok_n
push 0xff00ff00
mov edi, 1
call fcn.0048f0f0
add esp, 8
jmp 0x4a3ce3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.send_message_failed__u_n
push 0xffff0000
call fcn.0048f0f0
mov edi, dword [esp + 0x1c]
add esp, 0xc
push esi
call fcn.004a4a00
lea edx, [esp + 0x244]
push edx
call fcn.00401230
lea eax, [esp + 0x134]
push eax
call fcn.00401230
mov ecx, dword [esp + 0x354]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00549750
add esp, 0x34c
ret 4
Function at 0x4a3da0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x32c
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
mov dword [esp + 0x10], edi
call esi
sub eax, edi
cmp eax, 0x7530
ja 0x4a3ef9
mov ebx, dword [0x597ce0]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
lea eax, [esp + 0x124]
push eax
call fcn.00401210
lea ecx, [esp + 0x14]
push ecx
call fcn.00401210
lea edx, [esp + 0x14]
push str.EVERYTHING_MUTEX
push edx
call fcn.00524170
add esp, 8
call fcn.004a3aa0
test eax, eax
je 0x4a3e2d
call fcn.004a3aa0
push eax
lea eax, [esp + 0x18]
push 0x56c744
push eax
call fcn.00524310
add esp, 0xc
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x128]
push edx
call fcn.00527550
lea eax, [esp + 0x14]
push eax
call fcn.00401230
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x598180]
cmp eax, edi
je 0x4a3e66
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x598180], edi
mov eax, dword [esp + 0x12c]
cmp word [eax], di
je 0x4a3e8c
cmp word [eax], 0x5c
jne 0x4a3e7d
mov word [eax], 0x5f
add eax, 2
cmp word [eax], di
jne 0x4a3e72
mov eax, dword [esp + 0x12c]
push eax
push edi
push edi
call ebx
mov dword [0x598180], eax
call ebp
lea ecx, [esp + 0x124]
push ecx
mov esi, eax
call fcn.00401230
cmp esi, 0xb7
jne 0x4a3f0b
push str.mutex_exists_n
call fcn.0048f0d0
mov edx, dword [0x598188]
add esp, 4
test dword [edx + 4], 0x800000
jne 0x4a3efd
mov eax, dword [esp + 0x340]
push eax
call fcn.004a3b10
test eax, eax
jne 0x4a3ef9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0x7530
jbe 0x4a3de3
xor eax, eax
jmp 0x4a3f1c
mov dword [0x598184], 1
xor eax, eax
jmp 0x4a3f1c
mov ecx, dword [0x598188]
mov eax, dword [ecx + 8]
shr eax, 0x17
not eax
and eax, 1
mov ecx, dword [esp + 0x338]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00549750
add esp, 0x32c
ret 4
Function at 0x4a4d70
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push 0
push ebx
push ebp
push edi
call fcn.004af0b0
test eax, eax
je 0x4a4dd7
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a4dbe
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x4a4dff
push esi
push eax
push str.NRFR_read_error__d____d_n
push 0xffff0000
call fcn.0048f0f0
add esp, 0x10
jmp 0x4a4dd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NRFR_read_error__d_n
push 0xffff0000
call fcn.0048f0f0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push ebp
push str.read_error__I64x__d_n
push 0xffff0000
call fcn.0048f0f0
mov edx, dword [esp + 0x28]
push esi
push 0
push edx
call fcn.00549e40
add esp, 0x20
pop ebp
pop ebx
ret 0xc
Function at 0x4a9790
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, eax
je 0x4a97d4
mov ebp, dword [esp + 0x14]
cmp ebx, 0xffffffff
ja 0x4a97af
mov esi, ebx
jmp 0x4a97b2
or esi, 0xffffffff
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a97e0
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x4a97e0
add edi, eax
sub ebx, eax
jne 0x4a97a6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc

Function at 0x4a97f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x218
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov edi, dword [esp + 0x224]
lea eax, [esp + 8]
push eax
call fcn.00401210
push edi
lea ecx, [esp + 0xc]
push ecx
call fcn.00527ad0
mov edx, dword [esp + 0x234]
mov eax, dword [esp + 0x230]
mov ecx, dword [esp + 0x22c]
push 0
push edx
mov edx, dword [esp + 0x230]
push eax
mov eax, dword [esp + 0x1c]
push 0
push ecx
push edx
push eax
call dword [0x597cdc]
lea ecx, [esp + 8]
push ecx
mov esi, eax
call fcn.00401230
cmp esi, 0xffffffff
jne 0x4a989d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 2
je 0x4a9881
push edi
call ebx
push eax
push str.CreateFileW__:__d:_Failed_to_open_file__s_n
call fcn.0048f0d0
add esp, 0xc
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
call fcn.00549750
add esp, 0x218
ret 0x14
mov eax, esi
jmp 0x4a9884
Function at 0x4a98b0
Capabilities:
Move file

Disassembly:
sub esp, 0x42c
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x43c]
push edi
mov edi, dword [esp + 0x444]
lea eax, [esp + 0x224]
push eax
call fcn.00401210
lea ecx, [esp + 0x10]
push ecx
call fcn.00401210
push esi
lea edx, [esp + 0x228]
push edx
call fcn.00527ad0
push edi
lea eax, [esp + 0x14]
push eax
call fcn.00527ad0
mov ebp, dword [esp + 0x448]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x22c]
xor ecx, ecx
test ebp, ebp
setne cl
or ecx, 2
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov ebx, dword [esp + 0x44c]
jne 0x4a99a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x4a9955
push edi
push esi
push eax
push str.MoveFileExW__:_GetLastError__:__d:_Failed_to_move_file_from__s_to__s_n
call fcn.0048f0d0
add esp, 0x10
xor esi, esi
jmp 0x4a99cd
test ebp, ebp
je 0x4a9975
test ebx, ebx
je 0x4a996a
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x597d78]
jmp 0x4a9975
mov edx, dword [esp + 0x18]
push edx
call dword [0x597ce8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x22c]
push eax
push ecx
call dword [0x597d6c]
test eax, eax
jne 0x4a99a6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileW__:_GetLastError__:__d:_Failed_to_move_file_from__s_to__s_n
call fcn.0048f0d0
add esp, 0x10
xor esi, esi
jmp 0x4a99cd
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x22c]
neg ebx
push edx
sbb ebx, ebx
push eax
and ebx, 0x1ffff
mov esi, 1
push 5
add ebx, esi
push ebx
call dword [0x597d8c]
lea ecx, [esp + 0x10]
push ecx
call fcn.00401230
lea edx, [esp + 0x224]
push edx
call fcn.00401230
mov ecx, dword [esp + 0x438]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00549750
add esp, 0x42c
ret 0x10

Function at 0x4ab7b0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi], eax
pop esi
jne 0x4ab7db
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4ab7db
xor eax, eax
ret 8
mov eax, 1
ret 8