joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405890
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
xor eax, eax
mov edx, dword [esp + 0x98]
mov dword [esp + 9], eax
push ebx
mov dword [esp + 0x11], eax
mov ebx, ecx
mov ecx, dword [esp + 0xa8]
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], ecx
test eax, eax
mov dword [esp + 0x14], edx
je 0x4059d6
mov eax, dword [str.EPIPEMAGQQ]
mov ecx, dword [0x4096ac]
mov dx, word [0x4096b0]
mov dword [esp + 0x18], eax
mov al, byte [0x4096b2]
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2e], al
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x2f]
mov word [esp + 0x2c], dx
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
stosb byte es:[edi], al
mov edi, dword [esp + 0xac]
mov ecx, esi
push edi
call dword [edx]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x28]
push ebp
push edx
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [ebx + 0x10]
lea eax, [esp + 0x14]
push esi
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 8]
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push edx
call edi
test eax, eax
jne 0x4059ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xc
push eax
mov ecx, ebx
call fcn.00405a10
cmp eax, 1
jne 0x4059ca
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x14]
push esi
push eax
push ecx
push ebp
push edx
call edi
test eax, eax
jne 0x4059b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.00405a10
jmp 0x4059ca
cmp dword [esp + 0x14], 0xc
je 0x405983
jmp 0x4059c3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x4059ca
mov ecx, ebx
call fcn.00405a60
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x10

Function at 0x405b00
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [0x40ad84], ecx
mov ecx, esi
call fcn.00405e40
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push 0
push eax
push 0x405b50
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 8
Function at 0x4061b0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call sub.WS2_32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov edi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WS2_32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x4061e6
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
sub eax, 0x61c88647
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x40620d
push esi
call sub.WS2_32.dll_htonl
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call sub.WS2_32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x406280
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi]
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call sub.WS2_32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov esi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WS2_32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x4062b6
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add eax, 0x61c88647
sub edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x4062e0
push edi
call sub.WS2_32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WS2_32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x401090
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4010fe
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4010cf
cmp eax, 2
jne 0x4010ea
test esi, esi
mov eax, dword [esp]
je 0x4010f8
test eax, eax
je 0x4010f3
test al, 1
jne 0x4010ea
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4010f8
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x401370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473868
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push edi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
cmp eax, 0x482018
mov dword [esp + 0xc], ebx
je 0x40144e
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
mov dword [esp + 0x38], ebx
call fcn.00401110
cmp eax, 2
jne 0x4013ea
lea ecx, [esp + 0x10]
push ecx
call fcn.004018d0
add esp, 4
test al, al
jne 0x40140b
lea edx, [esp + 0x10]
push edx
jmp 0x4013ef
lea eax, [esp + 0x10]
push eax
mov edi, 0x482018
call fcn.00401480
add esp, 4
test al, al
jne 0x40140b
mov ecx, edi
lea edx, [esp + 0x10]
call fcn.00401580
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x34]
mov word [ecx + 4], bx
call fcn.00401c60
mov ecx, esi
call fcn.004011d0
add esp, 0x1c
cmp dword [esp + 0x28], 8
jb 0x40145c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00445adc
add esp, 4
jmp 0x40145c
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00445c6a
add esp, 0x30
ret
Function at 0x401480
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x473358
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
xor ebx, ebx
push 0x11
push str.SoftwareClasses_
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00401f70
mov eax, edi
mov dword [esp + 0x3c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4014e1
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00401ea0
push 6
push str.Shell
lea ecx, [esp + 0x1c]
call fcn.00401ea0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x38]
mov word [ecx + 4], bx
call fcn.00401c60
push ebp
mov ecx, SysReAllocString
call fcn.00401670
add esp, 0x20
cmp dword [esp + 0x2c], 8
mov bl, al
jb 0x401552
mov eax, dword [esp + 0x18]
push eax
call fcn.00445adc
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00445c6a
add esp, 0x30
ret
Function at 0x4018d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x473826
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
mov eax, dword [esp + 0x454]
xor ebx, ebx
push 0x3e
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociations_
lea esi, [esp + 0x2c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
call fcn.00401f70
mov eax, 0x482018
mov dword [esp + 0x44c], ebx
lea edx, [eax + 2]
jmp 0x401950
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401950
sub eax, edx
sar eax, 1
push eax
push 0x482018
lea ecx, [esp + 0x2c]
call fcn.00401ea0
push 0xb
push 0x481f04
lea ecx, [esp + 0x2c]
call fcn.00401ea0
mov byte [esp + 0x44c], 1
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x401995
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401a71
mov ebp, dword [esp + 0x18]
push 0x3fe
lea edx, [esp + 0x46]
push ebx
push edx
mov dword [esp + 0x24], ebp
mov word [esp + 0x4c], bx
call fcn.00449450
add esp, 0xc
push str.Progid
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x24]
lea esi, [esp + 0x48]
mov dword [esp + 0x24], 0x200
call fcn.00401090
test eax, eax
jne 0x401a66
cmp word [esp + 0x40], bx
jne 0x401a18
cmp ebp, ebx
je 0x401a0a
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x3c], 8
jb 0x401a85
mov ecx, dword [esp + 0x28]
push ecx
jmp 0x401a7d
mov esi, dword [esp + 0x20]
push esi
lea edi, [esp + 0x44]
call fcn.00401480
add esp, 4
test al, al
jne 0x401a3c
mov ecx, edi
mov edx, esi
call fcn.00401580
mov byte [esp + 0x17], al
jmp 0x401a41
mov byte [esp + 0x17], 1
cmp ebp, ebx
je 0x401a4c
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x3c], 8
jb 0x401a60
mov edx, dword [esp + 0x28]
push edx
call fcn.00445adc
add esp, 4
mov al, byte [esp + 0x17]
jmp 0x401a87
cmp ebp, ebx
je 0x401a71
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x3c], 8
jb 0x401a85
mov eax, dword [esp + 0x28]
push eax
call fcn.00445adc
add esp, 4
xor al, al
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00445c6a
add esp, 0x43c
ret
Function at 0x4022f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x473f01
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SOFTWARESogouInput
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402353
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402466
mov eax, dword [esp + 8]
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
push 0
push str.updaterlog
push eax
mov dword [esp + 0x34], 0x800
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402390
sub eax, edx
sar eax, 1
je 0x402466
push 0
lea ecx, [esp + 0x38]
call fcn.00470e60
lea ecx, [esp + 0xc]
mov dword [esp + 0x280], 0
call fcn.0046ba70
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x298], 1
call fcn.0046d470
push 1
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x28c], 2
call fcn.00470dd0
test al, al
lea ecx, [esp + 0x24]
sete bl
mov byte [esp + 0x280], 1
call fcn.0046cf20
test bl, bl
je 0x402420
lea ecx, [esp + 0xc]
call fcn.0046bdf0
push 2
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x278]
mov dword [esp + 0x20], 0xfeff
call fcn.00470d10
lea ecx, [esp + 0x34]
call fcn.0046b860
lea ecx, [esp + 0xc]
call fcn.0046ba10
lea ecx, [esp + 0x34]
mov dword [esp + 0x280], 0xffffffff
call fcn.00470e10
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.00445c6a
add esp, 0x27c
ret
Function at 0x402870
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x472c71
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov eax, dword [0x4a93bc]
lea ebx, [esi + 4]
push str.SmartFParams.txt
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.004690c0
lea edi, [esi + 0x14]
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.0046d5d0
lea ebp, [esi + 0x24]
mov ecx, ebp
call fcn.0046d5d0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
push esi
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x3c], 2
push str.UserManager
mov dword [esi + 0x34], ecx
mov dword [esi], edx
call fcn.00402f60
add esp, 4
mov ecx, eax
call fcn.0043f540
push eax
mov ecx, edi
call fcn.0046d330
lea ecx, [esp + 0x18]
call fcn.0046cf20
push 0
push 0
push 0
push 0
push 0
mov ecx, ebx
call fcn.00468640
push eax
lea ecx, [esp + 0x30]
call fcn.0046d470
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.0046e140
lea ecx, [esp + 0x18]
call fcn.0046cf20
mov edx, dword [esp + 0x40]
push edx
mov ecx, ebp
call fcn.0046d330
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc

Function at 0x403ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4732e0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.0046ba70
push SysReAllocString
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0
call fcn.004708e0
push 0
push 0
push str.SOFTWARESogouInput
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 1
call fcn.004706c0
test al, al
jne 0x403b5f
lea ecx, [esp + 0xc]
call fcn.0046bdf0
lea ecx, [esp + 0x14]
call fcn.00470500
lea ecx, [esp + 0xc]
call fcn.0046ba10
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
add esp, 0x38
ret
push 0x482208
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.004708b0
test al, al
je 0x403b32
cmp dword [esp + 8], 1
jne 0x403b3b
lea ecx, [esp + 0x14]
call fcn.00470500
lea ecx, [esp + 0xc]
call fcn.0046ba10
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
add esp, 0x38
ret

Function at 0x404090
Capabilities:
Create thread
Hide graphical window
Resume thread

Disassembly:
push ecx
mov eax, dword [0x4ac79c]
test eax, eax
push esi
je 0x4040a4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
test byte [0x4b1790], al
jne 0x4040cb
or dword [0x4b1790], eax
push 0x4797d0
mov byte [0x4b177c], 0
call fcn.00446492
add esp, 4
mov esi, 0x4b1778
call fcn.004105c0
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x403f40
push 0
push 0
call fcn.004469a6
mov ecx, dword [esp + 0x24]
add esp, 0x18
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret 4
Function at 0x40abc0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ecx
push esi
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4ac76c
call esi
push 0x4ac784
call esi
mov eax, dword [0x4ac74c]
call fcn.0040c240
mov eax, dword [0x4ac74c]
call fcn.0040ee60
mov eax, dword [0x4ac74c]
call fcn.0040f660
mov eax, dword [0x4ac74c]
call fcn.0040c550
cmp dword [0x4ac7a0], 1
jne 0x40ac16
lea eax, [esp + 4]
push eax
jmp 0x40ac8d
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
cmp dword [0x4ac7a0], 4
jne 0x40ac37
lea ecx, [esp + 4]
push ecx
push 4
push 0
push 0x409790
jmp 0x40ac96
call esi
cmp dword [0x4ac7a0], 6
jne 0x40ac52
lea edx, [esp + 4]
push edx
push 4
push 0
push 0x4080f0
jmp 0x40ac96
call esi
cmp dword [0x4ac7a0], 2
jne 0x40ac6d
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x4082c0
jmp 0x40ac96
call esi
cmp dword [0x4ac7a0], 0x10
jne 0x40ac88
lea ecx, [esp + 4]
push ecx
push 4
push 0
push 0x409cb0
jmp 0x40ac96
lea edx, [esp + 4]
push edx
push 4
push 0
push 0x409f60
push 0
push 0
call fcn.004469a6
add esp, 0x18
mov dword [0x4ac768], eax
xor eax, eax
pop esi
pop ecx
ret

Function at 0x40ad00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c4
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x3c0], eax
push esi
push 0x3b4
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00449450
mov ecx, dword [0x4ac764]
add esp, 0xc
lea edx, [esp + 8]
push edx
push 2
mov dword [esp + 0x10], 0x3b8
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x4ac76c
mov dword [0x4ac764], 0
call esi
push 0x4ac784
call esi
push 0
call fcn.004471d0
int3
Function at 0x40ae00
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a4628
push 0x44b4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4a7534]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x40], 0x40ad90
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov eax, dword [0x4ac74c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], str.SogouUpUIWnd
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x40aedc
mov dword [ebp - 4], esi
push esi
push esi
lea edx, [ebp - 0x1c]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x40
push str.Error
mov eax, dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040aed1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
add eax, 0xfffffe0c
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea edi, [esi + 0x1f4]
push 1
call ebx
sub eax, 0xb4
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + 0xb4]
push 0
mov edx, dword [0x4ac74c]
push edx
push 0
push 0
sub ecx, eax
push ecx
sub edi, esi
push edi
push eax
push esi
push 0xca0000
push 0x4832f0
push str.SogouUpUIWnd
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4ac764], eax
mov eax, dword [0x4ac768]
test eax, eax
je 0x40af5a
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x4ac768]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bd10
Capabilities:
Hide graphical window

Disassembly:
mov eax, 1
test byte [0x4b1790], al
jne 0x40bd37
or dword [0x4b1790], eax
push 0x4797d0
mov byte [0x4b177c], 0
call fcn.00446492
add esp, 4
mov eax, dword [edi + 4]
mov dword [0x4b1778], eax
mov ecx, dword [edi + 4]
push 0xfffffffffffffff0
push esi
mov dword [0x4ac79c], ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40bda4
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40bd79
mov edx, dword [edi + 4]
push 6
push edx
call ebx
pop ebx
ret
mov eax, dword [0x4ac764]
push 0
push 0
push 0x506
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 4]
push 3
push 0
push 0
push 0
push 0
push esi
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop ebx
ret
Function at 0x40be20
Capabilities:
Hide graphical window
Terminate process
Terminate thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov eax, ebx
sub eax, 0x113
push edi
mov edi, ecx
je 0x40bed6
sub eax, 0x3f2
je 0x40be6f
sub eax, 2
jne 0x40bf4a
push eax
mov eax, dword [edi + 4]
push 0x3e8
push 0x2711
push eax
mov dword [edi + 0x110], 0xa
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40bf41
mov eax, ebp
sub eax, 0x201
je 0x40beb5
sub eax, 2
je 0x40beb5
sub eax, 0x202
je 0x40be8d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [edi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
jne 0x40bf4a
mov edx, dword [edi + 4]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40bf4a
mov eax, dword [edi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40bea4
mov ecx, dword [edi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40bf4a
cmp dword [esp + 0x18], 0x2711
jne 0x40bf4a
add dword [edi + 0x110], 0xffffffff
mov eax, dword [edi + 0x110]
test eax, eax
jg 0x40bf41
call fcn.00410290
mov esi, eax
call fcn.004105c0
mov eax, dword [0x4ac79c]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
je 0x40bf15
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x4ac764]
push 0
push 0
push 0x10
push eax
call esi
mov ecx, dword [0x4ac768]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 4]
push ebp
push ecx
push ebx
push edx
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc