joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b2f4
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 0x49b318
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x49b31b
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x49b32e
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x49b335
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x5d10bc]
mov ecx, dword [0x5d10b8]
test eax, eax
jne 0x49b34f
test ecx, ecx
je 0x49b364
mov eax, ecx
mov dword [0x5d10bc], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x49b364
cmp edx, dword [ebp + 8]
jb 0x49b364
cmp edx, dword [ebp - 4]
jbe 0x49b4bd
mov eax, ecx
test ecx, ecx
mov dword [0x5d10bc], eax
je 0x49b394
test eax, eax
je 0x49b388
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x49b388
cmp ecx, dword [ebp + 8]
jb 0x49b388
cmp ecx, dword [ebp - 4]
jbe 0x49b4bd
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x5d10bc], eax
jne 0x49b373
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x49b3fc
cmp edi, 0x70000000
jb 0x49b3b9
cmp edi, 0x80000000
ja 0x49b3b9
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x49b3fc
cmp dword [ebp - 0x10], ebx
jne 0x49b3d4
cmp dword [ebp - 0x14], ebx
jae 0x49b3e4
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x49b3a4
jmp 0x49b3fc
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x5d10bc], eax
jne 0x49b473
cmp esi, dword [ebp - 4]
jae 0x49b4e4
cmp esi, 0x70000000
jb 0x49b41a
cmp esi, 0x80000000
ja 0x49b41a
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x49b4e4
cmp dword [ebp - 0x10], ebx
jne 0x49b468
cmp dword [ebp - 0x14], ebx
jb 0x49b468
mov ecx, esi
and ecx, 0xffff
je 0x49b450
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 [0x5d10bc], eax
jne 0x49b473
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x49b3fc
mov dword [eax], 0x52727464
mov eax, dword [0x5d10bc]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x5d10bc]
mov edx, dword [0x5d10b8]
mov dword [eax + 4], edx
mov eax, dword [0x5d10bc]
mov dword [0x5d10b8], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x49b4a5
mov eax, dword [0x5d10bc]
mov dword [eax + 8], ecx
mov eax, dword [0x5d10bc]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x49b4e4
cmp esi, dword [ebp - 4]
ja 0x49b4e4
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 0x49b4e6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49b4eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5528
push 0x49bd10
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 0x49b560
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x49b55c
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x49b55c
cmp word [eax + 0x14], 0
jne 0x49b551
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x49b562
mov eax, ecx
jmp 0x49b54b
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 0x49b571
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 [0x5d10c4], eax
je 0x49b590
mov eax, 0x10dd
jmp 0x49b666
mov eax, dword [0x5d10c8]
test eax, eax
jne 0x49b666
mov edi, dword [ebp + 8]
test edi, edi
jne 0x49b5ac
push 6
pop eax
jmp 0x49b666
cmp dword [edi], 0
jne 0x49b5be
push 6
pop eax
mov dword [0x5d10c8], eax
jmp 0x49b660
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x49b5d1
push 8
pop edi
jmp 0x49b64a
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0049ab06
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x49b63f
cmp ecx, 0x17
ja 0x49b63f
cmp dword [edi + 0x1c], eax
jne 0x49b63f
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 0x49b615
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x49b64a
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 [0x5d10d4]
mov dword [esi], eax
mov dword [0x5d10d4], esi
xor eax, eax
jmp 0x49b666
cmp dword [0x5d10c0], edx
push 9
pop edi
jne 0x49b650
mov dword [0x5d10c8], edi
test esi, esi
je 0x49b65b
push esi
call fcn.0049bb1b
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x5d10cc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x49c3f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x410
cmp word [0x5d1408], 0
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
push edi
jne 0x49c4d9
push 0x104
push 0x5d1408
mov ecx, 0x5d1330
call fcn.00423950
test eax, eax
jne 0x49c42f
pop edi
pop esi
pop ebx
add esp, 0x410
ret
push str.data_
push 0x5d1408
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 0x5d1408
push 0x4e37b8
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 0x49c4d9
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.0049c3c0
add esp, 4
lea eax, [esp + 0x214]
push eax
call esi
cmp eax, 1
jne 0x49c4d9
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x218]
push ecx
push edx
call fcn.00425de0
add esp, 0xc
mov eax, dword [esp + 0x428]
test eax, eax
jne 0x49c505
mov esi, dword [esp + 0x424]
mov edi, dword [esp + 0x420]
push 0x5d1408
push 0x4e33c0
push esi
push edi
call ebx
add esp, 0x10
jmp 0x49c525
mov esi, dword [esp + 0x424]
mov edi, dword [esp + 0x420]
push eax
push 0x5d1408
push 0x4e37b8
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 0x4a2c10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d190e
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.00499f60
lea ebx, [esi + 0x28]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x20], edi
mov dword [esi + 0x24], 0x4d3b50
call fcn.004c2140
lea ebp, [esi + 0x30]
mov byte [esp + 0x20], 1
mov ecx, ebp
call fcn.004a1730
push edi
lea ecx, [esi + 0x54]
mov byte [esp + 0x24], 2
call fcn.0047be90
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], 0x4d677c
mov dword [esi + 0x24], 0x4d676c
mov dword [ebx], 0x4d6740
mov dword [ebp], 0x4d6738
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 0x4a56b0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
cmp eax, 0x3fe
push edi
mov ebx, ecx
jne 0x4a5734
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.00466890
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 0x4a5787
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 0x4a5787
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.00466890
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 0x4a5cd0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004a67c0
mov ax, word [0x4f5820]
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 [0x5d1134]
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 [0x5d1134]
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 [0x5d1134]
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.0043b770
mov edx, dword [esi + 0x14]
push 0x41d
push edx
mov ecx, edi
call fcn.0043bc30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4a5e00
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x5d1634]
push edi
mov eax, dword [esi + 8]
push eax
call fcn.004b5380
mov dword [esp + 0x10], eax
mov ax, word [0x4f5820]
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 [0x5d1134]
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 [0x5d1134]
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 [0x5d1134]
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.0043b770
mov eax, dword [esi + 0x14]
push 0x41d
push eax
lea ecx, [esi + 0x1270]
call fcn.0043bc30
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4a601c
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 0x4a6030
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x208
mov ax, word [0x4f5820]
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 [0x5d1134]
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 [0x5d1134]
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 0x4a7570
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 0x4a75a3
lea eax, [esi + 0x1b34]
push eax
push 0
push 0
push 0x4ad040
push 0
push 0
call edi
add esp, 0x18
mov dword [esi + 0x1b30], eax
mov eax, dword [esi + 0x1b28]
test eax, eax
jne 0x4a75cc
lea ecx, [esi + 0x1b2c]
push ecx
push 0
push 0
push 0x4ad0d0
push 0
push 0
call edi
add esp, 0x18
mov dword [esi + 0x1b28], eax
mov eax, dword [esi + 0x1b38]
test eax, eax
jne 0x4a75f4
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 0x4a7720
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d1b1b
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 0x4a787e
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 0x32
jae 0x4a787e
mov eax, dword [esp + 0x4e0]
test eax, eax
je 0x4a787e
mov al, byte [esi + 4]
test al, al
jne 0x4a787e
mov eax, dword [esi + 8]
test eax, eax
jne 0x4a787e
mov edi, dword [sym.imp.MSVCRT.dll__snwprintf]
push ebx
push 0x4e33c0
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 0x4e33c0
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.004ae610
lea eax, [esp + 0x10]
mov edi, 2
push eax
mov dword [esp + 0x14], edi
call fcn.004af1c0
add esp, 4
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4a786b
cmp dword [esp + 0x10], edi
jne 0x4a786b
lea ecx, [esp + 0x21c]
call fcn.004c49e0
lea edx, [esp + 0x14]
lea ecx, [esp + 0x21c]
push edx
mov dword [esp + 0x4d8], 0
call fcn.004c4fa0
push eax
push ebp
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4a7899
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004afc20
mov ecx, eax
call fcn.004be530
lea ecx, [esp + 0x21c]
mov dword [esp + 0x4d4], 0xffffffff
call fcn.004c4a60
mov ecx, dword [esp + 0x4e0]
mov dword [esi + 0x1c], edi
push ecx
push ebx
mov ecx, esi
call fcn.004a7600
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.004c4a60
jmp 0x4a787e
Function at 0x4a8220
Capabilities:
Delete file

Disassembly:
mov eax, 0x32e10
call fcn.0049bb40
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 3
jne 0x4a8263
cmp dword [esi], 2
je 0x4a8263
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4a8255
push 1
call fcn.004afc20
mov ecx, eax
call fcn.004be930
mov ecx, esi
call fcn.004a7100
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x32e10
ret 0x10
mov ebx, dword [esp + 0x32e20]
test ebx, ebx
jne 0x4a827c
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x32e10
ret 0x10
mov al, byte [0x633f74]
test al, 1
jne 0x4a82a7
mov dl, al
mov ecx, 0x5d16f0
or dl, 1
mov byte [0x633f74], dl
call fcn.00412b70
push 0x4a84b0
call fcn.0049bba2
add esp, 4
push ebp
push edi
mov ecx, 0x5d16f0
call fcn.00412f90
mov ecx, 0x5d16f0
call fcn.00413230
mov ecx, 0x5d16f0
call fcn.00412fb0
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x412
xor eax, eax
mov edi, 0x62e9c8
push 0x4e33c0
push 0x824
push 0x62e9c8
rep stosd dword es:[edi], eax
call ebx
add esp, 0x10
add esi, 0xf0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4ef9c8
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
test eax, eax
je 0x4a831a
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push esi
mov ecx, 0x82
xor eax, eax
mov edi, 0x62e5b8
push 0x4e33c0
push 0x104
rep stosd dword es:[edi], eax
push 0x62e5b8
call ebx
mov esi, dword [esp + 0x32e34]
mov ebp, dword [esp + 0x32e3c]
add esp, 0x10
mov dword [0x5d3b48], 1
test esi, esi
mov dword [0x5d3d80], 0x4a8450
mov dword [0x5d3d7c], 0
je 0x4a8414
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp ebp, 2
mov edx, eax
jne 0x4a83db
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, 0x5d3b64
mov dword [0x5d3b60], ecx
mov ecx, 0x82
mov dword [0x5d3b5c], edx
push str.application_x_www_form_urlencoded
rep stosd dword es:[edi], eax
jmp 0x4a8400
mov eax, dword [esp + 0x32e30]
mov ecx, 0x82
mov dword [0x5d3b60], eax
xor eax, eax
mov edi, 0x5d3b64
mov dword [0x5d3b5c], esi
rep stosd dword es:[edi], eax
push str.multipart_form_data__boundary___________________________7d81d4371304a2
push 0x4e33c0
push 0x104
push 0x5d3b64
call ebx
add esp, 0x10
mov ecx, 0x5d16f0
mov dword [0x5d3d88], 0x7530
call fcn.00412f30
pop edi
cmp ebp, 1
pop ebp
jne 0x4a8439
mov ecx, 0x5d16f0
call fcn.00413230
pop esi
mov eax, 1
pop ebx
add esp, 0x32e10
ret 0x10
Function at 0x4a85f0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1ba0
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 0x4f3cd0
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 0x4a87ce
push ebx
lea ecx, [ebp - 0x118]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4a870a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [ebp - 0x118]
push 0x4f3ccc
push edx
call edi
test eax, eax
jne 0x4a8751
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.0049c3f0
add esp, 0xc
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4a8719
lea eax, [ebp - 0x320]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a8719
push eax
push str.Create_File_failure_
mov ecx, esi
call fcn.004ad210
mov ecx, esi
mov dword [esi + 0x24], 0xc
call fcn.004a7d80
mov ecx, esi
call fcn.004a7f30
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x4a87ce
push 1
call fcn.004af070
add esp, 4
lea ecx, [ebp - 0x320]
push ecx
mov ecx, esi
call fcn.004a84f0
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 0x4a876c
mov dword [esi + 0x24], 6
jmp 0x4a87a9
lea eax, [ebp - 0x118]
push str.USERNAME_ILLEGA
push eax
call edi
test eax, eax
jne 0x4a8787
mov dword [esi + 0x24], 9
jmp 0x4a87a9
lea ecx, [ebp - 0x118]
push str.PASSWORD_ILLEGAL
push ecx
call edi
test eax, eax
jne 0x4a87a2
mov dword [esi + 0x24], 0xa
jmp 0x4a87a9
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.004ad210
jmp 0x4a87ce
push 0
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 8], 0
call fcn.004ae6e0
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