joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51ccd0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x6b7e64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x51cd3a
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x51cd1f
lea eax, [ebp - 0x158]
push eax
jmp 0x51cd24
push 0x662168
call fcn.0040c120
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0061e015
leave
ret 8
call fcn.004d92e1
int3
Function at 0x524f07
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x524f20
call fcn.004d9873
mov esi, dword [eax + 0xc]
push 0x662c28
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x524f62
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x524f62
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x524f62
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00524f6b
jmp 0x524f64
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5bede0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x5bee0d
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x5bee22
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x5bee22
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004dbb30
jmp 0x5beef3
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004dbb30
cmp eax, edi
jne 0x5beefd
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x5bee8f
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x5beed3
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x5beefd
cmp eax, 0x205
je 0x5beefd
cmp eax, 0x201
je 0x5beefd
cmp eax, 0x204
je 0x5beefd
cmp eax, 0x100
jne 0x5beebb
cmp dword [ebp - 0x18], 0x1b
je 0x5beefd
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x5beef3
ja 0x5beeec
cmp eax, dword [0x6c21c8]
jbe 0x5beef3
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x5bee44
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5bf4a0
Capabilities:
Get file system object information

Disassembly:
push 0x274
mov eax, 0x6520fe
call fcn.0061e807
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040c5f0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x68abc0
call fcn.0040c0e0
cmp eax, 0xffffffff
jne 0x5bf57b
push 0
push 0x662be4
lea ecx, [ebp - 0x278]
call fcn.0040c0e0
cmp eax, 0xffffffff
jne 0x5bf57b
push 0
push 0x659f58
lea ecx, [ebp - 0x278]
call fcn.0040c0e0
cmp eax, 0xffffffff
jne 0x5bf57b
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040c5f0
add eax, 0x10
pop ecx
mov dword [ebp - 0x280], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x114]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x27c], edi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x5bf54a
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x657ac0]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x27c]
mov edi, eax
call fcn.00402680
jmp 0x5bf5b4
lea eax, [ebp - 0x114]
push eax
call fcn.00633800
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.00403490
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402680
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x5bf5a1
mov edi, dword [ebp - 0x274]
jmp 0x5bf5b4
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x657ac0]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00402680
mov eax, edi
call fcn.0061e7b6
ret

Function at 0x5c5b42
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x6b761c], 0
push esi
push edi
je 0x5c5bc9
cmp dword [0x6b7948], 0xfffffffe
jne 0x5c5bb6
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x5c5bc9
mov edi, 0x6c21f4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x6c220c], 0
jne 0x5c5bcd
push 0
push 0
push 0x5c5bd3
call fcn.00633184
add esp, 0xc
mov dword [0x6c220c], eax
test eax, eax
je 0x5c5ba6
cmp eax, 0xffffffff
je 0x5c5ba6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x6b7948], esi
jmp 0x5c5bad
and dword [0x6c220c], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x5c5bc9
mov eax, dword [ebp + 8]
mov dword [0x6b7948], eax
inc eax
neg eax
sbb eax, eax
and dword [0x6c220c], eax
pop edi
pop esi
pop ebp
ret
call fcn.004d92e1
int3
Function at 0x5d911b
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00635b52
pop ecx
test eax, eax
jne 0x5d915d
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00401df0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5d9123
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x61f185
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x61f1c4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x61f1c4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x61f1c4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x61f1c4
cmp dword [ecx + 0x74], 0xe
jbe 0x61f1c4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x6205f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
jne 0x620610
push ebx
push ebx
push ebx
push 2
call fcn.006229f0
pop esi
xor al, al
pop ebx
pop ebp
ret 8
push edi
call fcn.0061fd70
push 2
push 0
push ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
call fcn.0063672b
push ebx
call fcn.00636d8a
push 0
mov edi, eax
push 0
push ebx
mov dword [ebp + 8], edi
call fcn.0063672b
add esp, 0x1c
test edi, edi
jg 0x620662
push 0
push 0
push 0
push 0xc
mov ecx, esi
call fcn.006229f0
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
lea eax, [edi + 1]
push eax
call fcn.004ee196
push ebx
mov ebx, dword [ebp + 8]
mov edi, eax
push 1
push ebx
push edi
mov byte [edi], 0
call fcn.00636388
add esp, 0x14
cmp eax, 1
je 0x6206a6
push edi
call fcn.004eae8e
add esp, 4
mov ecx, esi
push 0
push 0
push 0
push 2
call fcn.006229f0
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov byte [edi + ebx], 0
mov eax, edi
cmp byte [edi], 0
mov ecx, edi
je 0x6206cf
mov dl, byte [eax]
cmp dl, 0xd
jne 0x6206c6
inc eax
mov byte [ecx], 0xa
inc ecx
cmp byte [eax], 0xa
jne 0x6206ca
jmp 0x6206c9
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x6206b3
push dword [ebp + 0xc]
mov byte [ecx], 0
mov ecx, esi
mov eax, dword [esi]
push 0
push edi
call dword [eax + 8]
push edi
call fcn.004eae8e
add esp, 4
xor eax, eax
cmp byte [esi + 0x2c], al
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x636b83
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0061e980
mov eax, dword [0x6b7e64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00636188
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x636bc5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x636d21
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0061ec10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x6c2928]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0063efad
mov ecx, dword [esi*4 + 0x6c2928]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x636d1a
cmp eax, dword [ecx + edi + 0x24]
jne 0x636d1a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x636d1a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0063efad
add esp, 0x14
test edx, edx
jl 0x636d1a
jg 0x636c90
test eax, eax
jb 0x636d1a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x636d1a
jl 0x636caa
cmp dword [ebp - 0x1008], eax
ja 0x636d1a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x636cc8
test ebx, ebx
je 0x636d01
cmp ecx, edi
jae 0x636d01
mov al, byte [ecx]
cmp al, 0xd
jne 0x636ce2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x636cee
cmp byte [ecx + 1], 0xa
jne 0x636cee
inc ecx
jmp 0x636cee
movzx eax, al
movsx eax, byte [eax + 0x6b82a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x636cc8
cmp edx, ebx
jne 0x636cc8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x636d1f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0061e015
leave
ret
Function at 0x63b92d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6859c0
push 0x6859b8
push str.FlsAlloc
push 0x1f
call fcn.0063b7ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x63b961
push dword [ebp + 8]
mov ecx, esi
call dword [0x657ac0]
call esi
jmp 0x63b967
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x63b9ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6859d0
push 0x6859c8
push str.FlsGetValue
push 0x21
call fcn.0063b7ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x63b9e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x657ac0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x63b9ea
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6859d8
push 0x6859d0
push str.FlsSetValue
push 0x22
call fcn.0063b7ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x63ba24
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x657ac0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x63e2ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6c2928]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x63e2eb
cmp byte [ebx], 0xa
jne 0x63e2eb
or byte [edi + eax + 0x28], 4
jmp 0x63e2f0
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x63e3ef
mov dl, byte [eax]
cmp dl, 0x1a
je 0x63e3d2
inc eax
cmp dl, 0xd
je 0x63e31c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x63e342
cmp eax, ecx
jae 0x63e350
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x63e304
jmp 0x63e3ef
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x63e3cd
cmp dword [ebp - 0x10], 0
je 0x63e3cd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x6c2928]
test byte [eax + edi + 0x28], 0x48
je 0x63e3a7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x63e392
mov byte [esi], dl
jmp 0x63e3a3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6c2928]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x63e3ef
cmp byte [ebp - 1], 0xa
jne 0x63e3b6
cmp esi, ebx
jne 0x63e3b6
mov byte [esi], 0xa
jmp 0x63e3ee
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0063efcb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x63e3ef
mov byte [esi], 0xd
jmp 0x63e3ee
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x6c2928]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x63e3ec
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x63e3ef
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x63e3f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x6c2928]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x63e43e
cmp word [ebx], dx
jne 0x63e43e
or byte [eax + edi + 0x28], 4
jmp 0x63e443
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x63e5a6
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x63e586
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x63e484
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x63e4ba
cmp eax, edx
jae 0x63e4c8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x63e45f
jmp 0x63e5a6
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x63e581
cmp dword [ebp - 0x18], 0
je 0x63e581
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x6c2928]
test byte [eax + edi + 0x28], 0x48
je 0x63e557
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x63e51b
mov word [esi], cx
jmp 0x63e552
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x6c2928]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x6c2928]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x6c2928]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x63e5a6
pop eax
cmp word [ebp - 4], ax
jne 0x63e567
cmp esi, ebx
jne 0x63e567
mov word [esi], ax
jmp 0x63e5a3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0063efcb
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x63e5a6
push 0xd
pop eax
jmp 0x63e562
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6c2928]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x63e5a0
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x63e5a6
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x64062d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x6406ca
push ebx
push esi
call fcn.006405f6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0063e031
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x640677
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x6406c9
push edi
push eax
call fcn.00639139
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x640697
call fcn.0063872c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x6406c8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0063e031
add esp, 0x20
test eax, eax
jne 0x6406b6
push edi
call fcn.0063872c
jmp 0x6406be
push ebx
call fcn.0063872c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x6406cd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x6406de
pop esi
ret
push ebx
push edi
push esi
call fcn.006405f6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00639139
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x640706
push ebx
push esi
push edi
call fcn.006239e0
add esp, 0xc
push 0
call fcn.0063872c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x640ad6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0064071b
Function at 0x646185
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00646101
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x6462f4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x6462f4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x6462a9
jg 0x6461e1
test eax, eax
je 0x64629f
push 1
push 0x1000
call fcn.0063b61c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x646204
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x646296
push 0x8000
push ebx
call fcn.006383d9
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x64622d
jg 0x646228
cmp ecx, 0x1000
jb 0x64622d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0063ac89
add esp, 0x10
cmp eax, 0xffffffff
je 0x646272
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x646228
jl 0x646259
test ecx, ecx
jne 0x64621a
push dword [ebp - 0xc]
push ebx
call fcn.006383d9
push esi
call fcn.0063872c
add esp, 0xc
xor ebx, ebx
jmp 0x646302
cmp byte [edi + 0x24], 0
je 0x646289
cmp dword [edi + 0x20], 5
jne 0x646289
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x646294
mov ebx, dword [edi + 0x18]
jmp 0x646296
xor ebx, ebx
push esi
call fcn.0063872c
pop ecx
jmp 0x646302
test ecx, ecx
jg 0x64626b
jl 0x6462a9
test eax, eax
jae 0x64626b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0063efcb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x6462c9
cmp byte [edi + 0x1c], 0
je 0x64626b
jmp 0x6462fa
push ebx
call fcn.00637184
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x64626b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x646302
cmp byte [edi + 0x1c], 0
je 0x6462ff
mov ebx, dword [edi + 0x18]
jmp 0x646302
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0063efcb
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x646a30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x646a5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x646a5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f6fb2
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
mov eax, dword [0x52f4a8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov ecx, esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_]
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 8], 1
call fcn.0046a130
mov dword [esp + 0x38], 1
cmp dword [eax + 0x1c], 8
jb 0x401112
mov eax, dword [eax + 8]
jmp 0x401115
add eax, 8
push eax
push str._sdata
push esi
call dword [sym.imp.LibDui.dll_public:_int___cdecl_DuiLib::CDuiString::Format_wchar_t_const__]
add esp, 0xc
mov byte [esp + 0x38], bl
cmp dword [esp + 0x2c], 8
jb 0x40113d
mov eax, dword [esp + 0x18]
push eax
call fcn.00476980
add esp, 4
xor ecx, ecx
mov word [esp + 0x18], cx
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
call fcn.00401050
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x34
ret