joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a9b0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ed98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x48]
xor edi, edi
cmp eax, 0xffffffff
je 0x42aa89
test eax, eax
je 0x42aa89
mov ecx, dword [esi + 4]
push dword [esi + 0x48]
mov dword [ebp - 4], edi
mov eax, dword [ecx]
call dword [eax + 4]
sub eax, edi
je 0x42aa4c
sub eax, 1
je 0x42aa17
mov ecx, dword [esi + 4]
push str.invalid_return_value_from_HandleNewConnection__rejecting_connection
push str.Server::OpenAndAcceptConnections_
push 1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [esi + 0x48]
jmp 0x42aa4c
cmp byte [esi + 0x6c], 0
mov dword [ebp - 4], 0xffffffff
je 0x42aa89
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esi + 0x20]
call fcn.0040e0a0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040d1f0
push dword [esi + 0x2c]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
push dword [ebp + 8]
push dword [esi + 0x14]
call fcn.0042bf30
add esp, 0x10
mov dword [esi + 0x48], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d860
cmp edi, 0xffffffff
je 0x42aad8
test edi, edi
je 0x42aad8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x48]
cmp ecx, 0xffffffff
je 0x42aaeb
test ecx, ecx
je 0x42aaeb
mov eax, 1
jmp 0x42aaed
xor eax, eax
test al, al
jne 0x42ab1f
push 0x1b4
push str.._sourceServer.cpp
sub esp, 0x24
mov ecx, esp
call fcn.0040a8f0
lea eax, [ebp - 0x4c]
push eax
call fcn.004074a0
add esp, 0x30
lea eax, [ebp - 0x4c]
push 0x4739cc
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea eax, [esi + 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x42a9d6
cmp eax, 0x3e5
je 0x42aa59
push 0x1c8
push str.._sourceServer.cpp
sub esp, 0x24
mov ecx, esp
call fcn.0040a8f0
lea eax, [ebp - 0x70]
push eax
call fcn.004074a0
add esp, 0x30
lea eax, [ebp - 0x70]
push 0x4739cc
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x42af30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ee3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push str.starting_IPC_Server
push str.Server::Start
push 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x14], edi
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [edi + 0x3c]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x1c], esi
call fcn.004073a0
add edi, 0x30
mov byte [ebp - 4], 1
mov ecx, edi
mov dword [ebp - 0x20], edi
call fcn.004073a0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
mov eax, dword [eax + 0x48]
cmp eax, 0xffffffff
je 0x42afa6
test eax, eax
jne 0x42b0c7
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x50], eax
test eax, eax
je 0x42b0c7
movups xmm0, xmmword [0x4689f4]
mov ecx, edx
movups xmmword [edx + 0x54], xmm0
mov dword [edx + 0x64], eax
mov al, byte [edx + 0x1d]
mov byte [ebp - 0x18], al
push dword [ebp - 0x18]
call fcn.0042a9b0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x48]
cmp eax, 0xffffffff
je 0x42b0c7
test eax, eax
je 0x42b0c7
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x4c], eax
test eax, eax
jne 0x42b05e
push 0x97
push str.._sourceServer.cpp
sub esp, 0x14
xorps xmm0, xmm0
mov eax, esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
movq qword [eax + 4], xmm0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], vtable.ni::dsc::exception::InitializationFailure.0
lea eax, [ebp - 0x34]
push eax
call fcn.0041855e
add esp, 0x20
lea eax, [ebp - 0x34]
push 0x4756e8
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x34
mov dword [ecx + 0x68], 0
call fcn.0041f860
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 3
test ecx, ecx
je 0x42b089
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042c890
mov ecx, eax
jmp 0x42b08b
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x10]
mov dword [eax + 0x70], ecx
push dword [eax + 0xc]
call fcn.0042cab0
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.004073b0
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004073b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8b
push str.._sourceServer.cpp
sub esp, 0x14
xorps xmm0, xmm0
mov eax, esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
movq qword [eax + 4], xmm0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], vtable.ni::dsc::exception::InitializationFailure.0
lea eax, [ebp - 0x48]
push eax
call fcn.0041855e
add esp, 0x20
lea eax, [ebp - 0x48]
push 0x4756e8
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov ecx, dword [ebp - 0x14]
call fcn.0042b130
push 0
push 0
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x42b130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ee72
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
push edi
push str.stopping_IPC_Server
push str.Server::Stop
mov ecx, dword [ebx + 4]
push 0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [ebx + 0x30]
mov ecx, edi
mov dword [ebp - 0x10], edi
call fcn.004073a0
cmp byte [ebx + 0x8d], 0
mov dword [ebp - 4], 0
je 0x42b18a
mov dword [ebp - 4], 1
jmp 0x42b2c9
push dword [ebx + 0x4c]
mov word [ebx + 0x8c], 0x101
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x42b1b4
mov ecx, dword [ebx + 4]
push str.failed_to_signal_the_notification_event
push str.Server::SendNotification_
push 1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x48]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x42b1cf
test eax, eax
je 0x42b1cf
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x42b1e0
push eax
call ecx
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x48], 0
mov eax, dword [ebx + 0x74]
push esi
mov esi, dword [eax]
cmp eax, esi
je 0x42b207
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, dword [esi]
cmp dword [ebx + 0x74], esi
jne 0x42b1f8
mov eax, dword [ebx + 0x7c]
mov esi, dword [eax]
cmp eax, esi
je 0x42b21f
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, dword [esi]
cmp dword [ebx + 0x7c], esi
jne 0x42b210
mov eax, dword [ebx + 0x84]
mov esi, dword [eax]
cmp eax, esi
je 0x42b242
nop dword [eax + eax]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, dword [esi]
cmp dword [ebx + 0x84], esi
jne 0x42b230
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.004073b0
mov ecx, dword [ebx + 0x70]
mov dword [ebp - 4], 0xffffffff
pop esi
test ecx, ecx
je 0x42b265
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, edi
mov dword [ebx + 0x70], 0
mov dword [ebp - 0x10], edi
call fcn.004073a0
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 4], 3
test eax, eax
je 0x42b292
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x4c], 0
lea eax, [ebx + 0x74]
push eax
call fcn.0042a150
lea eax, [ebx + 0x7c]
push eax
call fcn.0042a150
lea eax, [ebx + 0x84]
push eax
call fcn.0042a150
mov ecx, dword [ebx + 4]
add esp, 0xc
mov dword [ebx + 0x68], 0
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 4
mov ecx, edi
call fcn.004073b0
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42c660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
lea eax, [esi + 8]
push eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 1]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42c6a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x42c6a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42c6b5
mov byte [esi + 0x1c], 1
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x42c69f
push 0x51
jmp 0x42c6b7
push 0x61
push str.._sourceNamedPipeListener.cpp
sub esp, 0x24
mov ecx, esp
call fcn.0040a8f0
lea eax, [ebp - 0x30]
push eax
call fcn.004074a0
add esp, 0x30
lea eax, [ebp - 0x30]
push 0x4739cc
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x42ce80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f079
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
mov dword [esi], vtable.ni::ipc::SocketStream.0
call fcn.00407360
push 0
push 0
push 1
push 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
or ecx, 0xffffffff
test eax, eax
cmove eax, ecx
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], 0
lea edi, [esi + 0x14]
mov esi, dword [ebp + 8]
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], edi
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
movzx eax, byte [esi + 8]
mov byte [edi + 8], al
movzx eax, byte [esi + 9]
mov byte [edi + 9], al
lea eax, [esi + 0xc]
push eax
call fcn.0040d070
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 3
cmp dword [eax + 0xc], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
jne 0x42cf83
push 0x99
push str.._sourceSocketStream.cpp
sub esp, 0x14
xorps xmm0, xmm0
mov eax, esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
movq qword [eax + 4], xmm0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], vtable.ni::dsc::exception::InitializationFailure.0
lea eax, [ebp - 0x28]
push eax
call fcn.0041855e
add esp, 0x20
lea eax, [ebp - 0x28]
push 0x4756e8
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43a88f
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x460505
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
and dword [ebp - 4], 0
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x43a8bb
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0x4c]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x43a8ce
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [edi + 0x40]
call fcn.0043bdbf
lea ecx, [edi + 0x30]
call fcn.0043a168
lea ecx, [edi + 0x28]
call fcn.0043a717
lea ecx, [edi + 0x18]
call fcn.0043a168
lea ecx, [edi + 0x10]
call fcn.0043a717
mov ecx, edi
call fcn.0043a168
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44e300
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
lea eax, [esi + 8]
mov byte [esi + 0xc], 1
push eax
push 4
push esi
push 0x44e3a0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x44e369
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x44e351
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
push 0x1f7
jmp 0x44e36e
mov eax, dword [ebp + 8]
test eax, eax
je 0x44e362
push eax
push esi
call fcn.0044e550
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x1f0
push str.nidscosdepThread.cpp
sub esp, 0x24
mov ecx, esp
call fcn.0040a8f0
lea eax, [ebp - 0x24]
push eax
call fcn.004074a0
add esp, 0x30
lea eax, [ebp - 0x24]
push 0x4739cc
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x401090
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40331c], eax
mov eax, dword [ebp + 4]
mov dword [0x40316b], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bb
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40316b]
mov dword [ebp - 0x48], eax
mov eax, 0x4022a0
mov dword [ebp - 0x54], eax
mov ecx, 0x403216
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40316b]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403368], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403368]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401179
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116b
mov esp, ebp
ret
Function at 0x404564
Capabilities:
Identify system language via api

Disassembly:
push ebp
push ebx
call fcn.0048afd0
call fcn.004051a5
push 0x5a
call fcn.004835ad
push eax
mov eax, 0x545028
push eax
push 0
push 0x53
call fcn.0046b1e0
push 0x17
call fcn.004835ad
push eax
mov eax, 0x545028
push eax
push 1
push 0x53
call fcn.0046b1e0
push 8
call fcn.004835ad
push eax
mov eax, 0x545028
push eax
push 2
push 0x53
call fcn.0046b1e0
call sub.KERNEL32.dll_GetUserDefaultLangID
mov ebx, eax
and ebx, 0x3ff
push ebx
mov ebx, 4
cmp ebx, dword [esp]
je 0x4045fc
mov ebx, 4
cmp ebx, dword [esp]
je 0x4045fc
mov ebx, 0x7c04
cmp ebx, dword [esp]
jne 0x40463e
mov ebp, dword [0x63529c]
mov edx, 0x55c11a
lea ecx, [ebp]
call fcn.00441008
mov eax, 0x55c11a
push eax
call fcn.0040c340
push 2
push 0x53
call fcn.0046b245
mov eax, 0x55c11a
push eax
push 0x53
call fcn.0046b27d
jmp 0x4046c4
mov ebx, 9
cmp ebx, dword [esp]
jne 0x404687
mov ebp, dword [0x63529c]
mov edx, str.English
lea ecx, [ebp]
call fcn.00441008
mov eax, str.English
push eax
call fcn.0040c340
push 1
push 0x53
call fcn.0046b245
mov eax, str.English
push eax
push 0x53
call fcn.0046b27d
jmp 0x4046c4
mov ebp, dword [0x63529c]
mov edx, 0x5466f0
lea ecx, [ebp]
call fcn.00441008
mov eax, 0x5466f0
push eax
call fcn.0040c340
push 0
push 0x53
call fcn.0046b245
mov eax, 0x5466f0
push eax
push 0x53
call fcn.0046b27d
pop eax
call fcn.004046d6
call fcn.00428b9b
jmp 0x4046ca
Function at 0x405730
Capabilities:
Delete registry value

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048afd0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00441000
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00441000
mov dword [esp + 0xc], 0x20006
cmp dword [esp + 0x2c], 0
je 0x405774
mov ebx, dword [esp + 0xc]
or ebx, 0x100
mov dword [esp + 0xc], ebx
push edx
call fcn.0048ae60
pop edx
push eax
push edx
call fcn.0048ae60
pop edx
push eax
push 1
push dword [esp + 0xc]
call fcn.00488710
call fcn.0048b030
mov edx, 0x547a00
call fcn.00441330
mov ecx, eax
call fcn.00441340
je 0x4057da
push edx
call fcn.0048ae60
pop edx
push eax
push edx
call fcn.0048ae60
pop edx
push eax
push dword [esp + 8]
call fcn.00488780
mov ebx, eax
dec ebx
push ebx
push dword [esp + 0xc]
call fcn.004887b0
lea eax, [esp + 4]
push eax
call fcn.0048af00
push edx
call fcn.0048ae60
pop edx
push eax
push edx
call fcn.0048ae60
pop edx
push eax
push 1
push dword [esp + 0xc]
call fcn.004887b0
call fcn.0048b030
mov edx, 0x547a00
call fcn.00441330
mov ecx, eax
call fcn.00441340
je 0x405840
push edx
call fcn.0048ae60
pop edx
push eax
push edx
call fcn.0048ae60
pop edx
push eax
push dword [esp + 8]
call fcn.00488780
mov ebx, eax
dec ebx
push ebx
push dword [esp + 0xc]
call fcn.00488710
lea eax, [esp + 4]
push eax
call fcn.0048af00
mov ebx, dword [esp + 0x30]
and ebx, ebx
je 0x40585b
push 0x561fa0
push 0x24
push dword [esp + 0x38]
call fcn.00489d20
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push 0
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x4058c6
mov ebx, dword [esp + 0x30]
and ebx, ebx
je 0x4058b2
push dword [esp + 8]
mov ebp, dword [esp + 0x34]
pop dword [ebp + 8]
push edx
call fcn.0048ae60
pop edx
push eax
push dword [esp + 0xc]
call fcn.00406af2
mov ebp, dword [esp + 0x34]
lea eax, [ebp + 0xc]
push eax
call fcn.0048af00
cmp dword [esp + 0x10], 0
je 0x4058c2
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegCloseKey
xor eax, eax
jmp 0x405925
push dword [esp + 4]
push dword [esp + 0x14]
call sub.ADVAPI32.dll_RegDeleteValueW
mov dword [esp + 8], eax
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegCloseKey
cmp dword [esp + 8], 0
je 0x40591c
mov ebx, dword [esp + 0x30]
and ebx, ebx
je 0x405918
push dword [esp + 8]
mov ebp, dword [esp + 0x34]
pop dword [ebp + 8]
push edx
call fcn.0048ae60
pop edx
push eax
push dword [esp + 0xc]
call fcn.00406af2
mov ebp, dword [esp + 0x34]
lea eax, [ebp + 0xc]
push eax
call fcn.0048af00
xor eax, eax
jmp 0x405925
mov eax, 1
jmp 0x405925
push dword [esp]
call fcn.0048b060
push dword [esp + 4]
call fcn.0048b060
add esp, 0x14
pop ebx
pop ebp
ret 0x14
Function at 0x40bd7f
Capabilities:
Identify system language via api

Disassembly:
push ebp
push ebx
call fcn.0048afd0
call fcn.004092ca
push 0x2f
push 0
call fcn.0041c9f5
push 0xffffffec
push 0x2d
call fcn.0046e11d
push eax
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
or ebx, 0x20
push ebx
push 0xffffffec
push 0x2d
call fcn.0046e11d
push eax
call sub.USER32.dll_SetWindowLongW
push 0x5a
call fcn.004835ad
push eax
mov eax, 0x545028
push eax
push 0
push 5
call fcn.0046b1e0
push 0x17
call fcn.004835ad
push eax
mov eax, 0x545028
push eax
push 1
push 5
call fcn.0046b1e0
push 8
call fcn.004835ad
push eax
mov eax, 0x545028
push eax
push 2
push 5
call fcn.0046b1e0
mov ebp, dword [0x6352bc]
mov ebx, dword [ebp + 0x20]
cmp ebx, 1
jne 0x40bee1
call sub.KERNEL32.dll_GetUserDefaultLangID
mov ebx, eax
and ebx, 0x3ff
push ebx
mov ebx, 4
cmp ebx, dword [esp]
jne 0x40be80
mov eax, 0x55c11a
push eax
call fcn.0040c340
push 2
push 5
call fcn.0046b245
mov eax, 0x55c11a
push eax
push 5
call fcn.0046b27d
jmp 0x40bee0
mov ebx, 9
cmp ebx, dword [esp]
jne 0x40beb6
mov eax, str.English
push eax
call fcn.0040c340
push 1
push 5
call fcn.0046b245
mov eax, str.English
push eax
push 5
call fcn.0046b27d
jmp 0x40bee0
mov eax, 0x5466f0
push eax
call fcn.0040c340
push 0
push 5
call fcn.0046b245
mov eax, 0x5466f0
push eax
push 5
call fcn.0046b27d
pop eax
mov ebp, dword [0x6352bc]
mov ebx, dword [ebp + 0x20]
xor ebx, 1
and ebx, ebx
je 0x40bf9f
mov ebp, dword [0x63529c]
push dword [ebp]
mov edx, 0x55c11a
mov ecx, dword [esp]
call fcn.00441340
je 0x40bf39
mov eax, 0x55c11a
push eax
call fcn.0040c340
push 2
push 5
call fcn.0046b245
mov eax, 0x55c11a
push eax
push 5
call fcn.0046b27d
jmp 0x40bf9e
mov edx, str.English
mov ecx, dword [esp]
call fcn.00441340
je 0x40bf74
mov eax, str.English
push eax
call fcn.0040c340
push 1
push 5
call fcn.0046b245
mov eax, str.English
push eax
push 5
call fcn.0046b27d
jmp 0x40bf9e
mov eax, 0x5466f0
push eax
call fcn.0040c340
push 0
push 5
call fcn.0046b245
mov eax, 0x5466f0
push eax
push 5
call fcn.0046b27d
pop eax
call fcn.0040a4f4
call fcn.00407326
call fcn.0043bc53
mov ebp, dword [0x6352bc]
mov ebx, dword [ebp + 0x20]
cmp ebx, 1
jne 0x40bfc3
call fcn.00428b9b
jmp 0x40bfbc
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x41cdd1
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0048afd0
push dword [esp + 0x14]
call fcn.00441320
lea eax, [esp]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call sub.SHELL32.dll_SHGetKnownFolderPath
cmp dword [esp], 0
je 0x41ce2a
push edx
call fcn.0048ae60
pop edx
push eax
push edx
call fcn.0048ae60
pop edx
push eax
push dword [esp + 8]
call fcn.00489fb0
lea eax, [esp + 8]
push eax
call fcn.0048af00
push dword [esp]
call sub.ole32.dll_CoTaskMemFree
mov edx, dword [esp + 4]
push edx
call fcn.0048ae60
pop edx
push eax
push edx
call fcn.0048aea0
pop eax
push eax
call fcn.004412f0
pop edx
add eax, edx
jmp 0x41ce52
push dword [esp + 4]
call fcn.0048b060
add esp, 8
ret 8
Function at 0x41d3f3
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41d3fa
call fcn.0048afd0
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00441000
mov edx, dword [esp + 0x34]
lea ecx, [esp + 4]
call fcn.00441000
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
call fcn.00441000
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
call fcn.00441000
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x10]
call fcn.00441000
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x14]
call fcn.00441000
push 0
call sub.ole32.dll_CoInitialize
lea eax, [esp + 0x18]
push eax
mov ebp, 0x631328
push ebp
push 1
push 0
mov ebp, 0x631308
push ebp
call sub.ole32.dll_CoCreateInstance
mov ebx, eax
and ebx, ebx
jne 0x41d567
sub esp, 4
push dword [esp + 4]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
add esp, 4
sub esp, 4
push dword [esp + 0xc]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
add esp, 4
sub esp, 4
push dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
add esp, 4
sub esp, 4
push dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
add esp, 4
push dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
push 0
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
sub esp, 4
push dword [esp + 0x50]
push dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
add esp, 4
lea eax, [esp + 0x1c]
push eax
mov ebp, 0x631318
push ebp
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax]
mov ebx, eax
and ebx, ebx
jne 0x41d55d
sub esp, 4
push 1
push dword [esp + 0xc]
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
add esp, 4
mov ebx, eax
and ebx, ebx
jne 0x41d553
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.ole32.dll_CoUninitialize
mov eax, dword [esp + 0x20]
jmp 0x41d574
push dword [esp + 8]
call fcn.0048b060
push dword [esp + 0xc]
call fcn.0048b060
push dword [esp]
call fcn.0048b060
push dword [esp + 4]
call fcn.0048b060
push dword [esp + 0x10]
call fcn.0048b060
push dword [esp + 0x14]
call fcn.0048b060
add esp, 0x24
pop ebx
pop ebp
ret 0x20