joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001826
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x1003070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push ebx
inc esi
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x19c], 3
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x198], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10018a3
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x6979
push eax
call fcn.01001212
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov edx, dword [ebp + 8]
cmp edx, 1
jle 0x1001986
mov ebx, dword [sym.imp.msvcrt.dll_atoi]
mov eax, dword [edi + esi*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x10018e1
cmp cl, 0x2f
je 0x10018e1
dec edx
cmp esi, edx
jne 0x1001990
push eax
call fcn.01001a39
mov dword [ebp - 0x1a4], eax
cmp eax, 0xffffffff
jmp 0x100196f
movsx eax, byte [eax + 1]
sub eax, 0x3f
je 0x10019c2
sub eax, 0x2a
je 0x1001959
sub eax, 5
je 0x100194d
sub eax, 4
je 0x100192e
dec eax
dec eax
jne 0x1001990
dec edx
cmp esi, edx
je 0x1001990
inc esi
push dword [edi + esi*4]
call ebx
mov dword [ebp - 0x19c], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x19c], eax
pop ecx
jge 0x1001971
mov dword [ebp - 0x19c], eax
jmp 0x1001971
dec edx
cmp esi, edx
je 0x1001990
inc esi
push dword [edi + esi*4]
call ebx
pop ecx
mov dword [ebp - 0x1a0], eax
test eax, eax
jge 0x1001971
and dword [ebp - 0x1a0], 0
jmp 0x1001971
mov dword [0x10030a0], 1
jmp 0x1001971
dec edx
cmp esi, edx
je 0x1001990
inc esi
push dword [edi + esi*4]
call fcn.01001a39
mov dword [0x10030a4], eax
cmp eax, 0xffffffff
je 0x10019b6
mov edx, dword [ebp + 8]
inc esi
cmp esi, edx
jl 0x10018b5
cmp dword [ebp - 0x1a4], 0
jne 0x10019cc
mov dword [ebp - 0x198], 0x6986
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp - 0x198]
add eax, 0x20
push eax
call fcn.01001212
pop ecx
pop ecx
call fcn.010013a3
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x100189b
mov dword [ebp - 0x198], 0x697d
jmp 0x1001990
call fcn.010013a3
jmp 0x100189b
lea eax, [ebp - 0x198]
push eax
push dword [ebp - 0x1a0]
push dword [ebp - 0x19c]
push dword [ebp - 0x1a4]
call fcn.0100145e
mov esi, eax
test esi, esi
je 0x10019f6
push esi
call fcn.010016a7
push esi
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp - 0x198], 0
pop ecx
je 0x1001a1d
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp - 0x198]
add eax, 0x20
push eax
call fcn.01001212
pop ecx
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.01001e8b
leave
ret
Function at 0x1001a39
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x1001a87
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1001a83
movzx ecx, word [eax + 0xa]
cmp cx, 4
jbe 0x1001a6c
or eax, 0xffffffff
jmp 0x1001a8a
mov eax, dword [eax + 0xc]
movsx ecx, cx
push ecx
push dword [eax]
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1001a87
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x1001a93
Capabilities:
Create raw socket
Set socket configuration
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1003070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 2
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001afb
push 2
pop eax
mov word [ebp - 0x14], ax
xor eax, eax
and dword [ebp - 0x10], eax
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1001afb
mov eax, dword [ebp + 8]
test eax, eax
je 0x1001b1e
push 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 9
push 0
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1001b1e
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x6987
push eax
call fcn.01001212
pop ecx
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01001e8b
leave
ret 8

Function at 0x1001b9c
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
jne 0x1001bcb
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x697d
push eax
call fcn.01001212
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
cmp dword [ebp + 0xc], 0
je 0x1001bdf
push eax
push 0x10
push dword [ebp + 0xc]
call fcn.01001b34
mov eax, dword [ebp + 0xc]
pop ebp
ret 8
Function at 0x1001e7c
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002308
call fcn.01002034
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100342c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001c91
cmp eax, esi
jne 0x1001c84
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001c94
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001c6b
xor esi, esi
inc esi
mov eax, dword [0x1003428]
cmp eax, esi
jne 0x1001ca7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001ce2
mov eax, dword [0x1003428]
test eax, eax
jne 0x1001cdc
mov dword [0x1003428], esi
push 0x1001100
push 0x10010f4
call fcn.01001be8
pop ecx
pop ecx
test eax, eax
je 0x1001ce2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1001dac
mov dword [0x10030c4], esi
mov eax, dword [0x1003428]
cmp eax, esi
jne 0x1001d06
push 0x10010f0
push 0x10010e8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003428], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001d13
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1003430], ebx
je 0x1001d34
push 0x1003430
call fcn.01001fa9
pop ecx
test eax, eax
je 0x1001d34
push ebx
push 2
push ebx
call dword [0x1003430]
push dword [0x10030ac]
push dword [0x10030b0]
push dword [0x10030a8]
call fcn.01001826
add esp, 0xc
mov dword [0x10030c0], eax
cmp dword [0x10030b4], ebx
jne 0x1001d92
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10030c4], ebx
jne 0x1001da0
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10030c0]
call fcn.01002079
ret
call fcn.01002181
jmp 0x1001c49
Function at 0x4011c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
push esi
mov dword [ebp - 0x84], 0x33323156
mov dword [ebp - 0x80], 0x37363534
mov dword [ebp - 0x7c], 0x62613938
mov dword [ebp - 0x78], 0x66656463
mov dword [ebp - 0x74], 0x6a696867
mov dword [ebp - 0x70], 0x6e6d6c6b
mov dword [ebp - 0x6c], 0x7271706f
mov dword [ebp - 0x68], 0x76757473
mov dword [ebp - 0x64], 0x7a797877
mov dword [ebp - 0x60], 0x44434641
mov dword [ebp - 0x5c], 0x48474245
mov dword [ebp - 0x58], 0x4c494a4b
mov dword [ebp - 0x54], 0x504f4e4d
mov dword [ebp - 0x50], 0x54535251
mov dword [ebp - 0x4c], 0x58573055
mov word [ebp - 0x48], 0x5a59
mov byte [ebp - 0x46], 0
mov dword [ebp - 0x44], 0x6f666442
mov dword [ebp - 0x40], 0x53707773
mov dword [ebp - 0x3c], 0x4d377846
mov dword [ebp - 0x38], 0x365a304b
mov dword [ebp - 0x34], 0x3868546b
mov dword [ebp - 0x30], 0x3472474f
mov dword [ebp - 0x2c], 0x31694a48
mov dword [ebp - 0x28], 0x43744e55
mov dword [ebp - 0x24], 0x587a5035
mov dword [ebp - 0x20], 0x6a443351
mov dword [ebp - 0x1c], 0x7579626e
mov dword [ebp - 0x18], 0x71325756
mov dword [ebp - 0x14], 0x616c4c76
mov dword [ebp - 0x10], 0x63675965
mov dword [ebp - 0xc], 0x39416d52
mov word [ebp - 8], 0x4945
mov byte [ebp - 6], 0
jb 0x4012cd
mov esi, dword [eax]
jmp 0x4012cf
mov esi, eax
test ecx, ecx
je 0x401317
push edi
mov edi, ecx
mov al, byte [esi]
cmp al, 0x30
jl 0x4012e0
cmp al, 0x39
jle 0x4012f0
cmp al, 0x61
jl 0x4012e8
cmp al, 0x7a
jle 0x4012f0
cmp al, 0x41
jl 0x401312
cmp al, 0x5a
jg 0x401312
movsx eax, al
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00411440
add esp, 8
test eax, eax
je 0x401312
lea edx, [ebp - 0x44]
sub eax, edx
mov al, byte [ebp + eax - 0x84]
mov byte [esi], al
inc esi
dec edi
jne 0x4012d6
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410f34
mov esp, ebp
pop ebp
ret

Function at 0x4018f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x40198c
push edi
push str.embedded_data.html
call fcn.004119a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x401914
pop edi
pop ebp
ret
push esi
push edi
call fcn.00411938
add esp, 4
push 0x17
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push edi
mov esi, eax
call fcn.004115da
add esp, 4
test esi, esi
je 0x401954
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, 1
jb 0x401954
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40195a
pop esi
xor eax, eax
pop edi
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp edi, 0x400
jb 0x40196e
mov edi, 0x400
push edi
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00417950
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov eax, 1
pop edi
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402b80
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c728
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x435084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x430390
mov esi, eax
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402c71
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call fcn.00401f60
push str.minidownload.exe
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, esi
push str.minidownload.exe
push ecx
mov esi, eax
call fcn.004029f0
mov ebx, dword [ebp - 0x10]
push 0
push 0x20
push 2
push 0
push 7
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402c4f
mov ecx, dword [ebp - 0x18]
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push ecx
push esi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x402c85
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebx - 0xc]
cmp edx, 0x4362cc
je 0x402c71
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x402c71
push esi
call fcn.00411a76
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x2710
xor edi, edi
mov ecx, ebx
call fcn.00403e90
add esp, 8
test eax, eax
jne 0x402cbe
lea esi, [ebp - 0x10]
call fcn.00402800
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 3
call fcn.00402cf0
add esp, 4
lea esi, [ebp - 0x10]
mov edi, eax
call fcn.00402800
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403180
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00415cf0
add esp, 0xc
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x228]
push ecx
push str.LaunchAppPath
push str.SOFTWARESogouSoftware
push 0x80000002
mov dword [ebp - 0x224], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40325b
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40325b
push 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xd1871d0a
mov dword [ebp - 0x218], 0x4a3c4929
mov dword [ebp - 0x214], 0x4268e5aa
mov dword [ebp - 0x210], 0x4422e635
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebp - 0x220]
push edx
push 0x42d34c
push 0
push 1
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_CoGetClassObject]
test eax, eax
jns 0x40326b
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00410f34
mov esp, ebp
pop ebp
ret

Function at 0x4032a0
Capabilities:
Accept command line arguments
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call esi
call fcn.00403180
test eax, eax
je 0x403387
push edi
push 2
call fcn.00402cf0
add esp, 4
lea ecx, [ebp - 0x420]
push ecx
push 0x104
mov dword [ebp - method.UtilNetwork::CBindStatusCallback.virtual_0], vtable.UtilNetwork::CBindStatusCallback.0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
call esi
push 0x104
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x430fc4
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40335d
lea eax, [ebp - 0x628]
push eax
call edi
lea ecx, [ebp - 0x628]
push ecx
call fcn.0040f9a0
lea edx, [ebp - 0x628]
push edx
mov esi, eax
call edi
pop edi
test esi, esi
je 0x403396
lea eax, [ebp - 0x628]
push eax
call fcn.0040f900
jmp 0x403396
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00402b80
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00410f34
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403670
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00415cf0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push str.InstallPath
push str.SOFTWARESogouSoftware
push 0x80000002
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x403715
push 0x208
lea edx, [ebp - 0x20c]
push edx
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.SogouSoftware
lea eax, [ebp - 0x20c]
push eax
push str._s_s
mov ecx, eax
push 0x208
push ecx
call fcn.0041b9a7
add esp, 0x14
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x20c]
push ecx
mov ebx, eax
call fcn.004028d0
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00410f34
mov esp, ebp
pop ebp
ret

Function at 0x403750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00415cf0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push str.LaunchAppPath
push str.SOFTWARESogouSoftware
push 0x80000002
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x403802
mov ecx, esi
call fcn.00403670
test eax, eax
jne 0x4037d6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
push str.SogouSoftware.exe
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.SogouSoftware.exe
push esi
mov esi, eax
call fcn.004029f0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
push ebx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x20c]
push ecx
mov ebx, eax
call fcn.004028d0
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00410f34
mov esp, ebp
pop ebp
ret
Function at 0x403840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c66b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1078
call fcn.004173c0
mov eax, dword [0x435084]
xor eax, esp
mov dword [esp + 0x1074], eax
push esi
push edi
mov eax, dword [0x435084]
xor eax, esp
push eax
lea eax, [esp + 0x1088]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0xc]
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
push str.Version
push str.SOFTWARESogouSoftware
push 0x80000002
mov dword [esp + 0x24], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40395e
mov edx, dword [0x4362dc]
mov dword [esp + 0xc], edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1090], 0
call fcn.004033b0
test eax, eax
je 0x403965
push str.SogouSoftware.dll
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.SogouSoftware.dll
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
call fcn.004029f0
mov esi, dword [esp + 0xc]
push esi
lea edx, [esp + 0x18]
push edx
call fcn.00406730
shr edi, 1
test ebx, ebx
je 0x403969
cmp edi, 8
jb 0x403969
movzx eax, word [esp + 0x2a]
movzx ecx, word [esp + 0x28]
movzx edx, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x28]
push ecx
push edx
push eax
push str._d._d._d._d
push edi
push ebx
call fcn.0041b9a7
add esp, 0x1c
mov edx, ebx
call fcn.004039b0
lea ecx, [esi - 0xc]
cmp ecx, 0x4362cc
je 0x40395e
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40395e
push esi
call fcn.00411a76
add esp, 4
mov eax, 1
jmp 0x40398d
mov esi, dword [esp + 0xc]
lea edx, [esi - 0xc]
cmp edx, 0x4362cc
je 0x40398b
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40398b
push esi
call fcn.00411a76
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1088]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1074]
xor ecx, esp
call fcn.00410f34
mov esp, ebp
pop ebp
ret

Function at 0x4039b0
Capabilities:
Set registry value

Disassembly:
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4039b6
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
push 1
push str.Version
push str.SOFTWARESogouSoftware
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
pop esi
ret
Function at 0x4039f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00415cf0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0x430690
push str.SOFTWARESogouSoftware
push 0x80000002
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x403ab5
push str.sogousoftware_normal
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00413514
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403a77
sub eax, edx
sar eax, 1
add eax, eax
push eax
push esi
push 1
push 0x430690
push str.SOFTWARESogouSoftware
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
je 0x403ab5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00410f34
mov esp, ebp
pop ebp
ret

Function at 0x403ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c9e8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x435084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
push esi
lea ecx, [ebp - 0x14]
push ecx
push str.HWID
push str.SOFTWARESogouSoftware
push 0x80000002
mov dword [ebp - 0x10], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403b2e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x403b64
push edi
push 0
push esi
call fcn.00415cf0
add esp, 0xc
mov dword [ebp - 0x14], vtable.CQMSeqIDGen.0
push esi
mov dword [ebp - 4], 0
call fcn.00408f80
movzx eax, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x403e90
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c629
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x38
xor ebx, ebx
lea eax, [ebp - 0x15c]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x160], 0x3c
call fcn.00415cf0
add esp, 0xc
mov dword [ebp - 0x150], esi
lea ecx, [ebp - 0x124]
mov esi, 1
push ecx
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x15c], 0x40
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x403f36
cmp dword [ebp - 0x120], 6
jb 0x403f36
cmp dword [ebp + 0xc], esi
jne 0x403f36
mov dword [ebp - 0x154], str.runas
lea edx, [ebp - 0x160]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x403f6d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x128]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403f5e
mov ebx, esi
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403fd1
test byte [0x437eb0], 1
jne 0x403fb8
or dword [0x437eb0], esi
xor eax, eax
mov dword [ebp - 4], eax
mov dword [0x437c18], eax
mov dword [0x437e24], 0x4308fc
mov dword [0x437e28], eax
mov byte [ebp - 4], 1
mov word [0x437c1c], ax
call fcn.00404af0
push 0x42cc30
call fcn.0041228b
add esp, 4
mov dword [ebp - 4], 0xffffffff
push str.ShellExecuteEx_fail
push str._info___NS_ProcessAndThread::CallProcessWait
push 2
mov ecx, 0x437c18
call fcn.00404ca0
add esp, 0xc
mov eax, ebx
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.00410f34
mov esp, ebp
pop ebp
ret