joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401170
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x4055e0
push 0x68
push esi
call edi
push 0x64
push 0x405648
push 0x70
push esi
call edi
xor eax, eax
push 0x7f00
push eax
mov dword [0x4031a9], esi
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6e
push esi
mov dword [ebp - 0x30], eax
call edi
mov edx, dword [ebp - 0x38]
push 0x6c
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], 0x6e
mov dword [ebp - 0x24], str.Clariot
call edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x44], 0x401480
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov ecx, dword [ebp + 0x14]
push ecx
push esi
call fcn.004013f0
add esp, 8
test eax, eax
jne 0x40123d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
invalid
je 0x401293
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
lea esp, [esp]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ecx
call edi
test eax, eax
jne 0x401283
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
and byte [eax], al
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
call esi
test eax, eax
jne 0x401260
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4012af
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4012d8
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4012d0
cmp al, 0x22
jne 0x4012c4
cmp byte [esi], 0x22
jne 0x4012e2
inc esi
jmp 0x4012e2
cmp al, 0x20
jle 0x4012e2
inc esi
cmp byte [esi], 0x20
jg 0x4012dc
mov al, byte [esi]
test al, al
je 0x4012ec
cmp al, 0x20
jle 0x4012d5
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401d56
push 0x403004
push section..data
call fcn.00401d3c
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40131c
movzx eax, word [ebp - 0x14]
jmp 0x40131f
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00401d6e
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4013f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x4031a9], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401437
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret
Function at 0x8f21c30
Capabilities:
Write file on windows

Disassembly:
push ebp
push esi
push edi
add esp, 0xfffffef4
mov edi, dword [esp + 0x11c]
mov al, byte [edi]
test al, al
je 0x8f21c52
xor esi, esi
inc esi
mov al, byte [edi + esi]
test al, al
jne 0x8f21c48
jmp 0x8f21c54
xor esi, esi
test esi, esi
je 0x8f21cfe
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebp, eax
cmp ebp, 0xffffffff
je 0x8f21ca5
call fcn.08f22020
test al, al
jne 0x8f21ca5
push 0
lea eax, [esp + 0x10c]
push eax
push esi
push edi
push ebp
mov dword [esp + 0x11c], esi
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [esp + 0x10c]
push ecx
push 2
push 0x8f23c38
push ebp
call sub.KERNEL32.DLL_WriteFile
jmp 0x8f21cef
push 0
mov dword [esp + 0x10c], esi
call sub.KERNEL32.DLL_GetModuleHandleA
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
jne 0x8f21ccb
mov byte [esp], 0
push 0x8f23c48
call sub.KERNEL32.DLL_LoadLibraryA
push str.MessageBoxA
push eax
call sub.KERNEL32.DLL_GetProcAddress
push 0x12010
lea ecx, [esp + 4]
push ecx
push edi
push 0
call eax
mov eax, dword [0x8f24010]
test eax, eax
je 0x8f21cfe
push edi
call fcn.08f21fc0
sub esp, 0xfffffef4
pop edi
pop esi
pop ebp
ret 4

Function at 0x8f21eb0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
add esp, 0xfffffaec
mov al, byte [0x8f24014]
test al, al
je 0x8f21ec6
mov al, 1
jmp 0x8f21fb6
push dword [0x8f24010]
push str.SYSTEMCurrentControlSetServicesEventLogApplication_s
lea ecx, [esp + 0x11c]
push ecx
call fcn.08f21bc0
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x11c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x13c]
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegCreateKeyExA
sub esp, 0xfffffff4
test eax, eax
je 0x8f21f1b
xor al, al
jmp 0x8f21fb6
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 0x104
lea ecx, [esp + 8]
push ecx
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
je 0x8f21fb4
lea eax, [esp + 4]
push eax
call fcn.08f222c0
inc eax
push eax
lea ecx, [esp + 8]
push ecx
push 2
push 0
push str.EventMessageFile
mov eax, dword [esp + 0x120]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
mov ecx, eax
mov eax, dword [esp + 0x10c]
test ecx, ecx
je 0x8f21f74
push eax
call sub.ADVAPI32.DLL_RegCloseKey
xor al, al
jmp 0x8f21fb6
push 4
lea ecx, [esp + 4]
push ecx
push 4
push 0
push str.TypesSupported
push eax
mov dword [esp + 0x18], 7
call sub.ADVAPI32.DLL_RegSetValueExA
mov edx, eax
mov eax, dword [esp + 0x10c]
test edx, edx
je 0x8f21fa9
push eax
call sub.ADVAPI32.DLL_RegCloseKey
xor al, al
jmp 0x8f21fb6
mov byte [0x8f24014], 1
mov al, 1
jmp 0x8f21fb6
xor al, al
sub esp, 0xfffffaec
ret

Function at 0x8f22040
Capabilities:
Parse pe header

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp word [edi], 0x5a4d
je 0x8f22056
push str.Invalid_DOS_signature
call fcn.08f21d10
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
je 0x8f2206b
push str.Invalid_PE_signature
call fcn.08f21d10
mov eax, edi
pop edi
ret 4
Function at 0x401170
Capabilities:
Access peb ldr_data
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4019f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
lea ecx, [esp]
call sub.MFC42.DLL_CFileFind::CFileFind
push 0
push str.data_neter.exe
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4011cd
lea ecx, [esp]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040167e
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor esi, esi
push str.neter.exe
call ebx
push 0
push str.neter.exe
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40120f
push 0x12c
call edi
inc esi
cmp esi, 5
jl 0x4011e5
jmp 0x401221
push 0
push str.neter.exe
push str.data_neter.exe
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040167e
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x401250
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x401a40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov al, byte [0x40311c]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x14]
lea ecx, [esp + 8]
push edx
mov dword [esp + 0x124], 1
call sub.MFC42.DLL_CString::operator_1
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 1
call fcn.00401660
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [esp + 0x128]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x120], 0
call fcn.00401660
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 4
Function at 0x4018e0
Capabilities:
Create thread
Hide graphical window
Resume thread

Disassembly:
push ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffbffff
or eax, 0x80
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 0x51
push 0
push 0
push 0xfffff830
push 0xfffff830
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x140], 0
jne 0x401986
lea eax, [esp]
push eax
push 0
push esi
push 0x401ba0
push 0
push 0
call fcn.00409776
add esp, 0x18
mov dword [esi + 0x140], eax
test eax, eax
je 0x401986
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop ecx
ret
Function at 0x401990
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push edi
jmp 0x4019a0
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, dword [0x41f3ac]
mov edx, 0x419e94
shr edx, 0x10
mov ebx, esp
mov dword [esp + 0x14], esp
mov dword [ebx], ecx
test edx, edx
jne 0x4019d1
mov eax, 0x419e94
movzx ecx, ax
mov edx, ebx
call fcn.004030e0
jmp 0x401a0a
push 0x419e94
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x401a0a
mov ecx, edi
mov edx, ebx
call fcn.004031d0
test eax, eax
je 0x401a0a
lea eax, [edi + edi]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x401a0a
mov edx, dword [ebx]
push eax
push 0x419e94
push edx
call fcn.0040b5e0
add esp, 0xc
lea eax, [esi + 0x138]
push eax
call fcn.00408930
test eax, eax
je 0x401b5d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ecx, ebx
sub ecx, edi
cmp ecx, 0x2a
mov dword [esi + 0x144], eax
jge 0x401a42
lea edi, [ebx - 0x2a]
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
sub eax, ecx
sub eax, ebx
add eax, edi
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov eax, ecx
sub eax, edi
add eax, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
lea eax, [edi - 2]
push eax
mov dword [esp + 0x28], edi
mov edi, dword [sym.imp.USER32.dll_WindowFromPoint]
push ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x28], ecx
call edi
cmp eax, dword [esi + 0x13c]
jne 0x401acc
mov edx, dword [esp + 0x20]
add ebx, 2
push ebx
push edx
call edi
cmp eax, dword [esi + 0x13c]
jne 0x401acc
mov eax, dword [esp + 0x24]
add eax, 0xfffffffe
push eax
mov eax, dword [esp + 0x2c]
push eax
call edi
cmp eax, dword [esi + 0x13c]
jne 0x401acc
mov ecx, dword [esp + 0x28]
push ebx
push ecx
call edi
cmp eax, dword [esi + 0x13c]
jne 0x401acc
xor edx, edx
jmp 0x401ad0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
push 0x58
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
sub edi, ecx
push edi
push eax
push ecx
push edx
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x90]
mov eax, dword [eax + 0x18]
lea ecx, [esi + 0x90]
lea edx, [esp + 0x30]
push edx
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
push 1
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4019a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x144]
cmp eax, 0x1f4
jb 0x4019a0
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
push 0
push 0
push 0x4c8
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4019a0
Function at 0x401ca0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x416e38
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41e280]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x41e280]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
lea eax, [esp + 0x2c]
push eax
call fcn.004066f0
add esp, 4
mov ebx, str.jiuzhou
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x10]
mov dword [esp + 0x54], 0
call fcn.00402640
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 1
call fcn.00402040
mov edi, 8
mov byte [esp + 0x54], 0
cmp dword [esp + 0x28], edi
jb 0x401d28
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00409650
add esp, 4
mov ebx, str..exe
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x10]
call fcn.00402640
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 2
call fcn.00402040
cmp dword [esp + 0x28], edi
jb 0x401d60
mov edx, dword [esp + 0x14]
push edx
call fcn.00409650
add esp, 4
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x401d6e
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401d98
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x401d87
lea eax, [esp + 0x30]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x44], edi
jb 0x401dab
mov eax, dword [esp + 0x30]
push eax
call fcn.00409650
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040965b
add esp, 0x48
ret

Function at 0x402640
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x416c78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x41e280]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], ax
call fcn.00402040
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402693
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.004026f0
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00402040
cmp dword [esp + 0x24], 8
jb 0x4026dd
mov eax, dword [esp + 0x10]
push eax
call fcn.00409650
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x403b00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x41e280]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.00403ea0
xor eax, eax
mov dword [esp + 0x44], esi
mov word [esp + 0x34], ax
mov dword [esp + 0x10], esi
push 7
mov eax, str.jiuzhou
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
call fcn.00403660
mov ecx, esi
mov ebx, 0x41a1ac
lea esi, [esp + 0x14]
call fcn.00402640
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00402040
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x403b8c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00409650
add esp, 4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x403b9a
lea eax, [esp + 0x34]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403bf1
mov edx, dword [ebp + 0x14]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x42059c
push 0x67
push edi
mov dword [0x420594], edi
mov dword [0x420598], edx
call esi
push 0x64
push 0x420664
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00403c80
call fcn.00403400
mov edi, eax
jmp 0x403bf5
mov edi, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00403d40
mov esi, dword [0x4208c8]
xor ebx, ebx
cmp esi, ebx
je 0x403c3d
mov eax, dword [esi]
cmp eax, ebx
je 0x403c1e
push eax
call fcn.00409e19
add esp, 4
mov dword [esi], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x403c31
push eax
call fcn.00409e19
add esp, 4
mov dword [esi + 4], ebx
push esi
mov dword [esi + 8], ebx
call fcn.00409650
add esp, 4
call fcn.00403dc0
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x48], 8
jb 0x403c62
mov eax, dword [esp + 0x34]
push eax
call fcn.00409650
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040965b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4050d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4050e0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4050f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4055d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x41e280]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40564a
xor eax, eax
cmp ecx, ebp
je 0x405632
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x405658
cmp ecx, ebp
je 0x4056eb
push ecx
jmp 0x4056e5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x4056ba
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.004055d0
mov ebx, eax
cmp ebx, ebp
jne 0x405708
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x405680
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4056cd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00405780
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4056eb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040965b
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x405717
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4056ed
Function at 0x406200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x416e70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41e280]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40627f
call fcn.004049c0
mov esi, eax
jmp 0x406361
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40629b
call fcn.004049c0
jmp 0x406358
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x4062b4
call fcn.004049c0
jmp 0x406358
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x4062e8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4062d6
lea eax, [ebp]
call fcn.00405140
lea esi, [ebp - 0x1c]
call fcn.00405120
mov eax, 0x8007000e
jmp 0x406373
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00404980
mov dword [ebp - 4], 1
jmp 0x406311
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40631f
mov esi, 0x8007000e
jmp 0x40635a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40633d
call fcn.004049c0
jmp 0x406358
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.004060b0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x406371
lea eax, [ebp]
call fcn.00405140
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040965b
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc