joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43dfb0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43dfe3
push esi
call fcn.004410a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43dfdc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e069
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e052
mov eax, dword [esi + 8]
test eax, eax
je 0x43e007
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e04e
cmp eax, 2
je 0x43e052
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43dffa
cmp eax, 3
je 0x43e02d
cmp eax, 1
jne 0x43dffa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43dffa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43dffa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e090
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e078
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e090
add esp, 4
pop esi
ret

Function at 0x45c6a8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45c6e0
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.0045a75c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045a734
jmp 0x45c6ec
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45dd96
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 0x45ddd8
call fcn.0046384f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45ddd8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45ddcf
xor eax, eax
jmp 0x45dde0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045dde6
pop edi
pop esi
pop ebx
ret 4

Function at 0x463d7f
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 0x463dad
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x463dcb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00463ce5
jmp 0x463dcb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x463dcb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00463ce5
test edi, edi
mov eax, edi
jne 0x463db5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x420b5b
Capabilities:
Parse pe header

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

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x44b9f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.HSP1
lea edi, [esi - 0x2c000]
push edi
or ebp, 0xffffffff
jmp 0x44ba12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44ba19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44ba08
mov eax, 1
add ebx, ebx
jne 0x44ba2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44ba3c
jne 0x44ba4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44ba4c
dec eax
add ebx, ebx
jne 0x44ba48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x44ba20
xor ecx, ecx
sub eax, 3
jb 0x44ba64
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44bad6
sar eax, 1
mov ebp, eax
jmp 0x44ba6f
add ebx, ebx
jne 0x44ba6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x44ba7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x44baa0
inc ecx
add ebx, ebx
jne 0x44ba8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44ba81
jne 0x44ba9d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44ba81
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44bac0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44bab1
jmp 0x44ba0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44bac0
add edi, ecx
jmp 0x44ba0e
pop esi
mov edi, esi
mov ecx, 0x328
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44bade
cmp byte [edi], 2
jne 0x44bade
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x44bae3
lea edi, [esi + 0x49000]
mov eax, dword [edi]
or eax, eax
je 0x44bb5b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4d140]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4d17c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44bb10
mov ecx, edi
jns 0x44bb3f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4d180]
or eax, eax
je 0x44bb55
mov dword [ebx], eax
add ebx, 4
jmp 0x44bb2d
call dword [esi + 0x4d184]
popal
jmp 0x402940
Function at 0xad6f00
Capabilities:
Encode data using xor

Disassembly:
int 0x40
mov dl, byte [eax - 0x7f6c00ea]
adc dword [esi - 0x45], edx
call dword [ebx - 0x44a9ee80]
inc ebp
jle 0xad6eca
cmp al, 0x88
int 0x21
cmc
movsb byte es:[edi], byte [esi]
mov bl, 0xf5
in eax, dx
or byte [esi], bl
cmp bh, byte [edx]
add byte [ecx], dh
push ebx
or eax, 0x839b34f6
adc cx, word [edi + 0x1d97a3b1]
jg 0xad6ec5
mov dword [0xd47f1d97], eax
shr byte [0xeb7eec2], cl
sar dword [eax + edx*2 - 0x45], cl
sbb byte [edx + 0x2b], 0xcb
inc esp
sub eax, 0x6cc2b3a1
loop 0xad6edb
insd dword es:[edi], dx
sahf
cmp byte [ecx - 0x434ce0f9], dh
in al, dx
not ebp
jg 0xad6eec
sub edx, dword [ecx]
mov eax, 0xaf9d0259
ja 0xad6f73
add eax, 0xc42d1030
cdq
mov edx, 0x1ccadf03
clc
sbb dword [ecx + 0x21f0937d], edi
push 0x27a4b000
mov ebp, 0x7299ebcc
mov eax, 0x11b435ec
salc
push ds
or esp, esp
push eax
sub ebx, ecx
and edx, 0xffffff88
invalid
lea esp, [ecx - 0x80]
mov bl, 0x81
rcr dword [ecx], 0xf1
xor dword [edi - 1], ecx
xchg esi, eax
test al, 0x18
in eax, dx
mov esi, 0xad841cc4
xor byte [ebx - 0xee63e7f], 0x31
dec edi
call dword [esi - 0x4112e758]
les ebx, [esp + eax*4]
lodsd eax, dword [esi]
loope 0xad6f75
xchg edi, edi
xchg esp, eax
wait
ror al, 1
in eax, 0xf1
pop ds
invalid

Function at 0x43cf54
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43ccda
add edx, edx
call fcn.0043cf74
add edi, 0x6912e3e3
xor dword [ebx], eax
inc ebx
mov edx, edx
cmp ebx, ecx
jne fcn.0043cf54
add edi, edi
or edx, edx
ret
Function at 0x403b52
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4093e8
cmp edx, dword [eax]
je 0x403b74
add eax, 8
inc ecx
cmp eax, 0x409478
jl 0x403b65
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4093e8]
jne 0x403ca2
mov eax, dword [0x409c88]
cmp eax, 1
je 0x403c7c
test eax, eax
jne 0x403ba5
cmp dword [0x407234], 1
je 0x403c7c
cmp edx, 0xfc
je 0x403ca2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403bdc
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004047d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004048c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403c1f
lea eax, [ebp - 0x1a4]
push eax
call fcn.004048c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406488
push edi
call fcn.00404e40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004047d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004047e0
lea eax, [ebp - 0xa0]
push 0x406468
push eax
call fcn.004047e0
push dword [esi + 0x4093ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.004047e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404db2
add esp, 0x2c
pop edi
jmp 0x403ca2
lea eax, [ebp + 8]
lea esi, [esi + 0x4093ec]
push 0
push eax
push dword [esi]
call fcn.004048c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0xce04ea
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232d4], 0
push esi
jne 0xce0521
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 0xce04fb
mov dword [ecx*4 + 0x4232d0], eax
inc ecx
cmp ecx, 0x100
jl 0xce04f6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0xce0552
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 + 0x4232d0]
xor eax, esi
inc ecx
dec edx
jne 0xce0534
pop edi
not eax
pop esi
ret 0xc
Function at 0x1000a4c5
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x1000a4f3
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x1000a4ea
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x1000a4e2
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x1000a514
mov esp, ebp
pop ebp
ret

Function at 0x1000a518
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x1000a584
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x1000a5b1
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x1000a5a0
xor ecx, eax
xor edx, ebx
dec edi
jne 0x1000a591
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x1000a5d7
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x1000a578
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x1000a603
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000abf9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x1000ac09
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jle 0x1000ac5e
push dword [ebp + 8]
call fcn.1000ae0a
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
jne 0x1000ac5e
xor eax, eax
jmp 0x1000ac63
mov eax, 1
test eax, eax
je 0x1000ac75
mov eax, 0
jmp 0x1000ae04
push 0x3c
push dword [ebp + 8]
call fcn.1000ae4c
push eax
call fcn.1000ae26
push eax
push dword [ebp + 8]
call fcn.1000ae4c
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.1000ae26
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4550
jne 0x1000acd0
push 0x7c
push dword [ebp - 4]
call fcn.1000ae4c
push eax
call fcn.1000ae26
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x1000acd0
xor eax, eax
jmp 0x1000acd5
mov eax, 1
test eax, eax
je 0x1000ace7
mov eax, 0
jmp 0x1000ae04
push 0x78
push dword [ebp - 4]
call fcn.1000ae4c
push eax
call fcn.1000ae26
push eax
push dword [ebp + 8]
call fcn.1000ae4c
mov dword [ebp - 8], eax
push 0x20
push dword [ebp - 8]
call fcn.1000ae4c
push eax
call fcn.1000ae26
push eax
push dword [ebp + 8]
call fcn.1000ae4c
push eax
call fcn.1000ae26
push eax
push dword [ebp + 8]
call fcn.1000ae4c
mov dword [ebp - 0xc], eax
push 0x18
push dword [ebp - 8]
call fcn.1000ae4c
push eax
call fcn.1000ae26
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
call fcn.1000ae73
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x1000adf7
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.1000ae4c
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.1000ae9a
test eax, eax
je 0x1000adda
push 0x1c
push dword [ebp - 8]
call fcn.1000ae4c
push eax
call fcn.1000ae26
push eax
push dword [ebp + 8]
call fcn.1000ae4c
mov dword [ebp - 0x24], eax
push 4
push dword [ebp - 0x10]
call fcn.1000aece
push eax
push dword [ebp - 0x24]
call fcn.1000ae4c
push eax
call fcn.1000ae26
push eax
push dword [ebp + 8]
call fcn.1000ae4c
jmp 0x1000ae04
push dword [ebp - 0x14]
call fcn.1000aef6
push eax
push dword [ebp - 0x18]
call fcn.1000ae4c
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x1000ad63
add esp, 0xc
mov eax, 0
jmp 0x1000ae04
mov esp, ebp
pop ebp
ret 8

Function at 0x1000df30
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x4fb2
jmp fcn.10001058
Function at 0x401260
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x4012e6
cmp dword [0x41e168], 0
je 0x401276
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
mov ecx, 0x41e1b4
call esi
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
mov dword [0x41e168], eax
jne 0x4012b6
mov ecx, 0x41e1b4
call esi
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [0x41e168], eax
je 0x4012e1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4012cb
mov eax, 1
pop esi
pop ebp
ret
mov eax, dword [0x41e168]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41e168], 0
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [0x41e168]
test eax, eax
je 0x401300
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41e168], 0
mov eax, 1
pop ebp
ret
Function at 0x401e20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4138b3
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x41e130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x3b4], esi
mov dword [ebp - 0x3b0], 0
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
push 1
push 0x2e
lea eax, [ebp - 0x3a8]
push eax
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x3b0], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x401f08
lea ecx, [ebp - 0x3a8]
push ecx
mov ecx, esi
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__]
push 0x5c
push 0x2f
mov ecx, esi
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::Replace_wchar_t__wchar_t_]
push 1
lea edx, [ebp - 0x3ac]
push edx
mov ecx, esi
call dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_]
push 0x5c
push eax
call dword [sym.imp.Common.dll_bool___cdecl_operator__class_CTXStringW_const___wchar_t_]
add esp, 8
lea ecx, [ebp - 0x3ac]
mov bl, al
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
test bl, bl
je 0x401eeb
push 0x5c
mov ecx, esi
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_]
cmp dword [0x41e1c0], 0
mov ecx, esi
je 0x401efd
push str.TencentTM_
jmp 0x401f02
push str.TencentQQ_
call dword [0x416078]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412d02
mov esp, ebp
pop ebp
ret 4
Function at 0x402e20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [ecx + 4]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], ecx
je 0x402fd7
mov ecx, dword [eax]
mov edx, dword [ecx + 0x90]
push 5
push eax
call edx
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x402fc1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jmp 0x402e70
mov eax, dword [ebp - 0x20]
cmp eax, 0x12
je 0x402f4b
cmp eax, 0x10
je 0x402eaf
cmp eax, 2
je 0x402eaf
cmp eax, 0x112
jne 0x402e96
cmp dword [ebp - 0x1c], 0xf060
je 0x402eaf
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x402f34
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xe8], esi
jne 0x402f5b
push esi
call fcn.00402680
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], esi
jne 0x402f5b
mov dword [ebp - 8], str._u7b_t
mov dword [ebp - 0x30], str.file
mov dword [ebp - 0x2c], str.func
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x5c], 0xc7
mov dword [ebp - 0x58], esi
call edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], 2
call ebx
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], esi
call dword [sym.imp.MSVCR80.dll__time64]
lea edx, [ebp - 8]
push edx
push 0x4164dc
lea eax, [ebp - 0x64]
push str.StorageTool
push eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
push esi
push esi
push esi
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x402e70
jmp 0x402fbf
mov dword [ebp - 8], str.WM_QUIT
mov dword [ebp - 0x5c], 0xb9
jmp 0x402f69
mov dword [ebp - 8], 0x41709c
mov dword [ebp - 0x5c], 0xcc
mov dword [ebp - 0x30], str.file
mov dword [ebp - 0x2c], str.func
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x58], esi
call edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], 2
call ebx
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], esi
call dword [sym.imp.MSVCR80.dll__time64]
lea eax, [ebp - 8]
push eax
push 0x4164dc
lea ecx, [ebp - 0x64]
push str.StorageTool
push ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
pop edi
pop ebx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
cmp eax, esi
je 0x402fd7
mov ecx, dword [eax]
mov edx, dword [ecx + 0x90]
push esi
push eax
call edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4138b3
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x41e130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x3b4], esi
mov dword [ebp - 0x3b0], 0
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
push 1
push 5
lea eax, [ebp - 0x3a8]
push eax
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x3b0], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4086f8
lea ecx, [ebp - 0x3a8]
push ecx
mov ecx, esi
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__]
push 0x5c
push 0x2f
mov ecx, esi
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::Replace_wchar_t__wchar_t_]
push 1
lea edx, [ebp - 0x3ac]
push edx
mov ecx, esi
call dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_]
push 0x5c
push eax
call dword [sym.imp.Common.dll_bool___cdecl_operator__class_CTXStringW_const___wchar_t_]
add esp, 8
lea ecx, [ebp - 0x3ac]
mov bl, al
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
test bl, bl
je 0x4086eb
push 0x5c
mov ecx, esi
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_]
push 0x417bbc
mov ecx, esi
call dword [0x416078]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412d02
mov esp, ebp
pop ebp
ret
Function at 0x408720
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4144e2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x41e130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
cmp eax, 0x14
jb 0x40876d
jne 0x408759
cmp dword [esi + 0x34], 0x5e
jb 0x40876d
lea ecx, [esi + 0x3c]
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
neg al
sbb eax, eax
add eax, 1
mov edi, eax
jmp 0x40876f
xor edi, edi
lea ecx, [ebp - 0x10]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
test edi, edi
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov dword [ebp - 4], 0
je 0x408798
add esi, 0x3c
push esi
lea ecx, [ebp - 0x10]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
jmp 0x4087bb
lea eax, [ebp - 0x14]
push eax
call fcn.00408620
add esp, 4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call edi
lea ecx, [ebp - 0x10]
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
lea ecx, [ebp - 0x10]
je 0x4087e7
mov dword [ebp - 4], 0xffffffff
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
mov dword [ebp - 4], ecx
cmp eax, ecx
lea ecx, [ebp - 0x10]
je 0x4087d2
call edi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret