joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ac6ee
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x4ac712
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x4ac715
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x4ac728
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x4ac72f
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x5ec504]
mov ecx, dword [0x5ec500]
test eax, eax
jne 0x4ac749
test ecx, ecx
je 0x4ac75e
mov eax, ecx
mov dword [0x5ec504], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x4ac75e
cmp edx, dword [ebp + 8]
jb 0x4ac75e
cmp edx, dword [ebp - 4]
jbe 0x4ac8b7
mov eax, ecx
test ecx, ecx
mov dword [0x5ec504], eax
je 0x4ac78e
test eax, eax
je 0x4ac782
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4ac782
cmp ecx, dword [ebp + 8]
jb 0x4ac782
cmp ecx, dword [ebp - 4]
jbe 0x4ac8b7
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x5ec504], eax
jne 0x4ac76d
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x4ac7f6
cmp edi, 0x70000000
jb 0x4ac7b3
cmp edi, 0x80000000
ja 0x4ac7b3
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4ac7f6
cmp dword [ebp - 0x10], ebx
jne 0x4ac7ce
cmp dword [ebp - 0x14], ebx
jae 0x4ac7de
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x4ac79e
jmp 0x4ac7f6
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x5ec504], eax
jne 0x4ac86d
cmp esi, dword [ebp - 4]
jae 0x4ac8de
cmp esi, 0x70000000
jb 0x4ac814
cmp esi, 0x80000000
ja 0x4ac814
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4ac8de
cmp dword [ebp - 0x10], ebx
jne 0x4ac862
cmp dword [ebp - 0x14], ebx
jb 0x4ac862
mov ecx, esi
and ecx, 0xffff
je 0x4ac84a
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x5ec504], eax
jne 0x4ac86d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x4ac7f6
mov dword [eax], 0x52727464
mov eax, dword [0x5ec504]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x5ec504]
mov edx, dword [0x5ec500]
mov dword [eax + 4], edx
mov eax, dword [0x5ec504]
mov dword [0x5ec500], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x4ac89f
mov eax, dword [0x5ec504]
mov dword [eax + 8], ecx
mov eax, dword [0x5ec504]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x4ac8de
cmp esi, dword [ebp - 4]
ja 0x4ac8de
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x4ac8e0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ac8e5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7750
push 0x4ad010
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 0x4ac95a
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x4ac956
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x4ac956
cmp word [eax + 0x14], 0
jne 0x4ac94b
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x4ac95c
mov eax, ecx
jmp 0x4ac945
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 0x4ad6f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x410
cmp word [0x5ec85c], 0
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
push edi
jne 0x4ad7d9
push 0x104
push 0x5ec85c
mov ecx, 0x5ec778
call fcn.00426de0
test eax, eax
jne 0x4ad72f
pop edi
pop esi
pop ebx
add esp, 0x410
ret
push str.data_
push 0x5ec85c
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 0x5ec85c
push 0x4f6608
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 0x4ad7d9
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.004ad6c0
add esp, 4
lea eax, [esp + 0x214]
push eax
call esi
cmp eax, 1
jne 0x4ad7d9
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x218]
push ecx
push edx
call fcn.00429280
add esp, 0xc
mov eax, dword [esp + 0x428]
test eax, eax
jne 0x4ad805
mov esi, dword [esp + 0x424]
mov edi, dword [esp + 0x420]
push 0x5ec85c
push 0x4f6574
push esi
push edi
call ebx
add esp, 0x10
jmp 0x4ad825
mov esi, dword [esp + 0x424]
mov edi, dword [esp + 0x420]
push eax
push 0x5ec85c
push 0x4f6608
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 0x4b3fe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e331e
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.004ab390
lea ebx, [esi + 0x28]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x20], edi
mov dword [esi + 0x24], 0x4e5b90
call fcn.004d31b0
lea ebp, [esi + 0x30]
mov byte [esp + 0x20], 1
mov ecx, ebp
call fcn.004b2ab0
push edi
lea ecx, [esi + 0x54]
mov byte [esp + 0x24], 2
call fcn.0048cc10
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], 0x4e89a4
mov dword [esi + 0x24], 0x4e8994
mov dword [ebx], 0x4e8968
mov dword [ebp], 0x4e8960
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 0x4b6ac0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
cmp eax, 0x3fe
push edi
mov ebx, ecx
jne 0x4b6b44
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.0046f3e0
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 0x4b6b97
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 0x4b6b97
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.0046f3e0
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 0x4b70e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004b7bd0
mov ax, word [0x50fce0]
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 [0x5ec57c]
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 [0x5ec57c]
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 [0x5ec57c]
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.00441550
mov edx, dword [esi + 0x14]
push 0x41d
push edx
mov ecx, edi
call fcn.00441a40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4b7210
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x5eca8c]
push edi
mov eax, dword [esi + 8]
push eax
call fcn.004c6b30
mov dword [esp + 0x10], eax
mov ax, word [0x50fce0]
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 [0x5ec57c]
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 [0x5ec57c]
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 [0x5ec57c]
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.00441550
mov eax, dword [esi + 0x14]
push 0x41d
push eax
lea ecx, [esi + 0x1270]
call fcn.00441a40
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b742c
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 0x4b7440
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x208
mov ax, word [0x50fce0]
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 [0x5ec57c]
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 [0x5ec57c]
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 0x4b8980
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 0x4b89b3
lea eax, [esi + 0x1b34]
push eax
push 0
push 0
push 0x4be450
push 0
push 0
call edi
add esp, 0x18
mov dword [esi + 0x1b30], eax
mov eax, dword [esi + 0x1b28]
test eax, eax
jne 0x4b89dc
lea ecx, [esi + 0x1b2c]
push ecx
push 0
push 0
push 0x4be4e0
push 0
push 0
call edi
add esp, 0x18
mov dword [esi + 0x1b28], eax
mov eax, dword [esi + 0x1b38]
test eax, eax
jne 0x4b8a04
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 0x4b8b30
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e352b
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 0x4b8c8e
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 0x32
jae 0x4b8c8e
mov eax, dword [esp + 0x4e4]
test eax, eax
je 0x4b8c8e
mov al, byte [esi + 4]
test al, al
jne 0x4b8c8e
mov eax, dword [esi + 8]
test eax, eax
jne 0x4b8c8e
mov edi, dword [sym.imp.MSVCRT.dll__snwprintf]
push ebx
push 0x4f6574
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 0x4f6574
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.004bfa20
lea eax, [esp + 0x10]
mov edi, 2
push eax
mov dword [esp + 0x14], edi
call fcn.004c05d0
add esp, 4
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4b8c7b
cmp dword [esp + 0x10], edi
jne 0x4b8c7b
lea ecx, [esp + 0x21c]
call fcn.004d5b30
lea edx, [esp + 0x14]
lea ecx, [esp + 0x21c]
push edx
mov dword [esp + 0x4dc], 0
call fcn.004d60f0
push eax
push ebp
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4b8ca9
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004c1070
mov ecx, eax
call fcn.004d0060
lea ecx, [esp + 0x21c]
mov dword [esp + 0x4d8], 0xffffffff
call fcn.004d5bb0
mov ecx, dword [esp + 0x4e4]
mov dword [esi + 0x1c], edi
push ecx
push ebx
mov ecx, esi
call fcn.004b8a10
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.004d5bb0
jmp 0x4b8c8e
Function at 0x4b9630
Capabilities:
Delete file

Disassembly:
mov eax, 0x32e10
call fcn.004ace40
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 3
jne 0x4b9673
cmp dword [esi], 2
je 0x4b9673
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4b9665
push 1
call fcn.004c1070
mov ecx, eax
call fcn.004d0460
mov ecx, esi
call fcn.004b8510
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x32e10
ret 0x10
mov ebx, dword [esp + 0x32e20]
test ebx, ebx
jne 0x4b968c
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x32e10
ret 0x10
mov al, byte [0x64f5dc]
test al, 1
jne 0x4b96b7
mov dl, al
mov ecx, 0x5ecb48
or dl, 1
mov byte [0x64f5dc], dl
call fcn.004144a0
push 0x4b98c0
call fcn.004acea2
add esp, 4
push ebp
push edi
mov ecx, 0x5ecb48
call fcn.00414a50
mov ecx, 0x5ecb48
call fcn.00414d90
mov ecx, 0x5ecb48
call fcn.00414a70
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x412
xor eax, eax
mov edi, 0x64a020
push 0x4f6574
push 0x824
push 0x64a020
rep stosd dword es:[edi], eax
call ebx
add esp, 0x10
add esi, 0xf0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5098a0
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
test eax, eax
je 0x4b972a
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push esi
mov ecx, 0x82
xor eax, eax
mov edi, 0x649c10
push 0x4f6574
push 0x104
rep stosd dword es:[edi], eax
push 0x649c10
call ebx
mov esi, dword [esp + 0x32e34]
mov ebp, dword [esp + 0x32e3c]
add esp, 0x10
mov dword [0x5eefa8], 1
test esi, esi
mov dword [0x5ef1dc], 0x4b9860
mov dword [0x5ef1d8], 0
je 0x4b9824
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp ebp, 2
mov edx, eax
jne 0x4b97eb
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, 0x5eefc4
mov dword [0x5eefc0], ecx
mov ecx, 0x82
mov dword [0x5eefbc], edx
push str.application_x_www_form_urlencoded
rep stosd dword es:[edi], eax
jmp 0x4b9810
mov eax, dword [esp + 0x32e30]
mov ecx, 0x82
mov dword [0x5eefc0], eax
xor eax, eax
mov edi, 0x5eefc4
mov dword [0x5eefbc], esi
rep stosd dword es:[edi], eax
push str.multipart_form_data__boundary___________________________7d81d4371304a2
push 0x4f6574
push 0x104
push 0x5eefc4
call ebx
add esp, 0x10
mov ecx, 0x5ecb48
mov dword [0x5ef1e4], 0x7530
call fcn.004149a0
pop edi
cmp ebp, 1
pop ebp
jne 0x4b9849
mov ecx, 0x5ecb48
call fcn.00414d90
pop esi
mov eax, 1
pop ebx
add esp, 0x32e10
ret 0x10
Function at 0x4b9a00
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e35b0
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 0x50e100
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 0x4b9bde
push ebx
lea ecx, [ebp - 0x118]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4b9b1a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [ebp - 0x118]
push 0x50e0fc
push edx
call edi
test eax, eax
jne 0x4b9b61
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.004ad6f0
add esp, 0xc
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4b9b29
lea eax, [ebp - 0x320]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4b9b29
push eax
push str.Create_File_failure_
mov ecx, esi
call fcn.004be620
mov ecx, esi
mov dword [esi + 0x24], 0xc
call fcn.004b9190
mov ecx, esi
call fcn.004b9340
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x4b9bde
push 1
call fcn.004c0480
add esp, 4
lea ecx, [ebp - 0x320]
push ecx
mov ecx, esi
call fcn.004b9900
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 0x4b9b7c
mov dword [esi + 0x24], 6
jmp 0x4b9bb9
lea eax, [ebp - 0x118]
push str.USERNAME_ILLEGA
push eax
call edi
test eax, eax
jne 0x4b9b97
mov dword [esi + 0x24], 9
jmp 0x4b9bb9
lea ecx, [ebp - 0x118]
push str.PASSWORD_ILLEGAL
push ecx
call edi
test eax, eax
jne 0x4b9bb2
mov dword [esi + 0x24], 0xa
jmp 0x4b9bb9
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.004be620
jmp 0x4b9bde
push 0
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 8], 0
call fcn.004bfaf0
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 0x4b9c10
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.004c05d0
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 2
jne 0x4b9dab
push ebx
call fcn.004c1070
mov ecx, eax
call fcn.004d03e0
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.004bf9c0
lea edx, [esp + 0x14]
mov ebp, 1
push edx
push ebp
call fcn.004c0810
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.004bfa20
cmp ebx, ebp
pop ebx
jne 0x4b9d8d
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x10]
push ecx
call edi
cmp eax, ebp
je 0x4b9ce5
lea edx, [esp + 0x10]
push edx
push ebp
call fcn.004c08c0
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.004c0830
add esp, 0x10
lea ecx, [esp + 0x218]
push ecx
call edi
cmp eax, ebp
je 0x4b9d12
mov dword [esi + 0x20], ebp
call fcn.004c1070
push ebp
mov ecx, esi
mov dword [eax + 0x14], ebp
call fcn.004be630
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
lea edx, [esp + 0x218]
push edx
call fcn.004c1070
mov ecx, eax
call fcn.004d00a0
test eax, eax
je 0x4b9d34
call fcn.004c1070
cmp dword [eax + 0x14], ebp
je 0x4b9d51
call fcn.004c1070
mov dword [eax + 0x14], ebp
lea eax, [esp + 0x218]
push ebp
push eax
call fcn.004c1070
mov ecx, eax
call fcn.004d0060
lea ecx, [esp + 0x10]
push ecx
push 0
call fcn.004c08a0
add esp, 8
cmp eax, ebp
jne 0x4b9d78
push ebp
mov ecx, esi
call fcn.004be630
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
push 0
mov ecx, esi
call fcn.004be630
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
call fcn.004c1070
cmp dword [eax + 0x14], ebp
jne 0x4b9dab
lea edx, [esp + 0x218]
push edx
call fcn.004c1070
mov ecx, eax
call fcn.004c8270
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4