joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x72596628
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x7b303b47
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
push ebx
pop eax
and eax, 0x1f
push ebx
pop edx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
sub eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
push eax
pop edi
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
mov esi, eax
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
or eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40de38
nop
nop
mov ecx, 0x5d267cd6
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2249560b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x40d0c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40d0e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40d0e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40d0d8
mov eax, 1
add ebx, ebx
jne 0x40d0fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40d0f0
jne 0x40d10c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d0f0
xor ecx, ecx
sub eax, 3
jb 0x40d120
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40d192
mov ebp, eax
add ebx, ebx
jne 0x40d12b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40d138
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40d15c
inc ecx
add ebx, ebx
jne 0x40d148
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40d13d
jne 0x40d159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d13d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40d17c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40d16d
jmp 0x40d0de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40d17c
add edi, ecx
jmp 0x40d0de
pop esi
mov edi, esi
mov ecx, 0x1f7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40d19a
cmp byte [edi], 0
jne 0x40d19a
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 eax, ebx
loop 0x40d19f
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40d20e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40d1cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd104]
or eax, eax
je 0x40d208
mov dword [ebx], eax
add ebx, 4
jmp 0x40d1e9
call dword [esi + 0xd108]
popal
jmp 0x404670
Function at 0x40193e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040d0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401951
push esp
mov dword [ebp - 0x24], 0x4016b5
mov eax, dword [0x4040d0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040d0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4019f0
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4019d1
pop ebp
ret 0x10

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4ff2355d
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3d2e1117
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40d1b8
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push ebx
push esi
push edi
push ebp
xor esi, esi
push eax
push 0x40d010
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40d249
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 4
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x41b210
push ecx
push esi
push 0x40d054
push dword [esp + 0x28]
call ebx
lea ecx, [esp + 0x10]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0x3c
push edi
push eax
push esi
push 0x40d04c
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x40d23d
cmp dword [esp + 0x18], 3
jne 0x40d23d
cmp dword [esp + 0x10], 0x3c
jne 0x40d23d
mov esi, 1
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d24d
mov edi, dword [esp + 0x20]
test esi, esi
jne 0x40d29e
mov dword [edi + 0x38], 1
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 0x58
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebp, eax
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, ebp
imul eax, eax, 9
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [edi + 0x2c], eax
mov eax, ebp
imul eax, eax, 5
cdq
imul ebp, ebp, 3
and edx, 3
mov dword [edi + 0x34], ebp
add eax, edx
sar eax, 2
mov dword [edi + 0x30], eax
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40d8aa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0x40d010
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40d95e
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov ecx, dword [0x41b010]
mov edi, dword [0x41b004]
push 0
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov dword [ebp - 0x14], ecx
push 0x101d
push edi
call esi
push 0
mov dword [ebp - 0x10], eax
push 1
push 0x101d
push edi
call esi
push 0x3c
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0xc], eax
cmp dword [0x41b020], 1
sbb eax, eax
push 3
inc eax
push 0
push 0x40d04c
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call edi
push 4
push 0x41b210
push 4
push 0
push 0x40d054
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x40d96a
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov eax, dword [section..data]
push 9
push 0x110b
push eax
call esi
cmp dword [0x41b018], 0
je 0x40d98c
mov eax, dword [0x41b018]
push eax
call edi
cmp dword [0x41b014], 0
je 0x40d9a1
mov eax, dword [0x41b014]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40db6f
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0x380
jl 0x40da45
cmp edi, 0x3ff
jg 0x40da45
mov eax, dword [0x41b00c]
cmp dword [section..data], eax
jne 0x40da38
mov esi, dword [esp + 0xc]
push 0
push edi
push esi
call fcn.0040f10d
jmp 0x40da49
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0040ffcb
jmp 0x40da49
mov esi, dword [esp + 0xc]
cmp edi, 0x288
jg 0x40da60
je 0x40daad
cmp edi, 0x280
je 0x40da88
jmp case.0x40da81.666
cmp edi, 0x300
jg case.0x40da81.666
je 0x40dbc6
sub edi, 0x291
cmp edi, 0x11
ja case.0x40da81.666
jmp dword [edi*4 + 0x40dbd1]
mov eax, dword [0x41b00c]
cmp dword [section..data], eax
jne 0x40da9c
mov eax, dword [0x41b004]
jmp 0x40daa1
mov eax, dword [section..data]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.0x40da81.666
push esi
call fcn.0040f598
jmp case.0x40da81.666
push esi
call fcn.00414178
jmp case.0x40da81.666
push esi
call fcn.00412881
jmp case.0x40da81.666
push esi
call fcn.0041290a
jmp case.0x40da81.666
push esi
call fcn.00413b45
jmp case.0x40da81.666
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.0x40da81.666
push 1
push esi
call fcn.004148b0
jmp case.0x40da81.666
push 0
mov eax, dword [section..data]
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push esi
call fcn.0040ea43
jmp case.0x40da81.666
push 1
push esi
call fcn.0040fd2c
jmp case.0x40da81.666
push 3
push esi
call fcn.0040fd2c
jmp case.0x40da81.666
push 0x10
call fcn.0040e7ad
add esp, 4
mov edi, eax
mov eax, dword [0x41a560]
push 0x64
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push 0x40e4a0
push edi
push esi
call dword [sym.imp.SHELL32.dll_ShellAboutA]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp case.0x40da81.666
cmp dword [0x41b020], 1
sbb eax, eax
and eax, 5
push eax
mov dword [0x41b020], eax
push dword [0x41b008]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call fcn.0040e29b
jmp case.0x40da81.666
push esi
call fcn.0040e202
jmp case.0x40da81.666
push 0
push esi
call fcn.004148b0
jmp case.0x40da81.666
push 0
mov eax, dword [0x41a558]
push 0xb
push eax
push esi
call dword [sym.imp.USER32.dll_WinHelpA]
jmp case.0x40da81.666
push 4
push esi
call fcn.0040fd2c
jmp case.0x40da81.666
push esi
call fcn.004145d5
pop edi
pop esi
ret 0x10

Function at 0x40e41c
Capabilities:
Get graphical window text

Disassembly:
push esi
push 0xe
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
call esi
push 0xd
mov dword [0x41a554], eax
call esi
push 8
mov dword [0x41a550], eax
call esi
push 5
mov dword [0x416440], eax
call esi
push eax
mov dword [0x41a55c], eax
push dword [0x41b014]
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push dword [0x41a55c]
push 0
push 0x1001
mov eax, dword [0x41b004]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
ret
Function at 0x40e4a1
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
mov dword [0x41a560], eax
push section..text
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
call fcn.0040e61f
cmp eax, 1
je 0x40e5fe
cmp eax, 2
je 0x40e615
test edi, edi
je 0x40e51d
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40e4f8
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40e615
push edi
mov ebx, dword [sym.imp.USER32.dll_BringWindowToTop]
call ebx
push edi
call dword [sym.imp.USER32.dll_GetLastActivePopup]
cmp eax, edi
mov esi, eax
je 0x40e511
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40e615
call fcn.0040e740
test eax, eax
je 0x40e541
push 0x10
mov eax, dword [0x41a560]
push 0x10
push 0x28
push 0
push eax
call sub.SHELL32.dll_ShellMessageBoxA
add esp, 0x14
jmp 0x40e615
push 0x1c
call fcn.0040e7ad
add esp, 4
mov dword [0x41a558], eax
test eax, eax
je 0x40e615
call fcn.0040d090
test eax, eax
je 0x40e615
call fcn.00410a4e
test eax, eax
je 0x40e615
push 0x64
mov eax, dword [0x41a560]
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov ebx, eax
test ebx, ebx
je 0x40e615
call fcn.0040d11f
mov edi, eax
test edi, edi
je 0x40e5f4
lea eax, [esp + 0x10]
push 0
push 0
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push eax
call ebp
test eax, eax
je 0x40e5f4
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [0x41b074]
test eax, eax
jne 0x40e5cc
lea eax, [esp + 0x10]
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x40e5de
lea eax, [esp + 0x10]
push eax
call esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x10]
push 0
push 0
push 0
push eax
call ebp
test eax, eax
mov eax, dword [0x41b074]
jne 0x40e5b7
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
test edi, edi
je 0x40e615
push 0
push 0x288
push 0x111
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x40e61f
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cl, byte [eax]
cmp cl, 0x22
jne 0x40e647
inc eax
mov cl, byte [eax]
test cl, cl
je 0x40e63f
cmp cl, 0x22
jne 0x40e633
cmp byte [eax], 0x22
jne 0x40e652
inc eax
jmp 0x40e652
cmp cl, 0x20
jle 0x40e652
inc eax
cmp byte [eax], 0x20
jg 0x40e64c
cmp byte [eax], 0
je 0x40e662
cmp byte [eax], 0x20
jg 0x40e662
inc eax
cmp byte [eax], 0
jne 0x40e657
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0x20
jne 0x40e673
inc eax
cmp byte [eax], 0x20
je 0x40e66d
mov cl, byte [eax]
cmp cl, 0x2f
je 0x40e67f
cmp cl, 0x2d
jne 0x40e6df
inc eax
cmp byte [eax], 0
je 0x40e668
mov cl, byte [eax]
cmp cl, 0x20
je 0x40e668
movsx ecx, cl
cmp ecx, 0x4c
jg 0x40e6a1
je 0x40e737
cmp ecx, 0x45
je 0x40e6c9
jmp 0x40e6d5
cmp ecx, 0x65
jg 0x40e6b8
je 0x40e6c9
cmp ecx, 0x52
je 0x40e737
cmp ecx, 0x53
je 0x40e6d0
jmp 0x40e6d5
cmp ecx, 0x6c
je 0x40e737
cmp ecx, 0x72
je 0x40e737
cmp ecx, 0x73
je 0x40e6d0
jmp 0x40e6d5
mov edi, 1
jmp 0x40e6d5
mov esi, 1
push eax
call ebx
cmp byte [eax], 0
jne 0x40e685
jmp 0x40e668
test edi, edi
jne 0x40e711
cmp byte [eax], 0
jne 0x40e6ec
xor eax, eax
jmp 0x40e73c
push eax
call fcn.0040e9e7
test eax, eax
je 0x40e70a
push eax
push esi
push 0
call fcn.0041275e
push 0
call fcn.0040e9e7
test eax, eax
jne 0x40e6f6
mov eax, 1
jmp 0x40e73c
push eax
call fcn.0040e9e7
mov edi, eax
push 0
call fcn.0040e9e7
mov ebx, eax
push 0
call fcn.0040e9e7
test eax, eax
jne 0x40e737
push ebx
push edi
push esi
push 0
call fcn.004128d0
mov eax, 2
pop edi
pop esi
pop ebx
ret

Function at 0x40e740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40e7a6
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push eax
lea edx, [ebp - 0x10]
mov dword [ebp - 8], 4
push ecx
push edx
push esi
push str.DisableRegistryTools
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e79d
cmp dword [ebp - 0x10], 4
jne 0x40e79d
cmp dword [ebp - 8], 4
jne 0x40e79d
cmp dword [ebp - 0xc], esi
je 0x40e79d
mov esi, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e7ff
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
mov edi, dword [esp + 0x24]
push ebp
mov ebx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, esi
lea eax, [esp + 0x18]
inc esi
push eax
lea edx, [esp + 0x20]
push 0x416550
lea eax, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x24], 0x4000
push 0
push eax
push 0x41a570
push ecx
push edi
call ebp
test eax, eax
jne 0x40e869
push dword [esp + 0x18]
push 0x416550
push dword [esp + 0x24]
push 0
push 0x41a570
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40e816
mov ebp, 1
push 0x100
push 0x416450
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40e8e7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0x416450
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40e8ce
lea eax, [esp + 0x14]
push eax
push 0x416450
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40e8c8
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.0040e7ff
push dword [esp + 0x14]
call esi
push dword [esp + 0x10]
call esi
mov eax, ebp
push 0x100
inc ebp
push 0x416450
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40e88b
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8