joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488190
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.004cb570
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x9c]
test ebx, ebx
je 0x488205
cmp ebx, dword [esi]
je 0x4881fc
test edi, edi
je 0x4881e2
cmp dword [esp + 0xa0], eax
jge 0x4881fc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004cb553
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x48820b
mov ebx, dword [esi]
test ebx, ebx
je 0x4881e2
push ebp
test edi, edi
je 0x4882dd
push ebx
call fcn.00443130
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x48823b
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.00439d30
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x488295
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.00459020
add esp, 0xc
test eax, eax
je 0x48838a
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.004591d0
add esp, 0xc
test eax, eax
je 0x48838a
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.004591e0
add esp, 0xc
test eax, eax
je 0x48838a
jmp 0x4882ba
cmp eax, 0x80
ja 0x48838a
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.004cee70
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x4882e5
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.004cb5a0
add esp, 0xc
jmp 0x4882e5
test eax, eax
je 0x488376
xor eax, eax
jmp 0x4882f0
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x80
jl 0x4882f0
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.00459020
add esp, 0xc
test eax, eax
je 0x48838a
push ebx
call fcn.00443130
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004591d0
add esp, 0x10
test eax, eax
je 0x48838a
xor eax, eax
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x80
jl 0x488334
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.00459020
add esp, 0xc
test eax, eax
je 0x48838a
push ebx
call fcn.00443130
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004591d0
add esp, 0x10
test eax, eax
je 0x48838a
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.00459370
add esp, 8
test eax, eax
jne 0x48838e
xor eax, eax
jmp 0x488393
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cb553
add esp, 0x88
ret
Function at 0x4af630
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa4
call fcn.004cb570
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x18], esi
sub esi, edi
xor ebp, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
cmp ebx, edi
jae 0x4af69a
push str.orig_len___md_size
push pe_nt_image_headers32
push str.._ssl_s3_cbc.c
call fcn.00439d30
add esp, 0xc
cmp edi, 0x40
jbe 0x4af6b6
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.00439d30
add esp, 0xc
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0x3f
lea edx, [edi + 0x100]
lea ecx, [esp + ecx + 0x30]
mov dword [esp + 0x1c], ecx
cmp ebx, edx
jbe 0x4af6e0
mov eax, ebx
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x10], eax
mov ebp, eax
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
xor edx, edx
div edi
push edi
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], ebx
call fcn.004cb5a0
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor esi, esi
cmp edx, dword [esp + 0xc4]
jae 0x4af7bf
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub edx, ecx
mov ebx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xbc]
mov edx, dword [edx + 0xc]
shr eax, 0x1f
shr ebx, 0x1f
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x4af758
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
add ecx, ebx
shr ecx, 0x1f
xor cl, al
mov edx, ebp
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, ebx
mov bl, byte [esp + 0x2c]
shr eax, 0x1f
xor al, bl
xor bl, dl
or al, bl
xor al, dl
dec al
xor cl, dl
mov edx, dword [esp + 0x14]
mov dl, byte [edx + ebp]
not al
inc dword [esp + 0x10]
and al, dl
dec cl
and al, cl
mov ecx, dword [esp + 0x1c]
or byte [esi + ecx], al
inc esi
mov eax, esi
sub eax, edi
xor eax, edi
mov ecx, esi
xor ecx, edi
or eax, ecx
xor eax, esi
shr eax, 0x1f
neg eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0xc4]
jb 0x4af750
mov ebx, dword [esp + 0x24]
xor eax, eax
test edi, edi
jbe 0x4af7f6
mov esi, dword [esp + 0x1c]
mov edx, ebx
xor edx, 0x20
mov cl, byte [edx + esi]
mov dl, byte [ebx + esi]
mov ecx, dword [esp + 0x28]
mov byte [ecx + eax], dl
inc ebx
mov edx, ebx
sub edx, edi
xor edx, edi
mov ecx, ebx
xor ecx, edi
or edx, ecx
xor edx, ebx
shr edx, 0x1f
neg edx
inc eax
and ebx, edx
cmp eax, edi
jb 0x4af7c5
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cb553
add esp, 0xa4
ret
Function at 0x4cb553
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x542c54]
jne 0x4cb55d
repz ret
jmp fcn.004d6c4c
Function at 0x4e234b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004d54fa
and dword [ebp - 4], 0
cmp dword [0x549da4], 0
mov ebx, eax
jne 0x4e23fc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4e24ad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x52e630
push edi
call esi
test eax, eax
je 0x4e24ad
push eax
call fcn.004d5488
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x549da4], eax
call esi
push eax
call fcn.004d5488
mov dword [esp], 0x52e60c
push edi
mov dword [0x549da8], eax
call esi
push eax
call fcn.004d5488
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x549dac], eax
call esi
push eax
call fcn.004d5488
pop ecx
mov dword [0x549db4], eax
test eax, eax
je 0x4e23fc
push 0x52e5d8
push edi
call esi
push eax
call fcn.004d5488
pop ecx
mov dword [0x549db0], eax
mov eax, dword [0x549db0]
cmp eax, ebx
je 0x4e2454
cmp dword [0x549db4], ebx
je 0x4e2454
push eax
call fcn.004d5503
push dword [0x549db4]
mov esi, eax
call fcn.004d5503
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4e2454
test edi, edi
je 0x4e2454
call esi
test eax, eax
je 0x4e244b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4e244b
test byte [ebp - 0xc], 1
jne 0x4e2454
or dword [ebp + 0x10], 0x200000
jmp 0x4e248d
mov eax, dword [0x549da8]
cmp eax, ebx
je 0x4e248d
push eax
call fcn.004d5503
pop ecx
test eax, eax
je 0x4e248d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4e248d
mov eax, dword [0x549dac]
cmp eax, ebx
je 0x4e248d
push eax
call fcn.004d5503
pop ecx
test eax, eax
je 0x4e248d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x549da4]
call fcn.004d5503
pop ecx
test eax, eax
je 0x4e24ad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4e24af
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42c7e2
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.0042c78b
test eax, eax
je 0x42c93b
lea ecx, [esp + 0x18]
call fcn.0042c78b
lea ecx, [esp + 0x18]
test eax, eax
je 0x42c8aa
call fcn.0042c78b
test eax, eax
je 0x42c86c
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.0042c78b
lea edi, [eax + edi*2]
dec ebx
jne 0x42c842
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x42c863
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x42c866
mov byte [edx], 0
inc edx
jmp 0x42c94d
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x42c8a2
test ecx, ecx
je 0x42c936
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42c894
jmp 0x42c932
xor ebp, ebp
inc ebp
jmp 0x42c936
call fcn.0042c7c1
test edi, edi
jne 0x42c8df
cmp eax, 2
jne 0x42c8da
lea ecx, [esp + 0x18]
call fcn.0042c7c1
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x42c936
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x42c8cf
jmp 0x42c932
sub eax, 3
jmp 0x42c8e2
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.0042c7c1
mov ecx, eax
cmp esi, 0x7d00
jb 0x42c909
inc ecx
cmp esi, 0x500
jb 0x42c912
inc ecx
cmp esi, 0x80
jae 0x42c91d
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x42c936
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42c929
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x42c953
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x42c812
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42cad8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x42cb0a
mov al, byte [esp + 0x14]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [esp + 0x10]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x42caeb
jmp 0x42cb0e
mov eax, dword [esp + 0x10]
test edi, edi
je 0x42cb18
xor byte [esi], al
inc esi
dec edi
jne 0x42cb12
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x6e602279
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x33774eb
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402447
Capabilities:
Read .ini file

Disassembly:
call fcn.00402409
mov ecx, eax
jmp fcn.00404999
Function at 0x404d2a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4570ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x208
lea eax, [ebp - 0x414]
push esi
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x418], ebx
call fcn.0041f990
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0041f990
mov eax, dword [ebx + 0x24]
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x41c], ecx
cmp ecx, eax
je 0x404e9a
mov esi, ebx
push edi
mov ebx, dword [ecx + 0x14]
lea edi, [ebx + 0xc]
push edi
call fcn.00423bc4
pop ecx
test eax, eax
jle 0x404e7d
push edi
lea eax, [ebp - 0x414]
push str.Is_s
push eax
call fcn.00405d8a
mov esi, dword [ebp - 0x418]
add esp, 0xc
add esi, 0x78
cmp dword [esi + 0x14], 8
jb 0x404dc2
mov eax, dword [esi]
jmp 0x404dc4
mov eax, esi
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x43caf8
lea eax, [ebp - 0x414]
push eax
push str.HotKey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push 0x43caf8
push eax
call fcn.00423b84
pop ecx
pop ecx
test eax, eax
je 0x404e11
lea eax, [ebp - 0x20c]
push eax
call fcn.00424653
pop ecx
mov ecx, dword [ebx + 4]
mov byte [ecx], al
push edi
lea eax, [ebp - 0x414]
push str.Use_s
push eax
call fcn.00405d8a
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x404e2e
mov esi, dword [esi]
push esi
push 0x104
lea eax, [ebp - 0x20c]
mov esi, str.nothing
push eax
push esi
lea eax, [ebp - 0x414]
push eax
push str.HotKey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00423b84
pop ecx
pop ecx
test eax, eax
je 0x404e77
lea eax, [ebp - 0x20c]
push eax
push dword [ebx + 8]
call fcn.00423907
pop ecx
pop ecx
mov esi, dword [ebp - 0x418]
lea ecx, [ebp - 0x41c]
call fcn.00416b97
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0x41c]
cmp ecx, dword [eax]
jne 0x404d85
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00413200
mov esp, ebp
pop ebp
ret

Function at 0x408364
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0
mov ecx, dword [esi + 0x2f4]
mov eax, dword [ecx]
call dword [eax + 0xd8]
mov ecx, dword [esi + 0x2f0]
push 1
mov eax, dword [ecx]
call dword [eax + 0xd8]
pop esi
ret
push esi
mov esi, ecx
mov ecx, dword [esi + 0x66c]
mov byte [esi + 0x6ac], 0
call dword [sym.imp.DuiLib32.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
and dword [esi + 0x6b0], 0
push 0x64
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x670], 2
mov ecx, esi
pop esi
jmp fcn.00408ba7
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x6b4]
jmp 0x40811d
mov ecx, dword [esi]
push 0
call fcn.00406fda
add esi, 4
cmp esi, dword [edi + 0x6b8]
jne 0x408111
mov ecx, edi
pop edi
pop esi
jmp fcn.00407fe5
mov eax, dword [ecx + 0x670]
test eax, eax
je 0x408394
cmp eax, 1
je 0x40838f
jle 0x408399
cmp eax, 3
jle 0x40838a
cmp eax, 4
jne 0x408399
mov ecx, dword [ecx + 0x66c]
jmp 0x406bd3
jmp 0x408105
jmp 0x407fad
jmp fcn.00407fe5
ret
Function at 0x409f84
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x4570ac]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0041e06e
test eax, eax
je 0x409fa7
push str.WnRegIme64.exe
jmp 0x409fac
push str.WnRegIme32.exe
call fcn.00409b58
mov ecx, eax
call fcn.00414671
push eax
lea eax, [ebp - 0x20c]
push 0x440058
push eax
call fcn.00405d8a
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a036
lea eax, [ebp - 0x414]
push str._InstallIME
push eax
call fcn.00405d8a
pop ecx
pop ecx
call fcn.00417684
test eax, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
je 0x40a011
call fcn.0041d738
pop ecx
pop ecx
jmp 0x40a036
lea eax, [ebp - 0x61c]
push str.__s___s
push eax
call fcn.00405d8a
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0041d841
add esp, 0x20
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00413200
mov esp, ebp
pop ebp
ret

Function at 0x40a04b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
xor ebx, ebx
cmp al, 1
jne 0x40a073
push ebx
push ebx
push ebx
push 0x14
call esi
push ebx
push 2
push ebx
push 0x14
call esi
push 0x90
call edi
cmp al, 1
jne 0x40a090
push ebx
push ebx
push ebx
mov edi, 0x90
push edi
call esi
push ebx
push 2
push ebx
push edi
call esi
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x40a096
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4570ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x414]
push esi
xor edi, edi
push edi
push eax
call fcn.0041f990
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0041f990
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._sctfmon.exe
push eax
call fcn.00405d8a
push edi
push edi
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0041d841
mov ecx, dword [ebp - 4]
add esp, 0x1c
xor ecx, ebp
mov al, 1
pop edi
pop esi
call fcn.00413200
mov esp, ebp
pop ebp
ret
Function at 0x40a7b8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4570ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 0xc]
mov ecx, edi
call fcn.0040ac6a
call fcn.00409b58
mov ecx, eax
call fcn.00414671
mov esi, dword [ebx]
mov ecx, eax
mov dword [ebp - 0x210], ecx
jmp 0x40a838
cmp dword [esi + 0x14], 8
jb 0x40a7fc
mov eax, dword [esi]
jmp 0x40a7fe
mov eax, esi
push eax
push ecx
lea eax, [ebp - 0x20c]
push 0x440058
push eax
call fcn.00405d8a
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a82d
push esi
mov ecx, edi
call fcn.0040ac8c
mov ecx, dword [ebp - 0x210]
push 0x18
pop eax
add esi, eax
cmp esi, dword [ebx + 4]
jne 0x40a7f2
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0x18
pop ecx
cdq
idiv ecx
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb al, al
xor ecx, ebp
pop esi
inc al
pop ebx
call fcn.00413200
mov esp, ebp
pop ebp
ret

Function at 0x40af0f
Capabilities:
Check if file exists
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40af6c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40af6c
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40af6c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 8], eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.00413696
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x40af77
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 4]
push esi
push ebx
call fcn.0041f990
add esp, 0xc
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
test edi, edi
je 0x40afcb
push str.c335b80a32136330ebfa2439bf4cbfcb
call fcn.004281e0
mov edx, eax
pop ecx
mov ecx, esi
test edi, edi
je 0x40afcb
mov al, byte [esi + str.c335b80a32136330ebfa2439bf4cbfcb]
xor byte [ecx + ebx], al
inc esi
xor eax, eax
cmp esi, edx
cmovge esi, eax
inc ecx
cmp ecx, edi
jb 0x40afb5
mov ecx, dword [ebp + 0xc]
mov al, 1
mov dword [ecx], ebx
jmp 0x40af6e
Function at 0x40afd4
Capabilities:
Check if file exists
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x4570ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x1869f
push 0x2710
mov esi, ecx
call fcn.00418f98
pop ecx
pop ecx
lea ecx, [esi + 0x34]
cmp dword [ecx + 0x14], 8
jb 0x40b007
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x61c]
push str._s__d
push eax
call fcn.00405d8a
add esp, 0x10
call fcn.0041dba4
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.WanNengWB
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._s_sRepair.exe
push eax
call fcn.00405d8a
add esp, 0x10
lea eax, [ebp - 0x20c]
xor ebx, ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x61c]
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileW
mov ecx, esi
call fcn.0040b158
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b088
xor al, al
jmp 0x40b0d8
cmp word [ebp - 0x20c], bx
je 0x40b0a0
lea eax, [ebp - 0x20c]
push eax
call fcn.00423bc4
pop ecx
mov ebx, eax
push edi
push ebx
lea eax, [ebp - 0x20c]
lea edi, [esi + 0x4c]
push eax
mov ecx, edi
call fcn.00405c1f
cmp dword [esi + 0x14], 8
jb 0x40b0bb
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x40b0c3
mov edi, dword [edi]
push esi
push edi
push str.RepairExePath
push 0x440408
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00413200
mov esp, ebp
pop ebp
ret

Function at 0x40b158
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4570ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 8
jb 0x40b17a
mov eax, dword [esi]
jmp 0x40b17c
mov eax, esi
push eax
push 0
mov edi, str.DownTimes
mov ebx, str.DoRepair
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
inc eax
push eax
lea eax, [ebp - 0x20c]
push 0x43e710
push eax
call fcn.00405d8a
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40b1af
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413200
mov esp, ebp
pop ebp
ret