joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x48
mov edi, ecx
call fcn.0054c396
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
je 0x4a8908
mov dword [edx], vtable.CHttpPageRequest.0
lea eax, [edx + 8]
mov dword [eax + 0x14], 0xf
lea ecx, [edx + 0x2c]
mov dword [eax + 0x10], 0
mov byte [eax], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
mov dword [edx + 4], 2
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x4a88e4
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [edx + 0x20]
mov dword [edx + 0x24], eax
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x4a88fc
mov ecx, dword [ecx]
mov byte [ecx], 0
mov dword [edx + 0x44], 0
jmp 0x4a890a
xor edx, edx
mov esi, dword [ebp + 8]
mov dword [edi + 0x4c], edx
cmp byte [esi], 0
jne 0x4a8919
xor ecx, ecx
jmp 0x4a892a
mov ecx, esi
push ebx
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a8920
sub ecx, ebx
pop ebx
push ecx
push esi
lea ecx, [edx + 8]
call fcn.0049ec00
mov eax, dword [edi + 0x4c]
push 9
push str.GET_test1
mov dword [eax + 4], 0
mov ecx, dword [edi + 0x4c]
add ecx, 0x2c
call fcn.0049ec00
lea eax, [edi + 0x24]
push eax
push 0
push edi
push 0x4a86f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x28], eax
pop edi
pop esi
test eax, eax
je 0x4a897d
cmp eax, 0xffffffff
je 0x4a897d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret 4

Function at 0x4ae910
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov byte [esi + 0x68], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4ae951
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.004af390
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x4b02c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4b48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
mov dword [ebp - 4], 0
jb 0x4b0300
mov eax, dword [esi]
jmp 0x4b0302
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b03ae
push 1
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x5eaea0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0049ee20
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0049e890
push 2
push 0x5ebbf4
lea ecx, [ebp - 0x28]
call fcn.0049e9a0
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0049e890
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004b01f0
test eax, eax
lea eax, [ebp - 0x28]
jne 0x4b044c
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0049f890
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.OpenUrlBySelfBrowser_OpenSysUserBrowser__s_
call fcn.004b25c0
add esp, 0xc
jmp 0x4b0462
cmp dword [edi + 0x30], 8
lea esi, [edi + 0x1c]
jb 0x4b03bb
mov eax, dword [esi]
jmp 0x4b03bd
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b047e
push 0x5eaea0
lea ecx, [ebp - 0x28]
call fcn.0049abb0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0049e890
push 2
push 0x5ebbf4
lea ecx, [ebp - 0x28]
call fcn.0049e9a0
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0049e890
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004b01f0
test eax, eax
lea eax, [ebp - 0x28]
jne 0x4b044c
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0049f890
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.OpenUrlBySelfBrowser_OpenSysUserBrowser__s_
call fcn.004b25c0
add esp, 0xc
jmp 0x4b0462
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push str.OpenUrlBySelfBrowser_CreateRunProcess__s_
call fcn.004b25c0
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4b0477
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0049ef70
mov esi, 1
jmp 0x4b0480
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x4b0495
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0049ef70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4b0510
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4b7b
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x4e0]
mov esi, dword [ebp + 8]
xor eax, eax
push eax
push 0x5ea980
mov dword [ebp - 0x4e8], ebx
mov dword [ebp - 0x4ec], 0
mov dword [ebp - 0x4cc], 7
mov dword [ebp - 0x4d0], 0
mov word [ebp - 0x4e0], ax
call fcn.0049ee20
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x4b05d1
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x4e0]
push eax
call fcn.0049e3e0
mov ecx, dword [ebp - 0x4cc]
cmp ecx, 8
jb 0x4b0770
inc ecx
push ecx
push dword [ebp - 0x4e0]
lea ecx, [ebp - 0x4e0]
call fcn.0049ef70
jmp 0x4b0770
lea eax, [ebp - 0x4c8]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4b06b1
xor ebx, ebx
cmp word [ebp - 0x4c8], bx
je 0x4b06b1
lea edi, [ebp - 0x4c8]
mov dword [ebp - 0x4e4], ebx
nop word [eax + eax]
push 0x5ebbb4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4b0693
push 0x5ebbbc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4b0693
movzx eax, word [edi]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x4e4]
push 0x64
movzx eax, word [ebp + eax - 0x4c6]
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4b073c
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [ebp - 0xe0]
push edi
push eax
push dword [ebp - 0x4e8]
call fcn.005c7846
add esp, 0xc
test eax, eax
je 0x4b06fd
add ebx, 4
lea edi, [ebp - 0x4c8]
lea eax, [ebx + ebx]
add edi, eax
mov dword [ebp - 0x4e4], eax
cmp word [edi], 0
jne 0x4b0610
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, dword [ebp - 0x4cc]
cmp ecx, 8
jae 0x4b075c
mov eax, dword [ebp - 0x4d0]
add eax, 1
je 0x4b0764
add eax, eax
push eax
lea eax, [ebp - 0x4e0]
push eax
push esi
call fcn.005b89c0
mov ecx, dword [ebp - 0x4cc]
add esp, 0xc
jmp 0x4b0764
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.004b04c0
mov ecx, dword [ebp - 0x4e8]
lea eax, [ecx + edi*2]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.004b04c0
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.0049f3e0
lea ecx, [ebp - 0x4e0]
call fcn.004bdbb0
jmp 0x4b0770
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x4e0]
mov word [esi], ax
call fcn.004bdbb0
jmp 0x4b0770
mov eax, dword [ebp - 0x4e0]
mov dword [esi], eax
mov eax, dword [ebp - 0x4d0]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret 8
Function at 0x4b1150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x66c1f4], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], ebx
je 0x4b12e9
cmp dword [ebx + 0x38], 0
push esi
push edi
jne 0x4b122e
add ebx, 8
cmp dword [ebx + 0x14], 8
jb 0x4b1180
mov ebx, dword [ebx]
push 0x5ebdc0
push ebx
push dword [0x65d040]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4b12e7
push esi
push dword [0x65d040]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x65d040]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.005b96a0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, dword [ebp - 8]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4b12e7
lea eax, [ebp - 4]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push edi
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov ebx, dword [ebp - 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov dword [ebx + 4], esi
jmp 0x4b1242
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
jb 0x4b1239
mov eax, dword [eax]
push eax
call fcn.004b1af0
mov dword [ebx + 4], eax
lea eax, [ebp + 8]
mov ecx, 0x66c1f8
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004b0e80
mov eax, dword [ebp - 0x10]
push 0
mov dword [eax + 0x14], ebx
push dword [0x65d040]
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push SysReAllocString
push 0x80880000
push 0
push dword [0x65d03c]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [ebp + 8]
mov dword [ebx + 0x20], eax
call esi
test eax, 0x10000000
jne 0x4b12a7
mov byte [ebx + 0x28], 1
jmp 0x4b12cd
test eax, 0x21000000
je 0x4b12b4
mov byte [ebx + 0x28], 5
jmp 0x4b12cd
push 8
push dword [ebx + 0x20]
mov byte [ebx + 0x28], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, ebx
call fcn.004b1e10
push 0xfffffffffffffffc
push dword [ebp + 8]
call esi
push 0x4b1c20
push 0xfffffffffffffffc
push dword [ebp + 8]
mov dword [ebx + 0x24], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b1af0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor esi, esi
cmp edi, 0xffffffff
je 0x4b1c04
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4b1c04
cmp dword [ebp + 8], esi
jne 0x4b1c04
push ebx
call fcn.0054c502
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
push esi
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b1c04
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4b1be3
mov eax, dword [ebp - 4]
push esi
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
push esi
push dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x4b1bd1
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x4b1bcf
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
jmp 0x4b1bd1
xor esi, esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call fcn.0054c50b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4b1c04
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x4b1c0f
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b21f0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4b21fd
mov eax, dword [esi]
jmp 0x4b21ff
mov eax, esi
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x30], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x4b222a
call esi
cmp eax, 5
je 0x4b222a
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4b22b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x4b22c4
xor eax, eax
pop esi
pop ebp
ret 0xc
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b22d9
cmp eax, 0x80
jne 0x4b22bd
push ebx
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp + 8], 0
je 0x4b2352
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4b2352
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
jb 0x4b22fb
mov eax, dword [eax]
push edi
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
test edi, edi
je 0x4b2349
cmp edi, 0xffffffff
je 0x4b2349
push ebx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
push ebx
push esi
push dword [ebp + 8]
call fcn.005b96a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 1
pop esi
pop ebp
ret 0xc
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0xc
pop ebx
mov eax, 1
pop esi
pop ebp
ret 0xc
Function at 0x4b2390
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.005b9c20
push str.C:log_
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.005c79ff
push 0x3e8
lea eax, [ebp - 0xc10]
push 0
push eax
call fcn.005b9c20
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sgswb.log
push eax
call fcn.0049f3b0
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.005b9c20
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005b9c20
add esp, 0x48
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.005b8f34
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x4b25b1
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b2470
sub ecx, edx
lea eax, [ebp - 0x20a]
sar ecx, 1
push edi
lea eax, [eax + ecx*2]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.005c79ff
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.0049f3b0
add esp, 0x1c
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0xc10]
push 0x1f3
push 0x1f4
push eax
call fcn.0049a480
push dword [eax + 4]
push dword [eax]
call fcn.005c0c38
xor eax, eax
add esp, 0x20
mov word [ebp - 0x82a], ax
xor edi, edi
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x414]
push 0x5ebe18
push eax
cmovne edi, ecx
call fcn.005c7be5
mov esi, eax
add esp, 8
test esi, esi
je 0x4b25b0
test edi, edi
jne 0x4b2547
push esi
push 2
lea eax, [ebp - 0xc18]
mov dword [ebp - 0xc18], 0xfeff
push 1
push eax
call fcn.005c77ee
add esp, 0x10
lea eax, [ebp - 0xc10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b2550
sub eax, edx
sar eax, 1
push esi
add eax, eax
push eax
lea eax, [ebp - 0xc10]
push 1
push eax
call fcn.005c77ee
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xd
push 1
push eax
call fcn.005c77ee
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xa
push 1
push eax
call fcn.005c77ee
push esi
call fcn.005c7536
add esp, 0x34
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret
Function at 0x4b25c0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.0054c3e0
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.005b9c20
push str.C:log_
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.005c79ff
push 0x800
lea eax, [ebp - 0x1028]
push 0
push eax
call fcn.005b9c20
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sgswb.log
push eax
call fcn.0049f3b0
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.005b9c20
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005b9c20
add esp, 0x48
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.005b8f34
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x4b2842
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b26a0
sub ecx, edx
lea eax, [ebp - 0x20a]
sar ecx, 1
lea eax, [eax + ecx*2]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.005c79ff
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.0049f3b0
add esp, 0x1c
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1028]
push 0x3ff
push 0x400
push eax
call fcn.0049a480
push dword [eax + 4]
push dword [eax]
call fcn.005c0c38
push 0
call fcn.005c6f70
mov dword [ebp - 0x2038], eax
lea eax, [ebp - 0x2038]
push eax
mov dword [ebp - 0x2034], edx
call fcn.005c6ebf
mov ecx, eax
add esp, 0x28
test ecx, ecx
je 0x4b2842
push edi
lea eax, [ebp - 0x1028]
push eax
push dword [ecx]
mov eax, dword [ecx + 0x10]
push dword [ecx + 4]
inc eax
push dword [ecx + 8]
push dword [ecx + 0xc]
push eax
mov eax, dword [ecx + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x2028]
push str.__d__d__d__d__d__d_:_s
push eax
call fcn.004b2360
xor eax, eax
add esp, 0x24
mov word [ebp - 0x82a], ax
xor edi, edi
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x414]
push 0x5ebe18
push eax
cmovne edi, ecx
call fcn.005c7be5
mov esi, eax
add esp, 8
test esi, esi
je 0x4b2841
test edi, edi
jne 0x4b27d4
push esi
push 2
lea eax, [ebp - 0x2030]
mov dword [ebp - 0x2030], 0xfeff
push 1
push eax
call fcn.005c77ee
add esp, 0x10
lea ecx, [ebp - 0x2028]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b27e0
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x2028]
push 1
push eax
call fcn.005c77ee
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xd
push 1
push eax
call fcn.005c77ee
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xa
push 1
push eax
call fcn.005c77ee
push esi
call fcn.005c7536
add esp, 0x34
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret
Function at 0x4b3e70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x4b3efa
cmp byte [edi + 1], 0
je 0x4b3efa
push ebx
push esi
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [edi + 4]
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop word [eax + eax]
cmp esi, 0x14
jl 0x4b3ebb
cmp byte [edi + 3], 0
je 0x4b3ecb
cmp byte [edi + 2], 0
jne 0x4b3ecf
push 0x1f4
inc esi
call ebx
jmp 0x4b3eb0
cmp byte [edi + 2], 0
pop esi
pop ebx
jne 0x4b3efa
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 4]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [edi + 8], 0
mov eax, dword [edi + 8]
pop edi
test eax, eax
je 0x4b3f09
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x4b3f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x4b3f38
lea eax, [ebp + 8]
mov byte [esi], 1
push eax
push 0
push esi
push 0x4b3d30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
pop ebp
ret 4
Function at 0x4b55f0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x18], ax
xorps xmm0, xmm0
mov word [ebp - 6], ax
lea eax, [ebp - 0x220]
push eax
movups xmmword [ebp - 0x16], xmm0
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 3
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005c7c13
push 0x208
lea eax, [ebp - 0x630]
push 0
push eax
call fcn.005b9c20
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.005b9c20
add esp, 0x24
mov dword [ebp - 0x634], 0
lea eax, [ebp - 0x428]
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
push 0x104
push eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x634]
push eax
push 0x104
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4b56f8
push dword [ebp - 0x634]
push str._08X
push esi
call fcn.0049f160
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi], ax
xor ecx, ebp
pop esi
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret 4