joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495424
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 0x495448
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x49544b
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x49545e
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x495465
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x5cbd54]
mov ecx, dword [0x5cbd50]
test eax, eax
jne 0x49547f
test ecx, ecx
je 0x495494
mov eax, ecx
mov dword [0x5cbd54], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x495494
cmp edx, dword [ebp + 8]
jb 0x495494
cmp edx, dword [ebp - 4]
jbe 0x4955ed
mov eax, ecx
test ecx, ecx
mov dword [0x5cbd54], eax
je 0x4954c4
test eax, eax
je 0x4954b8
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4954b8
cmp ecx, dword [ebp + 8]
jb 0x4954b8
cmp ecx, dword [ebp - 4]
jbe 0x4955ed
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x5cbd54], eax
jne 0x4954a3
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x49552c
cmp edi, 0x70000000
jb 0x4954e9
cmp edi, 0x80000000
ja 0x4954e9
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x49552c
cmp dword [ebp - 0x10], ebx
jne 0x495504
cmp dword [ebp - 0x14], ebx
jae 0x495514
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x4954d4
jmp 0x49552c
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x5cbd54], eax
jne 0x4955a3
cmp esi, dword [ebp - 4]
jae 0x495614
cmp esi, 0x70000000
jb 0x49554a
cmp esi, 0x80000000
ja 0x49554a
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x495614
cmp dword [ebp - 0x10], ebx
jne 0x495598
cmp dword [ebp - 0x14], ebx
jb 0x495598
mov ecx, esi
and ecx, 0xffff
je 0x495580
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 [0x5cbd54], eax
jne 0x4955a3
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x49552c
mov dword [eax], 0x52727464
mov eax, dword [0x5cbd54]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x5cbd54]
mov edx, dword [0x5cbd50]
mov dword [eax + 4], edx
mov eax, dword [0x5cbd54]
mov dword [0x5cbd50], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x4955d5
mov eax, dword [0x5cbd54]
mov dword [eax + 8], ecx
mov eax, dword [0x5cbd54]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x495614
cmp esi, dword [ebp - 4]
ja 0x495614
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 0x495616
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49561b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d02f0
push 0x495e1a
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 0x495690
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x49568c
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x49568c
cmp word [eax + 0x14], 0
jne 0x495681
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x495692
mov eax, ecx
jmp 0x49567b
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 0x4956a1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5cbd5c], eax
je 0x4956c0
mov eax, 0x10dd
jmp 0x495796
mov eax, dword [0x5cbd60]
test eax, eax
jne 0x495796
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4956dc
push 6
pop eax
jmp 0x495796
cmp dword [edi], 0
jne 0x4956ee
push 6
pop eax
mov dword [0x5cbd60], eax
jmp 0x495790
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x495701
push 8
pop edi
jmp 0x49577a
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.00494c36
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x49576f
cmp ecx, 0x17
ja 0x49576f
cmp dword [edi + 0x1c], eax
jne 0x49576f
lea eax, [ebp - 4]
mov dword [ebp - 4], edx
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x495745
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x49577a
mov eax, dword [ebp + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x5cbd6c]
mov dword [esi], eax
mov dword [0x5cbd6c], esi
xor eax, eax
jmp 0x495796
cmp dword [0x5cbd58], edx
push 9
pop edi
jne 0x495780
mov dword [0x5cbd60], edi
test esi, esi
je 0x49578b
push esi
call fcn.00495c27
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x5cbd64], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x496500
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x410
cmp word [0x5cc058], 0
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
push edi
jne 0x4965e9
push 0x104
push 0x5cc058
mov ecx, 0x5cbf90
call fcn.00498210
test eax, eax
jne 0x49653f
pop edi
pop esi
pop ebx
add esp, 0x410
ret
push str.data_
push 0x5cc058
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 0x5cc058
push 0x4de7b4
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 0x4965e9
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.004964d0
add esp, 4
lea eax, [esp + 0x214]
push eax
call esi
cmp eax, 1
jne 0x4965e9
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x218]
push ecx
push edx
call fcn.00423370
add esp, 0xc
mov eax, dword [esp + 0x428]
test eax, eax
jne 0x496615
mov esi, dword [esp + 0x424]
mov edi, dword [esp + 0x420]
push 0x5cc058
push 0x4de3ac
push esi
push edi
call ebx
add esp, 0x10
jmp 0x496635
mov esi, dword [esp + 0x424]
mov edi, dword [esp + 0x420]
push eax
push 0x5cc058
push 0x4de7b4
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 0x49d860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ccaae
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.00494040
lea ebx, [esi + 0x28]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x20], edi
mov dword [esi + 0x24], 0x4ceb10
call fcn.004bd310
lea ebp, [esi + 0x30]
mov byte [esp + 0x20], 1
mov ecx, ebp
call fcn.0049c3a0
lea ecx, [esi + 0x54]
mov byte [esp + 0x20], 2
call fcn.00475da0
mov al, byte [esp + 0x13]
lea edx, [esi + 0x44]
mov byte [esi + 0x98], al
or eax, 0xffffffff
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
xor ecx, ecx
mov dword [esi], 0x4d1544
mov dword [esi + 0x24], 0x4d1534
mov dword [ebx], 0x4d1508
mov dword [ebp], 0x4d1500
mov dword [esi + 0xa8], eax
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], 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 0x4a0230
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
cmp eax, 0x3fe
push edi
mov ebx, ecx
jne 0x4a02b4
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.004610c0
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 0x4a0307
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 0x4a0307
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.004610c0
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 0x4a0850
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004a1350
mov ax, word [0x4f04e0]
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 [0x5cbdcc]
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 [0x5cbdcc]
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 [0x5cbdcc]
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.00436d70
mov edx, dword [esi + 0x14]
push 0x41d
push edx
mov ecx, edi
call fcn.00437230
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4a0980
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x5cc284]
push edi
mov eax, dword [esi + 8]
push eax
call fcn.004aff30
mov dword [esp + 0x10], eax
mov ax, word [0x4f04e0]
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 [0x5cbdcc]
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 [0x5cbdcc]
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 [0x5cbdcc]
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.00436d70
mov eax, dword [esi + 0x14]
push 0x41d
push eax
lea ecx, [esi + 0x1270]
call fcn.00437230
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4a0b9c
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 0x4a0bb0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x208
mov ax, word [0x4f04e0]
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 [0x5cbdcc]
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 [0x5cbdcc]
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 0x4a2100
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 0x4a2133
lea eax, [esi + 0x1b34]
push eax
push 0
push 0
push 0x4a7be0
push 0
push 0
call edi
add esp, 0x18
mov dword [esi + 0x1b30], eax
mov eax, dword [esi + 0x1b28]
test eax, eax
jne 0x4a215c
lea ecx, [esi + 0x1b2c]
push ecx
push 0
push 0
push 0x4a7c70
push 0
push 0
call edi
add esp, 0x18
mov dword [esi + 0x1b28], eax
mov eax, dword [esi + 0x1b38]
test eax, eax
jne 0x4a2184
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 0x4a22b0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cccbb
push eax
mov dword fs:[0], esp
sub esp, 0x4bc
push ebx
mov ebx, dword [esp + 0x4d0]
push ebp
push esi
test ebx, ebx
push edi
mov esi, ecx
je 0x4a240e
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 0x32
jae 0x4a240e
mov eax, dword [esp + 0x4e0]
test eax, eax
je 0x4a240e
mov al, byte [esi + 4]
test al, al
jne 0x4a240e
mov eax, dword [esi + 8]
test eax, eax
jne 0x4a240e
mov edi, dword [sym.imp.MSVCRT.dll__snwprintf]
push ebx
push 0x4de3ac
lea eax, [esi + 0x28]
push 0x31
push eax
call edi
mov ecx, dword [esp + 0x4f0]
add esp, 0x10
lea ebp, [esi + 0x8c]
push ecx
push 0x4de3ac
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.004a91a0
lea eax, [esp + 0x10]
mov edi, 2
push eax
mov dword [esp + 0x14], edi
call fcn.004a9d50
add esp, 4
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4a23fb
cmp dword [esp + 0x10], edi
jne 0x4a23fb
lea ecx, [esp + 0x21c]
call fcn.004bfbb0
lea edx, [esp + 0x14]
lea ecx, [esp + 0x21c]
push edx
mov dword [esp + 0x4d8], 0
call fcn.004c0170
push eax
push ebp
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4a2429
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004aa7d0
mov ecx, eax
call fcn.004b9800
lea ecx, [esp + 0x21c]
mov dword [esp + 0x4d4], 0xffffffff
call fcn.004bfc30
mov ecx, dword [esp + 0x4e0]
mov dword [esi + 0x1c], edi
push ecx
push ebx
mov ecx, esi
call fcn.004a2190
mov ecx, dword [esp + 0x4cc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c8
ret 8
lea ecx, [esp + 0x21c]
mov dword [esp + 0x4d4], 0xffffffff
call fcn.004bfc30
jmp 0x4a240e
Function at 0x4a2dc0
Capabilities:
Delete file

Disassembly:
mov eax, 0x32e10
call fcn.00495c50
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 3
jne 0x4a2e03
cmp dword [esi], 2
je 0x4a2e03
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4a2df5
push 1
call fcn.004aa7d0
mov ecx, eax
call fcn.004b9c00
mov ecx, esi
call fcn.004a1c90
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x32e10
ret 0x10
mov ebx, dword [esp + 0x32e20]
test ebx, ebx
jne 0x4a2e1c
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x32e10
ret 0x10
mov al, byte [0x62ebbc]
test al, 1
jne 0x4a2e47
mov dl, al
mov ecx, 0x5cc338
or dl, 1
mov byte [0x62ebbc], dl
call fcn.004127f0
push 0x4a3050
call fcn.00495cb2
add esp, 4
push ebp
push edi
mov ecx, 0x5cc338
call fcn.00412c10
mov ecx, 0x5cc338
call fcn.00412eb0
mov ecx, 0x5cc338
call fcn.00412c30
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x412
xor eax, eax
mov edi, 0x629610
push 0x4de3ac
push 0x824
push 0x629610
rep stosd dword es:[edi], eax
call ebx
add esp, 0x10
add esi, 0xf0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4ea4c4
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
test eax, eax
je 0x4a2eba
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push esi
mov ecx, 0x82
xor eax, eax
mov edi, 0x629200
push 0x4de3ac
push 0x104
rep stosd dword es:[edi], eax
push 0x629200
call ebx
mov esi, dword [esp + 0x32e34]
mov ebp, dword [esp + 0x32e3c]
add esp, 0x10
mov dword [0x5ce790], 1
test esi, esi
mov dword [0x5ce9c8], 0x4a2ff0
mov dword [0x5ce9c4], 0
je 0x4a2fb4
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp ebp, 2
mov edx, eax
jne 0x4a2f7b
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, 0x5ce7ac
mov dword [0x5ce7a8], ecx
mov ecx, 0x82
mov dword [0x5ce7a4], edx
push str.application_x_www_form_urlencoded
rep stosd dword es:[edi], eax
jmp 0x4a2fa0
mov eax, dword [esp + 0x32e30]
mov ecx, 0x82
mov dword [0x5ce7a8], eax
xor eax, eax
mov edi, 0x5ce7ac
mov dword [0x5ce7a4], esi
rep stosd dword es:[edi], eax
push str.multipart_form_data__boundary___________________________7d81d4371304a2
push 0x4de3ac
push 0x104
push 0x5ce7ac
call ebx
add esp, 0x10
mov ecx, 0x5cc338
mov dword [0x5ce9d0], 0x7530
call fcn.00412bb0
pop edi
cmp ebp, 1
pop ebp
jne 0x4a2fd9
mov ecx, 0x5cc338
call fcn.00412eb0
pop esi
mov eax, 1
pop ebx
add esp, 0x32e10
ret 0x10
Function at 0x4a3190
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccd40
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 0x4ee990
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 0x4a336e
push ebx
lea ecx, [ebp - 0x118]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4a32aa
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [ebp - 0x118]
push 0x4ee98c
push edx
call edi
test eax, eax
jne 0x4a32f1
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.00496500
add esp, 0xc
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4a32b9
lea eax, [ebp - 0x320]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a32b9
push eax
push str.Create_File_failure_
mov ecx, esi
call fcn.004a7db0
mov ecx, esi
mov dword [esi + 0x24], 0xc
call fcn.004a2920
mov ecx, esi
call fcn.004a2ad0
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x4a336e
push 1
call fcn.004a9c00
add esp, 4
lea ecx, [ebp - 0x320]
push ecx
mov ecx, esi
call fcn.004a3090
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 0x4a330c
mov dword [esi + 0x24], 6
jmp 0x4a3349
lea eax, [ebp - 0x118]
push str.USERNAME_ILLEGA
push eax
call edi
test eax, eax
jne 0x4a3327
mov dword [esi + 0x24], 9
jmp 0x4a3349
lea ecx, [ebp - 0x118]
push str.PASSWORD_ILLEGAL
push ecx
call edi
test eax, eax
jne 0x4a3342
mov dword [esi + 0x24], 0xa
jmp 0x4a3349
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.004a7db0
jmp 0x4a336e
push 0
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 8], 0
call fcn.004a9270
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