joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427353
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, ecx
call sym.SocksCapEx.exe_Ordinal_59
mov ebp, dword [esp + 0x18]
xor ebx, ebx
push ebx
push ebx
push ebp
call sub.msvcrt.dll_fseek
push ebp
call sub.msvcrt.dll_fgetc
add esp, 0x10
cmp eax, 0xffffffff
jne 0x427395
push ebp
call sub.msvcrt.dll_ferror
pop ecx
test eax, eax
je 0x427395
push ebx
push ebx
push 5
push esi
call sym.SocksCapEx.exe_Ordinal_260
add esp, 0x10
jmp 0x427413
push edi
push 2
push ebx
push ebp
call sub.msvcrt.dll_fseek
push ebp
call sub.msvcrt.dll_ftell
push ebx
cdq
push ebx
push ebp
mov edi, eax
mov dword [esp + 0x30], edx
call sub.msvcrt.dll_fseek
mov eax, dword [esp + 0x30]
mov ecx, edi
and ecx, eax
add esp, 0x1c
cmp ecx, 0xffffffff
jne 0x4273d3
push ebx
push ebx
push 5
push esi
call sym.SocksCapEx.exe_Ordinal_260
add esp, 0x10
jmp 0x427412
cmp eax, ebx
ja 0x4273c4
cmp edi, 0xffffffff
jae 0x4273c4
mov ecx, edi
or ecx, eax
jne 0x4273e8
push ebx
push ebx
push 0xd
jmp 0x4273c8
lea eax, [edi + 1]
push eax
call fcn.0045a52c
push ebp
push edi
push 1
push eax
mov dword [esi + 0x50], eax
call sub.msvcrt.dll_fread
add esp, 0x14
cmp eax, edi
jne 0x4273c4
mov eax, dword [esi + 0x50]
mov ecx, esi
mov byte [edi + eax], bl
call sym.SocksCapEx.exe_Ordinal_156
pop edi
mov eax, dword [esi + 0x38]
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4

Function at 0x42ba41
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42ba58
test al, 0x10
jne 0x42ba58
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x42c210
Capabilities:
Terminate process

Disassembly:
push 0x20
mov eax, 0x45fa0d
call fcn.0045c174
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x42c249
xor eax, eax
jmp 0x42c33a
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], edi
xor ebx, ebx
xor esi, esi
cmp eax, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
jle 0x42c30b
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push dword [ebp - 0x18]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x42c2fc
cmp dword [ebp - 0x20], 5
jne 0x42c2fc
inc esi
mov dword [ebp - 0x28], esi
cmp esi, 1
jne 0x42c298
push 0x10
call dword [sym.imp.msvcrt.dll_malloc]
jmp 0x42c2a9
mov eax, esi
shl eax, 4
push eax
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x42c340
cmp dword [ebp - 0x10], edi
je 0x42c2c4
push edi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ATL.DLL_AtlComPtrAssign]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push dword [ebp - 0x18]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x42c369
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0xc]
shl esi, 4
lea edi, [esi + ebx - 0x10]
mov esi, dword [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
xor edi, edi
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jl 0x42c26b
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x42c326
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x42c337
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
call fcn.0045c213
ret
push edi
push 0x46b64c
push 0x472630
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x1c], edi
je 0x42c361
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
push edi
push 0x46b64c
push 0x472654
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.msvcrt.dll_free]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
pop ecx
cmp eax, edi
je 0x42c394
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x42c242
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x42c242
Function at 0x42c63c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x487010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
shl esi, 2
push edi
mov eax, esi
call fcn.0045ef60
mov ebx, esp
xor edi, edi
cmp ebx, edi
jne 0x42c66c
or eax, 0xffffffff
jmp 0x42c709
push esi
push dword [ebp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea esi, [esi + ebx - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
push edi
push 0x4ff
push dword [ebp + 8]
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 8]
jbe 0x42c6c7
mov dword [ebp - 0xc], 0x102
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
je 0x42c781
jb 0x42c6e6
cmp eax, 0x80
jb 0x42c709
mov ecx, dword [ebp - 8]
sub ecx, 0xffffff80
cmp eax, ecx
jae 0x42c709
mov ecx, dword [esi]
inc dword [ebp - 0x14]
dec dword [ebp - 8]
mov dword [ebx + eax*4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esi], edi
sub esi, 4
mov dword [ebp - 0x18], esi
cmp ecx, dword [ebp + 0x10]
je 0x42c709
cmp dword [ebp - 0x10], edi
je 0x42c695
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b700
leave
ret
cmp dword [ebp - 0x34], 0x12
je 0x42c799
mov eax, 0x42c5b2
test eax, eax
je 0x42c73e
call sub.MFC42u.dll_CWnd::GetCurrentMessage
push 7
pop ecx
lea esi, [ebp - 0x38]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
xor edi, edi
mov eax, fcn.0042c61b
test eax, eax
je 0x42c755
lea eax, [ebp - 0x38]
push eax
call fcn.0042c61b
pop ecx
test eax, eax
jne 0x42c781
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x42c781
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x42c71b
jmp 0x42c701
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [ebp - 0x10], 1
jmp 0x42c701
Function at 0x42c9fc
Capabilities:
Enumerate processes on remote desktop session host
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
lea eax, [ebp - 4]
or edi, 0xffffffff
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
xor esi, esi
push 1
push esi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x42cacb
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x10], esi
jbe 0x42caa1
mov dword [ebp - 8], esi
push ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov ebx, dword [ecx + eax]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 8
push ebx
push esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x42ca8e
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
cmp edi, esi
jne 0x42ca86
mov dword [ebp - 0x18], ebx
jmp 0x42ca8e
cmp edi, 1
jne 0x42ca8e
mov dword [ebp - 0x1c], ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], 0xc
cmp eax, dword [ebp - 0x10]
jb 0x42ca4e
or edi, 0xffffffff
pop ebx
push dword [ebp - 0x14]
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 4], edi
je 0x42cac0
cmp eax, dword [ebp - 4]
je 0x42cacd
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 4]
jne 0x42cacb
jmp 0x42cacd
cmp eax, edi
jne 0x42cacd
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jne 0x42cacd
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x42cb86
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x5c]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x5c], edi
mov word [ebp - 0x2c], ax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x30], 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42cbe7
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x42d301
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x487010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
push 0x228
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x234]
push esi
push eax
mov dword [ebp - 0x238], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x42d34f
xor eax, eax
jmp 0x42d39b
lea eax, [ebp - 0x238]
push eax
push edi
mov dword [ebp - 0x238], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x42d389
push dword [ebp + 0xc]
lea eax, [ebp - 0x238]
push eax
call dword [ebp - 0x23c]
test eax, eax
je 0x42d38f
lea eax, [ebp - 0x238]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42d368
jmp 0x42d392
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045b700
leave
ret 8

Function at 0x42d3d4
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x487010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 0x424
lea eax, [ebp - 0x634]
push edi
push eax
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x638], edi
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
push dword [ebp + 8]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42d43d
call esi
cmp eax, 0x18
jne 0x42d439
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x42d413
xor eax, eax
jmp 0x42d4a8
lea eax, [ebp - 0x638]
push eax
push ebx
mov dword [ebp - 0x638], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x42d48a
push dword [ebp + 0xc]
lea eax, [ebp - 0x638]
push eax
call fcn.0042d4b9
test eax, eax
je 0x42d47e
lea eax, [ebp - 0x638]
push eax
push ebx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x42d458
jmp 0x42d497
mov dword [ebp - 0x63c], 1
jmp 0x42d497
call esi
lea ecx, [ebp - 0x210]
call fcn.0042dc17
test ebx, ebx
je 0x42d4a2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x63c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b700
leave
ret 8

Function at 0x42d755
Capabilities:
Read file on windows

Disassembly:
push ebx
push dword [esi]
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x42d767
pop ebx
ret
push edi
push 0x46b4d0
push dword [esp + 0x10]
call sub.msvcrt.dll__wfopen
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42d796
push edi
push dword [esi]
push 1
push ebx
call sub.msvcrt.dll_fread
push edi
mov dword [esi], eax
call sub.msvcrt.dll_fclose
add esp, 0x14
mov eax, ebx
pop edi
pop ebx
ret

Function at 0x42d7ab
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 8]
push dword [esi]
push 1
push dword [esp + 0x10]
call sub.msvcrt.dll_fwrite
push dword [esp + 0x18]
mov dword [esi], eax
call sub.msvcrt.dll_fclose
xor eax, eax
add esp, 0x14
inc eax
ret
Function at 0x42e07e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x487010]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x7c], ax
xor esi, esi
lea eax, [ebp - 0x7a]
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, ebx
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x42e0ba
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub eax, ecx
push esi
sar eax, 1
push ebx
mov dword [ebp - 0x80], eax
call edi
test eax, eax
je 0x42e0de
xor eax, eax
inc eax
jmp 0x42e13b
lea eax, [ebx + esi*2]
cmp word [eax], 0
je 0x42e129
cmp esi, dword [ebp - 0x80]
jge 0x42e106
lea edx, [ebp - 0x7c]
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
cmp cx, 0x5c
je 0x42e11f
inc esi
inc eax
inc eax
cmp esi, dword [ebp - 0x80]
jl 0x42e0f1
xor eax, eax
mov word [ebp + esi*2 - 0x7c], ax
push 0
lea eax, [ebp - 0x7c]
push eax
call edi
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x7e], ax
jmp 0x42e0de
xor eax, eax
mov word [ebp + esi*2 - 0x7c], ax
inc esi
jmp 0x42e10d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42e139
test al, 0x10
jne 0x42e0d9
xor eax, eax
mov ecx, dword [ebp + 0x18c]
pop edi
xor ecx, ebp
pop esi
call fcn.0045b700
add ebp, 0x190
leave
ret

Function at 0x42ebd2
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x1f88]
mov eax, 0x2008
call fcn.0045b730
mov eax, dword [0x487010]
xor eax, ebp
mov dword [ebp + 0x1f84], eax
mov eax, dword [ebp + 0x1f90]
push eax
push 0x1000
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x42ec5a
push esi
push 1
or esi, 0xffffffff
mov ecx, ebx
lea eax, [ebp - 0x7c]
call fcn.0042f1d7
pop ecx
test eax, eax
jne 0x42ec23
inc eax
jmp 0x42ec59
and dword [ebp - 0x80], 0
push edi
lea edi, [ebp - 0x7a]
cmp word [edi - 2], 0
jne 0x42ec48
cmp word [edi], 0
je 0x42ec56
push 1
mov ecx, ebx
mov eax, edi
call fcn.0042f1d7
pop ecx
test eax, eax
je 0x42ec71
inc dword [ebp - 0x80]
inc edi
inc edi
cmp dword [ebp - 0x80], 0xfff
jb 0x42ec2b
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp + 0x1f84]
xor ecx, ebp
call fcn.0045b700
add ebp, 0x1f88
leave
ret 4
xor eax, eax
inc eax
jmp 0x42ec58
Function at 0x42ecef
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x45f2da
call fcn.0045c174
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 0xc]
call sub.MFC42u.dll_CString::CString_5
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 0xc]
mov esi, 0x104
push esi
mov dword [ebp - 0x10], 1
mov ebx, esi
call sub.MFC42u.dll_CString::GetBufferSetLength
mov ecx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
push esi
push eax
push dword [ebp + 0x14]
lea edx, [ecx + 0x208]
push dword [ebp + 0x10]
push edx
call edi
cmp eax, 0x103
jne 0x42ed6e
mov ecx, dword [ebp + 0xc]
add ebx, esi
push ebx
call sub.MFC42u.dll_CString::GetBufferSetLength
mov ecx, dword [ebp + 8]
push ecx
push ebx
push eax
push dword [ebp + 0x14]
lea eax, [ecx + 0x208]
push dword [ebp + 0x10]
push eax
call edi
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x42ed47
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call sub.MFC42u.dll_CString::ReleaseBuffer
mov eax, dword [ebp + 0xc]
call fcn.0045c213
ret 0x10

Function at 0x42ed9d
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push eax
call edi
and dword [esp + 0x14], 0
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x42edec
lea eax, [esp + 0x14]
push eax
push esi
call ebx
cmp dword [esp + 0x14], ebp
jne 0x42ede7
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42ede7
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x42edf2
push 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x42edc3
cmp dword [esp + 0x14], ebp
jne 0x42ee4a
test esi, esi
je 0x42ee4a
push 0
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, eax
push 1
push ebp
call edi
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
call ebx
test eax, eax
je 0x42ee4a
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x42ee36
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push ebp
call edi
push eax
call ebx
xor eax, eax
inc eax
jmp 0x42ee4c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x437786
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
movzx esi, word [esp + 0x10]
push edi
push 2
push esi
call sub.MFC42u.dll_AfxFindResourceHandle
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 2
mov ebp, eax
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
jne 0x4377bd
push 2
push esi
xor ebp, ebp
push ebp
call ebx
mov edi, eax
test edi, edi
jne 0x4377bd
xor eax, eax
jmp 0x4377fe
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4377b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4377b9
cmp dword [eax + 0x20], 0
je 0x4377e0
movzx eax, word [eax + 0x20]
jmp 0x4377ef
movzx eax, word [eax + 0xe]
dec eax
je 0x4377ec
sub eax, 3
jmp 0x4377f3
push 2
pop eax
cmp ax, 0x10
jne 0x4377b9
push 0
push edi
push ebp
call sub.MFC42u.dll_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x437819
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1d8]
sub esp, 0x258
mov eax, dword [0x487010]
xor eax, ebp
mov dword [ebp + 0x1d4], eax
push esi
xor esi, esi
cmp dword [0x4b091c], esi
jne 0x4378e8
push ebx
lea eax, [ebp - 0x78]
push eax
push 0x20019
push esi
xor ebx, ebx
push str.SoftwareMicrosoftPlus_ThemesCurrent
inc ebx
push Ordinal_4
mov dword [0x4b091c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4378e7
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x104
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4378de
push edi
push 0xb
pop ecx
mov esi, str.Windows_Classic.theme
lea edi, [ebp + 0x1a8]
lea eax, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov edi, eax
lea eax, [ebp + 0x1a8]
push eax
call esi
cmp edi, eax
jl 0x4378dd
lea eax, [ebp + 0x1a8]
push eax
push eax
call esi
sub edi, eax
lea eax, [ebp + edi*2 - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4378dd
mov dword [0x4b0918], ebx
pop edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp + 0x1d4]
mov eax, dword [0x4b0918]
xor ecx, ebp
pop esi
call fcn.0045b700
add ebp, 0x1d8
leave
ret
Function at 0x439918
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
imul eax, dword [ebp + 0xc]
push edi
push dword [esi + 0x74]
mov edi, eax
push 1
push edi
push dword [ebp + 8]
call sub.msvcrt.dll_fwrite
mov eax, dword [esi + 0x7c]
add esp, 0x10
test eax, eax
je 0x439941
cmp eax, dword [esi + 0x78]
jne 0x43997d
fldz
lea eax, [ebp - 8]
push eax
fstp qword [ebp - 8]
push 0x30000f
push dword [esi + 0x34]
call dword [sym.imp.SocksCapExDLL32.dll_Ordinal_262]
fld qword [0x477158]
fcomp qword [ebp - 8]
add esp, 0xc
fnstsw ax
test ah, 0x44
jp 0x439972
mov eax, dword [esi + 0x78]
add eax, edi
jmp 0x43997a
fld qword [ebp - 8]
call fcn.0045bdd5
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x20]
add dword [esi + 0x78], edi
test eax, eax
je 0x4399a1
movzx ecx, word [esi + 0x10]
movzx edx, di
push esi
shl ecx, 0x10
or ecx, edx
push ecx
push 0x8b0
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x80]
neg eax
sbb eax, eax
not eax
and eax, edi
pop edi
leave
ret 8

Function at 0x43a711
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x43a737
call fcn.0043a7da
jmp 0x43a7d4
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045a52c
pop ecx
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43a72d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x46f6fc
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43a72d
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
push dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
call fcn.0045a520
movzx eax, word [ebx + 0x14]
push eax
movzx eax, word [ebx + 0x16]
push eax
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x12]
push eax
mov esi, str._u._u._u._u
lea eax, [ebx + 0x4c]
push esi
push eax
call sub.MFC42u.dll_CString::Format
movzx eax, word [ebx + 0x1c]
push eax
movzx eax, word [ebx + 0x1e]
push eax
movzx eax, word [ebx + 0x18]
push eax
movzx eax, word [ebx + 0x1a]
push eax
push esi
add ebx, 0x50
push ebx
call sub.MFC42u.dll_CString::Format
add esp, 0x34
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43a8c1
Capabilities:
Get common file path

Disassembly:
push 0
mov eax, 0x462fa4
call fcn.0045c174
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.Update::CUpdateFiles.0
call fcn.00408fa3
and dword [ebp - 4], 0
lea edi, [esi + 0x2c]
push 0xa
mov ecx, edi
call fcn.0045a5f0
mov dword [edi], vtable.CTypedPtrList_class_CPtrList__class_Update::CUpdateFile__.0
lea ecx, [esi + 0x660]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString_5
mov byte [ebp - 4], 2
fldz
mov edi, 0x208
push edi
lea ebx, [esi + 0x48]
lea eax, [esi + 0x664]
and dword [eax + 8], 0
fstp qword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x43a93c
xor ecx, ecx
mov word [eax], cx
push edi
lea eax, [esi + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
lea eax, [esi + 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x28], 1
mov dword [esi + 0x20], eax
test eax, eax
je 0x43a996
push 0x1c
call fcn.0045a4b6
mov edi, eax
pop ecx
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x43a98f
push 0xa
mov ecx, edi
call sub.MFC42u.dll_CMapStringToPtr::CMapStringToPtr
mov dword [edi], vtable.CTypedPtrMap_class_CMapStringToPtr__class_CString__class_Update::CUpdateFile__.0
jmp 0x43a991
xor edi, edi
mov dword [esi + 0x24], edi
jmp 0x43a99a
and dword [esi + 0x24], 0
mov eax, esi
call fcn.0045c213
ret 8