joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f4e2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.0045f2b8
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], ebx
je 0x45f634
push edi
push 0x511454
push dword [ebp + 0xc]
call fcn.004d91d4
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x45f633
push esi
push 2
push ebx
push edi
call fcn.004d92c8
push edi
call fcn.004d94ea
push ebx
mov esi, eax
push ebx
push edi
mov dword [ebp - 8], esi
call fcn.004d92c8
inc esi
push esi
call fcn.004d4f20
add esp, 0x20
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x45f62b
push esi
push ebx
push eax
call fcn.004dbcc0
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0xc], 2
jne 0x45f59a
push edi
push 1
lea eax, [ebp + 0xf]
push 1
push eax
call fcn.004d97f8
add esp, 0x10
jmp 0x45f594
push edi
call fcn.004db425
pop ecx
test eax, eax
jne 0x45f59a
push edi
push 1
lea eax, [ebp + 0xf]
push 1
push eax
call fcn.004d97f8
add esp, 0x10
inc esi
cmp byte [ebp + 0xf], 0x3c
jne 0x45f577
push ebx
push esi
push edi
call fcn.004d92c8
mov eax, dword [ebp - 8]
push edi
push 1
sub eax, esi
push eax
push dword [ebp - 4]
call fcn.004d97f8
mov esi, dword [ebp - 8]
imul esi, esi, 3
xor ecx, ecx
push 2
lea edi, [esi + 1]
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d4f20
add esp, 0x20
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x45f61f
push edi
push ebx
push eax
call fcn.004dbcc0
add esp, 0xc
cmp dword [ebp - 0xc], 2
push esi
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
jne 0x45f5fe
push 0xfde9
jmp 0x45f5ff
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045ec17
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call fcn.004d5e58
pop ecx
push dword [ebp - 4]
call fcn.004d5e58
mov edi, dword [ebp - 0x14]
pop ecx
push edi
call fcn.004d9a70
pop ecx
pop esi
pop edi
mov eax, dword [ebp - 0x10]
pop ebx
leave
ret 0xc
Function at 0x45f784
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x52ec00]
xor eax, esp
mov dword [esp + 0x670], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x45f92d
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x45f92d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f92d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x45f92d
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [esp + 0x478], ax
lea eax, [esp + 0x47a]
push eax
call fcn.004dbcc0
push edi
push 0x50e498
lea eax, [esp + 0x484]
push 0x103
push eax
call fcn.0044c905
add esp, 0x1c
push 0x517c68
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
and dword [esp + 0x18], 0
push 0x24c
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004dbcc0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x45f92d
lea eax, [esp + 0x44]
push 0x514004
push eax
call fcn.004d5d48
pop ecx
pop ecx
test eax, eax
je 0x45f907
lea eax, [esp + 0x44]
push 0x516d3c
push eax
call fcn.004d5d48
pop ecx
pop ecx
test eax, eax
je 0x45f907
xor eax, eax
push esi
push eax
mov word [esp + 0x270], ax
lea eax, [esp + 0x272]
push eax
call fcn.004dbcc0
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push edi
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [esp + 0x18], 0x10
lea eax, [esp + 0x268]
je 0x45f8e9
push dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
push ebx
push eax
call fcn.0045f784
jmp 0x45f907
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x45f907
push ebx
push eax
call fcn.004d5d48
pop ecx
pop ecx
test eax, eax
jne 0x45f907
mov eax, dword [esp + 0xc]
inc dword [eax]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45f86c
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x45f92f
xor eax, eax
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d5a7d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45fa0d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f6cf6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x14b4
call fcn.004e84e0
mov eax, dword [0x52ec00]
xor eax, esp
mov dword [esp + 0x14b0], eax
push ebx
push esi
push edi
mov eax, dword [0x52ec00]
xor eax, esp
push eax
lea eax, [esp + 0x14c8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x10], ecx
cmp esi, ebx
je 0x45fc3c
lea eax, [esp + 0x3c]
push eax
call fcn.0042b360
mov dword [esp + 0x14d0], ebx
lea eax, [esp + 0x3c]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.00461888
mov edx, esi
lea ecx, [esp + 0x3c]
call fcn.00461496
mov dword [esp + 0x14d0], 1
cmp dword [esp + 0x58], ebx
jle 0x45fc33
mov dword [esp + 0x5c], ebx
push 0x414
lea eax, [esp + 0x64]
push ebx
push eax
call fcn.004dbcc0
mov eax, dword [esp + 0x60]
add esp, 0xc
cmp eax, ebx
jl 0x45fc33
cmp eax, dword [esp + 0x58]
jge 0x45fc33
push eax
lea esi, [esp + 0x40]
call fcn.004617f4
mov ecx, 0x106
mov esi, eax
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
inc dword [esp + 0x54]
cmp dword [esp + 0x5c], ebx
je 0x45fb50
lea edi, [esp + 0x14]
call fcn.0045c454
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x14d0], 2
mov dword [esp + 0x24], eax
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x30], 1
call fcn.00406723
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, edi
push edx
call dword [eax]
test eax, eax
je 0x45fc2a
push dword [esp + 0x2c]
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.0045fa0d
jmp 0x45fc0b
lea eax, [esp + 0x268]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x45fb5a
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x260], cx
xor eax, eax
push 0x1046
mov word [esp + 0x478], ax
lea eax, [esp + 0x47a]
push ebx
push eax
call fcn.004dbcc0
add esp, 0xc
lea eax, [esp + 0x60]
push eax
push 0x824
lea eax, [esp + 0x47c]
push eax
push 0x507b1c
push 0x5162b4
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edi, [esp + 0x14]
call fcn.0045c454
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x14d0], 3
mov dword [esp + 0x24], eax
lea eax, [esp + 0x474]
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x30], ebx
call fcn.00406723
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00406723
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov edx, edi
push edx
call dword [eax]
test eax, eax
je 0x45fc2a
lea esi, [esp + 0x14]
mov byte [esp + 0x14d0], 1
call fcn.0045c880
push 0x418
lea eax, [esp + 0x60]
jmp 0x45fab2
lea esi, [esp + 0x14]
call fcn.0045c880
lea esi, [esp + 0x3c]
call fcn.004617d1
xor eax, eax
inc eax
mov ecx, dword [esp + 0x14c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14b0]
xor ecx, esp
call fcn.004d5a7d
mov esp, ebp
pop ebp
ret 8
Function at 0x45fc65
Capabilities:
Check if file exists

Disassembly:
push 0xec
mov eax, 0x4f9a69
call fcn.004de8aa
mov eax, dword [ebp + 8]
and dword [ebp - 0xd8], 0
mov esi, edx
push esi
mov edi, ecx
mov dword [ebp - 0xdc], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45fd74
and dword [ebp - 4], 0
lea eax, [ebp - 0xd4]
push eax
call fcn.00492fbd
lea eax, [ebp - 0x44]
push eax
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.0049551f
mov edx, esi
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 2
call fcn.0042da81
lea ecx, [ebp - 0x44]
push ecx
push eax
lea ebx, [ebp - 0xd4]
mov byte [ebp - 4], 3
call fcn.00493006
push 0
push 1
lea ecx, [ebp - 0xf8]
mov bl, al
mov byte [ebp - 4], 2
call fcn.0040653b
test bl, bl
je 0x45fd57
lea eax, [ebp - 0x44]
call fcn.00495d88
test al, al
je 0x45fd57
mov esi, str.roots
mov edx, esi
lea ecx, [ebp - 0x44]
call fcn.00495bfc
call fcn.00495d88
test al, al
je 0x45fd57
mov edx, esi
lea ecx, [ebp - 0x44]
call fcn.00495bfc
mov edx, str.bookmark_bar
mov ecx, eax
call fcn.00495bfc
mov ecx, eax
call fcn.00495d88
test al, al
je 0x45fd57
mov edx, 0x51a53c
call fcn.00495bfc
push dword [ebp - 0xdc]
mov ecx, edi
push eax
call fcn.0045fd82
mov dword [ebp - 0xd8], eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0049573e
lea eax, [ebp - 0xd4]
call fcn.0042b214
mov eax, dword [ebp - 0xd8]
call fcn.004de906
ret 4
Function at 0x460ab2
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x4f4afc
call fcn.004de80b
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x460bca
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push 0x5055b0
push 1
push ebx
push 0x5055c0
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x460bb9
cmp dword [ebp - 0x14], ebx
je 0x460bb9
push dword [ebp + 8]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x18], ebx
call fcn.0046144f
lea esi, [ebp - 0x18]
push esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + 0xe8]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
or eax, 0xffffffff
cmp ax, word [ebp - 0x18]
jne 0x460bb9
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x14]
push 0x51a968
lea esi, [ebp - 0x20]
call fcn.00461426
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov ecx, dword [edi]
lea edx, [ebp - 0x10]
push edx
push eax
push edi
mov dword [ebp - 0x1c], 1
call dword [ecx + 0xdc]
test eax, eax
jne 0x460b81
mov byte [ebp + 0xb], 1
cmp dword [ebp - 0x10], ebx
jne 0x460b84
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], 2
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp + 0xb], bl
je 0x460ba9
cmp dword [ebp - 0x10], ebx
je 0x460ba9
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.00460bd4
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x460bb9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x460bca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
call fcn.004de8e3
ret 8
Function at 0x463040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
xor edx, edx
sub ebx, dword [ebp + 0xc]
push esi
je 0x463065
mov ecx, dword [ebp + 8]
mov esi, edi
sub ecx, edi
mov dword [ebp + 0xc], ebx
mov edx, ebx
mov bl, byte [ecx + esi]
xor byte [esi], bl
inc esi
dec dword [ebp + 0xc]
jne 0x46305a
cmp edx, eax
jae 0x46307c
mov esi, dword [ebp + 8]
sub esi, edi
lea ecx, [edx + edi]
sub eax, edx
mov dl, byte [ecx + esi]
mov byte [ecx], dl
inc ecx
dec eax
jne 0x463073
pop esi
pop ebx
pop ebp
ret
Function at 0x4641b0
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x52ec00]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
push edi
xor edi, edi
mov dword [ebp - 0x80], str.adblock_adbept.dat
mov dword [ebp - 0x7c], str.adblock_adbraw.dat
xor esi, esi
xor eax, eax
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push edi
push eax
call fcn.004dbcc0
add esp, 0xc
push dword [ebp + esi*4 - 0x80]
call fcn.0040235b
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x464221
inc esi
cmp esi, 2
jb 0x4641df
jmp 0x464224
xor edi, edi
inc edi
mov ecx, dword [ebp + 0x190]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004d5a7d
add ebp, 0x194
leave
ret

Function at 0x46423d
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
push 0x464282
push 0
push 0
call fcn.004d67c7
mov esi, eax
add esp, 0x18
test esi, esi
je 0x46427d
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret 4
Function at 0x4642a7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f7a0f
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x52ec00]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push esi
mov eax, dword [0x52ec00]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
call fcn.0042b360
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x26c], ebx
call fcn.0042b360
mov byte [esp + 0x268], 1
mov dword [esp + 0x14], str.adblock_adbept.dat
mov dword [esp + 0x18], str.adblock_adbraw.dat
xor esi, esi
xor eax, eax
push 0x206
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push ebx
push eax
call fcn.004dbcc0
add esp, 0xc
push dword [esp + esi*4 + 0x14]
call fcn.0040235b
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46438b
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x1c], ebx
call fcn.00465343
cmp dword [esp + 0xc], ebx
jne 0x46438b
lea ecx, [esp + 0x4c]
call fcn.004372a5
inc esi
cmp esi, 2
jb 0x464321
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
test eax, 0xfffffffc
jne 0x4643af
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
test eax, 0xfffffffc
je 0x4643c1
push edi
lea ebx, [esp + 0x20]
call fcn.00465a0b
xor eax, eax
inc eax
mov dword [edi + 0x38], eax
jmp 0x4643c5
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x34]
mov dword [edi + 0x34], eax
call fcn.004617d1
lea esi, [esp + 0x1c]
call fcn.004617d1
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.004d5a7d
mov esp, ebp
pop ebp
ret
Function at 0x4661eb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x466236
push 0
push 0
call fcn.004d67c7
add esp, 0x18
test eax, eax
je 0x466219
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, 5
jbe 0x4661f2
mov eax, dword [ebp + 8]
call fcn.00466a46
mov dword [0x5d385c], 1
pop edi
leave
ret 4

Function at 0x466a69
Capabilities:
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x1c4]
sub esp, 0x244
mov eax, dword [0x52ec00]
xor eax, ebp
mov dword [ebp + 0x1c0], eax
mov eax, dword [ebp + 0x1cc]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x44], ebx
cmp edi, ebx
je 0x466b58
cmp word [edi], bx
je 0x466b58
lea esi, [eax + 0x74]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x466b58
xor eax, eax
push 0x1fe
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push ebx
push eax
call fcn.004dbcc0
push 0x38
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.004dbcc0
add esp, 0x18
lea eax, [ebp - 0x40]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push edi
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x6c], 0xff
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x466b58
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
xor edi, edi
test eax, eax
jbe 0x466b53
push edi
call fcn.004055de
cmp dword [eax + 0x18], 8
jb 0x466b28
mov eax, dword [eax + 4]
jmp 0x466b2b
add eax, 4
push eax
lea eax, [ebp - 0x40]
call fcn.0041756a
pop ecx
test eax, eax
jne 0x466b4c
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
inc edi
cmp edi, eax
jb 0x466b17
jmp 0x466b53
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x44]
jmp 0x466b5a
xor eax, eax
mov ecx, dword [ebp + 0x1c0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5a7d
add ebp, 0x1c4
leave
ret 4
Function at 0x46dad6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x52ec00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push eax
mov dword [ebp - 0x184], eax
call edi
test eax, eax
je 0x46dbd7
push dword [esi + 8]
call edi
test eax, eax
je 0x46db17
push dword [esi + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea eax, [ebp - 0x180]
push eax
mov dword [ebp - 0x180], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x58
xor ebx, ebx
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.004dbcc0
add esp, 0xc
cmp dword [ebp - 0x170], 2
jne 0x46db6f
cmp dword [ebp - 0x17c], 6
jne 0x46db6f
mov dword [ebp - 0x68], 0xffffffee
xor eax, eax
movzx ecx, word [eax + str.Microsoft_Yahei]
mov word [ebp + eax - 0x4c], cx
inc eax
inc eax
cmp cx, bx
jne 0x46db5a
jmp 0x46db8b
mov dword [ebp - 0x68], 0xffffffee
xor eax, eax
movzx ecx, word [eax + str.Tahoma]
mov word [ebp + eax - 0x4c], cx
inc eax
inc eax
cmp cx, bx
jne 0x46db78
mov edi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
cmp dword [esi + 0x28], ebx
jne 0x46db9f
lea eax, [ebp - 0x68]
push eax
call edi
mov dword [esi + 0x28], eax
cmp dword [esi + 0x2c], ebx
jne 0x46dbb1
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 0x53], 1
call edi
mov dword [esi + 0x2c], eax
cmp dword [esi + 0x6c], ebx
jne 0x46dbbf
mov eax, dword [ebp - 0x184]
mov dword [esi + 0x6c], eax
push ecx
mov eax, esp
mov dword [eax], ebx
push ecx
mov eax, esp
push dword [ebp - 0x184]
mov dword [eax], ebx
lea eax, [esi + 4]
call fcn.0046e558
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d5a7d
leave
ret 4

Function at 0x46dbe7
Capabilities:
Hide graphical window

Disassembly:
push dword [edi + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46dc22
push ebx
mov ebx, dword [sym.imp.USER32.dll_KillTimer]
push esi
push 1
push dword [edi + 8]
call ebx
lea esi, [edi + 0x98]
call fcn.0046d82a
push 0x64
push dword [edi + 8]
call ebx
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebx
ret

Function at 0x46e5f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46e671
cmp dword [ebp + 0x10], 0
je 0x46e671
mov ecx, eax
shr ecx, 0x10
test cx, cx
jne 0x46e61a
movzx eax, ax
push ebx
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x46e670
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46e66f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46e66f
and dword [esi + 0x10], 0
mov dword [esi + 8], eax
xor eax, eax
inc eax
and dword [esi + 0x1c], 0
mov byte [esi + 4], 0
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], eax
mov dword [ebp - 4], eax
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc
Function at 0x46e679
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
cmp dword [esi + 0x18], edi
je 0x46e6a0
mov eax, dword [esi + 8]
cmp eax, edi
je 0x46e6a0
push eax
call fcn.004d5e58
pop ecx
mov dword [esi + 8], edi
mov dword [esi + 0x18], edi
cmp dword [ebp + 8], edi
je 0x46e76b
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e76b
push 0x207
push dword [ebp + 8]
lea ebx, [esi + 0x20]
push ebx
call fcn.004d6323
add esp, 0xc
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46e76b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov dword [esi + 0xc], eax
mov dword [ebp + 8], edi
jle 0x46e775
cmp eax, 0x6400000
jg 0x46e775
inc eax
push eax
call fcn.004d4f20
pop ecx
mov dword [esi + 8], eax
cmp eax, edi
je 0x46e775
mov ecx, dword [esi + 0xc]
inc ecx
push ecx
push edi
push eax
call fcn.004dbcc0
add esp, 0xc
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 0xc]
push dword [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46e753
mov eax, dword [esi + 0xc]
cmp eax, dword [ebp + 8]
jne 0x46e753
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
jmp 0x46e764
mov eax, dword [esi + 8]
cmp eax, edi
je 0x46e764
push eax
call fcn.004d5e58
pop ecx
mov dword [esi + 8], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
jmp 0x46e76e

Function at 0x46e779
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
jne 0x46e789
xor eax, eax
jmp 0x46e7b8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e785
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x46e785
and dword [esi + 0x10], 0
xor eax, eax
inc eax
and dword [esi + 0x1c], 0
mov byte [esi + 4], al
mov dword [esi + 0x18], eax
pop edi
pop esi
ret 4