joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488d63
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x488d83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004887ba
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x488da6
test byte [esp + 8], 2
je 0x488da6
call fcn.0048882d
mov dword [eax], 0xd
call fcn.00488836
mov dword [eax], 5
jmp 0x488d7f
xor eax, eax
ret

Function at 0x49983a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x499872
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004978c7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049789f
jmp 0x49987e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49af2b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49af6d
call fcn.004a09e9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49af6d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49af64
xor eax, eax
jmp 0x49af75
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049af7b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a0f19
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a0f47
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a0f65
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a0e7f
jmp 0x4a0f65
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a0f65
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a0e7f
test edi, edi
mov eax, edi
jne 0x4a0f4f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x46e7f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046e3dd

Function at 0x46ed24
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042d530
mov eax, dword [0x49a040]
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.0046b883
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46ed66
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46eec2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00482380
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 + 0x5734c8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004702b7
mov ecx, dword [esi*4 + 0x5734c8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x46eebb
cmp eax, dword [edi + ecx + 0x24]
jne 0x46eebb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46eebb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004702b7
add esp, 0x14
test edx, edx
jl 0x46eebb
jg 0x46ee31
test eax, eax
jb 0x46eebb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46eebb
jl 0x46ee4b
cmp dword [ebp - 0x1008], eax
ja 0x46eebb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46ee69
test ebx, ebx
je 0x46eea2
cmp ecx, edi
jae 0x46eea2
mov al, byte [ecx]
cmp al, 0xd
jne 0x46ee83
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46ee8f
cmp byte [ecx + 1], 0xa
jne 0x46ee8f
inc ecx
jmp 0x46ee8f
movzx eax, al
movsx eax, byte [eax + 0x49a320]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46ee69
cmp edx, ebx
jne 0x46ee69
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46eec0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042c38b
leave
ret
Function at 0x46f440
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x5734c8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46f480
cmp byte [ebx], 0xa
jne 0x46f480
or byte [eax + edi + 0x28], 4
jmp 0x46f485
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46f583
mov al, byte [edx]
cmp al, 0x1a
je 0x46f565
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46f4b4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46f4d9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46f4e3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46f496
jmp 0x46f583
push 0
lea eax, [ebp - 0xc]
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 0x46f560
cmp dword [ebp - 0xc], 0
je 0x46f560
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5734c8]
test byte [eax + edi + 0x28], 0x48
je 0x46f53a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46f525
mov byte [esi], dl
jmp 0x46f536
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5734c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46f583
cmp byte [ebp - 1], 0xa
jne 0x46f549
cmp esi, ebx
jne 0x46f549
mov byte [esi], 0xa
jmp 0x46f582
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004702d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46f583
mov byte [esi], 0xd
jmp 0x46f582
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5734c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46f57f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46f583
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46f58c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5734c8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46f5cf
cmp word [esi], dx
jne 0x46f5cf
or byte [edi + eax + 0x28], 4
jmp 0x46f5d4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46f727
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46f707
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46f616
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46f64c
cmp eax, edx
jae 0x46f658
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46f5ee
jmp 0x46f727
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46f703
cmp dword [ebp - 0x14], 0
je 0x46f703
mov eax, dword [ebx*4 + 0x5734c8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46f6db
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46f6a4
mov word [esi], cx
jmp 0x46f6d7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5734c8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5734c8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5734c8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46f727
pop ebx
cmp word [ebp - 4], bx
jne 0x46f6ec
cmp esi, dword [ebp + 0xc]
jne 0x46f6ec
mov word [esi], bx
jmp 0x46f724
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004702d5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46f727
push 0xd
jmp 0x46f720
mov ecx, dword [ebx*4 + 0x5734c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46f71e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46f727
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4878b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x49a040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
push 1
call fcn.0042c39e
mov cl, byte [0x491c7c]
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
xor esi, esi
mov byte [esp + 0x20], cl
xor edi, edi
mov byte [esp + 0x21], 0
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
nop dword [eax]
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x491de0]
movss dword [esp + 0x14], xmm0
cmp esi, edi
je 0x487926
movss dword [esi], xmm0
add esi, 4
mov dword [esp + 0x20], esi
jmp 0x48793d
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00408170
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
inc ebx
cmp ebx, 0xa
jl 0x487900
mov eax, dword [esp + 0x1c]
xor ebx, ebx
sub esi, eax
xor ecx, ecx
mov edx, esi
xor ebp, ebp
sar edx, 2
mov dword [esp + 0x14], edx
test edx, edx
je 0x4879cd
cmp edx, 0x3fffffff
ja 0x487ada
lea ebp, [edx*4]
cmp ebp, 0x1000
jb 0x4879a2
lea eax, [ebp + 0x23]
cmp eax, ebp
jbe 0x487adf
push eax
call fcn.0042c39e
add esp, 4
test eax, eax
je 0x487ae4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
mov eax, dword [esp + 0x1c]
jmp 0x4879b9
test ebp, ebp
je 0x4879b7
push ebp
call fcn.0042c39e
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x1c]
jmp 0x4879b9
xor ebx, ebx
push esi
push eax
push ebx
add ebp, ebx
call fcn.0042e280
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [ebx + eax*4]
sub ecx, ebx
sar ecx, 2
test ecx, ecx
je 0x487a5b
xor esi, esi
nop dword [eax]
movzx eax, byte [esi + 0x570b00]
mov edx, str.Own_head
xor al, 0x73
sub al, 0x6c
xor al, 0x74
mov byte [esi + 0x570b00], al
call fcn.00405ba0
push eax
call fcn.00405db0
movzx eax, byte [esi + 0x570b00]
add esp, 4
add al, 0x4e
mov edx, str.Earth
xor al, 0xdc
mov byte [esi + 0x570b00], al
call fcn.00405ba0
push eax
call fcn.00405db0
movzx eax, byte [esi + 0x570b00]
add esp, 4
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x491cdc
mov byte [esi + 0x570b00], al
call fcn.0045676a
xor byte [esi + 0x570b00], al
add esp, 4
inc esi
cmp esi, 0x4ac
jb 0x4879e0
test ebx, ebx
je 0x487a88
sub ebp, ebx
mov eax, ebx
and ebp, 0xfffffffc
cmp ebp, 0x1000
jb 0x487a7e
mov ebx, dword [eax - 4]
add ebp, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487ae4
push ebp
push ebx
call fcn.0042c3ce
add esp, 8
push 1
push dword [esp + 0x1c]
call fcn.0042c3ce
mov ecx, dword [esp + 0x24]
add esp, 8
test ecx, ecx
je 0x487ac7
sub edi, ecx
mov eax, ecx
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x487abd
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487ae4
push edi
push ecx
call fcn.0042c3ce
add esp, 8
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c38b
add esp, 0x2c
ret
call fcn.004079e0
call fcn.00401520
call fcn.00456c11
int3
Function at 0x4063a4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d8c], 0
push esi
jne 0x4063db
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4063b5
mov dword [ecx*4 + 0x426d88], eax
inc ecx
cmp ecx, 0x100
jl 0x4063b0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40640c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d88]
xor eax, esi
inc ecx
dec edx
jne 0x4063ee
pop edi
not eax
pop esi
ret 0xc

Function at 0x4872bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x4872ce
pop dword [ebp - 0x24]
mov eax, 0xd100afb8
add eax, 0x2f47c316
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x66d72
push 0
mov eax, 0x875bb799
add eax, 0x78e458ff
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xaba58931
add ecx, 0x545acbcf
mov ebx, eax
mov esi, 0xf5a967ba
sub esi, 0xf55823ba
add esi, dword [ebp - 0x24]
mov edi, 0x38eb1505
add edi, 0x6a215ef2
add dword [ebp - 0x10], 0x7409b550
mov edx, dword [esi]
add dword [ebp - 0xc], 0x784548ee
xor edx, edi
xor dword [ebp - 8], 0xba3524ec
mov dword [ebx], edx
add ebx, 0xdbfe96
sub ebx, 0xdbfe92
add esi, 0x7380aa95
add esi, 0x8c7f556f
loop 0x48732d
add eax, 0xb20b5c97
sub eax, 0xb20a15c4
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xbbb01caf
sub ecx, 0xbb701caf
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x40b9e0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x43c060]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
push ecx
push 0
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40ba58
push 0
call dword [sym.imp.MSVCR110.dll_exit]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xb7
jne 0x40ba72
push 0
call dword [sym.imp.MSVCR110.dll_exit]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041db86
mov esp, ebp
pop ebp
ret 4
Function at 0x40c680
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43c060]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x40c6a9
mov eax, 2
imul eax, eax, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
test edx, edx
jne 0x40c6ae
jmp 0x40c80b
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x40c6d8
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jge 0x40c801
push str._install
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40c707
mov byte [0x43ec9c], 1
push str._ccleaner
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40c72a
mov byte [0x43ec94], 1
push str._update
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40c74d
mov byte [0x43ec9b], 1
push str._asp
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40c770
mov byte [0x43ec98], 1
push str._regclean
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40c793
mov byte [0x43ec97], 1
push str._flash
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40c7b6
mov byte [0x43ec96], 1
push 0x425f10
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40c7d9
mov byte [0x43ec95], 1
push str._overtime
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40c7fc
mov byte [0x43ec9a], 1
jmp 0x40c6cf
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041db86
mov esp, ebp
pop ebp
ret
Function at 0x40d090
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ffcf
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x43c060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x428], ecx
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
push str.isafe
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.proxyUpdate.ini
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov byte [ebp - 0x421], 1
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d165
mov byte [ebp - 0x421], 0
push 0x20c
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x430], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x430], 0
je 0x40d1a5
push 1
lea ecx, [ebp - 0x420]
push ecx
mov ecx, dword [ebp - 0x430]
call fcn.00415fd0
mov dword [ebp - 0x42c], eax
jmp 0x40d1af
mov dword [ebp - 0x42c], 0
mov edx, dword [ebp - 0x42c]
mov dword [ebp - 0x434], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x434]
mov dword [eax], ecx
movzx edx, byte [ebp - 0x421]
test edx, edx
jne 0x40d1e6
mov ecx, dword [ebp - 0x428]
call fcn.0040d990
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041db86
mov esp, ebp
pop ebp
ret
Function at 0x40e700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43c060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40e785
push 0x43091c
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test edi, edi
je 0x40e770
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041db86
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041db86
mov esp, ebp
pop ebp
ret

Function at 0x40eaf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
test edi, edi
je 0x40eb96
test edx, edx
je 0x40eb96
push ebx
mov ebx, dword [edi + 0x3c]
add ebx, edi
je 0x40eb1b
lea eax, [ebx + 0x78]
test eax, eax
jne 0x40eb23
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
add eax, edi
push esi
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x20]
add ecx, edi
add esi, edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 4], esi
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x40eb7a
lea esp, [esp]
movsx eax, word [ecx + esi*2]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push edx
mov eax, dword [eax + esi*4]
add eax, edi
push eax
call dword [sym.imp.MSVCR110.dll__stricmp]
add esp, 8
test eax, eax
je 0x40eb83
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
inc esi
cmp esi, dword [ebp - 8]
jb 0x40eb50
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
pop esi
mov eax, dword [ecx + eax*4]
add eax, dword [ebx + 0x34]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40f470
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x43f0dc], 0
push ebx
mov ebx, edx
jne 0x40f5f5
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
mov dword [0x43f0e0], eax
xor eax, eax
push edi
mov edi, dword [sym.imp.MSVCR110.dll_wcscat_s]
mov word [0x43ecc8], ax
mov esi, 0x208
test edx, edx
je 0x40f4e3
mov ecx, edx
lea edi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f4b0
sub ecx, edi
sar ecx, 1
je 0x40f4dd
push edx
push 0x208
push 0x43ecc8
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
mov edi, dword [sym.imp.MSVCR110.dll_wcscat_s]
jmp 0x40f575
mov edi, dword [sym.imp.MSVCR110.dll_wcscat_s]
push 0x208
push 0x43ecc8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x43ecc8
call dword [sym.imp.MSVCR110.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x40f50f
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, 0x43ecc8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f517
sub ecx, edx
sar ecx, 1
mov eax, esi
sub eax, ecx
push 0x430b38
push eax
lea eax, [ecx*2 + 0x43ecc8]
push eax
call edi
add esp, 0xc
push 0
push 0x43ecc8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x43ecc8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f552
sub ecx, edx
sar ecx, 1
mov eax, esi
sub eax, ecx
push 0x430b40
push eax
lea eax, [ecx*2 + 0x43ecc8]
push eax
call edi
add esp, 0xc
test ebx, ebx
je 0x40f5a6
mov ecx, 0x43ecc8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f584
sub ecx, edx
sar ecx, 1
mov eax, esi
sub eax, ecx
push ebx
push eax
lea eax, [ecx*2 + 0x43ecc8]
push eax
call edi
add esp, 0xc
mov edx, dword [ebp + 8]
test edx, edx
je 0x40f5d9
mov ecx, 0x43ecc8
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f5b5
sub ecx, edi
sar ecx, 1
push edx
sub esi, ecx
lea eax, [ecx*2 + 0x43ecc8]
push esi
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0xc
push 0x40f270
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
pop edi
mov dword [0x43f0d8], eax
mov dword [0x43f0dc], 1
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret