joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ac585
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7740
push 0x4accb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4ac5fa
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x4ac5f6
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x4ac5f6
cmp word [eax + 0x14], 0
jne 0x4ac5eb
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x4ac5fc
mov eax, ecx
jmp 0x4ac5e5
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ad390
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x410
cmp word [0x5ec88c], 0
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
push edi
jne 0x4ad479
push 0x104
push 0x5ec88c
mov ecx, 0x5ec7a8
call fcn.00426140
test eax, eax
jne 0x4ad3cf
pop edi
pop esi
pop ebx
add esp, 0x410
ret
push str.data_
push 0x5ec88c
call dword [sym.imp.MSVCRT.dll_wcscat]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
add esp, 8
stosw word es:[edi], ax
push str.bookmarks.dat
push 0x5ec88c
push 0x4f6614
lea eax, [esp + 0x18]
push 0x103
push eax
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
call esi
cmp eax, 1
je 0x4ad479
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x214]
push edx
stosw word es:[edi], ax
call fcn.004ad360
add esp, 4
lea eax, [esp + 0x214]
push eax
call esi
cmp eax, 1
jne 0x4ad479
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x218]
push ecx
push edx
call fcn.00428550
add esp, 0xc
mov eax, dword [esp + 0x428]
test eax, eax
jne 0x4ad4a5
mov esi, dword [esp + 0x424]
mov edi, dword [esp + 0x420]
push 0x5ec88c
push 0x4f6580
push esi
push edi
call ebx
add esp, 0x10
jmp 0x4ad4c5
mov esi, dword [esp + 0x424]
mov edi, dword [esp + 0x420]
push eax
push 0x5ec88c
push 0x4f6614
push esi
push edi
call ebx
add esp, 0x14
mov word [edi + esi*2 - 2], 0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x4b3cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e2f8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.004ab030
lea ebx, [esi + 0x28]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x20], edi
mov dword [esi + 0x24], 0x4e5b80
call fcn.004d2ee0
lea ebp, [esi + 0x30]
mov byte [esp + 0x20], 1
mov ecx, ebp
call fcn.004b27a0
push edi
lea ecx, [esi + 0x54]
mov byte [esp + 0x24], 2
call fcn.0048c8b0
mov al, byte [esp + 0x13]
lea edx, [esi + 0x44]
mov byte [esi + 0xa0], al
or eax, 0xffffffff
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
xor ecx, ecx
mov dword [esi], 0x4e8994
mov dword [esi + 0x24], 0x4e8984
mov dword [ebx], 0x4e8958
mov dword [ebp], 0x4e8950
mov dword [esi + 0xb0], eax
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [edx], ecx
mov eax, esi
pop edi
pop esi
mov dword [edx + 4], ecx
pop ebp
pop ebx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4b6780
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
cmp eax, 0x3fe
push edi
mov ebx, ecx
jne 0x4b6804
lea esi, [ebx + 0x20]
mov ecx, 0x82
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
push 0x104
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.0046ef00
mov ecx, dword [ebx + 0x14]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 4
push 0
push 0
push 0xf0
push 0x406
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x4b6857
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [ebx + 0x14]
add esp, 4
neg eax
sbb eax, eax
neg eax
push eax
push 1
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
pop ebx
ret 8
cmp eax, 0x3ff
jne 0x4b6857
lea esi, [ebx + 0x228]
mov ecx, 0x412
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
push 0x824
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.0046ef00
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [ebx + 0x14]
add esp, 8
neg eax
sbb eax, eax
neg eax
push eax
push 1
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
pop ebx
ret 8
Function at 0x4b6da0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004b7890
mov ax, word [0x50fd10]
mov ecx, 0x81
mov word [esp + 0x10], ax
xor eax, eax
lea edi, [esp + 0x12]
push 0
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x14]
push 0x3fe
stosw word es:[edi], ax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov edx, dword [esi + 0x14]
push 0
push 0xffffffffffffffff
push edx
call edi
push eax
call ebx
mov eax, dword [esi + 0x14]
push 0
push 0x406
push eax
call edi
push eax
call ebx
mov edx, dword [0x5ec5ac]
mov ebp, dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 0x10]
push 0x104
push ecx
push 0xea9a
push edx
call ebp
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x5ec5ac]
lea edx, [esp + 0x10]
push 0x104
push edx
push 0xea9b
push eax
call ebp
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0x407
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [esi + 0x14]
push 5
push 0x41d
push eax
call edi
push eax
call ebx
mov edx, dword [0x5ec5ac]
lea ecx, [esp + 0x10]
push 0x104
push ecx
push 0xea6d
push edx
call ebp
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x41d
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
lea edi, [esi + 0x1270]
push 1
push 0x5aff
push 0xd0721f
mov ecx, edi
call fcn.00440c20
mov edx, dword [esi + 0x14]
push 0x41d
push edx
mov ecx, edi
call fcn.00441110
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4b6ed0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x5ecabc]
push edi
mov eax, dword [esi + 8]
push eax
call fcn.004c6800
mov dword [esp + 0x10], eax
mov ax, word [0x50fd10]
mov word [esp + 0x34], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x36]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x14]
push 0
stosw word es:[edi], ax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x406
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov eax, dword [0x5ec5ac]
mov ebp, dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp + 0x34]
push 0x104
push edx
push 0xea69
push eax
call ebp
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [0x5ec5ac]
lea eax, [esp + 0x34]
push 0x104
push eax
push 0xea71
push ecx
call ebp
mov eax, dword [esi + 0x14]
mov ebp, dword [sym.imp.USER32.dll_SetDlgItemTextW]
lea edx, [esp + 0x34]
push edx
push 0x407
push eax
call ebp
mov ecx, dword [esi + 0x14]
push 5
push 0x41d
push ecx
call edi
push eax
call ebx
mov eax, dword [0x5ec5ac]
lea edx, [esp + 0x34]
push 0x104
push edx
push 0xea6d
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x34]
push ecx
push 0x41d
push edx
call ebp
push 1
push 0x5aff
lea ecx, [esi + 0x1270]
push 0xd0721f
call fcn.00440c20
mov eax, dword [esi + 0x14]
push 0x41d
push eax
lea ecx, [esi + 0x1270]
call fcn.00441110
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b70ec
mov ecx, dword [esi + 0x14]
push 5
push 0x408
push ecx
call edi
push eax
call ebx
mov edx, dword [esi + 0x14]
push 5
push 0x3ff
push edx
call edi
push eax
call ebx
mov ecx, dword [esi + 0x14]
lea eax, [esi + 0x228]
push eax
push 0x3ff
push ecx
call ebp
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x24]
push edx
push 0x406
push eax
call edi
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
call ebp
mov edx, dword [esi + 0x14]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [esp + 0x24]
push ecx
push edx
call ebx
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x2c]
push eax
push ecx
call ebx
mov edx, dword [esi + 0x14]
push 0x407
push edx
call edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
push ecx
push eax
call ebp
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
call ebx
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 5
push 0
add eax, 3
push 0
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x14]
push 0x405
push eax
call edi
lea ecx, [esp + 0x14]
mov edi, eax
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
mov eax, dword [esi + 0x14]
push edx
push eax
call ebx
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push 5
push 0
add eax, 0xfffffffe
push 0
push eax
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret
Function at 0x4b7100
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x208
mov ax, word [0x50fd10]
push esi
mov esi, ecx
push edi
mov word [esp + 8], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x14]
push 0
push 0x406
push ecx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5ec5ac]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp + 8]
push 0x104
push edx
push 0xea6d
push eax
call edi
mov edx, dword [esi + 0x14]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [0x5ec5ac]
lea eax, [esp + 8]
push 0x104
push eax
push 0xea72
push ecx
call edi
mov eax, dword [esi + 0x14]
lea edx, [esp + 8]
push edx
push 0x407
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
pop edi
pop esi
add esp, 0x208
ret

Function at 0x4b8640
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.MSVCRT.dll__beginthreadex]
mov eax, dword [esi + 0x1b30]
test eax, eax
jne 0x4b8673
lea eax, [esi + 0x1b34]
push eax
push 0
push 0
push 0x4be110
push 0
push 0
call edi
add esp, 0x18
mov dword [esi + 0x1b30], eax
mov eax, dword [esi + 0x1b28]
test eax, eax
jne 0x4b869c
lea ecx, [esi + 0x1b2c]
push ecx
push 0
push 0
push 0x4be1a0
push 0
push 0
call edi
add esp, 0x18
mov dword [esi + 0x1b28], eax
mov eax, dword [esi + 0x1b38]
test eax, eax
jne 0x4b86c4
push str.ParseEvent
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [esi + 0x1b38], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
ret
Function at 0x4b87f0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e319b
push eax
mov dword fs:[0], esp
sub esp, 0x4c0
push ebx
mov ebx, dword [esp + 0x4d4]
push ebp
push esi
test ebx, ebx
push edi
mov esi, ecx
je 0x4b894e
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 0x32
jae 0x4b894e
mov eax, dword [esp + 0x4e4]
test eax, eax
je 0x4b894e
mov al, byte [esi + 4]
test al, al
jne 0x4b894e
mov eax, dword [esi + 8]
test eax, eax
jne 0x4b894e
mov edi, dword [sym.imp.MSVCRT.dll__snwprintf]
push ebx
push 0x4f6580
lea eax, [esi + 0x28]
push 0x31
push eax
call edi
mov ecx, dword [esp + 0x4f4]
add esp, 0x10
lea ebp, [esi + 0x8c]
push ecx
push 0x4f6580
push 0x31
push ebp
call edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], 0
rep stosd dword es:[edi], eax
add esp, 0x10
lea edx, [esp + 0x14]
mov ecx, esi
push 0x104
push edx
stosw word es:[edi], ax
call fcn.004bf6e0
lea eax, [esp + 0x10]
mov edi, 2
push eax
mov dword [esp + 0x14], edi
call fcn.004c02a0
add esp, 4
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4b893b
cmp dword [esp + 0x10], edi
jne 0x4b893b
lea ecx, [esp + 0x21c]
call fcn.004d5860
lea edx, [esp + 0x14]
lea ecx, [esp + 0x21c]
push edx
mov dword [esp + 0x4dc], 0
call fcn.004d5e20
push eax
push ebp
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4b8969
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004c0d40
mov ecx, eax
call fcn.004cfd70
lea ecx, [esp + 0x21c]
mov dword [esp + 0x4d8], 0xffffffff
call fcn.004d58e0
mov ecx, dword [esp + 0x4e4]
mov dword [esi + 0x1c], edi
push ecx
push ebx
mov ecx, esi
call fcn.004b86d0
mov ecx, dword [esp + 0x4d0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4cc
ret 8
lea ecx, [esp + 0x21c]
mov dword [esp + 0x4d8], 0xffffffff
call fcn.004d58e0
jmp 0x4b894e
Function at 0x4b92f0
Capabilities:
Delete file

Disassembly:
mov eax, 0x32e10
call fcn.004acae0
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 3
jne 0x4b9333
cmp dword [esi], 2
je 0x4b9333
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4b9325
push 1
call fcn.004c0d40
mov ecx, eax
call fcn.004d0170
mov ecx, esi
call fcn.004b81d0
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x32e10
ret 0x10
mov ebx, dword [esp + 0x32e20]
test ebx, ebx
jne 0x4b934c
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x32e10
ret 0x10
mov al, byte [0x64f60c]
test al, 1
jne 0x4b9377
mov dl, al
mov ecx, 0x5ecb78
or dl, 1
mov byte [0x64f60c], dl
call fcn.00414b40
push 0x4b9580
call fcn.004acb42
add esp, 4
push ebp
push edi
mov ecx, 0x5ecb78
call fcn.004150f0
mov ecx, 0x5ecb78
call fcn.00415430
mov ecx, 0x5ecb78
call fcn.00415110
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x412
xor eax, eax
mov edi, 0x64a050
push 0x4f6580
push 0x824
push 0x64a050
rep stosd dword es:[edi], eax
call ebx
add esp, 0x10
add esi, 0xf0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5096b0
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
test eax, eax
je 0x4b93ea
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push esi
mov ecx, 0x82
xor eax, eax
mov edi, 0x649c40
push 0x4f6580
push 0x104
rep stosd dword es:[edi], eax
push 0x649c40
call ebx
mov esi, dword [esp + 0x32e34]
mov ebp, dword [esp + 0x32e3c]
add esp, 0x10
mov dword [0x5eefd8], 1
test esi, esi
mov dword [0x5ef20c], 0x4b9520
mov dword [0x5ef208], 0
je 0x4b94e4
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp ebp, 2
mov edx, eax
jne 0x4b94ab
xor eax, eax
mov ecx, 0xcb84
lea edi, [esp + 0x10]
push eax
rep stosd dword es:[edi], eax
push eax
lea eax, [edx + edx*2]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x5eeff4
mov dword [0x5eeff0], ecx
mov ecx, 0x82
mov dword [0x5eefec], edx
push str.application_x_www_form_urlencoded
rep stosd dword es:[edi], eax
jmp 0x4b94d0
mov eax, dword [esp + 0x32e30]
mov ecx, 0x82
mov dword [0x5eeff0], eax
xor eax, eax
mov edi, 0x5eeff4
mov dword [0x5eefec], esi
rep stosd dword es:[edi], eax
push str.multipart_form_data__boundary___________________________7d81d4371304a2
push 0x4f6580
push 0x104
push 0x5eeff4
call ebx
add esp, 0x10
mov ecx, 0x5ecb78
mov dword [0x5ef214], 0x7530
call fcn.00415040
pop edi
cmp ebp, 1
pop ebp
jne 0x4b9509
mov ecx, 0x5ecb78
call fcn.00415430
pop esi
mov eax, 1
pop ebx
add esp, 0x32e10
ret 0x10
Function at 0x4b96c0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], esp
lea eax, [esi + 0xf0]
push 0x50e130
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4b989e
push ebx
lea ecx, [ebp - 0x118]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4b97da
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [ebp - 0x118]
push 0x50e12c
push edx
call edi
test eax, eax
jne 0x4b9821
mov ecx, 0x81
lea edi, [ebp - 0x31e]
mov dword [esi + 0x24], eax
mov word [ebp - 0x320], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x28]
lea ecx, [ebp - 0x320]
push eax
push 0x103
push ecx
call fcn.004ad390
add esp, 0xc
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4b97e9
lea eax, [ebp - 0x320]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4b97e9
push eax
push str.Create_File_failure_
mov ecx, esi
call fcn.004be2e0
mov ecx, esi
mov dword [esi + 0x24], 0xc
call fcn.004b8e50
mov ecx, esi
call fcn.004b9000
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x4b989e
push 1
call fcn.004c0150
add esp, 4
lea ecx, [ebp - 0x320]
push ecx
mov ecx, esi
call fcn.004b95c0
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x118]
push str.VERSION_LOW
push edx
call edi
test eax, eax
jne 0x4b983c
mov dword [esi + 0x24], 6
jmp 0x4b9879
lea eax, [ebp - 0x118]
push str.USERNAME_ILLEGA
push eax
call edi
test eax, eax
jne 0x4b9857
mov dword [esi + 0x24], 9
jmp 0x4b9879
lea ecx, [ebp - 0x118]
push str.PASSWORD_ILLEGAL
push ecx
call edi
test eax, eax
jne 0x4b9872
mov dword [esi + 0x24], 0xa
jmp 0x4b9879
mov dword [esi + 0x24], 0xb
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, esi
push 1
push str.Login_failure_
call fcn.004be2e0
jmp 0x4b989e
push 0
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 8], 0
call fcn.004bf7b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b98d0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x414
push ebp
push esi
push edi
lea eax, [esp + 0xc]
xor edi, edi
mov esi, ecx
push eax
mov dword [esp + 0x10], edi
call fcn.004c02a0
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 2
jne 0x4b9a6b
push ebx
call fcn.004c0d40
mov ecx, eax
call fcn.004d00f0
mov word [esp + 0x14], di
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x103
push ecx
mov ecx, esi
stosw word es:[edi], ax
call fcn.004bf680
lea edx, [esp + 0x14]
mov ebp, 1
push edx
push ebp
call fcn.004c04e0
mov ebx, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x226]
mov word [esp + 0x224], 0
add esp, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x21c]
push 0x104
push eax
mov ecx, esi
call fcn.004bf6e0
cmp ebx, ebp
pop ebx
jne 0x4b9a4d
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x10]
push ecx
call edi
cmp eax, ebp
je 0x4b99a5
lea edx, [esp + 0x10]
push edx
push ebp
call fcn.004c0590
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.004c0500
add esp, 0x10
lea ecx, [esp + 0x218]
push ecx
call edi
cmp eax, ebp
je 0x4b99d2
mov dword [esi + 0x20], ebp
call fcn.004c0d40
push ebp
mov ecx, esi
mov dword [eax + 0x14], ebp
call fcn.004be2f0
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
lea edx, [esp + 0x218]
push edx
call fcn.004c0d40
mov ecx, eax
call fcn.004cfdb0
test eax, eax
je 0x4b99f4
call fcn.004c0d40
cmp dword [eax + 0x14], ebp
je 0x4b9a11
call fcn.004c0d40
mov dword [eax + 0x14], ebp
lea eax, [esp + 0x218]
push ebp
push eax
call fcn.004c0d40
mov ecx, eax
call fcn.004cfd70
lea ecx, [esp + 0x10]
push ecx
push 0
call fcn.004c0570
add esp, 8
cmp eax, ebp
jne 0x4b9a38
push ebp
mov ecx, esi
call fcn.004be2f0
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
push 0
mov ecx, esi
call fcn.004be2f0
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
call fcn.004c0d40
cmp dword [eax + 0x14], ebp
jne 0x4b9a6b
lea edx, [esp + 0x218]
push edx
call fcn.004c0d40
mov ecx, eax
call fcn.004c7f40
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
Function at 0x4be400
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x410
mov eax, 3
push esi
mov esi, ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
jne 0x4be4b3
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x104
push eax
mov ecx, esi
call fcn.004bf680
lea ecx, [esp + 0xc]
push ecx
push 0
call fcn.004c0670
mov ebx, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], 0
add esp, 8
rep stosd dword es:[edi], eax
lea edx, [esp + 0x214]
push 0x104
push edx
mov ecx, esi
stosw word es:[edi], ax
call fcn.004bf6e0
pop edi
test ebx, ebx
pop ebx
jne 0x4be4a9
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4be4a9
mov eax, 2
pop esi
add esp, 0x410
ret
mov ecx, dword [esi + 0xc]
xor eax, eax
test ecx, ecx
setne al
pop esi
add esp, 0x410
ret

Function at 0x4be580
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x410
cmp eax, 1
push esi
push edi
mov esi, ecx
jne 0x4be617
push eax
call fcn.004c0250
add esp, 4
call fcn.004c0d40
mov ecx, eax
call fcn.004d0130
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.bookmarks.dat
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.004ad390
add esp, 0xc
lea ecx, [esp + 8]
push 1
push ecx
call fcn.004c0d40
mov ecx, eax
call fcn.004cfd70
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4be73f
call fcn.004c0d40
mov ecx, eax
call fcn.004d0250
pop edi
pop esi
add esp, 0x410
ret 4
cmp eax, 2
jne 0x4be658
call fcn.004c0d40
mov ecx, eax
call fcn.004d0130
push 0
call fcn.004c0250
add esp, 4
push 2
push 0
push 0
call fcn.004ce010
add esp, 8
push eax
call fcn.004c0d40
mov ecx, eax
call fcn.004cfd70
pop edi
pop esi
add esp, 0x410
ret 4
cmp eax, 3
jne 0x4be66d
call fcn.004c0d40
mov ecx, eax
call fcn.004d0130
push 3
jmp 0x4be62a
cmp eax, 4
jne 0x4be73f
mov al, byte [esi + 4]
test al, al
je 0x4be73f
push ebx
push 2
call fcn.004c0250
add esp, 4
call fcn.004c0d40
mov ecx, eax
call fcn.004d00f0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x214]
push 0x104
push eax
mov ecx, esi
call fcn.004bf680
lea ecx, [esp + 0x214]
push ecx
push 1
call fcn.004c0500
add esp, 8
lea ebx, [esi + 0x28]
mov ecx, esi
push ebx
call fcn.004be750
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
push ebx
lea edx, [esp + 0x10]
push 0x103
push edx
mov ecx, esi
stosw word es:[edi], ax
call fcn.004be7a0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 1
pop ebx
cmp eax, edi
jne 0x4be72d
lea ecx, [esp + 8]
push edi
push ecx
jmp 0x4be641
mov dword [esi + 0x20], edi
call fcn.004c0d40
mov ecx, esi
mov dword [eax + 0x14], edi
call fcn.004b81d0
pop edi
pop esi
add esp, 0x410
ret 4