joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100235e
Capabilities:
Check mutex on windows
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x1006074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
xor esi, esi
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x30a]
push esi
push eax
xor ebx, ebx
mov dword [ebp - 0x310], 0x7f
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push 0x1001598
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x1002469
xor eax, eax
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [ebp - 0x310]
xor eax, eax
mov word [ebp + ecx*2 - 0x104], ax
lea eax, [ebp - 0x104]
push eax
push 0x1001588
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1002469
push 0x1001574
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1001564
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1006268], eax
cmp eax, esi
je 0x100241f
push esi
call eax
push esi
push 0x104
lea eax, [ebp - 0x30c]
push eax
push 0x1001538
call fcn.0100366b
lea eax, [ebp - 0x30c]
push eax
push esi
push esi
call fcn.01003445
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x100625c], eax
cmp eax, esi
jne 0x100245c
xor ebx, ebx
inc ebx
jmp 0x1002518
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002471
xor ebx, ebx
inc ebx
jmp 0x100251e
push edi
call fcn.01002214
test eax, eax
je 0x1002498
push dword [ebp + 0x14]
push edi
call fcn.01001da0
test eax, eax
je 0x1002498
push dword [0x1006140]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x100249d
xor ebx, ebx
inc ebx
jmp 0x10024fc
push 1
push 0x1ff
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
call fcn.01001eb4
call fcn.0100254e
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x10024df
cmp dword [ebp - 0x328], 0x10
je 0x10024f1
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x32c]
push eax
call edi
test eax, eax
jne 0x10024bc
jmp 0x10024fc
push dword [ebp - 0x32c]
call fcn.01001d71
mov eax, dword [0x100625c]
cmp eax, esi
je 0x100251e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x100625c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100625c], esi
call fcn.010025fa
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01002cd8
leave
ret 0x10

Function at 0x1003767
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x100187c
mov dword [ebp - 4], esi
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x10037a2
call fcn.010036f9
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1003799
inc esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
leave
ret
Function at 0x1003900
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10018e8
push 0x80000002
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10039a5
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x10018d4
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x1003967
cmp dword [ebp - 0xc], edi
jne 0x1003967
mov dword [ebp - 8], edi
jmp 0x100399a
call fcn.01003767
test eax, eax
je 0x100399a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x10018a0
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x100399a
inc eax
cmp dword [ebp - 0x10], eax
jne 0x100399a
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, dword [ebp - 8]
pop edi
leave
ret
Function at 0x409a60
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x484d84], 0
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
jne 0x409a9d
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409a88
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x409a7a
mov dword [ecx*4 + 0x484d80], eax
inc ecx
cmp ecx, 0x100
jne 0x409a73
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x409abf
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x484d80]
jmp 0x409aa7
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x401570
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ba9f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.004b5fa0
xor ebp, ebp
mov dword [esi + 0x24], 0x4bfb20
mov dword [esp + 0x20], ebp
mov dword [esi + 0x28], 0x64
lea edi, [esi + 0x2c]
mov byte [esp + 0x20], 1
mov ecx, edi
call fcn.004a6ec0
mov al, byte [esp + 0x13]
mov dword [esi + 0x30], 0x4bfb10
mov byte [esi + 0x34], al
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
lea ecx, [esi + 0x4c]
mov byte [esp + 0x20], 3
call fcn.0049b350
lea ecx, [esi + 0xac]
mov byte [esp + 0x20], 4
call fcn.004b00c0
mov ebx, 5
lea ecx, [esi + 0x7a0]
mov byte [esp + 0x20], bl
call fcn.004b00c0
lea ecx, [esi + 0x2f70]
mov byte [esp + 0x20], 6
mov dword [esi + 0xe94], ebp
mov dword [esi + 0xe98], ebp
mov dword [esi + 0xe9c], ebp
mov dword [esi + 0xea0], ebp
call fcn.00463fa0
lea ecx, [esi + 0x2f88]
mov byte [esp + 0x20], 7
call fcn.00463fa0
lea ecx, [esi + 0x2fa0]
mov byte [esp + 0x20], 8
call fcn.00463fa0
lea ecx, [esi + 0x2fbc]
mov byte [esp + 0x20], 9
call fcn.00463fa0
lea ecx, [esi + 0x3020]
mov byte [esp + 0x20], 0xa
call fcn.00463fa0
lea ecx, [esi + 0x3038]
mov byte [esp + 0x20], 0xb
call fcn.00463fa0
push ebp
lea ecx, [esi + 0x50f8]
mov byte [esp + 0x24], 0xc
call fcn.00496920
mov dword [esi], 0x4bfafc
mov dword [esi + 0x24], 0x4bfaf4
mov dword [edi], 0x4bfaf0
mov dword [esi + 0x30], 0x4bfae0
mov dword [esi + 0x44], ebp
mov dword [esi + 0x2f58], ebp
mov dword [esi + 0x2f5c], ebp
mov dword [esi + 0x3014], ebp
mov dword [esi + 0x2fdc], ebx
mov dword [esi + 0x2fe4], ebp
mov dword [esi + 0x2fe0], ebx
mov dword [esi + 0x2fe8], ebp
mov dword [esi + 0x2fec], ebp
mov dword [esi + 0x2ff0], 0x1a
mov dword [esi + 0x2ffc], ebp
mov eax, 3
mov dword [esi + 0x3000], ebx
mov dword [esi + 0x2ff4], eax
mov edx, 0x20
mov dword [esi + 0x2f6c], eax
mov ecx, 0x412
xor eax, eax
lea edi, [esi + 0x40a8]
mov dword [esi + 0x3018], ebp
mov dword [esi + 0x2ff8], 0x10
mov dword [esi + 0x3004], ebp
mov dword [esi + 0x3008], ebp
mov dword [esi + 0x300c], ebp
mov dword [esi + 0x3010], 0xa9a9a9
mov dword [esi + 0x2fd8], ebp
mov dword [esi + 0x2fd4], ebp
mov dword [esi + 0x2f54], edx
mov dword [esi + 0xea8], ebp
mov dword [esi + 0xeac], ebp
mov dword [esi + 0xeb0], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x2f50], ebp
mov dword [esi + 0x2f60], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x412
lea edi, [esi + 0x3060]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
or eax, 0xffffffff
mov dword [esi + 0x50f4], eax
mov dword [esi + 0x50f0], eax
mov dword [esi + 0xeb4], ebp
mov word [esi + 0xeb8], bp
mov word [esi + 0x1f00], bp
mov dword [esi + 0x2f48], ebp
mov dword [esi + 0x2f4c], ebp
mov dword [esi + 0x5130], ebp
mov dword [esi + 0x305c], 0x12
mov dword [esi + 0x3054], ebp
mov dword [esi + 0x301c], ebp
mov dword [esi + 0x3058], edx
mov dword [esi + 0x2fb8], ebp
mov dword [esi + 0x2f68], ebp
mov dword [esi + 0xea4], ebp
mov dword [esi + 0x2f64], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40158a
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ba9f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.004b5fa0
xor ebp, ebp
mov dword [esi + 0x24], 0x4bfb20
mov dword [esp + 0x20], ebp
mov dword [esi + 0x28], 0x64
lea edi, [esi + 0x2c]
mov byte [esp + 0x20], 1
mov ecx, edi
call fcn.004a6ec0
mov al, byte [esp + 0x13]
mov dword [esi + 0x30], 0x4bfb10
mov byte [esi + 0x34], al
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
lea ecx, [esi + 0x4c]
mov byte [esp + 0x20], 3
call fcn.0049b350
lea ecx, [esi + 0xac]
mov byte [esp + 0x20], 4
call fcn.004b00c0
mov ebx, 5
lea ecx, [esi + 0x7a0]
mov byte [esp + 0x20], bl
call fcn.004b00c0
lea ecx, [esi + 0x2f70]
mov byte [esp + 0x20], 6
mov dword [esi + 0xe94], ebp
mov dword [esi + 0xe98], ebp
mov dword [esi + 0xe9c], ebp
mov dword [esi + 0xea0], ebp
call fcn.00463fa0
lea ecx, [esi + 0x2f88]
mov byte [esp + 0x20], 7
call fcn.00463fa0
lea ecx, [esi + 0x2fa0]
mov byte [esp + 0x20], 8
call fcn.00463fa0
lea ecx, [esi + 0x2fbc]
mov byte [esp + 0x20], 9
call fcn.00463fa0
lea ecx, [esi + 0x3020]
mov byte [esp + 0x20], 0xa
call fcn.00463fa0
lea ecx, [esi + 0x3038]
mov byte [esp + 0x20], 0xb
call fcn.00463fa0
push ebp
lea ecx, [esi + 0x50f8]
mov byte [esp + 0x24], 0xc
call fcn.00496920
mov dword [esi], 0x4bfafc
mov dword [esi + 0x24], 0x4bfaf4
mov dword [edi], 0x4bfaf0
mov dword [esi + 0x30], 0x4bfae0
mov dword [esi + 0x44], ebp
mov dword [esi + 0x2f58], ebp
mov dword [esi + 0x2f5c], ebp
mov dword [esi + 0x3014], ebp
mov dword [esi + 0x2fdc], ebx
mov dword [esi + 0x2fe4], ebp
mov dword [esi + 0x2fe0], ebx
mov dword [esi + 0x2fe8], ebp
mov dword [esi + 0x2fec], ebp
mov dword [esi + 0x2ff0], 0x1a
mov dword [esi + 0x2ffc], ebp
mov eax, 3
mov dword [esi + 0x3000], ebx
mov dword [esi + 0x2ff4], eax
mov edx, 0x20
mov dword [esi + 0x2f6c], eax
mov ecx, 0x412
xor eax, eax
lea edi, [esi + 0x40a8]
mov dword [esi + 0x3018], ebp
mov dword [esi + 0x2ff8], 0x10
mov dword [esi + 0x3004], ebp
mov dword [esi + 0x3008], ebp
mov dword [esi + 0x300c], ebp
mov dword [esi + 0x3010], 0xa9a9a9
mov dword [esi + 0x2fd8], ebp
mov dword [esi + 0x2fd4], ebp
mov dword [esi + 0x2f54], edx
mov dword [esi + 0xea8], ebp
mov dword [esi + 0xeac], ebp
mov dword [esi + 0xeb0], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x2f50], ebp
mov dword [esi + 0x2f60], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x412
lea edi, [esi + 0x3060]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
or eax, 0xffffffff
mov dword [esi + 0x50f4], eax
mov dword [esi + 0x50f0], eax
mov dword [esi + 0xeb4], ebp
mov word [esi + 0xeb8], bp
mov word [esi + 0x1f00], bp
mov dword [esi + 0x2f48], ebp
mov dword [esi + 0x2f4c], ebp
mov dword [esi + 0x5130], ebp
mov dword [esi + 0x305c], 0x12
mov dword [esi + 0x3054], ebp
mov dword [esi + 0x301c], ebp
mov dword [esi + 0x3058], edx
mov dword [esi + 0x2fb8], ebp
mov dword [esi + 0x2f68], ebp
mov dword [esi + 0xea4], ebp
mov dword [esi + 0x2f64], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x402380
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x2104
call fcn.004b7a60
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x82]
mov word [esp + 0x80], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x2f58]
push 0x823
stosw word es:[edi], ax
lea eax, [esp + 0x84]
mov dword [esi + 0xeb4], 1
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esp + 0xc], 0x74
mov dword [esp + 0x10], 0x40000000
call fcn.00402c60
test eax, eax
push 0x4e6b30
je 0x402456
mov edx, dword [esi + 0x2f58]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push edx
call edi
mov eax, dword [esi + 0x2f58]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x459
push eax
call ebx
mov edx, dword [esi + 0x2f58]
lea ecx, [esp + 0x80]
push ecx
push edx
call edi
mov eax, dword [esi + 0x3008]
mov edx, dword [esi + 0x2f58]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], eax
push ecx
push 4
push 0x444
push edx
jmp 0x40257a
mov eax, dword [esi + 0x2f58]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call edi
mov ecx, dword [esi + 0x2f58]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 2
push 0x459
push ecx
call ebx
mov eax, dword [esi + 0x2f58]
lea edx, [esp + 0x80]
push edx
push eax
call edi
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x10ca]
mov word [esp + 0x10c8], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10c8]
push 0x823
lea edx, [esp + 0x84]
push ecx
push edx
stosw word es:[edi], ax
call fcn.00454640
add esp, 0xc
test eax, eax
je 0x40255d
mov edx, dword [esi + 0x2f58]
mov eax, dword [esi + 0x3010]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], eax
push ecx
push 4
push 0x444
push edx
call ebx
lea eax, [esp + 0x10c8]
lea ecx, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
lea edx, [esp + 0x88]
lea eax, [esp + 0x10d0]
sub edi, edx
push eax
sar edi, 1
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0xc
add eax, edi
mov ecx, esi
push eax
push edi
call fcn.00404be0
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x300c]
push edx
mov dword [esp + 0x10], 0x74
mov dword [esp + 0x14], 0x40000000
mov dword [esp + 0x24], ecx
push 1
jmp 0x40256e
mov ecx, dword [esi + 0x3008]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x24], ecx
push 4
mov eax, dword [esi + 0x2f58]
push 0x444
push eax
call ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
call fcn.00404be0
mov dword [esi + 0xeb4], 0
pop edi
pop esi
pop ebx
add esp, 0x2104
ret
Function at 0x4030fa
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x74
test eax, eax
push ebx
push esi
mov esi, ecx
je 0x403110
mov ecx, dword [esi + 4]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
jmp 0x40311a
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esi + 4]
mov ebx, eax
push ebp
lea eax, [esp + 0x10]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x18]
sub edx, eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x2f60]
test eax, eax
je 0x4031c2
mov edx, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x2f60]
lea eax, [esp + 0x34]
push eax
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
sub eax, edx
mov edx, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [esp + 0x18]
add ecx, edx
push ecx
mov ecx, dword [esi + 0x2f60]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.004a1840
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.00402cd0
lea edx, [esp + 0x14]
push 2
push edx
mov ecx, esi
call fcn.00401d00
mov eax, dword [esi + 0x2fd8]
test eax, eax
je 0x4031fd
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 1
push ecx
push edx
push edi
push 0
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
push edi
mov ecx, esi
call fcn.00403030
push edi
mov ecx, esi
call fcn.00402ea0
push edi
mov ecx, esi
call fcn.00402f50
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push 0xcc0020
push eax
push ecx
sub edx, eax
push edi
push edx
mov edx, dword [esp + 0x30]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x88]
pop edi
test eax, eax
pop ebp
je 0x403289
mov edx, dword [esi + 4]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
pop ebx
add esp, 0x74
ret 4
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
add esp, 0x74
ret 4
Function at 0x404020
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1048
call fcn.004b7a60
push esi
mov esi, ecx
cmp word [esi + 0x3060], 0
lea eax, [esi + 0x3060]
je 0x40404b
push eax
mov eax, dword [esi + 0x2f58]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 0x2f58]
push edi
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push 0x824
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 8]
push eax
call fcn.004758c0
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 4
lea ecx, [esp + 8]
push 0x4ce558
push ecx
call edi
add esp, 8
test eax, eax
je 0x4040a6
mov word [eax], 0x2e
jmp 0x40408c
lea edx, [esp + 8]
push 1
push edx
mov ecx, esi
call fcn.004032c0
mov eax, dword [esp + 0x1054]
pop edi
test eax, eax
jne 0x4040c7
mov ecx, esi
call fcn.00403ce0
mov eax, dword [esi + 4]
push eax
push eax
call dword [sym.imp.USER32.dll_GetMenu]
and eax, 0xffff
or eax, 0xb0000
push eax
mov eax, dword [esi + 0x2f5c]
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 4]
push 0x2009
push ecx
mov word [esi + 0xeb8], 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 1
mov ecx, esi
call fcn.00404ad0
pop esi
add esp, 0x1048
ret 4
Function at 0x4049d0
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0x214
push esi
mov esi, ecx
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push reloc.DSOUND.dll_DirectSoundCreate
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x404ac2
mov eax, dword [esi + 0x38]
push ebx
test eax, eax
push edi
jne 0x404a1f
xor ebx, ebx
jmp 0x404a31
mov ebx, dword [esi + 0x3c]
sub ebx, eax
sar ebx, 2
cmp ebx, 0x18
jle 0x404a31
mov ebx, 0x18
mov ecx, dword [0x4ce5e0]
mov edx, dword [0x4ce5e4]
mov dword [esp + 0x18], ecx
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
test ebx, ebx
rep stosd dword es:[edi], eax
jle 0x404ab5
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__itow]
mov edi, 1
jmp 0x404a6c
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [edx - 8]
test ecx, ecx
jle 0x404aab
lea eax, [esp + 0x22]
push 0xa
push eax
push edi
call ebp
mov eax, dword [esi]
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
mov eax, dword [esp + 0x18]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
inc edi
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x404a68
pop ebp
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
add esp, 0x214
ret
Function at 0x4069d0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
call fcn.00407890
mov ecx, esi
call fcn.00407f20
mov eax, dword [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
lea ecx, [esi + 0x40]
call fcn.004137b0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4069ff
mov ecx, esi
call fcn.00407ae0
push 1
push 0xffffffffffffffff
mov ecx, esi
call fcn.004081f0
mov ecx, 0x5c02c8
call fcn.0049f0e0
push 0
call fcn.00464000
mov ecx, dword [esi + 8]
add esp, 4
push ecx
call sub.gdiplus.dll_GdiplusShutdown
mov esi, dword [esi + 4]
test esi, esi
je 0x406a35
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x406a80
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x2090
call fcn.004b7a60
mov eax, dword [0x4e75c0]
push edi
test eax, eax
mov edi, ecx
je 0x406aa3
mov eax, 0x4e75c4
pop edi
add esp, 0x2090
ret
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add edi, 0x54
push 0x5c
push edi
mov esi, eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
mov edi, eax
lea eax, [esp + 0x10]
push esi
push 0x4ce4dc
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
add esp, 0x10
lea ecx, [esp + 0x10]
push edi
push ecx
call ebx
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, eax
test esi, esi
je 0x406aff
push edi
call ebp
lea esi, [esi + eax*2]
add esp, 4
test esi, esi
jne 0x406b1d
lea esi, [edi + 2]
lea edx, [esp + 0x10]
push esi
push edx
call ebx
mov edi, eax
test edi, edi
je 0x406b86
push esi
call ebp
lea esi, [edi + eax*2]
add esp, 4
test esi, esi
je 0x406b86
push 0x4ce810
push esi
call ebx
test eax, eax
je 0x406b2e
lea esi, [eax + 6]
jmp 0x406b46
push 2
push 0x4ce808
push esi
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x406b46
add esi, 4
push esi
call ebp
add esp, 4
test eax, eax
jbe 0x406b86
push esi
push 0x4ce4dc
push 0x1047
push 0x4e75c4
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x4e75c4
mov word [0x4e9652], 0
call fcn.004758c0
push 0x4e75c4
call fcn.00475f90
add esp, 0x18
pop esi
pop ebp
pop ebx
mov dword [0x4e75c0], 1
mov eax, 0x4e75c4
pop edi
add esp, 0x2090
ret