joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000aa60
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x1001ac98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push 4
push eax
mov ecx, dword [esi]
push 0x80
xor ebx, ebx
push 0xffff
push ecx
mov word [esp + 0x20], 1
mov word [esp + 0x22], bx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1000ab31
push ebp
push edi
or ecx, eax
mov edi, str.CSocket::AbortiveClose__
xor eax, eax
mov dl, byte [esp + 0x13]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov byte [esp + 0x20], dl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.100022f0
test al, al
je 0x1000ab07
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, ecx
mov esi, str.CSocket::AbortiveClose__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [ecx + ebp], bl
mov dword [esp + 0x58], ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.1000b0a0
lea eax, [esp + 0x28]
push 0x1001ea78
push eax
call fcn.1000c2dd
pop edi
pop ebp
mov ecx, esi
call fcn.1000a990
mov ecx, dword [esp + 0x48]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret

Function at 0x1000ae90
Capabilities:
Connect socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001ad38
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
mov ecx, dword [ecx]
sub esp, 0x38
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000af4b
push ebx
push ebp
push edi
or ecx, eax
mov edi, str.CSocket::Connect__
xor eax, eax
xor ebx, ebx
mov dl, byte [esp + 0x54]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x10]
push ebp
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.100022f0
test al, al
je 0x1000af20
mov edi, dword [esp + 0x10]
mov ecx, ebp
mov eax, ecx
push esi
mov esi, str.CSocket::Connect__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
pop esi
mov byte [ecx + ebp], bl
mov dword [esp + 0x4c], ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0xc]
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.1000b0a0
lea eax, [esp + 0x1c]
push 0x1001ea78
push eax
call fcn.1000c2dd
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 4
Function at 0x1000e811
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100209d8
cmp edx, dword [eax]
je 0x1000e833
add eax, 8
inc ecx
cmp eax, 0x10020a68
jl 0x1000e824
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x100209d8]
jne 0x1000e961
mov eax, dword [0x100222a4]
cmp eax, 1
je 0x1000e93b
test eax, eax
jne 0x1000e864
cmp dword [0x100222a8], 1
je 0x1000e93b
cmp edx, 0xfc
je 0x1000e961
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000e89b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10012410
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10012500
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1000e8de
lea eax, [ebp - 0x1a4]
push eax
call fcn.10012500
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1001c79c
push edi
call fcn.10012a10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10012410
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10012420
lea eax, [ebp - 0xa0]
push 0x1001c77c
push eax
call fcn.10012420
push dword [esi + 0x100209dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.10012420
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1001297f
add esp, 0x2c
pop edi
jmp 0x1000e961
lea eax, [ebp + 8]
lea esi, [esi + 0x100209dc]
push 0
push eax
push dword [esi]
call fcn.10012500
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10089395
Capabilities:
Execute anti-debugging instructions

Disassembly:
dec cx
lea esp, [esp + 8]
xor ebp, 0x7543bb04
rdtsc
jmp 0x10089376
btc cx, di
jmp 0x10089360
dec ecx
jmp 0x10089337
dec ebp
mov eax, 0x4070567a
mov edx, dword [esp]
setge al
rcl cx, cl
jmp 0x100893a5
lea ecx, [esi*4]
sbb cx, dx
jnp 0x10089347
btc cx, di
jmp 0x10089360
sets ah
cmp edx, 0xcaf98e0a
jno 0x1008935d
dec ecx
dec cx
jmp 0x10089339
jnp 0x100893bb
mov dx, word [esp]
jmp 0x100893bf
mov dx, word [esp]
add ebp, 0x6b10c9c3
lea eax, [eax + ebp]
jmp 0x100893ce
mov dl, 0x44
or cl, bl
jmp 0x1008942b
call 0x10089413
lea esp, [esp + 2]
jmp 0x100893fd
lea esp, [esp + 0xc]
xor ebp, 0x269ed1cd
neg cx
jmp 0x1008942f
jb 0x100893d8
jae 0x100893d8
jl 0x10089451
mov edx, 0x4b07632e
mov ax, 0x4703
jmp 0x1008947a
mov edx, 0x4b07632e
mov ax, 0x4703
btc ax, di
rdtsc
mov ax, 0xf7a0
jmp 0x1008949f
btc ax, di
rdtsc
mov ax, 0xf7a0
jmp 0x10089464
movzx ecx, byte [ebp - 1]
mov ax, 0x2b76
jmp 0x100894be
inc ebp
add ebp, dword [esi]
jmp 0x10089486
lea edx, [eax - 0x5e]
call 0x100894a8
add cl, bl
mov al, cl
bsf edx, edx
jo 0x100895a1
jno 0x100895a1
test dword [esi], ecx
pushfd
sti
push ss
xchg ecx, eax
pop ds
mov word [esp], cx
Function at 0x100ddc6a
Capabilities:
Encrypt data using aes

Disassembly:
xor edx, esi
neg bl
jmp 0x100ddc91
movzx esi, byte [eax + 6]
pushal
setg bh
jmp 0x100de1ae
cmc
lea edi, reloc.SHLWAPI.dll_PathFindFileNameA
xor edx, esi
movzx esi, byte [eax + 7]
lea ebx, [ebx + 0x51]
shl bx, 1
shl edx, 8
lea ebx, reloc.SHLWAPI.dll_PathFindFileNameA
jmp 0x100ddce4
xor edx, esi
mov si, word [esp]
mov di, dx
setnp bh
jmp 0x100ddd66
shl edx, 8
xchg bp, bx
add di, 0x1f06
mov edi, ecx
rcl di, 9
jmp 0x100ddd95

Function at 0x101fb703
Capabilities:
Access peb ldr_data
Packed with generic packer
Parse pe header

Disassembly:
mov byte [esp + 1], bl
mov dword [esp + 3], ebx
jmp 0x101fb6ed

Function at 0x419280
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x41929a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4192a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419290
mov eax, 1
add ebx, ebx
jne 0x4192b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4192a8
jne 0x4192c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4192a8
xor ecx, ecx
sub eax, 3
jb 0x4192d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41934a
mov ebp, eax
add ebx, ebx
jne 0x4192e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4192f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419314
inc ecx
add ebx, ebx
jne 0x419300
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4192f5
jne 0x419311
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4192f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419334
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419325
jmp 0x419296
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419334
add edi, ecx
jmp 0x419296
pop esi
mov edi, esi
mov ecx, 0x68a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419352
cmp byte [edi], 5
jne 0x419352
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x419357
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4193c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a6b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a6f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419384
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a6f4]
or eax, eax
je 0x4193c0
mov dword [ebx], eax
add ebx, 4
jmp 0x4193a1
call dword [esi + 0x1a704]
mov ebp, dword [esi + 0x1a6f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4193fa
sub esp, 0xffffff80
jmp 0x4036c6
Function at 0x4014f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x22c
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
cmp eax, 0x4e
je 0x4016eb
cmp eax, 5
je 0x4016a0
cmp eax, 1
jne 0x401741
mov ebx, dword [ebp + 8]
mov word [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x630069
mov dword [ebp - 0x18], 0x740061
mov dword [ebp - 0x1c], 0x740053
mov esi, dword [0x40d144]
mov eax, dword [esi + 0x1c]
sub esp, 0x30
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebx
movaps xmm0, xmmword [0x40d010]
movups xmmword [esp + 8], xmm0
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp], 0
mov edi, dword [sym.imp.user32.dll_CreateWindowExW]
call edi
mov dword [0x419038], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
xorps xmm0, xmm0
movsd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x38], 1
lea eax, [ebp - 0x238]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x100
mov eax, dword [esi + 0x1c]
sub esp, 0x30
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebx
movaps xmm0, xmmword [0x40d010]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7d2
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], str.SysTabControl32
mov dword [esp], 0
call edi
mov dword [0x41903c], eax
push 0
push eax
call dword [sym.imp.user32.dll_ShowWindow]
push 0x100
lea eax, [ebp - 0x238]
push eax
push 0xfa
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_LoadStringW]
lea eax, [ebp - 0x38]
push eax
push 0
push 0x133e
push dword [0x41903c]
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [0x41903c]
mov ecx, dword [esi + 0x1c]
sub esp, 0x30
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
movaps xmm0, xmmword [0x40d020]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0x40d128
mov dword [esp], 0x200
call edi
mov dword [0x419040], eax
jmp 0x401732
movzx ebx, si
mov edi, dword [sym.imp.user32.dll_MoveWindow]
push 1
push 0x28
push ebx
push 0
push 0
push dword [0x419038]
call edi
lea eax, [ebx - 6]
shr esi, 0x10
lea ecx, [esi - 0x2b]
push 1
push ecx
push eax
push 0x28
push 3
push dword [0x41903c]
call edi
add ebx, 0xffffffe6
add esi, 0xffffffa9
push 1
push esi
push ebx
push 0x22
push 0xa
push dword [0x419040]
call edi
jmp 0x401732
cmp dword [ebp + 0x10], 0x7d2
jne 0x401732
cmp dword [esi + 8], 0xfffffdd9
jne 0x401732
push 0
push dword [0x419040]
call dword [sym.imp.user32.dll_ShowWindow]
push 0
push 0
push 0x130b
push dword [0x41903c]
call dword [sym.imp.user32.dll_SendMessageW]
test eax, eax
jne 0x401732
push 5
push dword [0x419040]
call dword [sym.imp.user32.dll_ShowWindow]
xor eax, eax
add esp, 0x22c
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
add esp, 0x22c
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.user32.dll_DefWindowProcW]
Function at 0x4024b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c8
call dword [sym.imp.comctl32.dll_InitCommonControls]
lea esi, [ebp - 0x4d4]
push 0x100
push esi
push 1
push dword [ebp + 8]
call dword [sym.imp.user32.dll_LoadStringW]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20c], xmm0
movups xmmword [ebp - 0x1fc], xmm0
xorps xmm0, xmm0
movsd qword [ebp - 0x1ec], xmm0
mov dword [ebp - 0x208], dbg._WndProc@16
mov dword [ebp - 0x1f0], 6
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorW]
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1ec], 3
mov dword [ebp - 0x1e8], esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.user32.dll_RegisterClassW]
xor esi, esi
test ax, ax
je 0x402725
lea eax, [ebp - 0x2d4]
push 0xc8
push 0x40d42c
push eax
call sym._memcpy
add esp, 0xc
mov edi, dword [sym.imp.user32.dll_LoadStringW]
push 0x100
lea eax, [ebp - 0x4d4]
push eax
push 1
mov ebx, dword [ebp + 8]
push ebx
call edi
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 2
push ebx
call edi
lea edi, [ebp - 0x4d4]
sub esp, 0x30
mov dword [esp + 0x28], ebx
lea ebx, [ebp - 0x20c]
movaps xmm0, xmmword [0x40d220]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
test eax, eax
je 0x402725
push 0
push eax
push ebx
push 0x50000000
mov esi, eax
call dword [sym.imp.comctl32.dll_CreateStatusWindowW]
mov dword [0x41904c], eax
sub esp, 0x34
movaps xmm0, xmmword [0x40d230]
movups xmmword [esp + 0x1c], xmm0
lea eax, [ebp - 0x2d4]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp], esi
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x50000000
call sym._CreateToolbarEx_52
mov dword [0x419050], eax
mov ebx, edi
mov edi, dword [sym.imp.user32.dll_SendMessageW]
push 0
push 0x6f
push 0x401
push eax
call edi
push 0
push 0x71
push 0x401
push dword [0x419050]
call edi
push 0
push 0x74
push 0x401
push dword [0x419050]
call edi
mov dword [0x419044], esi
mov edi, dword [ebp + 8]
mov dword [0x419060], edi
mov dword [0x419064], 1
mov dword [0x419068], 5
push dword [ebp + 0x14]
push esi
call dword [sym.imp.user32.dll_ShowWindow]
push esi
call dword [sym.imp.user32.dll_UpdateWindow]
push 5
push edi
call dword [sym.imp.user32.dll_LoadAcceleratorsW]
mov esi, eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.user32.dll_GetMessageW]
test eax, eax
je 0x40271f
mov edi, dword [sym.imp.user32.dll_GetMessageW]
jmp 0x4026fd
push 0
push 0
push 0
push ebx
call edi
test eax, eax
je 0x40271f
push ebx
push esi
push dword [0x419044]
call dword [sym.imp.user32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4026f0
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageW]
jmp 0x4026f0
mov esi, dword [ebp - 0x4cc]
mov eax, esi
add esp, 0x4c8
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x402ff0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
xor eax, eax
cmp dword [ebp + 0xc], 0x111
jne 0x403065
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
movzx ebx, cx
cmp bx, 2
je 0x403058
cmp ebx, 1
jne 0x403065
push 0x200
push 0
push 0x41906c
call sym._memset
add esp, 0xc
push 0x3e9
push edi
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, eax
push eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
mov ebx, 1
test eax, eax
jle 0x403058
push 0x100
push 0x41906c
push esi
call dword [sym.imp.user32.dll_GetWindowTextW]
push ebx
push edi
call dword [sym.imp.user32.dll_EndDialog]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x404a10
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x658
mov dword [ebp - 0x5c], 0x45
mov dword [ebp - 0x48], 0x100
mov dword [ebp - 0x60], 0xffff0001
mov eax, dword [0x419670]
test eax, eax
mov ecx, 0xffff0000
cmovne ecx, eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x10]
push eax
push str.Component_Categories_
push 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
jne 0x404aa1
lea esi, [ebp - 0x464]
push 0x100
push esi
push 0
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
test eax, eax
je 0x404aac
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x40d144]
push dword [0x419670]
push 0
push 0x1113
push dword [eax + 0x10]
call dword [sym.imp.user32.dll_SendMessageW]
add esp, 0x658
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
mov ebx, dword [sym.imp.advapi32.dll_RegEnumKeyW]
jmp 0x404ad1
inc edi
push 0x100
push esi
push edi
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x404a7d
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
jne 0x404ac0
mov dword [ebp - 0x20], 0x200
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x18], 0x200
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x264]
push eax
push 0
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegQueryValueW]
test eax, eax
jne 0x404b1c
cmp word [ebp - 0x264], 0
jne 0x404b57
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x264]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x664]
push eax
push 0
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegEnumValueW]
test eax, eax
jne 0x404ac0
cmp word [ebp - 0x264], 0
je 0x404ac0
lea eax, [ebp - 0x264]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push 0x60c
push 1
call dword [sym.imp.ucrtbase.dll_calloc]
add esp, 8
mov byte [eax], 1
xor ecx, ecx
nop
movzx edx, word [ebp + ecx - 0x464]
mov word [eax + ecx + 2], dx
add ecx, 2
test dx, dx
jne 0x404b80
xor ecx, ecx
nop word [eax + eax]
movzx edx, word [ebp + ecx - 0x464]
mov word [eax + ecx + 0x202], dx
add ecx, 2
test dx, dx
jne 0x404ba0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0x1132
mov eax, dword [0x40d144]
push dword [eax + 0x10]
call dword [sym.imp.user32.dll_SendMessageW]
jmp 0x404ac0
Function at 0x404fd0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
xorps xmm0, xmm0
movups xmmword [0x41967c], xmm0
movups xmmword [0x41966c], xmm0
call dbg.AddComponentCategories
pop ebp
jmp dbg.AddCOMandAll
Function at 0x40c240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
test eax, eax
je 0x40c28d
mov esi, eax
xor eax, eax
cmp byte [edi + esi - 1], 0xa
je 0x40c26a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, 0x419930
lock xchg dword [ecx], eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x40c28f
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x40c700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xcc
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [0x4198a4]
test eax, eax
jne 0x40c759
mov edi, dword fs:[0x18]
mov ebx, dword [edi + 0x34]
push 0x4168a8
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x4198a4
lock xchg dword [eax], ecx
mov dword [edi + 0x34], ebx
mov edi, dword [ebp + 8]
mov eax, dword [0x4198a4]
push esi
call eax
add esp, 4
movzx eax, al
bt eax, edi
jae 0x40c90f
mov ecx, dword [0x419930]
mov ebx, dword fs:[0x18]
xor eax, eax
cmp ecx, dword [ebx + 0x24]
je 0x40c914
lea edi, [ebp - 0xd8]
test byte [0x419015], 8
je 0x40c820
mov eax, dword [0x4198a4]
test eax, eax
jne 0x40c7d9
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
push 0x4168a8
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x4198a4
lock xchg dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x34], eax
mov eax, dword [0x4198a4]
push 0x419015
call eax
add esp, 4
test al, 8
je 0x40c820
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, eax
mov edx, 0x10624dd3
mul edx
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
lea eax, [ebp - 0xd8]
push ecx
push edx
push str._3u._03u:
push eax
call dbg.sprintf
add esp, 0x10
lea edi, [eax + ebp]
add edi, 0xffffff28
test byte [0x419025], 8
je 0x40c88d
mov eax, dword [0x4198a4]
test eax, eax
jne 0x40c86c
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
push 0x4168a8
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x4198a4
lock xchg dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x34], eax
mov eax, dword [0x4198a4]
push 0x419025
call eax
add esp, 4
test al, 8
je 0x40c88d
push dword [ebx + 0x20]
push str._04x:
push edi
call dbg.sprintf
add esp, 0xc
add edi, eax
push dword [ebx + 0x24]
push str._04x:
push edi
call dbg.sprintf
add esp, 0xc
mov edx, dword [ebp + 8]
cmp edx, 3
ja 0x40c8e2
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40c8e2
add edi, eax
lea eax, [ebp - 0xd8]
sub eax, edi
add eax, 0xc8
mov edx, dword [edx*4 + 0x4168cc]
inc esi
sub esp, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp], edi
mov dword [esp + 4], eax
call dbg.snprintf
add esp, 0x18
lea edi, [ebp - 0xd8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
mov esi, eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x40c914
mov eax, 0xffffffff
add esp, 0xcc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40c980
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push 1
call sym.__configure_narrow_argv
add esp, 4
call sym.__initialize_narrow_environment
call sym.___p___argc
mov edi, dword [eax]
call sym.___p___argv
mov ebx, dword [eax]
call sym.__get_initial_narrow_environment
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
xor edx, edx
cmp word [eax + ecx + 0x5c], 2
sete dl
inc edx
push edx
call sym.__set_app_type
add esp, 4
push esi
push ebx
push edi
call dbg.main
add esp, 0xc
push eax
call sym._exit
int3

Function at 0x40c9e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x44
call dbg.__main
xor ebx, ebx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov esi, eax
xor eax, eax
jmp 0x40ca09
xor edx, edx
test eax, eax
je 0x40ca45
inc esi
mov ebx, edx
movzx ecx, byte [esi]
cmp ecx, 9
je 0x40ca00
test ecx, ecx
je 0x40ca45
cmp cl, 0x20
jne 0x40ca1e
test eax, eax
je 0x40ca45
xor edx, edx
cmp ecx, 0x22
je 0x40ca2f
cmp ecx, 0x5c
jne 0x40ca06
inc ebx
mov edx, ebx
jmp 0x40ca06
xor ecx, ecx
test eax, eax
sete cl
test bl, 1
cmove eax, ecx
jmp 0x40ca06
movzx ecx, byte [esi + 1]
inc esi
cmp cl, 0x20
je 0x40ca40
movzx eax, cl
cmp eax, 9
je 0x40ca40
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x20], 1
jne 0x40ca68
mov word [ebp - 0x1c], 1
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
movzx ecx, word [ebp - 0x1c]
push ecx
push esi
push 0
push eax
call dbg._WinMain@16
add esp, 0x44
pop esi
pop ebx
pop ebp
ret