joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e4f2e
Capabilities:
Check internet connectivity via wininet

Disassembly:
push 8
mov eax, 0x58e6b8
call fcn.004fb99a
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
push edi
push 1
push str.http:__www.qq.com
mov esi, dword [sym.imp.WININET.dll_InternetCheckConnectionW]
call esi
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x4e4f66
push edi
push 1
push str.http:__www.163.com
call esi
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.004fba3f
ret

Function at 0x4e5a93
Capabilities:
Create process on windows

Disassembly:
push 0x58
mov eax, 0x58e82d
call fcn.004fb967
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x40
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.004fc1f0
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 5
pop eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp + 8]
xor edi, edi
add eax, 0xfffffff0
inc edi
push eax
mov dword [ebp - 0x38], edi
call fcn.00431714
lea esi, [eax + 0x10]
pop ecx
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
cmp dword [esi - 4], edi
jle 0x4e5b06
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00431f53
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push ebx
push ebx
push edi
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4e5b4b
mov byte [ebp - 4], bl
lea ecx, [esi - 0x10]
call fcn.004310e3
mov dword [ebp - 4], 4
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004310e3
mov eax, ebx
call fcn.004fba3f
ret
push dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x1c]
call edi
mov byte [ebp - 4], bl
lea ecx, [esi - 0x10]
call fcn.004310e3
mov dword [ebp - 4], 6
xor ebx, ebx
inc ebx
jmp 0x4e5b34
Function at 0x4e6142
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.004fc580
mov eax, dword [0x602c60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x2d10], ecx
call fcn.00431e55
xor edi, edi
xor esi, esi
push esi
lea eax, [ebp - 0x204]
push 0x5a68dc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
push edi
push 3
push edi
push 3
push edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4e61a8
inc esi
cmp esi, 4
jl 0x4e616b
jmp 0x4e6245
mov esi, 0x2710
push esi
lea eax, [ebp - 0x2cfc]
push edi
push eax
mov dword [ebp - 0x2d0c], edi
call fcn.004fc1f0
push 0xc
lea eax, [ebp - 0x2d08]
push edi
push eax
call fcn.004fc1f0
push esi
lea eax, [ebp - 0x2cfc]
push edi
push eax
mov dword [ebp - 0x2d08], edi
mov dword [ebp - 0x2d04], edi
call fcn.004fc1f0
add esp, 0x24
push edi
lea eax, [ebp - 0x2d0c]
push eax
push esi
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4e6245
mov eax, dword [ebp - 0x2ce4]
push 1
lea esi, [ebp - 0x5ec]
lea ecx, [ebp - 0x2cfc]
call fcn.004e4d3e
pop ecx
mov ecx, dword [ebp - 0x2d10]
mov eax, esi
push eax
call fcn.0043379a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb958
leave
ret
Function at 0x4e6254
Capabilities:
Get file version info

Disassembly:
push 0x228
mov eax, 0x58eb18
call fcn.004fb9d0
mov eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
push 0x602968
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], edi
call fcn.00431ef7
push 2
pop ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
cmp esi, edi
jne 0x4e62a5
push 0x208
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x4e62ad
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x228], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x234], eax
cmp eax, edi
je 0x4e639f
push eax
push ebx
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x230], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x4e630f
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call fcn.004324a9
mov dword [ebp - 0x224], 1
jmp 0x4e63bb
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push esi
push dword [ebp - 0x234]
lea eax, [ebp - 0x218]
push dword [ebp - 0x228]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x230]
push eax
push 0x59a764
push esi
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x22c], edi
je 0x4e63d8
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x4e63d8
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov si, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, si
push eax
movzx eax, dx
push eax
movzx eax, cx
push eax
lea eax, [ebp - 0x21c]
push str._d._d._d._d
push eax
call fcn.00433c96
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call fcn.004324a9
mov dword [ebp - 0x224], 1
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004310e3
mov eax, dword [ebp - 0x220]
call fcn.004fba53
ret
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call fcn.004324a9
mov dword [ebp - 0x224], 1
jmp 0x4e63bb
Function at 0x4e6c52
Capabilities:
Check if file exists

Disassembly:
push 0x48
mov eax, 0x58efcf
call fcn.004fb967
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x18], ebx
call fcn.00432a3a
mov dword [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.pcmaster.exe
call fcn.0043479c
mov byte [ebp - 4], 3
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
lea ecx, [ebp - 0x54]
call fcn.004bb121
mov byte [ebp - 4], 4
push edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.0049be74
push dword [edi]
mov dword [ebp - 0x18], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e6e4c
lea ecx, [ebp - 0x3c]
call fcn.00432a3a
mov byte [ebp - 4], 5
push str.SoftwareRuanMeiPCMaster
lea ecx, [ebp - 0x14]
call fcn.0043479c
mov byte [ebp - 4], 6
call fcn.0043129c
test eax, eax
je 0x4e6cff
mov esi, str.SoftwareWow6432NodeRuanMeiPCMaster
push esi
call fcn.004fb22e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.0043340b
push ebx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004324a9
mov byte [ebp - 4], 7
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
call fcn.00434682
cmp eax, ebx
je 0x4e6e31
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov esi, 0x59a2c0
push esi
call fcn.0043479c
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.Install_Dir
call fcn.0043479c
mov byte [ebp - 4], 9
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
call fcn.00434b9b
mov byte [ebp - 4], 0xa
push eax
mov ecx, edi
call fcn.00433c20
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004310e3
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4e6e31
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
call fcn.0043479c
mov byte [ebp - 4], 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ExeName
call fcn.0043479c
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
call fcn.00434b9b
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x4e6dd4
mov ecx, edi
call fcn.00431e55
jmp 0x4e6e22
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004324a9
mov byte [ebp - 4], 0xf
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push edi
call fcn.004324a9
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x54]
call fcn.0049be74
mov byte [ebp - 4], 0x11
push eax
mov ecx, edi
call fcn.00433c20
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.00432a92
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x54]
call fcn.00432a92
mov eax, edi
call fcn.004fba3f
ret
Function at 0x4e7744
Capabilities:
Check if file exists

Disassembly:
push 0x3c
mov eax, 0x58f15a
call fcn.004fb967
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x48]
xor esi, esi
call fcn.00432a3a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00432a3a
mov byte [ebp - 4], 4
push esi
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004324a9
mov byte [ebp - 4], 5
push dword [ebp + 8]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00434682
cmp eax, esi
je 0x4e77f6
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x59a2c0
call fcn.0043479c
mov byte [ebp - 4], 6
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004324a9
mov byte [ebp - 4], 7
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00434b9b
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x4e77e7
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e77e7
inc esi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00432a92
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00432a92
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004310e3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004310e3
mov eax, esi
call fcn.004fba3f
ret

Function at 0x4e7ab5
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x58f2ba
call fcn.004fb967
mov esi, ecx
mov eax, dword [esi + 0x20c]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4e7b75
lea ecx, [ebp - 0x30]
call fcn.00432a3a
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.004bb0a8
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e7b5a
push 0x602968
lea ecx, [ebp - 0x10]
call fcn.00431ef7
mov byte [ebp - 4], 4
push dword [esi + 0x20c]
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push str.__s___s
push eax
call fcn.00433c96
add esp, 0x10
push 0
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004324a9
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
call fcn.004e5a93
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004310e3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00432a92
xor eax, eax
call fcn.004fba3f
ret
Function at 0x4e8a3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x44
mov eax, 0x58f7a6
call fcn.004fb9d0
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
jmp 0x4e8a68
call fcn.004e4f2e
cmp eax, ebx
jne 0x4e8a75
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x210], ebx
je 0x4e8a54
jmp 0x4e8bc3
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x214]
cmp eax, ebx
je 0x4e8b00
dec eax
cmp eax, 1
ja 0x4e8b68
push 0x602968
lea ecx, [ebp - 0x4c]
call fcn.00431ef7
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4c]
push eax
push ecx
lea eax, [esi + 0x218]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.004324a9
mov byte [ebp - 4], 3
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.004e7e41
add esp, 0xc
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040fd00
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040ff10
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004310e3
jmp 0x4e8b68
push str.SOFTINFO
push 0x5a9c48
push dword [esi + 0x208]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x4c], eax
cmp eax, ebx
je 0x4e8b68
push eax
push dword [esi + 0x208]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x4e8b5f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x4c]
mov edi, eax
push dword [esi + 0x208]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp edi, ebx
je 0x4e8b5f
cmp eax, ebx
jbe 0x4e8b5f
push edi
call fcn.004fba80
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00410120
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
call fcn.004f8908
mov edi, eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push ebx
push edi
call fcn.004fc1f0
mov eax, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [ebp - 0x18], 0x10
jae 0x4e8b8f
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
push eax
push edi
call fcn.004fbb10
add esp, 0xc
push edi
push dword [esi + 0x214]
push 0x7e8
push dword [esi + 0x20c]
call dword [sym.imp.USER32.dll_PostMessageW]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040ff10
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
call fcn.004fba53
ret
Function at 0x4e9bc7
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x64], edi
je 0x4e9ce8
push ebx
call fcn.004e9852
push dword [esi + 0x54]
mov dword [esi + 0x64], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0xc], eax
call ebx
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov dword [ebp - 4], edi
test eax, 0xfffffffc
jle 0x4e9c68
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x4e9c58
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0x103
jne 0x4e9c51
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call fcn.004fa278
pop ecx
mov eax, dword [esi + 4]
sub eax, dword [esi]
inc dword [ebp - 4]
sar eax, 2
cmp dword [ebp - 4], eax
jl 0x4e9c1a
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.004e9596
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
lea eax, [esi + 0x38]
push eax
call ebx
lea ecx, [esi + 0x10]
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
push eax
push edx
lea eax, [ebp - 8]
push eax
call fcn.004e95e3
lea ebx, [esi + 0x38]
push ebx
call edi
mov eax, dword [esi + 0x50]
xor edi, edi
cmp eax, edi
je 0x4e9cb7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], edi
mov eax, dword [esi + 0x54]
cmp eax, edi
je 0x4e9cc8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x54], edi
mov eax, dword [esi + 0x58]
cmp eax, edi
je 0x4e9cd9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x58], edi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call esi
push ebx
call esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4e9de5
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 8], edi
jg 0x4e9dfd
xor eax, eax
jmp 0x4e9eba
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x20]
push eax
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
call ebx
lea eax, [esi + 0x38]
push eax
call ebx
push edi
push SysReAllocString
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push 1
push edi
mov dword [esi + 0x50], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x54], eax
call ebx
mov dword [esi + 0x58], eax
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
cmp eax, edi
jle 0x4e9ea9
mov dword [ebp + 8], eax
push 8
call fcn.004fc26a
mov ebx, eax
pop ecx
mov dword [ebp - 4], ebx
cmp ebx, edi
je 0x4e9ea4
lea eax, [ebp - 0xc]
push eax
push 4
push ebx
push 0x4e98c8
push edi
push edi
call fcn.00505a69
add esp, 0x18
mov dword [ebp - 8], eax
cmp eax, edi
je 0x4e9e9d
mov dword [ebx], eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
mov dword [ebx + 4], esi
call fcn.004e9cec
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4e9ea4
push ebx
call fcn.004fa278
pop ecx
dec dword [ebp + 8]
jne 0x4e9e54
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
inc eax
mov dword [esi + 0x64], eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x4ea5bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], esi
cmp dword [ebp + 8], ebx
jne 0x4ea5e0
push ebx
push ebx
push ebx
push 2
call fcn.004eda45
xor al, al
jmp 0x4ea772
push edi
call fcn.004ea47e
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
push 2
push ebx
push dword [ebp + 8]
call fcn.005023a1
push dword [ebp + 8]
call fcn.00503ff5
push ebx
push ebx
push dword [ebp + 8]
mov edi, eax
call fcn.005023a1
add esp, 0x1c
cmp edi, ebx
jg 0x4ea61d
push ebx
push ebx
push ebx
push 0xc
mov ecx, esi
jmp 0x4ea64d
lea eax, [edi + 1]
push eax
call fcn.004f8908
push dword [ebp + 8]
mov esi, eax
push 1
push edi
push esi
mov byte [esi], bl
call fcn.004fe7ed
add esp, 0x14
cmp eax, 1
je 0x4ea659
push esi
call fcn.004fc324
pop ecx
mov ecx, dword [ebp - 4]
push ebx
push ebx
push ebx
push 2
call fcn.004eda45
xor al, al
jmp 0x4ea771
cmp dword [ebp + 0xc], 3
je 0x4ea675
cmp byte [esi], 0xff
jne 0x4ea66a
cmp byte [esi + 1], 0xfe
je 0x4ea675
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], bl
jmp 0x4ea72a
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], 1
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
mov dword [ebp + 0xc], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004f8908
mov ecx, dword [ebp - 8]
lea ecx, [ecx + ecx + 2]
push ecx
push ebx
push eax
mov dword [ebp + 8], eax
call fcn.004fc1f0
add esp, 0x10
cmp byte [esi], 0xff
jne 0x4ea6c8
cmp byte [esi + 1], 0xfe
jne 0x4ea6c8
add edi, 0xfffffffe
push edi
lea eax, [esi + 2]
push eax
jmp 0x4ea6ca
push edi
push esi
push dword [ebp + 8]
call fcn.004fbb10
add esp, 0xc
push esi
call fcn.004fc324
pop ecx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.004f8908
mov esi, eax
lea eax, [edi + 1]
push eax
push ebx
push esi
call fcn.004fc1f0
add esp, 0x10
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp + 8]
call fcn.004fc324
pop ecx
mov byte [esi + edi], bl
mov edx, esi
mov eax, esi
cmp byte [esi], bl
je 0x4ea750
mov cl, byte [edx]
cmp cl, 0xd
jne 0x4ea748
mov byte [eax], 0xa
inc eax
inc edx
cmp byte [edx], 0xa
jne 0x4ea74c
jmp 0x4ea74b
mov byte [eax], cl
inc eax
inc edx
cmp byte [edx], bl
jne 0x4ea735
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push ebx
mov byte [eax], bl
mov eax, dword [ecx]
push esi
call dword [eax + 8]
push esi
call fcn.004fc324
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp byte [ecx + 0x44], bl
sete al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4ea778
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x74], bl
je 0x4ea7b9
cmp byte [esi + 0x75], bl
jne 0x4ea7b9
push dword [ebp + 8]
push 0xef
call fcn.00504d52
push dword [ebp + 8]
push 0xbb
call fcn.00504d52
push dword [ebp + 8]
push 0xbf
call fcn.00504d52
add esp, 0x18
mov eax, dword [esi]
push ebx
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 4]
cmp byte [esi + 0x75], bl
je 0x4ea8c3
push 2
push ebx
push dword [ebp + 8]
call fcn.005023a1
push dword [ebp + 8]
call fcn.00503ff5
push ebx
push ebx
push dword [ebp + 8]
mov edi, eax
call fcn.005023a1
add esp, 0x1c
cmp edi, ebx
jg 0x4ea7fa
xor al, al
jmp 0x4ea8d1
lea eax, [edi + 1]
push eax
call fcn.004f8908
push dword [ebp + 8]
mov esi, eax
push 1
push edi
push esi
mov dword [ebp - 0xc], esi
mov byte [esi], bl
call fcn.004fe7ed
add esp, 0x14
mov byte [esi + edi], bl
cmp eax, 1
je 0x4ea82e
push esi
call fcn.004fc324
xor al, al
jmp 0x4ea8d0
push ebx
push ebx
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
mov edi, 0xfde9
push edi
call esi
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f8908
mov ecx, dword [ebp - 8]
add ecx, ecx
push ecx
push ebx
push eax
mov dword [ebp - 4], eax
call fcn.004fc1f0
add esp, 0x10
push dword [ebp - 8]
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp - 0xc]
push ebx
push edi
call esi
push dword [ebp - 0xc]
call fcn.004fc324
mov esi, dword [ebp + 8]
push ebx
push ebx
push esi
call fcn.005023a1
push esi
push 0xff
call fcn.00504d52
push esi
push 0xfe
call fcn.00504d52
push dword [ebp - 4]
call fcn.004fb22e
push esi
push eax
push 2
push dword [ebp - 4]
call fcn.0050229d
push dword [ebp - 4]
call fcn.004fc324
add esp, 0x38
push dword [ebp + 8]
call fcn.00505b31
neg eax
sbb eax, eax
inc eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4