joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464e80
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ioctlsocket]
push esi
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
mov ebx, 1
push eax
mov dword [esp + 0x18], ebx
call ebp
test eax, eax
jne 0x464ecf
mov eax, dword [esi + 8]
push 0x10
lea edx, [esi + 0x20]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x464edb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x464edb
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x464f89
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x12c]
push edx
mov dword [esp + 0x134], eax
mov dword [esp + 0x30], eax
push 0
inc eax
push eax
mov dword [esp + 0x138], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 0x7a120
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x464f89
mov ecx, dword [esi + 8]
lea eax, [esp + 0x20]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x464f89
mov eax, dword [esi + 8]
lea edx, [esp + 0x124]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x464f77
mov edx, dword [esi + 8]
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push edx
mov edi, ebx
mov dword [esp + 0x28], 0
call ebp
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x28
mov dword [esp + 0x10], eax
jl 0x464ee2
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
Function at 0x465260
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x614
mov eax, dword [0x48644c]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x60c], ebx
xor edi, edi
mov dword [ebp - 0x604], edi
mov dword [ebp - 0x608], edi
xor esi, esi
mov dword [ebp - 0x600], esi
lea ebx, [ebx]
mov al, byte [ebx + 0x30]
test al, al
je 0x4652f4
mov dword [ebp - 4], edi
push edi
push 0x5e8
lea eax, [ebp - 0x5fc]
push eax
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x610], eax
cmp eax, edi
jg 0x465316
mov byte [ebx + 0x30], 0
mov ebx, dword [ebx + 4]
cmp ebx, edi
je 0x4652ed
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
push esi
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00436153
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 0xc]
push eax
lea eax, [ebp - 0x5fc]
push eax
call fcn.004662d0
cmp esi, edi
jne 0x465378
mov dword [ebp - 0x620], 0x802
push 0x802
call sub.MFC71U.DLL_CWordArray::CWordArray
add esp, 4
mov edx, eax
mov dword [ebp - 0x61c], edx
cmp edx, edi
je 0x46535c
mov ecx, 0x200
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x46535e
xor edx, edx
mov esi, edx
mov dword [ebp - 0x600], esi
xor edi, edi
cmp esi, edi
jne 0x465378
mov dword [ebp - 4], 0xffffffff
jmp 0x4652b0
mov dword [ebp - 0x604], edi
mov edi, edi
lea ecx, [ebp - 0x608]
push ecx
lea edx, [ebp - 0x604]
push edx
push 0x800
push esi
lea ecx, [ebx + 0xc]
call fcn.00465b30
cmp eax, 1
jne 0x465446
mov ax, word [ebp - 0x604]
mov word [esi + 0x800], ax
lea edi, [ebx + 0x98]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [ebx + 0x68]
call fcn.00464fa0
lea ecx, [ebx + 0x48]
call fcn.00421f00
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x600], 0
mov dword [ebp - 0x614], 0x802
push 0x802
call sub.MFC71U.DLL_CWordArray::CWordArray
add esp, 4
mov edx, eax
mov dword [ebp - 0x618], edx
test edx, edx
je 0x465414
mov ecx, 0x200
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x465416
xor edx, edx
mov esi, edx
mov dword [ebp - 0x600], esi
test esi, esi
jne 0x465380
mov dword [ebp - 4], 0xffffffff
xor edi, edi
jmp 0x4652b0
mov dword [ebp - 4], 0xffffffff
xor edi, edi
jmp 0x4652b0
Function at 0x465580
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c0b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0
lea ecx, [ecx]
mov al, byte [ebx + 0x30]
test al, al
je 0x4656a6
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4655d6
push 0xffffffffffffffff
lea ecx, [ebx + 0x4c]
call fcn.00421ed0
lea edi, [ebx + 0x50]
mov eax, dword [edi]
mov dword [ebp - 0x24], eax
lea esi, [ebx + 0x80]
push esi
test eax, eax
jle 0x46564f
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
call fcn.00465010
mov edi, eax
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x46563a
cmp dword [ebx + 8], 0xffffffff
je 0x46563a
xor esi, esi
mov dword [ebp - 0x18], esi
movzx eax, word [edi + 0x800]
cmp esi, eax
jge 0x46563a
push 0
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x46563a
add esi, eax
jmp 0x46560e
mov dword [ebp - 0x2c], edi
push edi
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x4655d6
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x465667
lea ecx, [ebx + 0x4c]
call fcn.00421f10
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
jmp 0x4655b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436220
Capabilities:
Check mutex on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5aedac
mov eax, dword fs:[0]
push eax
sub esp, 0x3d0
mov eax, dword [0x628960]
xor eax, esp
mov dword [esp + 0x3c8], eax
push ebx
push esi
push edi
mov eax, dword [0x628960]
xor eax, esp
push eax
lea eax, [esp + 0x3e0]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0048bbb7
push 0
lea eax, [edi + 0x1a8]
push eax
lea eax, [edi + 0x1b8]
push eax
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
call fcn.0048c61b
mov ecx, dword [eax + 8]
call fcn.0046ddf0
lea ecx, [edi + 0xcc]
call fcn.00435bb0
test al, al
jne 0x4362a0
xor eax, eax
jmp 0x43646d
mov eax, dword [0x64669c]
test al, 1
jne 0x4362c8
or eax, 1
mov dword [0x6466a0], 0
push 0x5bc720
mov dword [0x64669c], eax
call fcn.004a0e71
add esp, 4
push str.GlobalE999CB55_F408_46D1_B5CB_6D5AF7B5E2A1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x6466a0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
je 0x4362f1
cmp esi, 5
jne 0x4362fc
push str.Singleton_App:_App_Is_Already_Running__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
jne 0x436299
lea ecx, [esp + 0x1c]
call fcn.00437a90
push 0xffffffffffffffff
push esi
push 0x646408
lea ecx, [esp + 0x28]
mov dword [esp + 0x3f4], esi
call fcn.00437570
push 0xffffffffffffffff
push esi
push 0x646420
lea ecx, [esp + 0x40]
call fcn.00437570
push 0x27
push str.http:__tj.driverzj.com:8972_api_request
lea ecx, [esp + 0x54]
call fcn.004373f0
sub esp, 0x64
lea eax, [esp + 0x80]
mov ecx, esp
push eax
call fcn.00436530
call fcn.00488d00
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x28], esp
push str.StatisticalMemo
call fcn.004384d0
sub esp, 0x18
mov byte [esp + 0x418], 1
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x60b6d0
call fcn.004384d0
sub esp, 0x18
mov byte [esp + 0x430], 2
mov ecx, esp
push str.1B17622E_93C4_484D_B1A3_2251F98C4C68
call fcn.004384d0
mov byte [esp + 0x430], 0
call fcn.00488f40
push 0x34c
lea eax, [esp + 0x88]
push esi
push eax
call fcn.004a2440
add esp, 8
lea ecx, [esp + 0x88]
call fcn.00439bd0
lea eax, [esp + 0x84]
mov byte [esp + 0x3e8], 3
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.0048cbf3
mov eax, dword [0x6466a0]
test eax, eax
je 0x4363fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x6466a0], esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x6464fc
call esi
cmp dword [0x6464f8], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x6464fc
sete bl
call edi
test bl, bl
jne 0x43644b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x6464fc
call esi
cmp dword [0x6464f8], 0
push 0x6464fc
sete bl
call edi
test bl, bl
je 0x436424
lea ecx, [esp + 0x84]
mov byte [esp + 0x3e8], 0
call fcn.00439d50
lea ecx, [esp + 0x1c]
call fcn.004364a0
mov eax, 1
mov ecx, dword [esp + 0x3e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c8]
xor ecx, esp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x43d7c0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afa37
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x628960]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x60ce84
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0043f2d0
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.0043e840
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x646674]
mov dword [esi + 0x48], eax
mov eax, edi
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43e5b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5afa98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x628960]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x628960]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x43e704
cmp byte [ebx + 0x45], 0
je 0x43e704
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x43e610
xor al, al
jmp 0x43e706
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x43e650
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x43e691
dec eax
je 0x43e695
sub eax, 2
je 0x43e6eb
xor bl, bl
jmp 0x43e6ed
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x43e6cc
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004a1a2e
add esp, 0x10
cmp esi, eax
jne 0x43e68d
cmp byte [ebx + 0x45], 0
je 0x43e6eb
test esi, esi
jne 0x43e650
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0043e280
jmp 0x43e650
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x43e700
push dword [esp + 0x18]
call fcn.0048b2ba
add esp, 4
mov al, bl
jmp 0x43e706
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a0676
mov esp, ebp
pop ebp
ret

Function at 0x43f1d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0048c8e0
Function at 0x43fd60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afcca
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004c14be
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x43fe06
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.004a1531
push 0x624a38
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.004a5355
push edi
push esi
call fcn.004c1391
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret 4

Function at 0x442210
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push edx
mov esi, ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x442272
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], edi
push 0x60d1fc
mov byte [esi], 0
call fcn.004373f0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4422a8
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x60d1fc
mov ecx, esi
call fcn.00437360
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
push eax
lea ecx, [ebp - 0x1c]
call fcn.00437360
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00440bb0
cmp dword [ebp - 8], 0x10
jb 0x4422da
push dword [ebp - 0x1c]
call fcn.0048b2ba
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x442350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
mov dword [ebp - 0x10c], 0
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.004a2440
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x4423bc
mov eax, dword [esi]
jmp 0x4423be
mov eax, esi
lea edx, [ebp - 0x108]
cmp edx, eax
jb 0x442411
cmp ecx, 0x10
jb 0x4423d1
mov edx, dword [esi]
jmp 0x4423d3
mov edx, esi
mov eax, dword [esi + 0x10]
add eax, edx
lea edx, [ebp - 0x108]
cmp eax, edx
jbe 0x442411
cmp ecx, 0x10
jb 0x4423eb
mov eax, dword [esi]
jmp 0x4423ed
mov eax, esi
push 2
lea ecx, [ebp - 0x108]
sub ecx, eax
push ecx
push esi
mov ecx, esi
call fcn.00437570
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
cmp ecx, 2
jae 0x442422
push dword [esi + 0x10]
mov ecx, esi
push 2
call fcn.00437780
cmp dword [esi + 0x14], 0x10
jb 0x44242c
mov ecx, dword [esi]
jmp 0x44242e
mov ecx, esi
mov ax, word [ebp - 0x108]
mov word [ecx], ax
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 2
jb 0x442449
mov eax, dword [esi]
jmp 0x44244b
mov eax, esi
mov ecx, dword [ebp - 4]
mov byte [eax + 2], 0
xor ecx, ebp
mov eax, esi
pop esi
call fcn.004a0676
mov esp, ebp
pop ebp
ret

Function at 0x442460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x210], 0
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov esi, ecx
lea eax, [ebp - 0x20a]
push eax
call fcn.004a2440
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x4424cf
mov eax, dword [esi]
jmp 0x4424d1
mov eax, esi
lea edx, [ebp - 0x20c]
cmp edx, eax
jb 0x442527
cmp ecx, 8
jb 0x4424e4
mov edx, dword [esi]
jmp 0x4424e6
mov edx, esi
mov eax, dword [esi + 0x10]
lea eax, [edx + eax*2]
lea edx, [ebp - 0x20c]
cmp eax, edx
jbe 0x442527
cmp ecx, 8
jb 0x4424ff
mov eax, dword [esi]
jmp 0x442501
mov eax, esi
lea ecx, [ebp - 0x20c]
sub ecx, eax
push 2
sar ecx, 1
push ecx
push esi
mov ecx, esi
call fcn.00437fd0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
cmp ecx, 2
jae 0x442538
push dword [esi + 0x10]
mov ecx, esi
push 2
call fcn.00438130
cmp dword [esi + 0x14], 8
jb 0x442542
mov ecx, dword [esi]
jmp 0x442544
mov ecx, esi
mov eax, dword [ebp - 0x20c]
mov dword [ecx], eax
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 2
jb 0x44255d
mov eax, dword [esi]
jmp 0x44255f
mov eax, esi
xor ecx, ecx
mov word [eax + 4], cx
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x442710
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0632
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x103
mov dword [ebp - 4], 0
lea eax, [ebp - 0x113]
push 0
mov dword [ebp - 0x118], 0
push eax
mov dword [ebp - 0x11c], esi
mov byte [ebp - 0x114], 0
call fcn.004a2440
add esp, 0xc
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
mov byte [esi], 0
push 0
push 0x60d1fc
call fcn.004373f0
push 1
push 0x26
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x118], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4427d9
cmp byte [ebp - 0x114], 0
je 0x4427f8
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
jmp 0x4427d0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4427d0
jmp 0x44280c
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004a2440
add esp, 0xc
cmp byte [ebp - 0x114], 0
jne 0x4427fc
xor ecx, ecx
jmp 0x44280e
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442805
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.004373f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x443470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x443485
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4434c4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4434c0
lea ebx, [ebx]
cmp esi, edx
jae 0x4434c4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4434b0
cmp esi, edx
jb 0x4434c9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x443590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa04
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x9fb]
push 0x9f5
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x9fc], 0
call fcn.004a2440
add esp, 0xc
mov dword [ebp - 0xa00], 0x9f6
lea eax, [ebp - 0xa00]
push eax
lea eax, [ebp - 0x9fc]
push eax
lea eax, [ebp - 0xa04]
push eax
push 0
push str.InstallLocation
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x443645
cmp word [ebp - 0x9fc], ax
je 0x44361f
lea eax, [ebp - 0x9fc]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x443610
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x9fc]
mov ecx, edi
push eax
call fcn.004383d0
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a0676
mov esp, ebp
pop ebp
ret 8