joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a080
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
mov eax, dword [0x42b530]
push esi
push edi
mov dword [esp + 0x234], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x28], si
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x28]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x34]
push str.APConfig.ini
push edx
mov word [eax + 2], si
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea eax, [esp + 0x28]
push eax
push 8
lea ecx, [esp + 0x18]
push ecx
push str.ReplaceTime
push str.AutoRepair
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
je 0x41a15e
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
sub ecx, esi
sbb eax, edx
cmp eax, 0x580
jl 0x41a15e
jg 0x41a147
cmp ecx, 0x28e44000
jbe 0x41a15e
mov eax, 1
mov ecx, dword [esp + 0x234]
call fcn.0041ac61
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x234]
xor eax, eax
call fcn.0041ac61
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41a180
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x42b530]
push esi
push edi
mov dword [esp + 0x424], eax
call fcn.00419e30
test eax, eax
jne 0x41a1b5
mov ecx, dword [esp + 0x424]
call fcn.0041ac61
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00419fb0
test eax, eax
jne 0x41a27a
call fcn.0041a080
test eax, eax
jne 0x41a27a
xor esi, esi
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x218], si
mov ecx, 0x81
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...ServerConfig.ini
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x218]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push 0x421570
push str.Restore
push str.ServerConfig
mov word [esp + 0x24], si
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x424]
call fcn.0041ac61
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x424]
mov eax, 1
call fcn.0041ac61
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa10
mov eax, dword [0x42b530]
push esi
push edi
mov dword [esp + 0xa14], eax
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 8]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xd
lea edx, [esp + 0x14]
push str.TDPRepair.exe
push edx
mov word [eax + 2], 0
call dword [sym.imp.MSVCR71.dll_wcsncat]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 0x18
test eax, eax
je 0x41a4a5
mov eax, dword [ebp + 8]
push esi
push eax
lea ecx, [esp + 0x218]
push str.__dir_s___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x41a4bf
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x214]
push str.__dir_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push str.xlbughandler.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41a4ef
push str._XL_AddCrashProcess_12
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a4ef
push 2
lea ecx, [esp + 0x214]
push ecx
lea edx, [esp + 0x10]
push edx
call eax
call fcn.00419e30
test eax, eax
je 0x41a511
call fcn.00419ef0
test eax, eax
jne 0x41a511
push eax
push eax
push 0x41a2a0
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
mov ecx, dword [esp + 0xa14]
call fcn.0041ac61
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41a530
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x42b530]
mov dword [esp + 0x410], eax
call fcn.00419ef0
test eax, eax
jne 0x41a5a3
call fcn.0041a180
test eax, eax
je 0x41a5bb
push 0x104
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str..TDPRepair.exe
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push 0
push 0
lea ecx, [esp + 0x214]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
mov ecx, dword [esp + 0x410]
call fcn.0041ac61
add esp, 0x414
ret
mov ecx, dword [esp + 0x410]
xor eax, eax
call fcn.0041ac61
add esp, 0x414
ret
Function at 0x41ae34
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x4229b8
call fcn.0041abd8
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x41ae74
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ae74
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41ae8c
cmp eax, 0x20b
je 0x41ae79
mov dword [ebp - 0x1c], edi
jmp 0x41aea0
cmp dword [ecx + 0x84], 0xe
jbe 0x41ae74
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x41ae9a
cmp dword [ecx + 0x74], 0xe
jbe 0x41ae74
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x42bb50], 0xffffffff
or dword [0x42bb54], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x42bacc]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x42bac8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x42bb4c], eax
call fcn.0041b1ba
call fcn.0041b25a
cmp dword [0x42b550], edi
jne 0x41af00
push fcn.0041b25a
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0041b248
push 0x42b060
push 0x42b05c
call sub.MSVCR71.dll__initterm
push 0x41b1fe
call fcn.0041ac95
mov eax, dword [0x42bac4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x42bac0]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x41af54
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x42b058
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x41af7e
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x41b038
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x41afed
cmp ax, di
je 0x41af94
cmp dword [ebp - 0x20], edi
jne 0x41afed
mov ax, word [esi]
cmp ax, di
je 0x41afa9
cmp ax, 0x20
ja 0x41afa9
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x41af94
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x41afc5
movzx eax, word [ebp - 0x54]
jmp 0x41afc8
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00409d62
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x41afe5
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x41b032
cmp ax, 0x22
jne 0x41affe
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x41af7e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0041ac13
ret
Function at 0x41bd54
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x422f38
call fcn.0041abd8
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x41bdc0
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x41bd98
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x41bdc6
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x41bd90
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x41bd90
mov al, 1
jmp 0x41bd92
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.0041ac13
ret
Function at 0x41bec8
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
mov ebx, 0x10000
jbe 0x41beeb
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x41beee
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x41bf01
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x41bf08
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x42bb30]
test eax, eax
mov ecx, dword [0x42bb2c]
jne 0x41bf22
test ecx, ecx
je 0x41bf37
mov eax, ecx
mov dword [0x42bb30], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x41bf37
cmp edx, dword [ebp - 4]
jb 0x41bf37
cmp edx, dword [ebp - 8]
jbe 0x41c00b
mov eax, ecx
test ecx, ecx
jmp 0x41bf5b
test eax, eax
je 0x41bf56
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x41bf56
cmp ecx, dword [ebp - 4]
jb 0x41bf56
cmp ecx, dword [ebp - 8]
jbe 0x41c00b
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x42bb30], eax
jne 0x41bf3d
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x41c0a6
cmp edi, 0x70000000
jb 0x41bf8b
cmp edi, 0x80000000
ja 0x41bf8b
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41c0a6
cmp dword [ebp - 0x30], ebx
jne 0x41bfaa
cmp dword [ebp - 0x34], ebx
jae 0x41bfbd
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x41bf76
jmp 0x41c0a6
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x42bb30], eax
je 0x41c0a6
mov ecx, dword [0x42bb2c]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x42bb2c], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x41bffd
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x41c0ab
cmp esi, dword [ebp - 8]
ja 0x41c0ab
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x41c0ad
cmp esi, 0x70000000
jb 0x41c04f
cmp esi, 0x80000000
ja 0x41c04f
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41c0ab
cmp dword [ebp - 0x14], ebx
jne 0x41c09d
cmp dword [ebp - 0x18], ebx
jb 0x41c09d
mov ecx, esi
and ecx, 0xffff
je 0x41c081
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x42bb30], eax
jne 0x41bfd9
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x41c03a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c0d3
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x422f48
call fcn.0041abd8
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41c12e
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x41c12a
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x41c12a
cmp word [eax + 0x14], 0
jne 0x41c11f
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x41c130
mov eax, ecx
jmp 0x41c119
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0041ac13
ret

Function at 0x41c148
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x42bb38], edi
jne 0x41c16b
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x42bb38
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x41c172
mov eax, 0x10dd
jmp 0x41c1b6
push esi
mov esi, dword [0x42bb2c]
mov dword [0x42bb34], edi
mov dword [0x42bb48], edi
mov dword [0x42bb44], edi
mov dword [0x42bb3c], edi
mov dword [0x42bb40], edi
jmp 0x41c1af
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x41c199
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x41c1b9
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x42bb38], eax
je 0x41c1cf
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x42bb48]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x41c21a
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x41c20b
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x41c20b
call fcn.0041c0b2
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x41c1de
mov dword [0x42bb48], ebx
call fcn.0041bea1
mov esi, dword [0x42bb44]
cmp esi, ebx
je 0x41c247
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x41c22f
pop edi
pop esi
mov dword [0x42bb44], ebx
mov dword [0x42bb38], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x41c49a
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x42bb3c]
test eax, eax
jne 0x41c50a
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x41c4b6
xor eax, eax
jmp 0x41c509
push esi
push 8
call fcn.0041ab83
mov esi, eax
test esi, esi
pop ecx
jne 0x41c4ca
push 8
pop edi
jmp 0x41c4e5
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x41c4f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
and dword [0x42bb40], 0
mov dword [0x42bb3c], edi
mov eax, edi
jmp 0x41c508
mov eax, dword [0x42bb44]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x42bb44], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x41c74a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x42bb38], eax
je 0x41c766
mov eax, 0x10dd
jmp 0x41c842
mov eax, dword [0x42bb3c]
test eax, eax
jne 0x41c842
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x41c783
push 6
pop eax
jmp 0x41c841
cmp dword [edi], 0
push ebx
push esi
jne 0x41c797
push 6
pop eax
mov dword [0x42bb3c], eax
jmp 0x41c839
push 0x18
call fcn.0041ab83
mov esi, eax
test esi, esi
pop ecx
jne 0x41c7aa
push 8
pop edi
jmp 0x41c823
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0041c136
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x41c818
cmp ecx, 0x17
ja 0x41c818
cmp dword [edi + 0x1c], eax
jne 0x41c818
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41c7ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41c823
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x42bb48]
mov dword [esi], eax
mov dword [0x42bb48], esi
xor eax, eax
jmp 0x41c83f
cmp dword [0x42bb34], edx
push 9
pop edi
jne 0x41c829
mov dword [0x42bb3c], edi
test esi, esi
je 0x41c834
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x42bb40], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x401690
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x435080]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x43011c
mov esi, eax
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401740
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push str._sminidownload.exe
mov edi, eax
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.004110cb
add esp, 0x10
push 0
push 0x20
push 2
push 0
push 7
push 0xc0000000
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401740
mov eax, dword [esp + 8]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push edi
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x401756
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00410f46
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.00403150
test eax, eax
je 0x401740
push 3
call fcn.00401790
mov ecx, dword [esp + 0x220]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.00410f46
mov esp, ebp
pop ebp
ret
Function at 0x402c30
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a8
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x28c]
push eax
push 0x104
call esi
push 0x7e
xor ebx, ebx
lea edx, [ebp - 0x82]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x84], cx
call fcn.00411510
push 0x80
lea edi, [ebp - 0x84]
call fcn.00402da0
add esp, 0x10
test eax, eax
je 0x402d03
push 2
call fcn.00401790
add esp, 4
lea eax, [ebp - 0x4a0]
push eax
push 0x104
mov dword [ebp - method.UtilNetwork::CBindStatusCallback.virtual_0], vtable.UtilNetwork::CBindStatusCallback.0
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], ebx
call esi
push 0x104
lea ecx, [ebp - 0x4a0]
push ecx
lea edx, [ebp - 0x6a8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x430ccc
lea eax, [ebp - 0x6a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea esi, [ebp - 0x6a8]
call fcn.0040f6b0
test eax, eax
je 0x402d0e
mov ecx, esi
push ecx
call fcn.0040f740
jmp 0x402d0e
lea ebx, [ebp - 0x28c]
call fcn.00401690
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00410f46
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402d30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp - 8]
push ecx
push str.InstallPath
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 4], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x402d8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
push esi
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.SogouDownLoad
push esi
push str._s_s
push 0x104
push esi
call fcn.004110cb
add esp, 0x14
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402da0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1284
call fcn.00418170
mov eax, dword [0x435080]
xor eax, esp
mov dword [esp + 0x1280], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [esp + 8]
push ecx
push edi
lea edx, [esp + 0x14]
push edx
push str.Version
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [esp + 0x20], eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x402e71
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1082]
push ecx
mov word [esp + 0x1084], ax
call fcn.00411510
add esp, 0xc
lea esi, [esp + 0x1078]
call fcn.00402d30
push str.DlgHandler.dll
mov edx, esi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402e89
mov ecx, esi
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00406380
test edi, edi
je 0x402e89
movzx eax, word [esp + 0x26]
movzx ecx, word [esp + 0x24]
movzx edx, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x24]
push ecx
push edx
push eax
push str._d._d._d._d
push 0x104
push edi
call fcn.004110cb
add esp, 0x1c
mov eax, 1
pop esi
mov ecx, dword [esp + 0x1280]
xor ecx, esp
call fcn.00410f46
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1284]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00410f46
mov esp, ebp
pop ebp
ret

Function at 0x402ea0
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1288
call fcn.00418170
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00411510
add esp, 0xc
lea edx, [ebp - 0x1284]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 8]
push ecx
push str.InstallPath
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 0x1284], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x402f48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
lea edx, [ebp - 0x218]
push edx
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.SogouDownLoad
lea eax, [ebp - 0x218]
push eax
push str._s_s
mov ecx, eax
push 0x104
push ecx
call fcn.004110cb
add esp, 0x14
push str.DownLoadDlg.exe
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402fbb
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x1280]
push edx
call fcn.00406380
mov eax, dword [ebp - 0x1270]
mov ecx, dword [ebp - 0x126c]
mov dword [ebp - 0xc], eax
movzx edx, word [ebp - 0xa]
movzx eax, ax
shl eax, 8
add eax, edx
mov dword [ebp - 8], ecx
movzx edx, word [ebp - 6]
shl eax, 8
movzx ecx, cx
add eax, ecx
shl eax, 8
add eax, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f46
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00410f46
mov esp, ebp
pop ebp
ret