joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dcca
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40dca8
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40dcc6
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40dd24
inc eax
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40dd0b
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40dd14
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40dd1e
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40dd00
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40dc8a
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40dd71
dec eax
je 0x40dd68
sub eax, 3
je 0x40dd5f
mov dword [ebp - 4], 0x40
jmp 0x40dd8e
mov dword [ebp - 4], 4
jmp 0x40dd74
mov dword [ebp - 4], 0x20
jmp 0x40dd74
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40ddc0
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40dd40
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040d5d1
and ah, al
sbb bh, byte [ebp - 1]
jne 0x40ddcb
push 1
push esi
call edi
mov eax, esi
jmp 0x40ddcc
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ea4c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.0040d5d1
jl 0x40eaff
sar byte [ebx - 0x72b7a73], 0xff
call dword [eax - 0x18]
pop ss
jmp 0x40eac8
invalid
jmp [edx + 5]
Function at 0x412750
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x420d30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x42a874]
push ebx
push ebp
push esi
mov dword [esp + 0x30], eax
push edi
mov esi, ecx
xor ebx, ebx
push 0x37
mov edi, 0xf
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.004014c0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 1
call fcn.00411160
mov eax, dword [esp + 0x30]
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [esp + 0x1c]
jae 0x4127cd
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41282d
cmp dword [esp + 0x30], ebp
jb 0x412803
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041a56d
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x4128f8
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0041a56d
add esp, 4
xor al, al
jmp 0x41293a
cmp dword [esp + 0x60], ebp
mov eax, dword [esp + 0x4c]
jae 0x41283b
lea eax, [esp + 0x4c]
mov edx, dword [esp + 0x5c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edx
push eax
mov eax, dword [esp + 0x18]
push 2
push ebx
push str.EventMessageFile
push eax
call edi
test eax, eax
mov ecx, dword [esp + 0x10]
je 0x4128a2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], ebp
jb 0x412878
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041a56d
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x4128f8
mov eax, dword [esp + 0x4c]
push eax
call fcn.0041a56d
add esp, 4
xor al, al
jmp 0x41293a
push 4
add esi, 0x1c
push esi
push 4
push ebx
push str.TypesSupported
push ecx
call edi
test eax, eax
mov edx, dword [esp + 0x10]
push edx
je 0x4128fc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], ebp
jb 0x4128d5
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041a56d
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x4128f8
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0041a56d
add esp, 4
xor al, al
jmp 0x41293a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], ebp
jb 0x412915
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041a56d
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x412938
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0041a56d
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop ebx
call fcn.004064ce
add esp, 0x34
ret 0x1c
Function at 0x418550
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42113e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], 0x425c94
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov ebp, dword [esp + 0x24]
mov eax, ebp
lea edx, [eax + 1]
mov byte [esp + 0x1c], 2
mov dword [esp + 0x24], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4185b7
sub eax, dword [esp + 0x24]
push eax
push ebp
call fcn.004014c0
mov edx, dword [esp + 0x28]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4185d2
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.004014c0
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x418760
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42115b
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x44]
push ebx
mov ecx, esi
call fcn.00417720
test eax, eax
je 0x4187bd
mov esi, dword [esp + 0x20]
mov ecx, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x418796
sub ecx, edi
push ecx
push esi
lea ecx, [eax + 0x30]
call fcn.004014c0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push 0x54
call fcn.0041a53d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x4187e6
mov ecx, dword [esp + 0x20]
push ecx
push ebx
mov ecx, eax
call fcn.00418550
jmp 0x4187e8
xor eax, eax
test eax, eax
mov dword [esp + 0x14], 0xffffffff
je 0x41881a
mov dword [eax + 0x50], esi
mov edx, dword [esi + 0x4c]
mov dword [eax + 0x4c], edx
mov ecx, dword [esi + 0x4c]
mov dword [ecx + 0x50], eax
mov dword [esi + 0x4c], eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
test edi, edi
mov ecx, edi
je 0x41884f
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x418842
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x418820
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push 0
push 0
push 0
push 3
call fcn.00414780
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x41e3c8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x42a874]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x41e417
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x41e417
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41e423
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004064ce
leave
ret 8

Function at 0x41f11f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x41f154
cmp edi, dword [esi + 0xc]
jge 0x41f154
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41f154
cmp edi, dword [eax + 8]
jge 0x41f154
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x41f156
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x41f202
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x41f236
jmp fcn.00419fcf
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x41f2a7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x41f3a0
cmp eax, dword [edi + 0xc]
jge 0x41f3a0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x41f2f8
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x41f389
cmp dword [ebp + 0xc], ebx
je 0x41f389
jmp 0x41f322
push 0x10
call fcn.0041efeb
cmp eax, ebx
je 0x41f30e
mov ecx, eax
call fcn.0041f1f9
mov esi, eax
jmp 0x41f310
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x41f339
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41f349
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x41f35b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00419fcf
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00406d30
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41f39b
cmp ecx, dword [esi + 8]
jge 0x41f39b
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x41f3a1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x4023c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x14
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
je 0x402410
cmp eax, 0x111
jne 0x4023fe
mov eax, dword [ebp + 8]
mov dword [esp + 4], 8
mov dword [esp], eax
call dword [0x4175ec]
sub esp, 8
cmp dword [ebp + 0x10], 1
mov ebx, eax
je 0x402470
cmp dword [ebp + 0x10], 2
je 0x402458
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 8
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [0x417610]
mov eax, dword [ebp + 8]
sub esp, 0xc
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x417614]
mov eax, 1
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10
mov dword [eax + 4], 1
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret 0x10
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 4], 0
mov dword [esp], 1
mov dword [esp + 8], eax
call dword [sym.imp.kernelbase.dll_OpenProcess]
mov esi, eax
sub esp, 0xc
mov eax, 1
test esi, esi
je 0x402400
test byte [0x40a150], 8
jne 0x4024e0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernelbase.dll_TerminateProcess]
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.kernelbase.dll_CloseHandle]
mov dword [ebx + 8], 1
mov eax, 1
sub esp, 4
jmp 0x402400
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], str.terminating_process__04lx_n
mov dword [esp + 8], str.endtask_dlg_proc
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40a150
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4024a9
Function at 0x402df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402e48
cmp byte [esi + ebx - 1], 0xa
je 0x402e1c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40a458], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x403050
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24c
call dword [0x4175e4]
mov dword [esp + 4], 0x40a3a8
mov dword [esp], eax
call dword [0x4175f0]
sub esp, 8
lea esi, cs:[esi]
nop
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov edi, eax
test eax, eax
je 0x4031d8
lea ebx, [ebp - 0x238]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [ebp - 0x238], 0x22c
call sym._Process32FirstW_8
sub esp, 8
test eax, eax
je 0x4031f0
mov dword [ebp - 0x240], 0
mov esi, dword fs:[0x18]
jmp 0x403149
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 1
call dword [sym.imp.kernelbase.dll_OpenProcess]
sub esp, 0xc
test eax, eax
je 0x403136
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x23c], eax
call dword [sym.imp.kernelbase.dll_TerminateProcess]
mov edx, dword [ebp - 0x23c]
sub esp, 8
cmp eax, 1
sbb dword [ebp - 0x240], 0xffffffff
mov dword [esp], edx
call dword [sym.imp.kernelbase.dll_CloseHandle]
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._Process32NextW_8
sub esp, 8
test eax, eax
je 0x4031b8
mov eax, dword [ebp - 0x230]
cmp dword [esi + 0x20], eax
je 0x403136
cmp eax, dword [0x40a3a8]
je 0x403136
test byte [0x40a150], 8
je 0x4030e0
lea eax, [ebp - 0x214]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.killing_process__04lx__s_n
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x230]
mov dword [esp + 8], str.kill_processes
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40a150
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x230]
jmp 0x4030e0
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
mov ecx, dword [ebp - 0x240]
sub esp, 4
test ecx, ecx
jne 0x403080
lea esi, [esi]
mov edx, dword [ebp + 8]
mov eax, dword [0x40a3a8]
test edx, edx
je 0x4031e8
test eax, eax
jne 0x4031fe
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
sub esp, 4
jmp 0x4031d8
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 1
call dword [sym.imp.kernelbase.dll_OpenProcess]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4031e8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_TerminateProcess]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.kernelbase.dll_CloseHandle]
sub esp, 4
jmp 0x4031e8
Function at 0x403350
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x404370
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x1c
mov eax, dword [eax + 4]
cmp eax, dword [0x40a3a8]
je 0x404425
mov dword [esp + 8], eax
mov eax, dword [sym.imp.kernelbase.dll_OpenProcess]
mov esi, edx
mov dword [esp + 4], 0
mov dword [esp], 0x100000
mov dword [ebp - 0x14], eax
call eax
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x404425
mov dword [esp + 4], 0
mov ecx, eax
mov edx, esi
mov eax, ebx
mov dword [esp], 0x11
call sym._send_messages_with_timeout_dialog.constprop.0
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x404438
mov eax, dword [ebp - 0x10]
mov dword [esp], 0x16
mov edx, esi
mov ecx, edi
mov dword [esp + 4], eax
mov eax, ebx
call sym._send_messages_with_timeout_dialog.constprop.0
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x404458
cmp eax, 0xffffffff
je 0x404438
mov dword [esp], edi
mov dword [esp + 4], 0
call dword [sym.imp.kernelbase.dll_WaitForSingleObject]
sub esp, 8
mov esi, eax
mov dword [esp], edi
mov edi, dword [sym.imp.kernelbase.dll_CloseHandle]
call edi
sub esp, 4
cmp esi, 0x102
je 0x404470
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
xor eax, eax
sub esp, 4
jmp 0x40442a
mov eax, dword [ebx + 4]
mov dword [esp + 4], 0
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
call eax
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x404425
test byte [0x40a150], 8
jne 0x4044c0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernelbase.dll_TerminateProcess]
sub esp, 8
mov dword [esp], esi
call edi
sub esp, 4
jmp 0x404425
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], str.terminating_process__04lx_n
mov dword [esp + 8], str.send_end_session_messages
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40a150
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40449d

Function at 0x404750
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x18
cmp word [ecx], 0
je 0x4047a8
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x404768
sub eax, ecx
add eax, 2
mov dword [esp], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, dword [ebp - 4]
sub esp, 0x18
leave
ret
mov eax, 2
jmp 0x404776

Function at 0x4047b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
leave
ret