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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [0x5bc3f0], 0
push eax
push 0
push 0
push 0x46bda0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x46ba5e
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x5bc3f0]
xor eax, eax
test ecx, ecx
pop esi
sete al
mov esp, ebp
pop ebp
ret
mov ecx, 5
xor eax, eax
test ecx, ecx
mov dword [0x5bc3f0], ecx
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x46eb10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x57cf88
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [0x5bc718]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x46ec2f
push esi
push dword [0x5bc718]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46ec2f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x46ec2f
push ebx
push esi
push dword [0x5bc718]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
mov ecx, eax
mov dword [ebp - 8], 0
lea ebx, [esi + 1]
push ebx
call fcn.0046c740
test esi, esi
je 0x46ebd8
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x46ebab
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
jmp 0x46ebd3
cmp ebx, esi
jb 0x46ebbc
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x46ebd8
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], 0x22
call fcn.00560ba0
mov eax, dword [ebp - 0x10]
mov byte [eax + esi], 0
push dword [ebp - 0x10]
call fcn.0041c030
mov esi, eax
add esp, 4
test esi, esi
je 0x46ec1a
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push esi
call fcn.0046eca0
push esi
mov bl, al
call fcn.0041c110
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.0046cad0
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x10]
xor bl, bl
call fcn.0046cad0
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x46ed10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x14], 8
jb 0x46ed26
mov edx, dword [eax]
push edx
push str.AddWebpToCache__s_n
call fcn.00472530
mov eax, dword [ebp + 8]
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x46ed5b
mov eax, dword [eax]
push ebx
push esi
push 0x57d030
push eax
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll__wfopen_s
add esp, 0xc
test eax, eax
jne 0x46eed2
mov eax, dword [ebp - 4]
test eax, eax
je 0x46eed2
push 2
push 0
push eax
call sub.msvcrt.dll_fseek
push dword [ebp - 4]
call sub.msvcrt.dll_ftell
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x46edaa
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
jmp 0x46eecf
lea eax, [ebp - 0x20]
push eax
push esi
mov ecx, eax
call fcn.0046c580
push 0
push 0
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
push dword [ebp - 4]
push 1
push esi
push dword [ebp - 0x20]
call sub.msvcrt.dll_fread
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 0x20]
call fcn.00539860
mov ebx, eax
add esp, 0x30
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x46eed2
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x46eec9
cmp eax, dword [ebp - 8]
jne 0x46eec9
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x46eea9
mov edx, dword [ebp - 0xc]
push ebx
push 0x26200a
lea ecx, [edx*4]
push ecx
push dword [ebp - 8]
mov ecx, eax
push edx
call fcn.0046c9a0
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x46eead
mov ecx, dword [esi + 8]
mov dword [esi + 8], 0
test ecx, ecx
jne 0x46eead
push edi
push ecx
push ecx
push 0x10
push 0x10
mov ecx, esi
call fcn.00470040
push 0
push 0
push 0x20
push 0x20
mov ecx, esi
mov ebx, eax
call fcn.00470040
push 0
push 0
push 0x30
push 0x30
mov ecx, esi
mov edi, eax
call fcn.00470040
push dword [ebp - 0x10]
mov esi, eax
call fcn.004beb30
mov ecx, dword [ebp - 0x14]
add esp, 4
push esi
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0046ced0
mov esi, dword [ebp + 8]
mov bl, al
pop edi
jmp 0x46eebb
xor esi, esi
jmp 0x46eeb0
mov esi, dword [ebp + 8]
push ebx
call fcn.004beb30
add esp, 4
xor bl, bl
test esi, esi
je 0x46eed4
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x46eed4
push ebx
call fcn.004beb30
add esp, 4
xor bl, bl
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x46ef04
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x46eefa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ef0e
push edx
push ecx
call fcn.005348bc
add esp, 8
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00560be0
int3
Function at 0x480240
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
push esi
test bl, 2
je 0x480273
push 7
push str.Ctrl_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 4
je 0x480287
push 8
push str.Shift_
lea ecx, [ebp - 0x18]
call fcn.00402350
mov esi, dword [ebp + 0x10]
test bl, 1
je 0x4802a3
cmp esi, 0x12
je 0x4802a3
push 6
push str.Alt_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 8
je 0x4802bc
cmp esi, 0x5b
je 0x4802bc
push 6
push str.Win_
lea ecx, [ebp - 0x18]
call fcn.00402350
test esi, esi
je 0x48038f
push 0x80
push 0
push 0x5bc730
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ecx, eax
shl ecx, 0x10
or ecx, 1
cmp esi, 0x20
jne 0x480309
push str.Space
push 0x5bc730
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x48036a
cmp esi, 0x5b
jne 0x480320
push 0x580098
push 0x5bc730
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x48036a
cmp esi, 5
jne 0x480337
push 0x5800a0
push 0x5bc730
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x48036a
cmp esi, 6
jne 0x48034e
push 0x5800a8
push 0x5bc730
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x48036a
lea eax, [esi - 0x21]
push 0x40
push 0x5bc730
cmp eax, 0xe
ja 0x480363
or ecx, 0x1000000
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ecx, 0x5bc730
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480372
sub ecx, edx
sar ecx, 1
push ecx
push 0x5bc730
lea ecx, [ebp - 0x18]
call fcn.00402350
movups xmm0, xmmword [ebp - 0x18]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
xor eax, eax
mov word [ebp - 0x18], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 8]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 8], eax
mov dword [ebp - 4], 7
call fcn.00403070
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482360
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor bh, bh
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [esi + 0x750], 0
call edi
mov ecx, 0x8000
and ax, cx
mov word [ebp - 4], ax
movzx eax, ax
push 0x10
mov dword [ebp - 0xc], eax
call edi
mov ecx, 0x8000
and ax, cx
push 0x12
mov word [ebp - 2], ax
call edi
mov ecx, 0x8000
and ax, cx
push 0x5b
mov word [ebp - 6], ax
setne bl
call edi
mov ecx, 0x8000
test cx, ax
jne 0x4823d2
push 0x5c
call edi
mov ecx, 0x8000
test cx, ax
je 0x4823d4
mov bh, 1
mov edx, dword [esi + 0x74c]
mov cx, word [ebp - 2]
test edx, edx
je 0x4823f8
cmp word [ebp - 4], 0
jne 0x4823f8
test cx, cx
jne 0x4823f8
cmp word [ebp - 6], cx
jne 0x4823f8
mov bl, 1
jmp 0x4823ff
cmp word [ebp - 0xc], 0
je 0x482406
or dword [esi + 0x750], 2
mov eax, dword [esi + 0x750]
test cx, cx
je 0x48241a
or eax, 4
mov dword [esi + 0x750], eax
test bl, bl
je 0x482427
or eax, 1
mov dword [esi + 0x750], eax
mov ecx, edx
test bh, bh
je 0x482449
or eax, 8
mov dword [esi + 0x750], eax
test edx, edx
jne 0x482449
mov dword [esi + 0x74c], 0x5b
mov ecx, 0x5b
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00480240
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x48246c
push 1
push 0x580788
lea ecx, [ebp - 0x24]
call fcn.00402e60
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0044dfb0
mov edx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
cmp edx, 8
jb 0x4824b0
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4824a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4824b4
push edx
push ecx
call fcn.005348bc
add esp, 8
mov esp, ebp
pop ebp
ret
call fcn.00560be0
int3
Function at 0x4828b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
push esi
push edi
cmp eax, 0x70b
jne 0x482a93
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x64]
lea esi, [edi + 0x18]
push dword [edi + 0x1c]
push dword [esi]
push eax
call fcn.0044e620
cmp dword [edi + 0xc], 0x202
jne 0x482a11
push esi
mov ecx, ebx
call fcn.0044e280
push dword [edi + 0x1c]
lea eax, [ebp - 0x34]
mov ecx, ebx
push dword [esi]
push eax
call fcn.0044e620
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401570
mov esi, dword [ebp - 0xc]
lea edi, [ebp - 0x1c]
add esp, 8
cmp dword [ebp - 8], 8
cmovae edi, dword [ebp - 0x1c]
test esi, esi
je 0x4829cd
push 0x100
lea eax, [ebp - 0x164]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x164]
push 0x580556
push str.file:
call fcn.00453410
mov ecx, edi
test al, al
jne 0x4829a8
lea ebx, [edi + esi*2]
cmp edi, ebx
jae 0x482994
nop word [eax + eax]
movzx esi, word [ecx]
mov edx, 5
mov eax, str.file:
nop dword [eax]
cmp word [eax], si
je 0x48299f
add eax, 2
sub edx, 1
jne 0x482980
add ecx, 2
cmp ecx, ebx
jb 0x482970
mov ebx, dword [ebp - 4]
or ecx, 0xffffffff
jmp 0x482a26
mov ebx, dword [ebp - 4]
sub ecx, edi
sar ecx, 1
jmp 0x482a26
lea edx, [edi + esi*2]
cmp edi, edx
jae 0x4829cd
mov esi, 0x100
movzx eax, word [ecx]
cmp ax, si
jae 0x4829c6
cmp byte [ebp + eax - 0x164], 0
jne 0x482a22
add ecx, 2
cmp ecx, edx
jb 0x4829b4
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 1
cmovae eax, dword [ebp - 0x34]
push 0x597624
push 0x597624
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov eax, dword [eax + 0x1c]
push eax
push eax
call fcn.0044e2e0
lea ecx, [ebp - 0x1c]
call fcn.00403070
lea ecx, [ebp - 0x34]
call fcn.00403070
lea ecx, [ebp - 0x64]
call fcn.00403070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
sub ecx, edi
sar ecx, 1
test ecx, ecx
jne 0x4829cd
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
add eax, 0xa
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x482a45
cmp ecx, 0x2f
jne 0x482a4a
add eax, 2
jmp 0x482a38
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402fa0
lea eax, [ebp - 0x4c]
push eax
call fcn.0046fab0
add esp, 0x1c
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
push 1
push 0x597624
push 0x597624
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x4c]
call fcn.00403070
jmp 0x4829f2
push dword [ebp + 0xc]
push eax
call fcn.0044eaa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48b940
Capabilities:
Create shortcut via ishelllink
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
lea eax, [ebp - 4]
push eax
push 0x590724
push 1
push 0
push 0x590774
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x48bab4
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [esi]
call fcn.0048cfb0
cmp dword [eax + 0x14], 8
jb 0x48b980
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x50]
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov eax, dword [esi]
cmp dword [eax + 0xac], 0
jbe 0x48b9c4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0048d360
cmp dword [eax + 0x14], 8
jb 0x48b9b0
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x24]
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov eax, dword [esi]
cmp dword [eax + 0x94], 0
jbe 0x48b9ea
cmp dword [eax + 0x98], 8
lea edx, [eax + 0x84]
jb 0x48b9de
mov edx, dword [edx]
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi]
cmp dword [eax + 0xec], 0
jbe 0x48ba0e
cmp dword [eax + 0xf0], 8
lea edx, [eax + 0xdc]
jb 0x48ba04
mov edx, dword [edx]
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
lea edx, [ebp + 8]
push edx
push 0x590794
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x48baa2
push 0
push 0
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x597628
lea eax, [ebp - 0x224]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
mov eax, dword [esi]
add esp, 0xc
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x48ba5c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x224]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
push str..lnk
lea eax, [ebp - 0x224]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x224]
add esp, 0x18
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x48ce70
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5bc448]
sub esp, 0x2b8
test eax, eax
jne 0x48cf4d
push esi
xor esi, esi
push esi
push esi
push 6
call fcn.0040f470
add esp, 0xc
test al, al
je 0x48cee5
mov eax, dword [0x5bc444]
test eax, eax
jne 0x48cec2
push str.SHGetStockIconInfo
push str.shell32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5bc444], eax
test eax, eax
je 0x48cee5
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x218
push ecx
push 0x4000
push 3
call eax
test eax, eax
cmove esi, dword [ebp - 0x214]
mov dword [0x5bc448], esi
test esi, esi
jne 0x48cf4a
lea eax, [ebp - 4]
push eax
push 0x25
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], esi
je 0x48cf44
push 0x2b4
lea eax, [ebp - 0x2b8]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x4008
push 0x2b4
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b4]
test eax, eax
push dword [ebp - 4]
cmovg esi, eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov dword [0x5bc448], esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48d490
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp edi, 0x231
ja 0x48d5d2
je 0x48d5c6
mov eax, edi
sub eax, 0x104
je 0x48d54a
sub eax, 1
jne 0x48d5e4
push eax
push 0x5b886c
push 0x5ba80c
push eax
call fcn.00426d30
push eax
call sub.msvcrt.dll___RTDynamicCast
add esp, 0x14
mov dword [ebp + 8], eax
test eax, eax
je 0x48d5e4
lea ecx, [ebp - 0x2c]
call fcn.004291c0
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x2c], 0x3b
mov word [ebp - 0x18], bx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], 0
call fcn.00424ac0
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0xf0]
jmp 0x48d5e4
push 0
push 0x5b886c
push 0x5ba80c
push 0
call fcn.00426d30
push eax
call sub.msvcrt.dll___RTDynamicCast
add esp, 0x14
mov dword [ebp + 8], eax
test eax, eax
je 0x48d5e4
lea ecx, [ebp - 0x2c]
call fcn.004291c0
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x2c], 0x3a
mov word [ebp - 0x18], bx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], 0
call fcn.00424ac0
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0xf0]
jmp 0x48d5e4
mov dword [esi + 0x264], 1
jmp 0x48d5e4
cmp edi, 0x232
jne 0x48d5e4
mov dword [esi + 0x264], 0
push dword [ebp + 0x10]
mov ecx, esi
push ebx
push edi
call fcn.00439cc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4969b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
cmp esi, 0xffffffff
je 0x4969f1
test esi, 0x10
jne 0x4969f1
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x496b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x57d030
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov ebx, ecx
call sub.msvcrt.dll__wfopen_s
add esp, 0xc
test eax, eax
jne 0x496d23
push dword [ebp - 4]
push 1
push 0x4c
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebx], 0x4c
jne 0x496d23
mov eax, dword [ebx + 0x14]
test al, 1
je 0x496bfd
push dword [ebp - 4]
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push 1
push 2
push eax
call sub.msvcrt.dll_fread
movzx eax, word [ebp + 8]
push 1
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
mov eax, dword [ebx + 0x14]
add esp, 0x1c
test al, 2
je 0x496d0d
push dword [ebp - 4]
call sub.msvcrt.dll_ftell
push dword [ebp - 4]
lea esi, [ebx + 0x4c]
mov edi, eax
push 1
push 8
push esi
call sub.msvcrt.dll_fread
mov eax, dword [ebx + 0x50]
add esp, 0x14
sub eax, 0x1c
cmp eax, 8
ja 0x496d23
push 1
push 0xfffffffffffffff8
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
push dword [ebp - 4]
push 1
push dword [ebx + 0x50]
push esi
call sub.msvcrt.dll_fread
add esp, 0x1c
test byte [ebx + 0x54], 1
je 0x496cfb
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x5c]
push 0
add eax, edi
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
add esp, 0x18
xor edi, edi
push dword [ebp - 4]
lea esi, [ebp - 0x108]
push 1
add esi, edi
push 1
push esi
call sub.msvcrt.dll_fread
add esp, 0x10
cmp byte [esi], 0
je 0x496ca6
inc edi
cmp edi, 0x104
jl 0x496c80
cmp edi, 0x104
je 0x496d23
lea ecx, [ebp - 0x108]
mov byte [ebp + edi - 0x108], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x496cc0
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
lea ecx, [ebx + 0x9c]
call fcn.004027c0
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
add esp, 4
xor eax, eax
cmp dword [ebx + 0xac], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
push 0
add eax, edi
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
add esp, 0xc
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x496d33
push eax
call sub.msvcrt.dll_fclose
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49ae00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
movzx esi, di
shr edi, 0x10
call fcn.0047aee0
mov eax, dword [eax + 0x50]
mov dword [ebp - 4], eax
call fcn.0047aee0
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xd4]
movzx eax, dl
mov dword [ebp - 0xc], eax
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x49ae6a
mov eax, ecx
shr eax, 8
movzx eax, al
cmp esi, eax
jne 0x49ae67
movzx eax, cl
cmp edi, eax
jne 0x49ae67
mov ecx, ebx
call fcn.0048b730
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
test edx, edx
je 0x49aec1
cmp esi, eax
jne 0x49aec1
cmp edi, dword [ebp - 0xc]
jne 0x49aec1
mov ecx, dword [ebx + 0x1120]
test ecx, ecx
je 0x49aec1
push 0
call fcn.0043a870
mov ecx, dword [ebx + 0x1120]
push 1
push 1
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebx + 0x1120]
call fcn.004237c0
push eax
call fcn.004a64f0
mov ecx, dword [ebx + 0x1120]
add esp, 4
call fcn.004a66f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
shl esi, 8
lea eax, [ebp - 0x10]
or esi, edi
push esi
push eax
call fcn.0047acf0
mov ecx, eax
call fcn.0048cbe0
mov eax, dword [ebp - 0x10]
or edi, 0xffffffff
test eax, eax
je 0x49af6b
push 0
push 0
push eax
push 0x4a6e40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0047aee0
cmp byte [eax + 0x35], 0
je 0x49af6b
mov eax, dword [ebp - 0x10]
inc dword [eax + 0x10c]
lea eax, [ebp - 0x10]
push eax
call fcn.0047ade0
mov ecx, eax
call fcn.0047bfd0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
lea ecx, [ecx + 8]
call fcn.0040abf0
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 1
jne 0x49af45
push 0
mov ecx, ebx
call fcn.004a0a40
mov esi, dword [ebp - 4]
test esi, esi
je 0x49af6b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x49af6b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x49af6b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x49af90
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x49af90
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x49af90
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10